Adding one or two mods to an existing /lib/modules

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Jan 11 14:35:12 UTC 2006


On Wed, Jan 11, 2006 at 12:21:11AM -0500, Paul King wrote:
> I was just wondering if there is an easier way to do this... I was
> wondering how it is possible for me to compile and install only a few
> kernel modules and add them to already-existing modules
> under /lib/modules for the same kernel version.
> 
> My situation is that under Fedora 3, it has decided for me in its
> precompiled RPM that it will only offer me a fixed assortment of
> modules, but lacking in some other modules I need (such as ntfs.ko).
> 
> Let's say I have downloaded the source for the same kernel version
> (which I have done), and did a "make modules". I then discover, of
> course, that tons of modules compiled in addition to the ones I wanted. 

WHere did you download the kernel from?

If it wasn't a package from your distribution, then it isn't the same
version/patches.

> And, all I want to do is to add one or two modules of the same version
> to the /lib/modules/<kernel-version> tree. But doing insmod for this
> module will not load it, because there is no dependency entry. 
> 
> How is this problem overcome? I can't find anything in the kernel docs
> about loading one or two extra modules to an existing tree and updating
> the dependencies. And of course there are other things I probably
> haven't thought of.

Simplest is probably yo get the source rpm for the kernel image, and
changing the config to include the modules you want and building a new
rpm from it.  That way you have a complete working rpm for your kernel.

I don't know if redhat has anything similar to debian's kernel-headers
system, for building modules to match a given kernel, although that only
really applies to out of tree kernel modules anyhow.

Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list