Kernel module path

Nikolas Britton nikolas.britton at gmail.com
Wed Jun 7 19:33:15 UTC 2006


On 6/7/06, Richard Jones <freebsd at jonze.com> wrote:
> 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 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?
>
> 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
>

Do you know if they ever fix crypto bug in mount_smbfs in FreeBSD 6.1?


-- 
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/


More information about the freebsd-questions mailing list