EFW Support

Support => Hardware Support => Topic started by: mrkroket on Friday 20 November 2009, 05:57:08 am



Title: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket 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 (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/ (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)
(http://img689.imageshack.us/img689/7923/realtekefw.th.jpg) (http://img689.imageshack.us/i/realtekefw.jpg/)


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: leso 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!


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket 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!!  :D :D


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: leso on Tuesday 24 November 2009, 06:34:09 pm
It's not possible you extract a non official developpers rpms for other compilations?


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: salve on Monday 28 December 2009, 04:24:10 am
I'm sorry ... but for this motherboard - Intel® Desktop Board DG43NB - i need install RTL8169?


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: satish 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.


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: danylux 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. ???

You have any idea for resolve this problem?


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: danylux 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/ (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)
(http://img689.imageshack.us/img689/7923/realtekefw.th.jpg) (http://img689.imageshack.us/i/realtekefw.jpg/)

[/quote]


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket 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 (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?


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: danylux 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


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: danylux 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


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: atreadway 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


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket on Tuesday 02 March 2010, 05:50:25 am
It's true, it had a password. Fixed now, it doesn't have password.


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: atreadway 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 :-)


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: vnet 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?


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket on Thursday 06 May 2010, 07:02:09 am
What is the output of the command ethtool -i ethX on all ethernet interfaces (eg. ethtool -i eth0, ethtool -i eth1, etc.....)??


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: vnet on Thursday 06 May 2010, 08:53:43 am
What is the output of the command ethtool -i ethX on all ethernet interfaces (eg. ethtool -i eth0, ethtool -i eth1, etc.....)??

Here's the output:
Code:
root@efw # ethtool -i eth0
driver: skge
version: 1.11
firmware-version: N/A
bus-info: 0000:05:00.0

root@efw # ethtool -i eth1
Cannot get driver information: No such device

I've checked to make sure that the ethernet device hasn't randomly ended up as ethX where X is any value up to 9. :)

It almost seems like the device isn't in the computer, but being onboard and having the network support turned on in the BIOS makes me think it is.  I'm almost to the point of trying it on a duplicate machine to ensure it isn't a hardware issue.

EDIT:
I've just done a new install on a duplicate system (all hardware is exactly the same brand and model) and have the same issue, it appears that it isn't faulty hardware.


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: vnet on Thursday 06 May 2010, 03:48:26 pm
I've diagnosed the issue....

Basically an onboard Realtek 8111DL doesn't work with a D-Link DGE-530T PCI card.

Here's a summary of my diagnosis:

Code:
root@efw # lspci
00:00.0 Host bridge: Intel Corporation Unknown device a000 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Unknown device a001 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation Unknown device 27bc (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
05:00.0 Ethernet controller: D-Link System Inc DGE-530T Gigabit Ethernet Adapter (rev 11) (rev 11)

As you can see, the Realtek isn't detected.  So I removed the D-Link from the system:

Code:
root@efw # lspci
00:00.0 Host bridge: Intel Corporation Unknown device a000 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Unknown device a001 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation Unknown device 27bc (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd RTL8111/8168B PCI Express Gigabit Ethernet Controller (rev 03)

The Realtek is now detected.  Now I add a Netgear FA310TX:

Code:
root@efw # lspci
00:00.0 Host bridge: Intel Corporation Unknown device a000 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Unknown device a001 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation Unknown device 27bc (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd RTL8111/8168B PCI Express Gigabit Ethernet Controller (rev 03)
05:00.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)

An ifconfig now tells me i have eth0 and eth1.

My next problem is finding a new half-height gigabit ethernet card that won't stop me from using the onboard Realtek.


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: TheEricHarris on Friday 06 August 2010, 03:22:51 am
Did you figure this out?  I have two onboard Broadcomm NICs that detect fine but my PCI-X RealTek card won't detect.  Getting really frustrated.



Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: m-cd on Thursday 02 September 2010, 04:10:30 pm
Hi All!
Could this driver be used on EFW 2.4 or we need to wait devel-rpms 2.4 in order to recompile it?
TIA
Karl


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: mrkroket on Monday 06 September 2010, 12:32:15 am
You actually have de devel rpms on Sourceforge, so you can compile it.
I think the former driver won't work on EFW 2.4, different kernel.

I recompiled the driver for EFW 2.4 PAE. Prior to install it you must change the kernel to PAE (sorry, there are no kernel sources for standard one).
EFW 2.4 PAE : Realtek LAN compiled drivers for RTL8111/8168B
http://www.megaupload.com/?d=4SDF7E81 (http://www.megaupload.com/?d=4SDF7E81)


Steps to change kernel:

efw-upgrade
smart install kernel-PAE
reboot


After that you can use the compiled driver I put here.


Title: Re: EFW 2.3: Realtek LAN compiled drivers for RTL8111/8168B
Post by: m-cd on Tuesday 07 September 2010, 05:59:52 pm
Hi mrkroket!
Thanks a lot for driver.
I try it and report back here my experience.
Bye 4 now!
Karl