Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 19 April 2024, 07:36:00 am

Login with username, password and session length

Visit the Official Endian Reference Manual  HERE
14247 Posts in 4376 Topics by 6491 Members
Latest Member: roy
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  Hardware Support
| | |-+  EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B  (Read 79450 times)
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« on: Friday 20 November 2009, 05:57:08 am »

Drivers for: RTL8111B/RTL8168B/RTL8111/RTL8168
                   RTL8111C/RTL8111CP/RTL8111D(L)
                   RTL8168C/RTL8111DP/RTL8111E


Driver can be found there:
Endian Firewall Realtek LAN R8168 driver
http://www.megaupload.com/?d=MSX6UX56
I hope it works on your computers, it works in my EFW 2.3.


Installation steps:
As I have the devel RPMS I compiled and installed from make. I didnt follow these instructions, so I don't know if it works as it should.
Option 1: That option was given by an user on an older post, replace r8169.ko.gz for the r8168.ko and reboot. Not tested for me, tought.
   gzip r8168.ko
   chmod 744 r8168.ko.gz
   cp /lib/modules/2.6.22.19-72.e18/kernel/drivers/net/r8169.ko.gz /root/r8169.ko.gz
   cp r8168.ko.gz /lib/modules/2.6.22.19-72.e18/kernel/drivers/net/r8169.ko.gz
   depmod -a
   reboot

Option 2: Do the proper install. I didnt tested that too
Partially copied from Realtek NIC driver readme:
<Quick install with proper kernel settings>
    Copy  r8168.ko file to EFW
    change permissions
      # chmod 744 r8168.ko

   Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
      # lsmod | grep r8169

   If it is installed, please remove it.
      # rmmod r8169
   note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.

      # insmod r8168.ko
      # depmod -a
      # modprobe r8168

   You can check whether the driver is loaded by using following commands.

      # lsmod | grep r8168         (it should appear some text)
      # ifconfig -a
      # lsmod | grep r8169         (it shouldn't appear)




To get a better check that the new driver is loaded correctly, use ethtool -i eth0. It will show you what driver you NIC is using.
root@firewall:~ # ethtool -i eth0
driver: r8168
version: 8.014.00-NAPI
firmware-version:
bus-info: 0000:02:00.0

So the new driver is loaded for me, with NAPI (good with high loads) and VLAN support. I'll start to stress test the system to see the stability of the new driver. The old one was awful.

What I have done:

1) I downloaded the drivers from Realtek: LINUX driver for kernel 2.6.x and 2.4.x (Support x86 and x64) version 8.014.00, date:   2009/8/31
2) I dl 2.3 SRPMS and 2.2 devel RPMS. I have tweaked the 2.2 devel rpms to install on 2.3. So far it seems the same kernel, just with different rpm versions for glibc, and some changed dir names. With tweaking I mean hex editing the rpm to change dependence rpm versions.
3) Since first compilation, the new module loaded fine. But there is a big problem for me, no VLAN support. It seems to receive VLAN data (tcpdump receives from VLAN's), but ping doesn't work.
4) After many he.adaches, I find out that Realtek delivers a broken driver, with incorrect VLAN code. Some guy placed the fix for that:
http://patchwork.ozlabs.org/patch/28045/. After manually patching my source code, now it has working VLAN support.

I did a stress test.  Over 10 min I used jperf to send traffic from ORANGE (VLAN 1 on Realtek 8168 card) to GREEN (VLAN 2 on Realtek 8168 card) at 1Gbps. It was stable, used way a lot of CPU (2 out of 4)

Logged
leso
Jr. Member
*
Offline Offline

Posts: 5


« Reply #1 on: Tuesday 24 November 2009, 06:28:20 am »

It's great and beautiful works, I will test as soon as I have time!
Thx a lot for this!
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #2 on: Tuesday 24 November 2009, 02:37:52 pm »

So far my uptime is now 5d 10h 21m, and no hiccups, everything working fine (at least on my machine).  No more kernel panics!!  Cheesy Cheesy
Logged
leso
Jr. Member
*
Offline Offline

Posts: 5


« Reply #3 on: Tuesday 24 November 2009, 06:34:09 pm »

It's not possible you extract a non official developpers rpms for other compilations?
Logged
salve
Jr. Member
*
Offline Offline

Posts: 5


« Reply #4 on: Monday 28 December 2009, 04:24:10 am »

I'm sorry ... but for this motherboard - Intel® Desktop Board DG43NB - i need install RTL8169?
Logged
satish
Full Member
***
Offline Offline

Posts: 29


« Reply #5 on: Saturday 09 January 2010, 10:27:27 pm »

I'm sorry ... but for this motherboard - Intel® Desktop Board DG43NB - i need install RTL8169?

No you need the drivers for 82567V-2.
I just got this myself, so if anyone can help here, would be appreciated.
Logged
danylux
Full Member
***
Offline Offline

Posts: 10


« Reply #6 on: Tuesday 19 January 2010, 07:05:51 pm »

Hello,
Sorry for my english.
i have the same problem with my jetway n92 330 with doughter board 3x 10/100 lan.
In this motherboard there is realtek rtl8111c, and after endian 2.3.0 installation i can't ping the green ip.

