LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2016, 08:49 PM   #1
ehure
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Drivers for Ethernet Realtek RTL8111/8168/8411 (r8169)


Hello,

I'm trying to install Gentoo on my new computer. However I'm stuck with drivers issues. I had no Ethernet interface anymore when rebooting, and with lspci I figured out no driver was loaded for the following device:

Code:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
With the live-cd I figured out the right driver was r8169. Though I don't find it in the Linux Kernel options, so I guess I have to download it manually. I found some links here but no one matches Linux 4.4.6 kernel, which I'm trying to build. Where can I find a new version of such a driver, or an other working as well?

Thanks in advance!
 
Old 08-09-2016, 08:50 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
r8169 is in kernel, r8168 is not, but there is an ebuild for it.
 
Old 08-10-2016, 05:20 AM   #3
nelz
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 4
I ve the same NIC and distro, it uses the r8169 driver in the kernel. In make menuconfig, press / for search then 8169. This will show you the entry. Make sure all dependencies are satisfied then you can jump straight to it by pressing the number next to it in the search result.
 
Old 08-10-2016, 05:25 AM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
r8169 will work, but you probably will get firmware loading error, check your dmesg. With r8168 driver there is no error.
 
Old 08-10-2016, 07:29 AM   #5
nelz
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 4
I've been using the same NIC (according to the lspci output) for about 5 years with the in-kernel driver and have no firmware errors in the journal. Using out of tree drivers is messy, especially for a NIC, and to be avoided wherever possible.
 
Old 08-10-2016, 07:46 AM   #6
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
r8168 is not exactly out of tree, it is in portage. I generally use Intel NIC's whenever possible, but I have
Code:
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
in one of my boxes and this gives me firmware error even when the firmware requested by r8169 kernel driver is in place. I guess it is too new (rev 15) for kernel driver. Works flawlessly with r8168 driver.
 
Old 08-10-2016, 08:12 AM   #7
ehure
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your answers!

I just missed r8169 in the kernel options, thank you for pointing this out. First I just tried to recompile with this option enabled, after rebooting and dhcpcd it looks to work fine, I get no firmware error in dmesg. There is probably a difference between rev 12 and rev 15 here.
 
Old 08-10-2016, 08:56 AM   #8
nelz
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 4
It's out the the kernel tree, so whenever you update your kernel you lose networking until you re-emerge it - and if you don't have the sources to hand that's a little tricky. The only time it's worth using the r8168 package is if your NIC is a new model not yet supported by the kernel driver, which may well have been the case when you got your Rev 15 chip (mine is Rev 06).
 
Old 08-10-2016, 09:16 AM   #9
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
This is what emerge @module-rebuild is for, make it part of kernel upgrade routine, you need to run it anyway if you are using nvidia, virtualbox, etc.
 
Old 08-10-2016, 10:45 AM   #10
nelz
LQ Newbie
 
Registered: Aug 2004
Posts: 24

Rep: Reputation: 4
Yes, I know that, but it is an extra step that can fail, and completely unnecessary if your card is supported by the in-kernel drivers. The r8168 driver is based on the kernel code anyway, although an old version, so it only has benefits if your have a very new card (or old kernel).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller morphynoman Slackware 31 07-18-2011 11:50 AM
How to install Realtek 8139/8168 Ethernet drivers? melchizedec Linux - Hardware 1 02-09-2010 03:59 AM
How to compile driver for Realtek 8168 ethernet controller in Mepis 7.0 64 release? MikeB23930 MEPIS 9 12-13-2009 05:30 AM
R8169/8168 network card problems cnanu SUSE / openSUSE 1 12-07-2008 09:27 PM
how to install realtek ethernet driver ' r8169-6.004.00.tar.bz' on HCL 965,dualcore rmkrishna2 Linux - Networking 1 12-08-2007 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration