Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-24-2003, 09:08 PM   #1
LQ Newbie
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
one module and two kernels


I have a problem I have been unable to locate any information on. I have 2 different partitions on my drive and I use LILO to boot into either one. One partition has the default redhat 2.4.18-3 kernel. The other has a kernel I compiled myself which is also 2.4.18 but I have removed many modules and reduced the size of the OS.

I have a module that is compiled seperately from the kernel that I want to use on both partitions. Do I need to recompile while running each kernel or do anything special like run depmod twice? Or will the module work on either because it is the same linux version?

Currently I force the module to load since when I compile the version is 2.4.18-SPECIAL. I notice that sometimes I have flawless execution and other times I have a crash. Anyone who can give me any pointers about any bonehead things I'm doing, please do it. If compiling the same version of linux with diferent options is considered a separate OS, then what other steps do I need to take?

Old 02-26-2003, 06:57 AM   #2
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Install the module in both kernel's, the run depmod -a for both of then.

Hope that helps ...
Old 02-27-2003, 12:50 PM   #3
LQ Newbie
Registered: Feb 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I recompiled for my target kernel and then recompiled the driver and got a driver of a very different size that worked on that target. It seems that recompiling the kernel with different options actually MAY change the kernel enough as to be incompatible with some drivers. I've done recompilations since then that haven't changed the driver size at all, but now I always compile just to be sure


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why slack 2.6 kernels have raid as module? Barx Slackware 2 10-08-2005 08:35 AM
2.6.8 kernels don't load ext3 module on boot! Malibyte Mandriva 2 03-16-2005 08:46 PM
kcmshell module, Background&Screensaver Module can't be launch (but works @LookNFeeL) bobbyjoe Linux - Software 0 01-08-2005 04:48 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration