From owner-freebsd-current@FreeBSD.ORG Wed Aug 30 22:27:46 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06E2616A4DA for ; Wed, 30 Aug 2006 22:27:46 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DBC543D5F for ; Wed, 30 Aug 2006 22:27:35 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 99DFD611E; Thu, 31 Aug 2006 02:27:33 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 76F3B611A; Thu, 31 Aug 2006 02:27:33 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.6/8.13.6) id k7UMRxZ6012469; Thu, 31 Aug 2006 02:27:59 +0400 (MSD) (envelope-from ru) Date: Thu, 31 Aug 2006 02:27:59 +0400 From: Ruslan Ermilov To: David Christensen Message-ID: <20060830222759.GA12443@rambler-co.ru> References: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com> User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: No virus found Cc: freebsd-current@freebsd.org Subject: Re: Simplified Steps for Building a Loadable module on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 22:27:46 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 30, 2006 at 03:12:59PM -0700, David Christensen wrote: > I've been able to successfully build drivers in the past as > loadable modules but I'm getting some kernel panics with -CURRENT > when installing a module using kldload now where things used to=20 > work before. Assume I'm a complete FreeBSD noob for a moment=20 > (which really isn't that far from the truth) and I want to build > a driver as a loadable module for testing. After moving to > the appropriate directory in the source tree (/usr/src/sys/dev/XXX), > what steps do I need to follow to build the driver as a module? >=20 1) Make sure your running kernel is built from the same sources 2) Copy some /sys/modules/*/Makefile to /sys/modules//Makefile 3) Adopt the latter as needed 4) "make all && make load" while in /sys/modules/ > Assume for the moment that I have already commented the driver out > of my kernel configuration file > (/usr/src/sys//conf/GENERIC) > and rebuilt and installed that kernel. >=20 OK. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE9hDvqRfpzJluFF4RAkcVAJ9KmW50x2TdgfUR6IIHYHP5mQ/6MACbBzIJ EftjVgMs9tcPwtLy3lKxBrA= =arY2 -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--