Skip to contentSkip to conversation

kernel configuration

DISCUSSION atticclaw 3 participants 4 messages Sep 9, 2003

lore
Share & tools
lore

atticclaw

author
#0 lore raw

Hi,
Well I have vmware 4.0 in which I have installed RH 9.0 it comes with kernel 2.4.20-8 . I have downloaded fresh kernel 2.4.18 . I am tryibg to configure the kerne l but it is giving me an error saying tht my module sd_mod.o is compile for kernel 2.4.22 while I am using kernel 2.4.18 .
Why is this is happeneing ?
Pls help me out
bye
splic

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets on Air Sahara Flights at Prices Lower Than Before. Just log on to http://airsahara.indiatimes.com and Bid Now!

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 4 lines · atticclaw

Hi,
Well I have vmware 4.0 in which I have installed RH 9.0 it comes with kernel 2.4.20-8 . I have downloaded fresh kernel 2.4.18 . I am tryibg to configure the kerne l but it is giving me an error saying tht my module sd_mod.o is compile for kernel 2.4.22 while I am using kernel 2.4.18 .
Why is this is happeneing ?
Pls help me out

Mmmm. I think it's because add-on modules are compiled for a given kernel. They're not supposed to work with kernels for which they were not compiled. That said, I've forced one to run with the -f switch and had it work ok (a NIC module) for me - I think others will advise you against trying this though, and if you have alot of modules it might not work for you like it did for me anyway. So, assuming you've compiled your own 2.4.18 kernel, I'm pretty sure you'll need to compile a new set of modules for it. If you didn't compile your own kernel, you'll need to do that first, since I think to compile the modules you'll need to have kernel headers available (they only appear in your system if you've compiled your own kernel). Please wait for others to respond to your question too, since I'm not any kind of big authority on this list.

James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 8 lines · James Miller
Quoted 2 lines · atticclaw

Hi,
Well I have vmware 4.0 in which I have installed RH 9.0 it comes

with kernel 2.4.20-8 . I have downloaded fresh kernel 2.4.18 . I am tryibg to configure the kerne l but it is giving me an error saying tht my module sd_mod.o is compile for kernel 2.4.22 while I am using kernel 2.4.18 .

Quoted 2 lines

Why is this is happeneing ?
Pls help me out

Quoted 12 lines

Mmmm. I think it's because add-on modules are compiled for a given kernel. They're not supposed to work with kernels for which they were not compiled. That said, I've forced one to run with the -f switch and had it work ok (a NIC module) for me - I think others will advise you against trying this though, and if you have alot of modules it might not work for you like it did for me anyway. So, assuming you've compiled your own 2.4.18 kernel, I'm pretty sure you'll need to compile a new set of modules for it. If you didn't compile your own kernel, you'll need to do that first, since I think to compile the modules you'll need to have kernel headers available (they only appear in your system if you've compiled your own kernel). Please wait for others to respond to your question too, since I'm not any kind of big authority on this list.

James' guess is as good as any can be at this stage. The original question provides way too little information for real help. It is not even clear if the question is about kernel source or a precompiled binary. So ...

1. Clarify "configure the kernel". Do you mean run one of the options (make config, make menuconfig, or make xconfig) to create a .config file for the kernel source? Or do you mean something else?

2. What is the "it" that gives you an error? The configure script? Some step in the compile process? An attempt to insmod or modprobe the module? What is the EXACT error you get?

3. You only mention kernel 2.4.20-8 and 2.4.18. Is there any version of 2.4.22 on the system? (actually, I didn't even know there was a 2.4.22 -- Debian sources seem only go up to 2.4.21.)

4. If the problem does occur during compile, did you follow all the steps needed to compile a new kernel? As outlined in the kernel source README file, I mean.

5. If you are talking about a precompiled kernel, not source, be as much more specific as you can about what you downloaded. In particular, did you download and install the associated modules for the new binary?

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
Quoted 5 lines · Ray Olszewski

3. You only mention kernel 2.4.20-8 and 2.4.18. Is there any version of 2.4.22 on the system? (actually, I didn't even know there was a 2.4.22 -- Debian sources seem only go up to 2.4.21.)

Gee, I didn't notice he was talking about 3 different kernels (I just presumed where he wrote 2.4.22 that he was writing 2.4.20-8), or 2 kernels and modules from a third. That *does* make it confusing. What is the stock kernel for RH9? That might help illumine things a bit.

James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs