Re: Compiling modules

Steve Shah (sshah@cs.ucr.edu)
Fri, 9 Oct 1998 18:05:13 -0700


When you're in /usr/src/linux, do a

make modules

This will build the modules. Then to install them:

make modules_install

And to make sure all the symbols are worked out:

depmod -a

Try rebooting and see what flies (or doesn't). =)

-Steve

On Fri, Oct 09, 1998 at 10:11:29PM +0100, Neil Moore-Smith wrote:
> I'm upgrading my kernelfrom 2.0.33 to 2.0.35, and thought I'd do it the
> hard way, rather than installing a patch, to get some experience. I'm
> getting more experience than I want!
>
> I unpacked the kernel source, got loads of compilation errors, worked out I
> needed to downgrade gcc, did that, compiled the kernel, did "make zlilo",
> and rebooted. Now it recognises my display controller (the reason behind
> the upgrade) but can't see my network card (which was working fine...)
>
> Ah hah! I need to compile the modules! I look in /usr/src/linux/modules and
> there isn't much there, so I assume I need to install them. So I go and get
> the modules source from the same place as the kernel (its called
> modules-2.0.0.tar.gz but I assume that must be the latest as its the only
> one there) and install them, then do make modules, followed by make
> modules_install.
>
> I reboot, but still no modules are loaded, and when I look in
> /usr/src/linux/modules, there's not much there again, but there was before
> I compiled the modules.
>
> What am I doing wrong? Is the compile meant to delete all the modules
> source? I gather that only the needed modules are compiled, so I'm probably
> compiling too much into the kernel, but how can I recompile the modules now
> the source has gone, unless I re-install it? I can't be expected to do that
> every time, surely?
>
> Neil

-- 
______________________________________________________________________________
Steve Shah (sshah@cs.ucr.edu) | SysAdmin/Coder/Gabbernaut/DJ/Writer/Minister
http://www.cs.ucr.edu/~sshah  | We're not dropping out, we're infiltrating.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Beating code into submission, one operating system at a time...
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu