REALTEK 8101E and 8102E Drivers Howto

Share your own howto's etc. Not for support questions!

REALTEK 8101E and 8102E Drivers Howto

Postby rahbertlee01 » 2009-07-26 01:09

This Howto covers how to install the RTL8101E and RT8102E Drivers on 2.6.x and/or 2.4.x Kernels.
please read the readme file for specific information about certain Kernels

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

You will also be needing these packages:

Code: Select all
# aptitude install linux-headers-'uname -r' linux-source-'uname -r' bison flex build-essential


STEP #01

download the driver from REALTEK to for example /home/BillyIdol ( BillyIdol = your user directory ;- )

then open a terminal and follow these instructions:

Remove old r8169 driver module:

Code: Select all
# rmmod 8169


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

STEP #02

copy and unpack the downloaded drivers to /usr/src and switch to the your drivers directory:

Code: Select all
# cp /home/BillyIdol/r8101-1.012.00.tar.bz2 /usr/src && cd /usr/src && tar xfj r8101-1.012.00.tar.bz2 && cd r8101-1.012.00


then do:

Code: Select all
# make
Thanks to comments this has been edited, from # make clean modules to # make should work now.

Code: Select all
# make install


Code: Select all
# depmod -a


Code: Select all
# modprobe r8101


if all has gone well, go to the next step:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

STEP #03

then change to /lib/modules/ directory and rename r8169.ko to r8169.ko.old:

Code: Select all
# cd /lib/modules/'uname -r'/kernel/drivers/net && mv r8169.ko r8169.ko.old


if all has gone well, go to the next step:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

STEP #04

check out if the r8101 is loaded:

Code: Select all
# lsmod


if so :

Code: Select all
# ifconfig eth0 (ip-address) up


(eventuelly define a route, for example:)

Code: Select all
# route add default gw (Router-Address)


make a ping test, to google.com ( for example ):

Code: Select all
$ ping www.google.com  or ping 74.125.39.105


if all has gone well, go to the next step:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

STEP #05

if all has gone well, just do:

Code: Select all
# mkinitramfs -o /boot/initrd.img-'uname -r'


Reboot and your net is up ;-)
Last edited by rahbertlee01 on 2009-07-29 20:16, edited 3 times in total.
User avatar
rahbertlee01
 
Posts: 9
Joined: 2009-07-06 00:09
Location: Germany

Re: REALTEK 8101E and 8102E Drivers Howto

Postby Tadeas » 2009-07-26 18:03

Excuse me, but why does Realtek 8101E need a new driver? I have this card and it works out of the box with Linux kernel since I started to use Linux, it was 2.6.25 I think...
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: REALTEK 8101E and 8102E Drivers Howto

Postby rahbertlee01 » 2009-07-28 12:17

Tadeas wrote:Excuse me, but why does Realtek 8101E need a new driver? I have this card and it works out of the box with Linux kernel since I started to use Linux, it was 2.6.25 I think...

Hi Tadeas. It is true what you say, but the Standard Drivers ( the ones in the Kernel are faulty ) or better said, they drop Packages. Try out the Realtek Drivers and you'll see what i mean, since they do what they do what they are supposed to. Thanks for your reply.
User avatar
rahbertlee01
 
Posts: 9
Joined: 2009-07-06 00:09
Location: Germany

Re: REALTEK 8101E and 8102E Drivers Howto

Postby Tadeas » 2009-07-29 11:58

rahbertlee01 wrote:It is true what you say, but the Standard Drivers ( the ones in the Kernel are faulty ) or better said, they drop Packages.

Well, I've never experienced any issues :) .
Anyway, I've tried your howto and I've run into problems:
Code: Select all
Satellite:/usr/src/r8101-1.012.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
make -C /lib/modules/2.6.30-1-686/build SUBDIRS=/usr/src/r8101-1.012.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.30-1-686/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make: *** [modules] Error 2

Do you have any ideas what's wrong?
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: REALTEK 8101E and 8102E Drivers Howto

Postby rahbertlee01 » 2009-07-29 19:56

Tadeas wrote:
rahbertlee01 wrote:It is true what you say, but the Standard Drivers ( the ones in the Kernel are faulty ) or better said, they drop Packages.

Well, I've never experienced any issues :) .
Anyway, I've tried your howto and I've run into problems:
Code: Select all
Satellite:/usr/src/r8101-1.012.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
make -C /lib/modules/2.6.30-1-686/build SUBDIRS=/usr/src/r8101-1.012.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.30-1-686/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make: *** [modules] Error 2

Do you have any ideas what's wrong?


Hi, do you have:
Code: Select all
# aptitude install linux-headers-'uname -r' linux-source-'uname -r' bison flex  build-essential
installed ?


Thank for mentioning, i will add those packages to the howto.
User avatar
rahbertlee01
 
Posts: 9
Joined: 2009-07-06 00:09
Location: Germany

Re: REALTEK 8101E and 8102E Drivers Howto

Postby rahbertlee01 » 2009-07-29 20:21

Tadeas wrote:
rahbertlee01 wrote:It is true what you say, but the Standard Drivers ( the ones in the Kernel are faulty ) or better said, they drop Packages.

Well, I've never experienced any issues :) .
Anyway, I've tried your howto and I've run into problems:
Code: Select all
Satellite:/usr/src/r8101-1.012.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8101-1.012.00/src'
make -C /lib/modules/2.6.30-1-686/build SUBDIRS=/usr/src/r8101-1.012.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.30-1-686/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r8101-1.012.00/src'
make: *** [modules] Error 2

Do you have any ideas what's wrong?


Please the changes in STEP #01 works now ;-) and make sure you have the packages installed that i mentioned before STEP #01, in your case kernel-source-2.6.30 and kernel-headers-2.6.30-1-686 + bison flex and build-essential ;-)
User avatar
rahbertlee01
 
Posts: 9
Joined: 2009-07-06 00:09
Location: Germany

Re: REALTEK 8101E and 8102E Drivers Howto

Postby hkoster1 » 2009-07-31 16:22

rahbertlee01 wrote:
Tadeas wrote:Excuse me, but why does Realtek 8101E need a new driver? I have this card and it works out of the box with Linux kernel since I started to use Linux, it was 2.6.25 I think...

Hi Tadeas. It is true what you say, but the Standard Drivers ( the ones in the Kernel are faulty ) or better said, they drop Packages. Try out the Realtek Drivers and you'll see what i mean, since they do what they do what they are supposed to. Thanks for your reply.

Dropped packets ("packages"), whatever that means, sounds like a serious issue with any network driver, and many people complain about it. Yet, I've never seen a hard example of a dropped packet in the sense that a properly formed packet was sent from one URL and never arrived at the destination URL (clearly, I'm not talking about overloaded networks, maximum hop-counts or firewalls/NAT designed to drop such a packet). Could the OP give an example, such as sending a packet to another computer on his own lightly-loaded LAN, but it never arrived? And could he then prove that it was due to the Linux kernel driver being faulty (as he claims), if only by having it being dropped in x > 0% of many trials; whereas the proprietary RealTek driver exhibited drops in 0 =< y < x% of many trials? Repeatedly? Just asking... 8)

(I feel like I'm from Missouri... :wink: )
Real Debian users don't do chat...
hkoster1
 
Posts: 1269
Joined: 2006-12-18 10:10

Re: REALTEK 8101E and 8102E Drivers Howto

Postby Tadeas » 2009-08-07 12:08

rahbertlee01 wrote:Hi, do you have:
Code: Select all
# aptitude install linux-headers-'uname -r' linux-source-'uname -r' bison flex  build-essential
installed ?


I forgot that, sorry. Now it works fine.

However I didn't notice any change, both the drivers work equally fast, with no dropped packets (with ping).
Maybe it's the case with 8102E, but I can confirm that 8101E works equally well with both drivers.

Just a little note:
linux-headers-'uname -r'

Didn't you mean
Code: Select all
linux-headers-$(uname -r)
?
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: REALTEK 8101E and 8102E Drivers Howto

Postby waterlee » 2010-11-17 09:46

rahbertlee01 wrote:
Code: Select all
# aptitude install linux-headers-'uname -r' linux-source-'uname -r' bison flex build-essential



where should i get the linux-headers-'uname -r' linux-source-'uname -r'?
because the os on my pc is windows XP ,and i want install 8101e on another pc.
waterlee
 
Posts: 1
Joined: 2010-11-17 09:24

Re: REALTEK 8101E and 8102E Drivers Howto

Postby Praxis » 2011-01-31 04:08

I have RTL8101E/RTL8102E on a Dell Inspiron 15R laptop and the performance of the stock driver on the 2.6.32-5-amd64 kernel is execrable. I just did a fresh install of debian-squeeze-di-rc2-amd64-kde-CD-1. I was getting 64-128 kbps speed on a samba share. I thought maybe it was hobbled by the useless Nepomuk-Strigi stuff, but disabling it didn't help much. Pinging my little Atom-based Lenny home server is ridiculously slow.

64 bytes from server (192.168.1.100): icmp_req=7 ttl=64 time=4.50 ms
64 bytes from server (192.168.1.100): icmp_req=8 ttl=64 time=1.59 ms
64 bytes from server (192.168.1.100): icmp_req=9 ttl=64 time=0.385 ms
64 bytes from server (192.168.1.100): icmp_req=10 ttl=64 time=2.24 ms

By contrast, pinging from my Lenny desktop averages 0.265 ms. I'm installing Gnome now to see if the DE is an issue. All the packages reside on my server, I use the approx proxy. The packages are downloading at maybe 600 kbps. On other Debian & Ubuntu systems I tend to get 11 MBPS. It takes 5 seconds to get a response from "ls /server", which only has about a dozen directories in it. It takes ~25 seconds for Dolphin to respond to rendering my music directory on the server (with 111 folders). Windows 7 does this almost instantly. I can't listen to a MP3 without it buffering like trying to stream 1080p over dialup (slight exaggeration).

lsmod |grep r8169

r8169 29229 0
mii 3210 1 r8169

I tried installing the firmware-linux metapackage, but don't know that it helped.

Using the wl driver with my Broadcom Corporation BCM4313 802 is barely an improvement. I've been using Linux almost exclusively for 5 years and one of the reasons I got this machine was to have a Win7 model to help my Windows using friends, but Win 7 is looking awfully appetizing on this box. I can even play videos over the Broadcom wireless.

Obviously the linux RTL8101E/RTL8102E driver in the 2.6.32 kernels work for many folks, but they are failing epically for me. I haven't tried the approach in this page because at this point I'm thinking of switching my sources.list from squeeze to testing after squeeze becomes stable in a week and hoping that a newer kernel makes a difference for me. If not, I'll give this approach a throw. But I don't want to have to go throw a complicated rigamarole every time a kernel update comes down the pike.

But this is a completely unacceptable situation for a Debian stable release, that a user of a completely bog-standard laptop can barely use her computer. I'd like to try and file a bug report, I'm finding the Debian BTS a little opaque. Can anyone suggest which package I would want to file this bug against? The kernel?

EDIT: Never mind, not sure if an update solved the issue, installing Gnome did the trick or what, but the issue seems to have sorted itself out, my ethernet is now adequate, pings and transfer speeds are similar to the rest of my machines.
User avatar
Praxis
 
Posts: 78
Joined: 2006-12-19 00:00


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable