Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298741 - RTL network driver 8169 not work with RTL 8111C on board NIC r8168 (from Realtek website does)
Summary: RTL network driver 8169 not work with RTL 8111C on board NIC r8168 (from Real...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement with 2 votes (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-28 18:08 UTC by Lincoln A Baxter
Modified: 2012-04-30 13:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for the realtek r8168 network driver (r8168-8.018.00.ebuild,956 bytes, text/plain)
2010-05-16 15:17 UTC, Marcel Greter
Details
patch that makes the driver work with 2.6.35 sources (r8168-kernel2_6_35.patch,1.27 KB, patch)
2010-08-30 15:49 UTC, Michal Janke
Details | Diff
ebuild that should also work with kernels 2.6.35+ (r8168-8.018.00-r1.ebuild,1.06 KB, text/plain)
2010-08-30 21:01 UTC, Michal Janke
Details
New ebuild - sources from r8168.googlecode.com (r8168-8.022.00.ebuild,866 bytes, text/plain)
2011-04-14 08:25 UTC, marcel.greter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lincoln A Baxter 2009-12-28 18:08:12 UTC
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.
Comment 1 Mike Pagano gentoo-dev 2009-12-30 00:27:49 UTC
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.


Comment 2 Lincoln A Baxter 2009-12-30 01:50:35 UTC
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?
Comment 3 Marcel Greter 2010-05-16 15:17:42 UTC
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!
Comment 4 Michal Janke 2010-08-30 15:49:35 UTC
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.
Comment 5 Michal Janke 2010-08-30 21:01:10 UTC
Created attachment 245403 [details]
ebuild that should also work with kernels 2.6.35+

as promised
Comment 6 Michal Janke 2010-08-30 21:12:18 UTC
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).
Comment 7 André Terpstra 2011-02-03 09:40:18 UTC
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?
Comment 8 André Terpstra 2011-02-03 09:42:14 UTC
By the way, mine is a RTL8111D chip on a GA-H55M-UD2H MoBo.
Comment 9 marcel.greter 2011-04-14 08:25:13 UTC
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 !
Comment 10 Marcel Greter 2011-07-30 21:34:57 UTC
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
Comment 11 wyvern5 2011-09-26 00:13:34 UTC
This problem affects me too, so just another vote for an ebuild for this driver!
Comment 12 Nikos Chantziaras 2011-11-15 13:26:32 UTC
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.)
Comment 13 Nikos Chantziaras 2012-01-08 09:29:18 UTC
Someone please close this bug? As mentioned above, net-misc/r8168 now supports those Realtek NICs.
Comment 14 Joseph 2012-01-12 06:16:38 UTC
(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.
Comment 15 Marcel Greter 2012-02-10 16:51:42 UTC
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
Comment 16 Christian Birchinger (RETIRED) gentoo-dev 2012-04-30 12:23:34 UTC
r8168-8.028.00 is in the tree already.
Comment 17 Nikos Chantziaras 2012-04-30 13:41:36 UTC
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.