LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 11-09-2003, 06:09 PM   #1
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
Need help installing RTL8139D ethernet card


I am running on RH 9.0 (kernel 2.4.20-6) and I can't figure out how to properly install a RTL8139D network card. I compile the driver 8139too.c, but get many pages of errors (too many to list).

The compile comand in the Makefile looks like this:
gcc -06 -Wall -DCONFIG_KERNELD -DMODULE -D_KERNEL_ -DLINUX -I /usr/src/linux-2.4.20-6/include/ -c 8139too.c

I have been trying to do get this to work for days now. Can someone please help a Linux newbie?

Once the driver is compiled, what is the next step?
 
Old 11-09-2003, 06:20 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Once the driver is compiled, what is the next step?
try modprobe /path/to/8139too.c

Last edited by Peacedog; 11-09-2003 at 06:24 PM.
 
Old 11-11-2003, 09:06 AM   #3
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I tried the modprobe command, but get the following error:

"Warning: ignoring irq=14, no such parameter exists in this module"

Any ideas?
 
Old 11-11-2003, 12:37 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
did you make the driver. if so do

modprobe * and see where it is.

then insmod path/to/your/driver

i believe the .c file is part of the make process and the driver should be
8139too.o
hope that helps.
 
Old 11-11-2003, 06:03 PM   #5
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
No, I am using the driver that came with the NIC card: 8139too.c. I compiled it, but received errors. When I try the 'insmod' command, I get
the following error message:
path/to/driver/8139too.o: unresolved symbol mii_link_ok_R59a901a8
(plus 4 other similar errors)

I think I need to re-compile the driver. What is wrong with my compile instructions listed above? Any ideas?

Do compilers vary between versions of Redhat, versions of kernels? Maybe these compiler commands are intended for another version of Redhat/kernel?
 
Old 11-11-2003, 06:09 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
did you get a readme file with the driver?if the driver came with the card you shouldn't have to compile it(i think?) any how post the errors infull that you get with the compiling, as well as the errors you get with insmod.
 
Old 11-12-2003, 08:17 PM   #7
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I ran the Makefile (that came with the NIC card) and messages scroll for several pages. Here are the most common messages on the screen:

8139too.c: At top Level:
8139too.c:672: storage size of 'thr_exited' isn't known
8139too.c:3068: storage size of 'rtl8139_pci_driver' isn't known
8139too.c:3069: unknown field 'name' specified in initializer
8139too.c:3070: unknown field 'id_table' specified in initializer
8139too.c:3071: dereferencing pointer to incomplete type
make *** [8139too.o] error1
8139too.c:1603: parse error before string constant
8139too.c:1610: warning passing arg 1 of 'rtl1839CP_init_ring' from incompatable pointer type
8139too.c:1621: 'KERN_WARNING' undeclared (first use in this function)

When I run the 'insmod 8139too.o' command I get the following errors:
8139too.o: unresolved symbol mii_link_ok R59a901a8
8139too.o: unresolved symbol mii_ethtool_sset R7218fs2a
8139too.o: unresolved symbol generic_mii_ioctl_R6bf3e1d6
8139too.o: unresolved symbol mii_nway_restart_R9d2585b5
8139too.o: unresolved symbol mii_ethtool_gset R111992a1

Can you help?
 
Old 11-13-2003, 12:01 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
ok i've downloaded the *.zip file so i can look at what you're looking at. i've got some ideas now. noticed something in the readme file, it states

Quote:
4.This program can be compiled using the attached Makefile.
Please remember to SPECIFY "NEW_INCLUDE_PATH" in Makefile according to your linux environment.
The object file named 8139too.o should be moved to the directory
/lib/modules/<linux-version>/kernel/drivers/net/
The driver could be brought up by the following steps:
'insmod 8139too'
'ifconfig eth0 up'
did you complete this step?
 
Old 11-13-2003, 06:43 PM   #9
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Yes. When I run the 'insmod 8139too' command, I get the following error messages:

8139too.o: unresolved symbol mii_link_ok R59a901a8
8139too.o: unresolved symbol mii_ethtool_sset R7218fs2a
8139too.o: unresolved symbol generic_mii_ioctl_R6bf3e1d6
8139too.o: unresolved symbol mii_nway_restart_R9d2585b5
8139too.o: unresolved symbol mii_ethtool_gset R111992a1


When I run the 'ifconfig eth0 up' command, I get the following error message:

eth0: unknown interface: no such device
 
Old 11-13-2003, 06:54 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i'm thinking that step 4. did not get completed. i could be wrong, but i'm thinking either you didn't edit the makefile as the readme says to do, or, you didn't put the 8139too.o file where the readme said to put it. i'm learning along with you so i could be off on my thinking. just trying to help and learn and keep your thread alive until we can "brain out a solution". i'm not sure what the unresolved symbol errors mean, i'm guessing that the make went ok and the 8139too.o file is in the wrong place. i'll do some more research on my hunches and post back. i've got to go for this evening, but, i won't let this thread goe by the wayside. i'll keep posting anything i find or learn until we get you fixed up. meanwhile have a good look at the readme file and be sure to follow all of it's steps. maybe a linux ninja will see this and educate us both. good luck till 2morrow.

Last edited by Peacedog; 11-14-2003 at 06:57 AM.
 
Old 11-14-2003, 06:06 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
hi alarge23, did you get the card working?
 
Old 11-15-2003, 02:24 PM   #12
alarge23
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

No, I double checked that I had set the Makefile as per the Readme instructions and everything looks ok. Still no luck.

Could it be that my kernel (2.4.20-6) can't handle this driver? I also read something about different versions of the compiler, version 2 vs. version 3. How can I tell what version of compiler I am using, or if that even matters?

Let me know if you have any more ideas.
 
Old 11-15-2003, 09:45 PM   #13
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i don't think it's a kernel problem. i'll do some more research and post back. don't quit. i thought you'd given up after the last 2 posts i made. there is a solution. we will find it. still researching the prob.
 
Old 02-22-2004, 09:39 AM   #14
slackerhere
LQ Newbie
 
Registered: Jun 2001
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by alarge23
Yes. When I run the 'insmod 8139too' command, I get the following error messages:

8139too.o: unresolved symbol mii_link_ok R59a901a8
8139too.o: unresolved symbol mii_ethtool_sset R7218fs2a
8139too.o: unresolved symbol generic_mii_ioctl_R6bf3e1d6
8139too.o: unresolved symbol mii_nway_restart_R9d2585b5
8139too.o: unresolved symbol mii_ethtool_gset R111992a1


When I run the 'ifconfig eth0 up' command, I get the following error message:

eth0: unknown interface: no such device
insmod mii
then
insmod 8139too

I was actually searching for some compile help, I'm getting crazy errors and I came upon this thread. Don't like unfinished threads. The realtek driver needs mii.o to be installed before it can be installed or it can't find the above functions.
 
  


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
Installing an ethernet card w/o rebooting? devfreak Linux - Hardware 3 08-10-2005 12:47 PM
installing ethernet card problem scc28y Linux - Newbie 2 02-09-2004 10:17 PM
redhat9 & RTL8139D 10/100 card problems BigBike Red Hat 2 12-05-2003 10:35 PM
D-link RTL8139D w/Redhat, RTL card not present BigBike Linux - Networking 5 12-05-2003 12:47 PM
installing lan card(ethernet) uninterrupted Linux - Networking 3 07-01-2003 01:54 PM


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