aelius Posted May 20, 2014 Report Posted May 20, 2014 (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 upMay 16 17:20:29 pluto kernel: [5181569.277454] r8169 0000:03:00.0: eth0: link upMay 16 17:20:29 pluto kernel: [5181569.309397] r8169 0000:03:00.0: eth0: link upMay 16 17:20:29 pluto kernel: [5181569.345307] r8169 0000:03:00.0: eth0: link upMay 16 17:20:29 pluto kernel: [5181569.377225] r8169 0000:03:00.0: eth0: link upMay 16 17:20:38 pluto kernel: [5181578.049170] net_ratelimit: 82 callbacks suppressedMay 16 17:20:38 pluto kernel: [5181578.049180] r8169 0000:03:00.0: eth0: link upMay 16 17:20:42 pluto kernel: [5181582.319281] r8169 0000:03:00.0: eth0: link upMay 16 17:20:45 pluto kernel: [5181585.675493] r8169 0000:03:00.0: eth0: link upAici am vazut ce driver este incarcat:root@pluto:~# [B]lsmod | grep r816[/B]r8169 47008 0mii 12675 1 r8169Aici 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 Speed100 1891 100 1891 0 0 7018 0 --:--:-- --:--:-- --:--:-- 13802dget: 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 Speed100 74460 100 74460 0 0 67319 0 0:00:01 0:00:01 --:--:-- 76762dget: 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 Speed100 4052 100 4052 0 0 14169 0 --:--:-- --:--:-- --:--:-- 26141dpkg-source: info: extracting r8168 in r8168-8.038.00dpkg-source: info: unpacking r8168_8.038.00.orig.tar.bz2dpkg-source: info: unpacking r8168_8.038.00-1.debian.tar.xzroot@pluto:~# [B]cd r8168-8.038.00[/B]root@pluto:~/r8168-8.038.00# [B]apt-get install dkms[/B]Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following package was automatically installed and is no longer required: libtommath0Use '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 menuSuggested 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 suxThe 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 menu0 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-amd64Building initial module for 3.2.0-4-amd64Done.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-dkmsMaking 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-amd64Dupa reboot:root@pluto:~# [B]lsmod |grep r81[/B]r8168 248409 0root@pluto:~# [B]mii-tool[/B]eth0: negotiated 1000baseT-FD flow-control, link okroot@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 uproot@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 May 20, 2014 by aelius Quote
aelius Posted October 10, 2014 Author Report Posted October 10, 2014 (edited) // Update r8168_8.038.00-1 => r8168_8.039.00-1Versiunea 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.dscDirectorul este "r8168-8.039.00/" Edited November 11, 2014 by aelius Quote
aelius Posted June 15, 2016 Author Report Posted June 15, 2016 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 Quote