Simplified Steps for Building a Loadable module on -CURRENT
Ruslan Ermilov
ru at freebsd.org
Wed Aug 30 22:27:46 UTC 2006
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
> work before. Assume I'm a complete FreeBSD noob for a moment
> (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?
>
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.
>
OK.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060830/36916759/attachment.pgp
More information about the freebsd-current
mailing list