LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 09-21-2006, 09:40 AM   #1
snalion
LQ Newbie
 
Registered: Aug 2006
Posts: 11

Rep: Reputation: 0
Unhappy Linux kernels and modules issue


I installed Slackware on my machine with kernel 2.4.31. Then I downloaded kernel 2.4.26 and compiled that with modules etc and installed that on my machine too. So now I can get into either kernels with my network card 3c905 working fine. I copied the bzimage, System.map and config file from a backup folder of my production machine which is kernel 2.4.26 and copied it onto the /boot and made changes in lilo.conf so, I can now run 3 kernels. Yes, it may seem weird but I'm still trying to learn and get the whole thing about compiling kernels etc. So back to my issue: Now when I boot into my copied kernel, I loose network access, its almost like the drivers for the 3c905 are not installed. I notice that the 3c59x.o and .h files are present under the /usr/src/Linux 2.4.26/drivers.. folder. So I tried to run it by giving a insmod command, however it says that there is a version mismatch. Can anyone tell me what happened? And is there a way to fix this, so I can boot into the copied kernel and still have network. When I do ifconfig, all I see is the "lo", however when I boot into either 2.4.31 or the old 2.4.26, I can see the eth0. Is there a way to modify the already present bzImage file, especially in adding the network drivers? I know it may sound confusing, so sorry about that. I apologize in advance if this may sound too confusing, but would really appreciate if someone could help me with this.
Thank you!!
 
Old 09-21-2006, 07:04 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
So... why having two 2.4.26 kernels ? Anyway what is wrong is you don't have a second /lib/modules/2.4.26 folder ( you couldn't have anyway with your method). Insmod or modprobe search modules in such dirextory not /usr/src/linux-bla.bla.
What happens is insmod searchs the module (while running kernel 2.4.26 #2) in /lib/modules/2.4.26 of kernel 2.4.26 #1 and you get an error (version mismatch). You can have two identical kernels but you must name one of them with an "extra version" while compiling.
As an example: you choose calling your 2.4.26 kernel du jour with an extra version, let's say "special". When you run the command "make modules_install your modules will be copied in a /lib/modules/2.4.26-special folder without overwriting an existing /lib/modules/2.4.26. To get this edit the Makefile file of the kernel when you find a line like EXTRAVERSION= insert "special" or something like that.
Not sure is very clear. Hope this helps
Ciao
 
Old 09-22-2006, 02:35 PM   #3
snalion
LQ Newbie
 
Registered: Aug 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy

Ahh I get it! Thank you for the reply. However, so then is there a way to edit the already existing bzImage file, or do I need to compile it again. The reason I ask this is because, I have a backup of the bzimage file(which is a production machine backup), however it does not have the 3com drivers in it. So it does not run on my backup machine. Any ideas on how to do this or you cannot? Thanks again!
 
Old 09-23-2006, 06:41 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
Maybe there is method, but I don't know....
A safe method is you pick the .config file of the "production machine" and add the support for 3c905 or whatever then compile the 2.4.26 kernel on you spare machine according to such .config file (remember the EXTRAVERSION stuff). You'll have an identical kernel.
Ciao
 
  


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
precompiled kernels & modules linuxhippy Slackware 5 03-14-2005 08:46 PM
2 kernels 1 set of lib/modules?? fred22 Linux - General 2 02-24-2005 03:31 AM
/etc/modules when booting multiple kernels cbirdlinux Linux - General 2 07-22-2004 06:57 PM
Modules and 2.6test kernels rch Linux - General 3 11-11-2003 10:39 PM
How to test between 2 kernels in /etc/modules.conf pnb Linux - General 2 11-10-2003 05:29 PM


All times are GMT -5. The time now is 07:02 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