LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-11-2006, 05:00 PM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Rep: Reputation: 30
Can't load network driver after kernel upgrade


Hi everyone

I upgraded my kernel from 2.4.18-8 to 2.4.32. I have a Mandrake MultiNetwork firewall (RPM-based system) and my new kernel is source from kernel.org

OK well I did have some trouble with getting the kernel up and running, but now it seems to load and run OK except for two things.

The main problem I have is I can't get my network drivers to load. The chip is BroadCom NetXtreme Gigabit ethernet (there are 2, eth0 and eth1). I have downloaded the source (.tar.gz) from broadcom's website. This worked well for 2.4.18, but under the new kernel it won't run.

Here's a run-down of what I did

0. boot into new kernel and log on as root
1. untar the source file
2. cd into the directory (bcm5700-ver)
3. run make (response: Make: Nothing to do for "all")
4. run make install (response: about 10 "Unresolved Symbol" errors) in bcm5700.o
5. modprobe bcm5700 (response: unresolved symbols)

Second problem: When booting, DHCPD says [FAILED] -- could this be because eth0 and eth1 are not initialised?

What am I doing wrong? thanks for any help!!
 
Old 04-11-2006, 09:58 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
First please review the instruction (the Readme or Install files for example) the source code may have been meant for older kernel sources then 2.4.32. You may not even need the downloaded code, did you even check during the configuration???

The unresolved symbols is an indication that something is not right with the module or something within the complied kernel is missing. So it would be a good idea to check your kernel configuration after reviewing the documentation for the downloaded source.

And yes with no active ethernet device(s) then DHCPD will fail.
 
Old 04-12-2006, 09:01 AM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
Hi Lenard, thanks for replying.

Well, I read the README that came with the driver, and it says:

"Limitations
===========

The current version of the driver has been tested on the latest Red Hat, SuSE,
and other Linux distributions for i386, ia64, and x86_64 CPU architectures
using 2.4.x and 2.6.x kernels. The driver has been tested up to kernel
version 2.4.31 and 2.6.12.

The driver should work on other little endian or big endian CPU architectures,
but only very limited testing has been done on some of these machines. The
Makefile may have to be modified to include architecture specific compile
switches, and some minor changes in the source files may also be required.
On these machines, patching the driver into the kernel is recommended (see
below for instructions)."

I assumed that meant that it would work on my kernel 2.4.32, I didn't understand the second paragraph too much but since my machine is a Intel Xeon processor that can run ix86 packages, I assumed the first paragraph applied.

During the configuration (I assume you mean configuration of the kernel), I selected to install most of the ethernet drivers. I thought that the tg3 driver was Broadcom, so I tried that driver and it didn't work either. Doing "modprobe" any other driver results in an error message like "Device busy or not found" (I don't remember the wording of the error).

When I was compiling the kernel I had to remove support for cryptography and also "Memory Technology Device" support because otherwise I couldn't get the "modules_install" to work. These are the only two things I consciously removed.

I am a kernel newbie here, so maybe my kernel is buggered up... I didn't really know what I was doing, I followed a HOWTO http://www.faqs.org/docs/Linux-HOWTO/Kernel-HOWTO.html that seemed to work OK.... and I used "make oldconfig" if that matters...

Should I re-compile the kernel again? Did I screw something up? thanks!
 
Old 04-12-2006, 09:47 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Yes re-compile the kernel, your current 2.4.32 kernel configuration may be ok with one exception.

Check the Network Device Support-->Ethernet (1000Mbit) and select to build the Broadcom Tigon3 Support (Y or M)

I also checked the Broadcom site and it seems they have a newer version of the driver available (tg3-3.43f.tar.gz) from the README.TXT file;

Limitations
===========

The current version of the driver has been tested on 2.4.x kernels starting
from 2.4.24 and all 2.6.x kernels. The driver may not compile on kernels
older than 2.4.24. Testing is concentrated on i386 and x86_64 architectures.
Only limited testing has been done on some other architectures.


