Network Fix for RTL8111/RTL8168 Boards and Cards
26 Apr 2016 21:32 - 26 Apr 2016 21:35 #73938
by smgvbest
Network Fix for RTL8111/RTL8168 Boards and Cards was created by smgvbest
I had gotten a GIGABYTE GA-H81M-HD3 from newegg and got pathpilot installed but could not get the network going. it kinda looked ok, it found the NIC and installed a driver but turned out the driver was incorrect for the card. the GIGABYTE GA-H81M-HD3 uses the RTL8168 chipset for network but it is identified as a R8169 which is not compatible.
After some research I found the following fix and just wanted to share with anyone here who might have problems getting the networking going on this board or any board using this RTL8168 chipset
I am placing the full text of the fix here and at the end is the link to the forum where it was originally posted so the author get due credit.
Link to original article
edit: i guess you can not embed highlighting within a code block so removed it for clarity
After some research I found the following fix and just wanted to share with anyone here who might have problems getting the networking going on this board or any board using this RTL8168 chipset
I am placing the full text of the fix here and at the end is the link to the forum where it was originally posted so the author get due credit.
Most of these needs to be done with sudo on Pathpilot. so I'm adding those as needed
1) Check to see if the r8169 module is loaded
-> lsmod | grep r816
r8168 41104 0
-> lspci -v note: you'll get some permission errors without sudo but the needed verification works without it
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8169
Kernel modules: r8169
2) Download the official Realtek driver
[url=http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2]Realtek RTL8111/RTL8168[/url]
3) Remove the r8169 module
-> sudo rmmod r8169
-> sudo mv /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko ~/r8169.ko.backup
( the ` is a backtick, it is not an apostrophe or single quote )
4) Build the new r8168 module for the kernel
-> bzip2 -d r8168-8.009.00.tar.bz2
-> tar -xf r8168-8.009.00.tar
-> cd r8168-8.009.00
-> make clean modules
-> sudo make install
5) Rebuild the kernel module dependencies
-> sudo depmod -a
-> sudo insmod ./src/r8168.ko
6) Remove the r8169 module from initrd
-> mv /boot/initrd.img ~/initrd.img.backup
-> mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`
Note I changed this a little since in the pathpilot build initrd.img is a symlink in the root so you need to backup the actual file not the symlink. doing so would break the boot since the symlink is renamed.
7) Add r8168 module to /etc/modules
-> sudo echo "r8168" >> /etc/modules
I had trouble with this one even with sudo so i sudo gedit /etc/modules and it worked fine
8) Reboot, You are done!
9) Examine that ONLY the r8168 module is loaded for the interface
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8168
Kernel modules: r8168
If you need to, configure your /etc/network/interfaces for dhcp or static address then `sudo ifup eth0`
I added this to /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
!!do not remove the!!
auto lo
iface lo inet loopback
Link to original article
edit: i guess you can not embed highlighting within a code block so removed it for clarity
Last edit: 26 Apr 2016 21:35 by smgvbest.
Please Log in or Create an account to join the conversation.
29 Sep 2016 01:34 - 29 Sep 2016 02:53 #81068
by gismofx
Replied by gismofx on topic Network Fix for RTL8111/RTL8168 Boards and Cards
Thanks for posting this guide. I've tried similar solutions with no success. I get some errors when trying the guide you posted. Can you please provide more detailed instructions from start to finish on getting this card to work?
Last edit: 29 Sep 2016 02:53 by gismofx.
Please Log in or Create an account to join the conversation.
16 Oct 2016 15:23 #81689
by smgvbest
Replied by smgvbest on topic Network Fix for RTL8111/RTL8168 Boards and Cards
Where are you getting an error? which step?
Did you follow the link to the original posting for this. there's allot more help in it?
When you do a lspci -v what does it say you're chipset is?
Did you follow the link to the original posting for this. there's allot more help in it?
When you do a lspci -v what does it say you're chipset is?
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.086 seconds