Date: Wed, 7 Jun 2006 13:55:19 +0100 From: Richard Jones <freebsd@jonze.com> To: Nick Withers <nick@nickwithers.com> Cc: freebsd-questions@freebsd.org Subject: Re: Kernel module path Message-ID: <20060607125519.GA62057@dogstar.jonze.com> In-Reply-To: <20060607224054.09545db8.nick@nickwithers.com> References: <20060607102809.GA61343@dogstar.jonze.com> <20060607224054.09545db8.nick@nickwithers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 07, 2006 at 10:40:54PM +1000, Nick Withers wrote: > On Wed, 7 Jun 2006 11:28:09 +0100 > Richard Jones <richard@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? Yes, sorry, that wasn't the most infomational email. FreeBSD-6.1-RELEASE. me ~ # ls -1 /boot/kernel fire_saver.ko if_tun.ko ipfw.ko kernel libiconv.ko libmchain.ko linker.hints linux.ko smbfs.ko me ~ # ls -1 /boot/kernel nvidia.ko linker.hints me ~ # kldload smbfs kldload: can't load smbfs: No such file or directory me ~ # cp /boot/kernel/{smbfs.ko,libiconv.ko,libmchain.ko} /boot/modules/ me ~ # kldload smbfs <short pause> me ~ # kldstat Id Refs Address Size Name 1 12 0xc0400000 3c68c4 kernel 2 2 0xc07c7000 1f280 linux.ko 3 1 0xc07e7000 3f2e00 nvidia.ko 6 1 0xc50e0000 20000 smbfs.ko 7 2 0xc4f51000 4000 libiconv.ko 8 2 0xc4154000 3000 libmchain.ko -- Richard Jones MSN: msn.co.uk@jonze.com Y!M: rwkjones http://www.jonze.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060607125519.GA62057>