LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-13-2003, 02:04 AM   #1
danywu
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Rep: Reputation: 0
RTL8139 based PC Card on RedHat 9


Hi everyone,

I have just bought a generic PC card based on the RTL8139 Cardbus. When I pop the card in RedHat tried the 8139cp driver and failed. It then suggested I try the 8139too driver.

I did a "insmod 8139too.o" and that came up with a whole bunch of unresolved symbol errors.

From a brief search of the web I discovered the rtl8139 driver and downloaded it. The problem is I cannot compile the rtl8139.c source file.

Has anyone managed to get this card going on RedHat 9? If so, can you please tell me how?

Much appreciated.

Cheers,
Dany.
 
Old 09-13-2003, 03:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
8139too is a better driver that rtl8139.... what exactly does "modprobe 8139too" report? have you been messing with your kernel?
 
Old 09-13-2003, 05:04 AM   #3
danywu
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, I'm a bit out of my depth I guess.....

Let me get this right..........insmod "inserts" a module into the currently running kernel, right?

What does modprobe do? I did as you asked and ran "modprobe 8139too" and voila! it seemed to work! ifconfig returned all the right eth0 values.

Does this mean that next time I reboot, it will detect the card and bring up eth0 correctly?

btw..........no, I have not messed around with the kernel. It's the stock standard updated version, i.e. 2.4.20-20.9 package.

Cheers.
 
Old 09-13-2003, 05:09 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
modprobe basically wraps insmod, dealing with additional module dependencies etc...

so now that works you can add an entry to /etc/modules.conf "alias eth0 8139too" (might be "alias 8139too eth0".. can't remember now though!)
 
Old 09-13-2003, 07:11 AM   #5
danywu
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
There were already two lines in /etc/modules.conf with:

alias pcnet_cs
alias eth0 pcnet_cs

I deleted both lines and inserted "alias eth0 8139too" which didn't work. When I rebooted, it didn't use 8139too.o and eth0 was never activated.

I also tried "alias 8139too eth0" and that didn't work either.

What was I meant to do here?
 
Old 01-29-2004, 06:24 AM   #6
evbart
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Rep: Reputation: 0
is there anyway to get 8139too to come up on its on rather than using modprobe each time i start up the computer?
 
Old 01-29-2004, 06:36 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
evbart, please do not drag up old threads, if you have a question you should start a new thread, referencing others if you think it is relevant.

you've not said what distro you are using, but assuming it's gonna be redhat or mandrake do exactly what i already recommended above.
 
Old 01-29-2004, 11:31 AM   #8
evbart
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Rep: Reputation: 0
sorry bout the post, there are just so many on the rtl8139 chipset topic i didnt know where to start. im using redhat 9 kernal 2.4.20-8.

i did what you said above, but each time i start up 8139too is not listed in the lsmod

when i modprobe it then it looks like its up and running.

it show up in ifconfig under eth0, but there is an interrupt, im not sure if thats a problem or not. is there a definative way to check that my card is loaded and running, when i dont have an internet connection near by?

i dont mind using modprobe each time for now as long as i can get the card going.

thanks for the help, and in the future i will start a new thread.
 
Old 01-29-2004, 03:52 PM   #9
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
You don't have to do it every time. Just go into /etc/rc.d/rc.modules (i know it's probably in a different spot on RH 9....just do a search for rc.modules) and scroll right to the bottom and put .......


/sbin/modprobe 8139too


It should load up every time you boot now.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling rtl8139.c driver for NIC card stielinc Linux - Networking 4 02-11-2005 10:10 PM
Ethernet Card rtl8139 Ygrex Linux - Hardware 2 12-16-2004 02:57 AM
RTL8139 Network Card Won't Initialise Bob Hesketh Linux - Hardware 4 05-19-2004 06:15 PM
PCMCIA RTL8139 Card support? frank2 Linux - Hardware 3 12-21-2003 03:51 PM
Realtek RTL8139 C+ With RedHat 8.0 Hawk284 Linux - Networking 4 03-25-2003 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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