I have download your driver and i have follow the option 2 but when i reboot the efw the divers is not load.
after i have try with option 2, now work fine, but y have tested for a little time, but  in "network interface" the traffic meter  is always 0 (zero)
and when i click on menu:  state--->state of the network. the endian firewall show me an error and the gui go down,or the ethernet go down and the traffic is lost. Huh

You have any idea for resolve this problem?
Logged
danylux
Full Member
***
Offline Offline

Posts: 10


« Reply #7 on: Thursday 21 January 2010, 05:49:35 pm »

Hello

i have follow your istruction for compile the new driver 8.016 (this drive is out yesterday) but for me it's not possibile compile this drive.....
 can you compile for this driver for all community ?? and share..
Because the driver you share in this post for me have a little problem (see the post) and i want try with new drivers.

Thanks



What I have done:

1) I downloaded the drivers from Realtek: LINUX driver for kernel 2.6.x and 2.4.x (Support x86 and x64) version 8.014.00, date:   2009/8/31
2) I dl 2.3 SRPMS and 2.2 devel RPMS. I have tweaked the 2.2 devel rpms to install on 2.3. So far it seems the same kernel, just with different rpm versions for glibc, and some changed dir names. With tweaking I mean hex editing the rpm to change dependence rpm versions.
3) Since first compilation, the new module loaded fine. But there is a big problem for me, no VLAN support. It seems to receive VLAN data (tcpdump receives from VLAN's), but ping doesn't work.
4) After many he.adaches, I find out that Realtek delivers a broken driver, with incorrect VLAN code. Some guy placed the fix for that:
http://patchwork.ozlabs.org/patch/28045/. After manually patching my source code, now it has working VLAN support.

I did a stress test.  Over 10 min I used jperf to send traffic from ORANGE (VLAN 1 on Realtek 8168 card) to GREEN (VLAN 2 on Realtek 8168 card) at 1Gbps. It was stable, used way a lot of CPU (2 out of 4)


[/quote]
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #8 on: Saturday 23 January 2010, 07:26:05 am »

What shows the commands:
ethtool -i eth0
ethtool -i eth1 etc...?

What shows these commands?:
      lsmod | grep r8168         (it should appear some text)
      ifconfig -a
      lsmod | grep r8169         (it shouldn't appear)

You can install 2.2 dev packages on efw 2.3.
Just use the parameter --nodeps on devel rpm's that refuse to install.
For Kernel source use EFW 2.2 Kernel source, works for me. You'll need to recreate some symbolic links to make the compiler reach the kernel.

I reviewed a bit the source code. It seems that keeps VLAN issues as on 8.014. Be warned with this driver you'll have VLAN problems.
I uploaded the source patched code for 8.014 driver, just in case:
http://www.megaupload.com/?d=BQUDKSDV


So far my endian box works without a hiccup with driver 8.014:

Appliance   Community
Version   2.3.0
Uptime   31d 19h 23m


Almost 32 days uptime and counting. Last restart was due to a power shortage. I stick to 8.014. If it works great, why I should change?
Logged
danylux
Full Member
***
Offline Offline

Posts: 10


« Reply #9 on: Sunday 24 January 2010, 01:48:05 am »

Hello
i have download your compiled driver but ethtool show me that the driver is 8.015

there is a broblem... mmmmmmm

when i go home i check the firewall end i post all

thx
Logged
danylux
Full Member
***
Offline Offline

Posts: 10


« Reply #10 on: Sunday 24 January 2010, 10:47:50 am »



So far my endian box works without a hiccup with driver 8.014:

Appliance   Community
Version   2.3.0
Uptime   31d 19h 23m


Almost 32 days uptime and counting. Last restart was due to a power shortage. I stick to 8.014. If it works great, why I should change?


Ok i have wrong, i have install 8.015 drivers...but i don't now because i have do it...

now work very good

thanks a lot very lot

bye
Logged
atreadway
Jr. Member
*
Offline Offline

Posts: 2


« Reply #11 on: Friday 26 February 2010, 12:58:24 am »

Driver can be found there:
Endian Firewall Realtek LAN R8168 driver
....
I hope it works on your computers, it works in my EFW 2.3.

Hi,

When I follow this link I am being asked for a password - has something changed, as I don't see any reference to this in the earlier posts?

Thanks for your effort
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #12 on: Tuesday 02 March 2010, 05:50:25 am »

It's true, it had a password. Fixed now, it doesn't have password.
Logged
atreadway
Jr. Member
*
Offline Offline

Posts: 2


« Reply #13 on: Tuesday 02 March 2010, 10:51:22 am »

It's true, it had a password. Fixed now, it doesn't have password.

Thanks, just grabbed it - much appreciated :-)
Logged
vnet
Jr. Member
*
Offline Offline

Posts: 3


« Reply #14 on: Wednesday 05 May 2010, 05:06:16 pm »

I've just tried installing this (tried both method 1 and 2) and have been unable to get it working.

I have an Intel D510MO motherboard with onboard RTL8111DL network.  I also have a D-Link DGE-530T PCIe network card.

The D-Link is being detected fine, but I can't get the onboard network working.  It appears that the module is working fine, it just can't fin the card (and yes, I have checked that the onboard netowkr is enabled in the BIOS).

Can anyone give me any pointers as to where to start looking?
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Page created in 0.109 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com