LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
one module and two kernels


Hey,

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?

Thanks,
Yayameen
 
Old 02-26-2003, 07:57 AM   #2
vladkrack
Member
 
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, 01:50 PM   #3
yayameen
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
 
  


Reply


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 09:35 AM
2.6.8 kernels don't load ext3 module on boot! Malibyte Mandriva 2 03-16-2005 09:46 PM
kcmshell module, Background&Screensaver Module can't be launch (but works @LookNFeeL) bobbyjoe Linux - Software 0 01-08-2005 05:48 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-28-2004 12:40 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 11:46 PM


All times are GMT -5. The time now is 12:24 PM.

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