[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Load kernel module automatically
On Wed, 5 Jun 2002, Joseph A Knapka wrote:
> Eric Kristopher Sandall wrote:
> >
> > On Tue, 4 Jun 2002, Michael Zhu wrote:
> >
> > > Hi, I built a kernel module. I can load it into the
> > > kernle using insmod command. But each time when I
> > > reboot my computer I couldn't find it any more. I mean
> > > I need to use the insmod to load the module each time
> > > I reboot the computer. How can I modify the
> > > configuration so that the Linux OS can load my module
> > > automatically during reboot? I need to copy my module
> > > to the following directory?
> > > /lib/modules/2.4.7-10/
> >
> > You don't need to do this, actually, you should _not_ do this.
>
> Forgive me, but how else, without copying the module.o to
> /lib/modules/<version>/... and doing "depmod module.o",
> is the kernel able to find the module in order to load it?
> Is not /lib/modules/<version> the standard place to install
> module binaries?
Well, I assumed (and perhaps wrongly) that he'd done a 'make modules &&
make modules_install' after configuring his kernel, which would put the
modules into /lib/modules/<kernel-version>/ for him.
Had he not done this (or built a module himself/from 3rd-party), then yes,
he should copy it to /lib/modules/<kernel-version>/ and run depmod -a.
-ES
--
Eric Sandall | (P)e-mail: sandalle@mail.wsu.edu
Debian Linux Beowulf Cluster | (P)web: http://hellhound.homeip.net/
ICQ: 667348 | User 196285: http://counter.li.org/
SysAdmin, Shock Physics, WSU | (W)web: http://www.shock.wsu.edu/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/