Kernel module path

Nick Withers nick at nickwithers.com
Wed Jun 7 14:31:10 UTC 2006


On Wed, 7 Jun 2006 11:28:09 +0100
Richard Jones <richard at jonze.com> wrote:

> Hi,
> 
> I'm having trouble loading kernel modules. Put simply "make
> installkernel" seems install native kernel modules into /boot/kernel/,
> but kldload seems to want to load them from /boot/modules.

>From kldload's man page:
________

FILES
     /boot/kernel  directory containing loadable modules.
Modules must have an extension of .ko.
________

This having been said, it _does_ look in /boot/modules as well.

I'm able to load a module from either directory without
specifying the full path and / or extension and without either
directory being my current working directory on 6.1-RELEASE.

What's the problem you're actually having? What version of
FreeBSD are you running?

> Obviously I can load modules by hand and/or copy the modules into
> /boot/modules, but surely there's a better way - either by modifying the
> installkernel behaviour or kldload.

I believe that base system kernel modules for the currently
installed kernel should be installed to /boot/kernel and that
kernel modules from outside FreeBSD (e.g.: nvidia.ko) are
installed to /boot/modules.

> R
> -- 
> Richard Jones
> MSN: msn.co.uk at jonze.com
> Y!M: rwkjones
> http://www.jonze.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
-- 
Nick Withers
email: nick at nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446


More information about the freebsd-questions mailing list