Rtl8169 Pci Gigabit Ethernet Controller Driver Debian 8

Posted on  by 

OK, I'm well aware that this is a well worn subject much discussed elsewhere, & indeed I've solved it myself many times before - but today I've spent hours on it - I need some help!!

Download Realtek LAN Driver/Installation Program 8.079.0722.2020 (Network Card). Realtek PCI Gigabit Ethernet Family Controller. RTL8169S(L) - RTL8169. Realtek RTL8168D(P)/8111D(P) PCI-E Gigabit Ethernet NIC Realtek RTL8168D/8111D Family PCI Gigabit Ethernet NIC Realtek RTL8168D/8111D Family PCI Gigabit Ethernet NIC (NDIS 6.0) Realtek RTL8168D/8111D Family PCI-E GBE NIC Realtek RTL8168D/8111D/8112L Family PCI-E GBE NIC Realtek RTL8169/8110 Family Gigabit Ethernet NIC Realtek RTL8169/8110.


I'm running CrunchBang Waldorf. (Debian Wheezy)
I've installed:
firmware-realtek
debhelper
build-essentials
Debian ethtool
dkms
I have blacklisted r8169
Here is my /etc/modules
Code: Select all
loop
lp
rtc
r8168

Here is the relevent output from lspci -v
Code: Select all
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Giga-byte Technology GA-EP45-DS5/GA-EG45M-DS2H Motherboard
Flags: bus master, fast devsel, latency 0, IRQ 12
I/O ports at de00 [size=256]
Memory at fbbff000 (64-bit, prefetchable) [size=4K]
Memory at fbbf8000 (64-bit, prefetchable) [size=16K]
[virtual] Expansion ROM at fbb00000 [disabled] [size=128K]
Capabilities: <access denied>

.. ifconfig (note the absense of eth0)
Code: Select all
plenty@plenty-plentybox:~$ sudo ifconfig -a
[sudo] password for plenty:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8980 (8.7 KiB) TX bytes:8980 (8.7 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1f:1f:76:0d:c8
inet addr:192.168.0.126 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:1fff:fe76:dc8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:186140 errors:0 dropped:0 overruns:0 frame:0
TX packets:104744 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:193793880 (184.8 MiB) TX bytes:13404448 (12.7 MiB)
plenty@plenty-plentybox:~$

I have downloaded the following files;
r8168-dkms_8.035.00-2_all.deb
r8168-8.035.00.tar.bz2
This is the result when I try installing r8168-dkms_8.035.00-2_all.deb
Code: Select all
plenty@plenty-plentybox:~/downloads$ sudo dpkg -i r8168-dkms_8.035.00-2_all.deb
Selecting previously unselected package r8168-dkms.
(Reading database ... 105152 files and directories currently installed.)
Unpacking r8168-dkms (from r8168-dkms_8.035.00-2_all.deb) ...
Setting up r8168-dkms (8.035.00-2) ...
Loading new r8168-8.035.00 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-4-amd64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
plenty@plenty-plentybox:~/downloads$

..and this is what happens with the r8168-8.035.00.tar.bz2
Code: Select all
plenty@plenty-plentybox:~/downloads$ sudo update-initramfs -u && cd ~/downloads && tar xvf r8168-8.035.00.tar.bz2 && cd r8168-8.035.00 && sudo sh autorun.sh
update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64
r8168-8.035.00/
r8168-8.035.00/autorun.sh
r8168-8.035.00/src/
r8168-8.035.00/src/rtl_eeprom.h
r8168-8.035.00/src/rtltool.h
r8168-8.035.00/src/Makefile
r8168-8.035.00/src/Makefile_linux24x
r8168-8.035.00/src/rtl_eeprom.c
r8168-8.035.00/src/r8168.h
r8168-8.035.00/src/r8168_n.c
r8168-8.035.00/src/r8168_asf.c
r8168-8.035.00/src/r8168_asf.h
r8168-8.035.00/src/rtltool.c
r8168-8.035.00/Makefile
r8168-8.035.00/README
Check old driver and unload it.
Build the module and install
make[2]: *** No rule to make target `clean'. Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
plenty@plenty-plentybox:~/downloads/r8168-8.035.00$

Below is the contents of the 'Makefile' from the r8168-8.035.00 folder, if it helps.
Code: Select all
KFLAG := 2$(shell uname -r | sed -ne 's/^2.[4]..*/4/p')x
all: clean modules install
modules:
ifeq ($(KFLAG),24x)
$(MAKE) -C src/ -f Makefile_linux24x modules
else
$(MAKE) -C src/ modules
endif
clean:
ifeq ($(KFLAG),24x)
$(MAKE) -C src/ -f Makefile_linux24x clean
else
$(MAKE) -C src/ clean
endif
install:
ifeq ($(KFLAG),24x)
$(MAKE) -C src/ -f Makefile_linux24x install
else
$(MAKE) -C src/ install
endif

I don't understand what it means by 'Check old driver & unload it', as when I modprobe r8169 it ain't there.
I've also tried this;
Code: Select all
$ dget -u http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.035.00-2.dsc
$ cd r8168-8.035.00
$ dpkg-buildpackage -us -uc

.. but the process stalls at this point;

Rtl8169 Pci Gigabit Ethernet Controller Driver Debian 8 Upgrade


Code: Select all
plenty@plenty-plentybox:~/tmp/r8168-8.035.00$ sudo su -c 'dpkg -i r8168-dkms_8.035.00-2_all.deb'
dpkg: error processing r8168-dkms_8.035.00-2_all.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
r8168-dkms_8.035.00-2_all.deb

I've followed many guides, here is a sample;
How to fix RTL8111/8168B ethernet connectivity issues in Linux
http://www.dividebyzero.co.za/blog/2012/02/how-to-fix-rtl8168b-ethernet-connectivity-issues-in-linux/
The pain of an Realtek (RTL8111/RTL8168) ethernet card

Rtl8169 Pci Gigabit Ethernet Controller Driver Debian 8600

http://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/Debian

Rtl8169 Pci Gigabit Ethernet Controller Driver Debian 8 Iso

It's been many moons since I last had to deal with this issue, having dealt with it on Ubuntu & Arch - each time it took hours upon hours to solve, but this time is unparelleled! I'm ashamed to admit that, after some years of linux use, I don't understand this. Someone please help me!!

Coments are closed