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 10-20-2005, 02:14 PM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Rep: Reputation: 33
module ? after kernel upgrade


Hello,

I had mandrake multi network firewall which uses kernel 2.4.18-8 and I downloaded, compiled and installed 2.4.31. Everything seemed to go well except when I booted into the new kernel, my 2 ethernet cards were not working.

It seems they were not detected/initialised at all.

Now I seem to remember, that when I initially installed Linux on this server, I had to do some kind of song & dance to get the cards to work.They are BroadCom NetXtreme 5700, and I currently have them loading as a module. They load with /etc/modules I believe.

Anyway, how can I get them to load up at boot time with my new kernel?

If I have to change the module in any way, is there a way to preserve the old one so my old kernel can still work? (this is a production server)

Thanks for any tips.
 
Old 10-21-2005, 07:44 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Did you do 'make modules_install'? The new kernel puts its modules in a different subdirectory of /lib/modules from the old kernel. Each kernel version will have its own set of modules, so if you reboot the old kernel you get the old module.

Modules listed in /etc/modules get loaded whatever kernel you boot (if they have been compiled and installed for that kernel anyway).

If the kernel configuration is correct you shouldn't have to change much, if anything, to use the new kernel.
 
Old 10-24-2005, 10:35 AM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Hi maroonbaboon

thanks for the reply. Yes, I did make modules and make modules_install. It doesnt even detect my cards. There are 2 on-board broadcom cards.

On my old kernel, dmesg has several messages about the cards:
Code:
Broadcom Gigabit Ethernet Driver bcm5700 with Broadcom NIC Extension (NICE) ver. 7.0.0 (08/14/03)
eth0: Broadcom BCM5703 1000Base-T found at mem fbff0000, IRQ 24, node addr 00096b63154e
eth0: Broadcom BCM5703 Integrated Copper transceiver found
eth0: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON
eth1: Broadcom BCM5703 1000Base-T found at mem fbfe0000, IRQ 25, node addr 00096b63154f
eth1: Broadcom BCM5703 Integrated Copper transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON
bcm5700: eth1 NIC Link is UP, 100 Mbps full duplex, receive & transmit flow control ON
bcm5700: eth0 NIC Link is UP, 10 Mbps half duplex
The new kernel dmesg doesn't mention anything from eth0, 1, or anything about Broadcom. It does, however, contain messages from NET4. I don't see any obvious error messages.

What else can I look at to figure out why my card's aren't working / being detected?
 
Old 10-24-2005, 05:21 PM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Apparently the current driver for this device is called 'tigon3'. Did you configure this into your new kernel? Maybe your old kernel used an earlier version with a different name.
 
Old 10-26-2005, 09:46 AM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
"tigon3", where did you see that? I thought it looked like the module was called bcm5700. Also the server came with the drivers on a CD, but I don't think I used them, I think I downloaded them from the Internet (it was over a year ago, I forget how i got it working). How can I compile it into the kernel if it's already been compiled? Sorry for all the questions.
 
Old 10-26-2005, 10:33 AM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Weird name isn't it? I think I just googled for the chip name, based on your dmesg output. Even if I got it wrong it might be worth checking.

Maybe what happened was that when you first set this up there was no driver for it in the standard kernel, but the manufacturer/packager had provided one separately. Gigabit ethernet is fairly new. When some version of the driver made it into the kernel code the name had changed. Now there is a CONFIG_TIGON3 option in the kernel config file.

Have you tried just 'modprobe tigon3' to see it loads up?

Otherwise you can probably fix it by compiling a new kernel. Or maybe Mandrake provides an upgrade to a 2.6 kernel? I'm not familiar with that distribution. Usually if you get a packaged kernel it comes with all the matching modules, such as the mysterious tigon3.
 
Old 10-26-2005, 10:41 AM   #7
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Ok I will try "modprobe" but I have to wait til close of business to try it. Thanks, I will let you knw what happens.
 
Old 10-26-2005, 03:52 PM   #8
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
OK I rebooted the machine into 2.4.31 (new kernel) and I saw two error messages worth noting. I didn't have a paper at the time, so I don't have the exact words, but it was something like:

Code:
Bringing up interface eth1: Broadcom device doesn't seem to exist, will initialize eth1 later
Starting ADSL: modprobe: modprobe: can't find module eth0 (repeated several times)
When I finally booted up (takes much longer) and ran modprobe I got this message

for tigon3:
modprobe: can't find module tigon3

for bcm5700, the one i currently use:
modprobe: can't find module bcm5700

for an ethernet interface:
modprobe: can't find module eth0

grrrrrr.....
 
Old 10-26-2005, 06:29 PM   #9
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Oops. Sorry. Driver is called 'tg3' not 'tigon3'.
 
Old 10-27-2005, 07:37 AM   #10
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
What disturbs me is that it "cant find module bcm5700" when the old kernel uses that module. Therefore, I know it exists, yet the new kernel can't find it. Why?

I'll try the tg3 module tonight.
 
Old 10-27-2005, 09:34 AM   #11
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Different kernel keep their modules in different places. A module is like a piece of a jigsaw puzzle. You cannot mix and match. Each installed kernel has its own subdirectory of /lib/modules. You cannot shift stuff between those directories.
 
Old 10-27-2005, 04:00 PM   #12
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by maroonbaboon
Different kernel keep their modules in different places. A module is like a piece of a jigsaw puzzle. You cannot mix and match. Each installed kernel has its own subdirectory of /lib/modules. You cannot shift stuff between those directories.
Thanks you gave me a clue!

I tried again with "modprobe tg3" and of course got the error Can't locate module tg3

So I went to find the kernel modules directory and lo and behold, there aren't any modules in there at all.

Old kernel:
/lib/modules/2.4.18-8mdksecure/kernel/drivers (this directory has all kinds of stuff, like "scsi, parport, net") in the net directory: about a zillion things for different cards.

New kernel:
/lib/modules/2.4.31/kernel/drivers (only has one directory, net)
In the net directory: dummy.o (that's it. really.)

So... now what?

I will recompile the kernel if I have to, to get some modules.

Thanks!
 
Old 10-27-2005, 05:06 PM   #13
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I don't know how MDK organises these things. Maybe driver modules are in a separate (but matching) package for the new kernel? It doesn't make much sense to provide a kernel upgrade without matching modules.

You can certainly compile your own kernel. Does MDK provide source packages or documentation to simplify the process?
 
Old 10-28-2005, 03:26 PM   #14
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
It's not a mandrake kernel, just the old one was.

I got 2.4.31 from kernel.org

Where can I get the modules?
 
Old 10-28-2005, 07:47 PM   #15
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
OK that's different. I should have picked that up in your first post.

Have you done the 'make modules_install' step?
 
  


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
Can a kernel module call the function of another kernel module sceadu Programming 3 05-02-2011 02:22 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM
kernel upgrade and module names incompatibility and /etc/modules.conf concoran Linux - General 2 11-29-2001 07:48 AM
No modem after kernel upgrade: Modprobe can't locate module char-major-4 Rimmer Linux - General 2 05-09-2001 02:40 AM

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

All times are GMT -5. The time now is 09:25 AM.

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