LinuxQuestions.org
Visit Jeremy's Blog.
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 08-29-2004, 03:27 PM   #1
hysteric
LQ Newbie
 
Registered: Aug 2004
Location: Belgium
Distribution: Woody
Posts: 4

Rep: Reputation: 0
Getting internet to work with rtl8139


Hi,

I just installed woody and Im having some problems getting my internet to work with my Realtek 8139 card. I installed debian with the standard 2.2.20 kernel and with dhcp support my internet worked fine. Then I updated to kernel 2.4.18 because that one is also on the debian cd and now my internet doesnt work anymore, even tho i got dhcp support installed. I also double checked that I selected support for my card in the kernel config.

ifup eth0 says its already running.
ifconfig shows:

eth0 Link encap:Ethernet
HWaddr 00:50:BF:E4:A6:6E

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2842 (2.7 KiB) TX bytes:0 (0.0 b)
Interrupt:10

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:118 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8172 (7.9 KiB) TX bytes:8172 (7.9 KiB)

Any suggestions?

Last edited by hysteric; 08-29-2004 at 05:41 PM.
 
Old 08-29-2004, 07:32 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
I am pretty sure that card uses the 8139too module. Run lsmod and make sure it is listed. If not, load that module. (modprobe 8139too).

I believe you should have an entry in your /etc/modules.conf file that reads
alias eth0 8139too

If it is not in there, make that entry and run depmod -a

Give that a try first.
 
Old 08-30-2004, 11:03 AM   #3
hysteric
LQ Newbie
 
Registered: Aug 2004
Location: Belgium
Distribution: Woody
Posts: 4

Original Poster
Rep: Reputation: 0
lsmod doesnt list it. I tried modprobe 8139too but at first it said "version mismatch, 8139too was compiled for kernel v 2.2.20". After that i tried copying 8139too.o from /usr/src/kernel-source-2.4.18/drivers to /lib/modules/2.4.18/net and after modprobe it said "Couldn't find version the module was compiled for". So how do i get this 8139too to work?
 
Old 08-31-2004, 10:56 AM   #4
hysteric
LQ Newbie
 
Registered: Aug 2004
Location: Belgium
Distribution: Woody
Posts: 4

Original Poster
Rep: Reputation: 0
sorry for doubleposting but i still havent managed to fix this. any help would be very much appreciated!
 
Old 08-31-2004, 04:42 PM   #5
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
Hmmm first try doing insmod -f 8139too
That will hopefully force the module to be loaded.

You recompiled the kernel and started having this problem? I know that when the modules are read when using modprobe or insmod, that is using the modules for whatever the output is from uname -r. I believe the forcing may get it to take that module. Else, you may have to "lie to the kernel and change the version listed from the header files in the include directory. I would really have to march around to find which kernel header needs to be modified. Hopefully insmod - f will work.

When you recompiled the kernel after your upgrade ( I am assuming you applied patches and recompiled for your upgrade) It seems like the module was compiled using the older kernel's headers. Do you have 2 different sets of modules in /lib/modules? Is it possible that when you recompiled the kernel that you didn't have that realtec card module selected for compiling? Plain fact is... you may want to see what you get when you hit google searching for "linux kernel module mismatch" I can almost bet you are not the only one that has encountered that error.
 
Old 09-01-2004, 02:44 PM   #6
hysteric
LQ Newbie
 
Registered: Aug 2004
Location: Belgium
Distribution: Woody
Posts: 4

Original Poster
Rep: Reputation: 0
That didn't work, however I got some more info that might make it easier to help.
So I installed woody with the default 2.2.20 kernel. Internet worked, using the rtl8139.o module, which is located in the folder /lib/modules/2.2.20/net.
Now I downloaded the latest 2.4 kernel and installed it over the old kernel. I didn't get any errors or something during installation, however theres no /net folder in /lib/modules/2.4.27 When i modprobe something it says theres a file missing which should be in that folder. I tried copying the net folder from /usr/src/2.4.27 and the 8139too.o (which is indeed the module used for my card in 2.4 and up kernels) but that doesn't work, not like I expected it to. Maybe I did something wrong when installing the kernel? This is what I did after the configuration:

make dep
make clean
make
make modules
make modules_install
make install

This is how I read it in some howto I found with google.

I hope this info makes it easier to solve my problem because I've been messing around with this for too long now.
 
  


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
Network won`t work on Solaris 9 x86 with RTL8139 Pollyanna Solaris / OpenSolaris 1 12-26-2003 10:11 PM
2 NICs w/RTL8139, no internet Peff Linux - Networking 3 11-29-2003 01:18 PM
RTL8139 problems FlyLinux Linux - Networking 14 08-04-2003 02:54 AM
More RTL8139 problems :( haste:gag Linux - Networking 1 07-30-2003 08:45 PM
LAN card realtek RTL8139 does NOT work in notebook mjlopez Linux - Networking 4 03-17-2003 12:16 PM


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