Jump to content
aelius

Probleme drivere RTL8111/8168B pe Debian

Recommended Posts

Posted (edited)

Default, pe Debian este incarcat driverul r8169 pentru placa de retea gigabit RTL8111/8168B. Acest driver cauzeaza probleme atunci cand este utilizata reteaua mai intensiv si pur si simplu serverele raman fara conectivitate.

M-am lovit de aceasta problema pe un server si ma gandeam ca poate mai sunt si altii cu probleme similare.

Mesajele ce-mi apareau la dmesg:


May 16 17:20:29 pluto kernel: [5181569.245544] r8169 0000:03:00.0: eth0: link up
May 16 17:20:29 pluto kernel: [5181569.277454] r8169 0000:03:00.0: eth0: link up
May 16 17:20:29 pluto kernel: [5181569.309397] r8169 0000:03:00.0: eth0: link up
May 16 17:20:29 pluto kernel: [5181569.345307] r8169 0000:03:00.0: eth0: link up
May 16 17:20:29 pluto kernel: [5181569.377225] r8169 0000:03:00.0: eth0: link up
May 16 17:20:38 pluto kernel: [5181578.049170] net_ratelimit: 82 callbacks suppressed
May 16 17:20:38 pluto kernel: [5181578.049180] r8169 0000:03:00.0: eth0: link up
May 16 17:20:42 pluto kernel: [5181582.319281] r8169 0000:03:00.0: eth0: link up
May 16 17:20:45 pluto kernel: [5181585.675493] r8169 0000:03:00.0: eth0: link up

Aici am vazut ce driver este incarcat:


root@pluto:~# [B]lsmod | grep r816[/B]
r8169 47008 0
mii 12675 1 r8169

Aici am listat dispozitivele PCI. Se poate vedea modelul placii de retea.


root@pluto:~# [B]lspci |grep Ether[/B]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 0c)

Cum rezolvati aceasta problema:


root@pluto:~# [B]apt-get install devscripts build-essential[/B]
root@pluto:~# [B]dget -u http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.038.00-1.dsc[/B]
dget: retrieving http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.038.00-1.dsc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1891 100 1891 0 0 7018 0 --:--:-- --:--:-- --:--:-- 13802
dget: retrieving http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.038.00.orig.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 74460 100 74460 0 0 67319 0 0:00:01 0:00:01 --:--:-- 76762
dget: retrieving http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.038.00-1.debian.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4052 100 4052 0 0 14169 0 --:--:-- --:--:-- --:--:-- 26141
dpkg-source: info: extracting r8168 in r8168-8.038.00
dpkg-source: info: unpacking r8168_8.038.00.orig.tar.bz2
dpkg-source: info: unpacking r8168_8.038.00-1.debian.tar.xz
root@pluto:~# [B]cd r8168-8.038.00[/B]
root@pluto:~/r8168-8.038.00# [B]apt-get install dkms[/B]
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libtommath0
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
cpp-4.6 gcc-4.6 gcc-4.6-base linux-headers-3.2.0-4-amd64 linux-headers-3.2.0-4-common linux-headers-amd64 linux-kbuild-3.2 menu
Suggested packages:
gcc-4.6-locales gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold menu-l10n gksu kdebase-bin
kdebase-runtime ktsuss sux
The following NEW packages will be installed:
cpp-4.6 dkms gcc-4.6 gcc-4.6-base linux-headers-3.2.0-4-amd64 linux-headers-3.2.0-4-common linux-headers-amd64 linux-kbuild-3.2 menu
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.3 MB of archives.
After this operation, 57.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
................
root@pluto:~/r8168-8.038.00# [B]dpkg-buildpackage -us -uc[/B]
.......................
root@pluto:~/r8168-8.038.00# [B]dpkg-buildpackage[/B]
root@pluto:~/r8168-8.038.00# [B]cd ..[/B]
root@pluto:~# [B]dpkg -i r8168-dkms_8.038.00-1_all.deb[/B]
Selecting previously unselected package r8168-dkms.
(Reading database ... 73244 files and directories currently installed.)
Unpacking r8168-dkms (from r8168-dkms_8.038.00-1_all.deb) ...
Setting up r8168-dkms (8.038.00-1) ...
Loading new r8168-8.038.00 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-4-amd64
Building initial module for 3.2.0-4-amd64

Done.

r8168:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-4-amd64/updates/dkms/

depmod......

Backing up initrd.img-3.2.0-4-amd64 to /boot/initrd.img-3.2.0-4-amd64.old-dkms
Making new initrd.img-3.2.0-4-amd64
(If next boot fails, revert to initrd.img-3.2.0-4-amd64.old-dkms image)
update-initramfs....

DKMS: install completed.
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64

Dupa reboot:


root@pluto:~# [B]lsmod |grep r81[/B]
r8168 248409 0
root@pluto:~# [B]mii-tool[/B]
eth0: negotiated 1000baseT-FD flow-control, link ok
root@pluto:~# [B]dmesg |grep r81[/B]
[ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff88041fa00000 s82944 r8192 d23552 u524288
[ 0.000000] pcpu-alloc: s82944 r8192 d23552 u524288 alloc=1*2097152
[ 0.985972] r8168 Gigabit Ethernet driver 8.038.00-NAPI loaded
[ 0.986008] r8168 0000:03:00.0: setting latency timer to 64
[ 0.986060] r8168 0000:03:00.0: irq 41 for MSI/MSI-X
[ 1.003034] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 1.003039] r8168 Copyright (C) 2013 Realtek NIC software team <nicfae@realtek.com>
[ 18.144111] r8168: eth0: link up
root@pluto:~# [B]lspci |grep Ether[/B]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 0c)
root@pluto:~#

Edited by aelius
Posted (edited)

// Update r8168_8.038.00-1 => r8168_8.039.00-1

Versiunea de driver a fost schimbata iar link-ul nu mai este valid. La comanda dget, utilizati link-ul de mai jos. In rest, respectati celalalte comenzi.


http://ftp.us.debian.org/debian/pool/main/r/r8168/r8168_8.039.00-1.dsc

Directorul este "r8168-8.039.00/"

Edited by aelius
Posted

Update:

 


root@static155:~# apt-get update
root@static155:~# aptitude install build-essential linux-headers-`uname -r` git
root@static155:~# git clone https://github.com/mtorromeo/r8168
root@static155:~# cd r8168/
root@static155:~/r8168# make
root@static155:~/r8168# make install
root@static155:~/r8168# insmod src/r8168.ko
root@static155:~/r8168# cd ..
root@static155:~# echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
root@static155:~# echo "r8168" >> /etc/modules
root@static155:~# depmod -a
root@static155:~# mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`
root@static155:~# init 6

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...