Date: Wed, 7 Jun 2006 12:25:18 -0400 From: John Nielsen <lists@jnielsen.net> To: freebsd-questions@freebsd.org Subject: Re: Kernel module path Message-ID: <200606071225.18488.lists@jnielsen.net> In-Reply-To: <200606071222.18217.john@jnielsen.net> References: <20060607102809.GA61343@dogstar.jonze.com> <20060607124154.GB46313@catflap.slightlystrange.org> <200606071222.18217.john@jnielsen.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 07 June 2006 12:22, John Nielsen wrote: > On Wednesday 07 June 2006 08:41, Daniel Bye wrote: > > On Wed, Jun 07, 2006 at 11:28:09AM +0100, Richard Jones 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. > > > > > > 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. > > > > kldconfig(8) might be of help here. > > There is a sysctl that controls this. By default on my 6-STABLE it is: > > %sysctl kern.module_path > kern.module_path: /boot/kernel;/boot/modules;/usr/local/modules > > So the FreeBSD 5.x and newer default of putting kernel modules in > /boot/kernel is covered. Check the output of the above command on your > system and check /etc/sysctl.conf for any overrides. Oh, I don't think /usr/local/modules is there by default. It was added on my system by one of the FUSE ports I'm using. The first two are definitely there by default, though. Sorry for the misinformation. JN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606071225.18488.lists>