LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-29-2001, 01:19 AM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Rep: Reputation: 30
Question kernel upgrade and module names incompatibility and /etc/modules.conf


Recently I came across a problem. Module name incompatibility..
I use Realtek 8139 ethernet card.
I upgraded my kernel from 2.2.16 to 2.4.14.
For a perticular hardware, the module names in these two kernels are different. How do we resolve those if you want to use both the kernels?

Here is the outline: The /etc/modules.conf uses rtl8139.o for
2.2.16, the module for the card. And in 2.4.14, the module for
the card is : 8139too.o

section of /etc/modules.conf..
# options rtl8139
alias eth0 rtl8139 -> 1. enabled only for 2.2.16
alias eth0 8139too -> 2. enabled only for 2.4.14

Whenever I use the old kernel, I manually comment out the second line. And when I want use the new kernel, I comment out the first line. This is very annoying and I hate to do it everytime. Another downside is that you should kknw what kernel you are booting into beforehand and is not always possible.

Is there a way to bind a module name to a specific kernel?

Thanks.
Ravi
 
Old 11-29-2001, 04:55 AM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You could just try leaving them both uncommented and ignore the boot message about "unable to load module **". In /lib/modules there should be a directory for each kernel version containing the needed modules for that version so if you boot the 2.2.x kernel it will look to /lib/modules/2.2.x and load rtl8139 and then complain about not finding 8139too but this should have no effect on how the system performs.
 
Old 11-29-2001, 07:48 AM   #3
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Can't you rename the rtl8319too, removing the too, change the etc/modules.conf so there's only 1 entry. As theyre in separate directories, it should work fine.
Jim
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel module names and config description? mosca Linux - General 1 08-01-2004 06:23 AM
Fedora Upgrade with problems in modules.conf rsanfelice Linux - Laptop and Netbook 0 04-22-2004 04:49 PM
module aliases, where mapped, not all in modules.conf/.devfs flipper333 Slackware 2 11-23-2003 04:46 AM
/etc/conf.modules is more recent than /lib/module/2.2.15-4mdk/modules.dep Derek-kun Linux - Newbie 3 09-26-2003 02:56 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:08 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
Open Source Consulting | Domain Registration