Standard Disclaimers Apply
 
Old 04-12-2006, 05:37 PM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
Hi Lenard, thanks for your reply.

I did enable the tg3 driver as a module (I double checked this) since it said Broadcom, I thought it might be relevant. Acutally I enabled practically all of the drivers listed, and I can see them all present in my kernel/drivers/net directory. As stated in my second post, it gives an error message when I try it and I now have the exact wording of the error message:

"# modprobe tg3
using /lib/modules/2.4.32-0/kernel/drivers/net/tg3.o
/lib/modules/2.4.32-0/kernel/drivers/net/tg3.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
modprobe: insmod /lib/modules/2.4.32-0/kernel/drivers/net/tg3.o failed
modprobe: insmod tg3.o failed"

I have revisited Broadcom's site - turns out I did download this newer version when I was there the other day, but I accidentally installed the wrong one (bcm5700 - the were in the same directory)

This file had two drivers, a .src.rpm file and a .tgz driver. I first tried the tgz version but I got some fatal make errors (along the lines of <variable> may be used without being initialised)

So i then tried the .src.rpm one - rpm -ivh tg3-3.43f-1.src.rpm and it said it installed successfully.

However, I still receive the above error about "no such device"

Please help, I need to get this working because the system is too unstable with 2.4.18 kernel (crashes all the time with known OSB serverworks bug), thanks!!!
 
Old 04-21-2006, 11:30 AM   #6
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
can anyone help me with this? "no such device"
 
Old 04-21-2006, 11:47 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
If you installed the src.rpm file, then did you build the module afterwards???
 
Old 04-25-2006, 09:51 AM   #8
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
I typed this:

rpm -ivh tg3-3.43f-1.src.rpm

Is that not the right way to do it?
 
Old 04-25-2006, 10:44 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Yes this is the correct way, but after that you need to go to where the files were expanded to and build the binary. All you have done was install the source, with Red Hat based systems it would be /usr/src/redhat/SPECS. I suspect Mandrake has something simular.
 
Old 04-25-2006, 10:59 AM   #10
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
You are correct, I have the file /usr/src/RPM/SPECS/tg3.spec

And I just found the installation instructions, I can't run it until after we close tonight; but I will try and post back the results.

Last edited by Avatar; 04-25-2006 at 11:13 AM.
 
Old 04-25-2006, 04:57 PM   #11
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: Mandrake 9.2 and MNF
Posts: 512

Original Poster
Rep: Reputation: 30
OK... I tried it and had the same problems as I did with (tar source).

Error messages follow:

Code:
# rpmbuild -bb tg3.spec
.
.
.
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/lib/modules/2.4.3
2-0.erc/build/include -02  -c -o tg3.o tg3.c
In file included from tg3.c:77:
tg3.h:234: redefinition of 'if_mii'
/lib/modules/2.4.32-0.erc/build/include/linux/mii.h:149: 'if_mii' previously defined here
tg3.c: In function 'tg3_setup_fiber_hw_autoneg':
tg3.c: Warning: 'sg_dig_status' might be used uninitialized in this function

( about 3 more like this)

make: *** [tg3.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.18512 (%build)
These are the EXACT same errors I get when I try to make the tar source. What did I do wrong here?

Thanks.
 
  


Reply

Tags
driver, drivers, install, kernel, network, software


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load a network driver during boot? Z038 Slackware 11 02-05-2006 11:00 PM
NVidia driver will not load after kernel upgrade Ptrs!OP Linux - Hardware 10 02-06-2005 06:53 AM
gnome slow to load after kernel upgrade baldwonder Linux - Software 3 10-08-2004 10:15 AM
keep having to load network driver at bootup Dswissmiss Linux - Software 2 04-20-2004 04:55 AM
how to load a network driver dansen Linux - Hardware 0 11-28-2002 04:50 AM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration