Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2006 02:27:59 +0400
From:      Ruslan Ermilov <ru@freebsd.org>
To:        David Christensen <davidch@broadcom.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Simplified Steps for Building a Loadable module on -CURRENT
Message-ID:  <20060830222759.GA12443@rambler-co.ru>
In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com>
References:  <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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/<your_module>/Makefile
3) Adopt the latter as needed
4) "make all && make load" while in /sys/modules/<your_module>

> Assume for the moment that I have already commented the driver out
> of my kernel configuration file
> (/usr/src/sys/<architecture>/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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830222759.GA12443>