The realtek r8169 driver in gentoo-sources network drivers for work for the onboard RTL 8111C card on my new ga-ep43-ud3l (gigabyte) motherboard. The realtek r8168 driver whose source can be downloaded from the following realtek site does work: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true On my system I disabled the r8169 driver, and blacklisted it. I then ran the "make all" in the unpack driver tar ball directory, Loading the resulting driver in my /etc/modules.autoload.d/kernel-2.6, and aliasing it to ethX gets the NIC working. Reproducible: Always Expected Results: Either gentoo-sources should be patched to include this driver... or (perhaps easier... a la nvidia-drivers) an ebuild that is run by module-rebuild after a kernel built needs to be created, if there is concern that the rtl driver "taints" the kernel.
We do not include proprietary drivers into gentoo-sources. We try to only provide patches from upstream kernel development tree... If you want to request this driver exists as a separate ebuild, feel free to file a bug request for that.
Can't this bug be reassigned as an enhancement request to the the appropriate group to build an ebuild. I suspected this would be the response when I filed the bug, which is why I suggested that in my original filing. Would you accept and ebuild from me?
Created attachment 231687 [details] ebuild for the realtek r8168 network driver The download URL in the ebuild is not from the original site (should be ok as the driver is GNU GPL?). You may want to download it manually from the realtek site. http://www.realtek.com.tw/downloads/downloadsView.aspx?PFid=5&Level=5&Conn=4&DownTypeID=3#2 The ebuild is based on bug #191536. It should be generic enough to simply copy the ebuild to a new version and downloading the source tar manually. Hope it's usefull to some people!
Created attachment 245379 [details, diff] patch that makes the driver work with 2.6.35 sources Here's a simple, yet necessary patch that makes the driver compatible with new netdevice kernel structure (necessary starting from 2.6.35). I will post modified ebuild shortly.
Created attachment 245403 [details] ebuild that should also work with kernels 2.6.35+ as promised
There are still some depracation warnings during compilation, so sooner or later more modifications will be needed (if realtek doesn't release a new driver earlier).
I would like to use Realtek's latest driver (r8168-8.021.00.tar.bz2) as downloaded form their website. It's good practice to use ebuilds for that. Has someone formalized/updated this one already?
By the way, mine is a RTL8111D chip on a GA-H55M-UD2H MoBo.
Created attachment 269915 [details] New ebuild - sources from r8168.googlecode.com Bump old ebuild with new download mirror. The ebuild is generic enough to simply copy for new versions. i.e. cp r8168-8.022.00.ebuild r8168-8.023.00.ebuild !
Just wanted to let everybody know that the ebuild from 2011-04-14 08:25 UTC also works for the newest version of the driver, just save the ebuild as r8168-8.024.00.ebuild into your overlay. It also looks like this ebuild found it's way into the hacking-gentoo overlay, so you may also install it from there: http://gpo.zugaina.org/sys-kernel/r8168
This problem affects me too, so just another vote for an ebuild for this driver!
It seems this is in portage now (net-misc/r8168-8.026.00). And it works perfectly with my MSI board (which has an 8111E Ethernet controller.)
Someone please close this bug? As mentioned above, net-misc/r8168 now supports those Realtek NICs.
(In reply to comment #13) > Someone please close this bug? As mentioned above, net-misc/r8168 now supports > those Realtek NICs. The this driver does not work correctly with in my motherboard: GA-990FXA-UD5 which has Realtek RTL8111E chip set. My network connection keep disconnecting and I had to reboot the computer to obtain an IP address. Neither the Kerenl-3.1.6 driver works correctly r8169 nor is the portage driver working: net-misc/r8168-8.026.00 As a matter of fact they both using the same driver ver. 06 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06) My computer losing connection several times a day. I'll be looking for a new network card, maybe Broadcom one.
r8168-8.027.00 does not compile with gentoo-sources-3.2.1-r2: work/r8168-8.027.00/src/r8168_n.c: In function 'rtl8168_xmit_frags': work/r8168-8.027.00/src/r8168_n.c:14285:3: error: incompatible type for argument 1 of 'lowmem_page_address' There is a new Version from Realtek (8.028.00) that does work. Just copy the old ebuild from 8.027.00 to 8.028.00 to a local overlay, call digest and merge: # cp /usr/portage/net-misc/r8168/r8168-8.027.00.ebuild \ /usr/local/portage/net-misc/r8168/r8168-8.028.00.ebuild # ebuild /usr/local/portage/net-misc/r8168/r8168-8.028.00.ebuild digest # emerge -ua r8168
r8168-8.028.00 is in the tree already.
Btw, if people have problems with the r8169 in-kernel driver, this is usually solved by emerging sys-kernel/linux-firmware, so you might not need r8168 at all! This worked for me and others.