I'm running CrunchBang Waldorf. (Debian Wheezy)
I've installed:
firmware-realtek
debhelper
build-essentials
ethtool
dkms
I have blacklisted r8169
Here is my /etc/modules
Code: Select all
loop
lp
rtc
r8168
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>
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:~$
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$
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$
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'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
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
How to fix RTL8111/8168B ethernet connectivity issues in Linux
http://www.dividebyzero.co.za/blog/2012 ... -in-linux/
The pain of an Realtek (RTL8111/RTL8168) ethernet card
http://unixblogger.wordpress.com/2011/1 ... rnet-card/
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!!