`
isiqi
  • 浏览: 16031797 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

Installation of r8168 network driver

阅读更多

http://wiki.hetzner.de/index.php/Installation_of_r8168_network_driver

The Linux driver r8169 for the Realtek network chip in the EQ servers does not work correctly in CentOS 5.4, Ubuntu 9.04, OpenSUSE 11.1 and Debian Lenny. Timeouts and state changes tolink downmay occur. The solution is to use the official Realtek r8168 driver. Unfortunately this driver is not yet included in any distribution. For CentOS it can be installed from 3rd party repositories. For Debian and Ubuntu it must be compiled by the user.

This article describes how to setup the network driver.

Inhaltsverzeichnis

[Verbergen]

Using kmod-r8168 from elrepo.org on CentOS

ELRepo is a RPM repository for Enterprise Linux packages. ELRepo supports Red Hat Enterprise Linux and its derivatives (CentOS, Scientific Linux and others). It is the easiest way to get the r8168 driver for the standard upstream kernels.

NOTE:If you are using a special kernel like Virtuozzo, OpenVZ or something similar. YouMUSTcompile the module yourself!

To install ELRepo for RHEL5, CentOS-5 or SL5:

rpm -Uvh http://elrepo.org/elrepo-release-0.1-1.el5.elrepo.noarch.rpm

Import the public key:

rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org

To install kmod-r8168 Realtek r8168 driver:

yum --enablerepo=elrepo install kmod-r8168

After reboot the new driver is used. It stays active even after kernel upgrades.

Using r8168-kmp from the OpenSUSE 11.1 NIC drivers repo

OpenSUSE offers prebuilt Kernel module packages (kmp). You just have to add the repository to zypper and install the matching package. In the example the -default kernel is assumed

 cd /etc/zypp/repos.d
 wget http://download.opensuse.org/repositories/drivers:/nic/openSUSE_11.1/drivers:nic.repo
 zypper install r8168-kmp-default

Before rebooting, the r8169 must be blacklisted.

echo "blacklist r8169" >> /etc/modprobe.d/blacklist

After the reboot only the r8168 module should show up in 'lsmod'

Installation from source

Prerequisites

Please make sure you are running the latest kernel available with yum or apt-get.

CentOS

On CentOS the packages 'kernel-devel' and 'kernel-headers' will install headers only for the newest kernel. The following packages need to be installed via the package manager:

yum install gcc gcc-c++ kernel-devel kernel-headers

Debian/Ubuntu

On Ubuntu the name of the header package depends on the selected kernel. It can be for example 'linux-headers-generic' or 'linux-headers-server'. Both will install headers only for the newest kernel. The following package will install everything required for compilation (as root):

aptitude install build-essential linux-headers-`uname -r`

Getting the sources

cd /tmp
wget http://download.hetzner.de/drivers/r8168-8.015.00.tar.bz2
tar xjf r8168-8.015.00.tar.bz2

Compiling the driver

cd r8168-8.015.00
make all

Activating the new driver

CentOS

The file/etc/modprobe.confneeds to be edited. Change the line

alias eth0 r8169

to

alias eth0 r8168

To activate the new driver, we create a simple shell script that does the necessary steps.

echo "rmmod r8169" > /tmp/r8168
echo "depmod -a" >> /tmp/r8168
echo "modprobe r8168" >> /tmp/r8168
echo "service network restart" >> /tmp/r8168
echo "service ipaliases restart" >> /tmp/r8168

Execute that script:

sh /tmp/r8168

After several seconds the server should be back online using the new network driver. Our working directory can now be removed:

rm -rf /root/r8168

Debian Lenny / Ubuntu 9.04

After installing the driver, update the module dependencies.

depmod -a

First the r8169 network driver needs to be blacklisted in order to prevent the kernel from loading it.

Ubuntu:
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
Debian:
echo "blacklist r8169" >> /etc/modprobe.d/blacklist

Then we force the kernel to include the driver in the initrd.

echo "r8168" >> /etc/initramfs-tools/modules

And rebuild the initrd

update-initramfs -v -u -k `uname -r`

Now you can reboot to activate the driver.

After a kernel update the driver might need to be recompiled.

[[Kategorie:]]

分享到:
评论

相关推荐

    r8168-dkms_8.043.02-1_all.deb

    Installation of the r8168-dkms package will disable the in-kernel r8169 module. To re-enable r8169, the r8168-dkms package must be purged. This package provides the dkms source code for the r8168 ...

    Qualcomm USB Network Driver Package 1.0.8.2 for Windows XP/Vista/Win 7

    Qualcomm USB Network Driver Package 1.0.8.2 for Windows XP/Vista/Win 7 This readme covers important information regarding the following drivers for Windows XP/Vista/Win 7: -Qualcomm USB Network ...

    DriverStudio 3.2 升级补丁

    <br>Compuware DriverStudio – DriverSuite Version 3.2 ONLY <br>Version 3.2 patch. The purpose of this patch is to update DriverStudio – DriverSuite to fix several bugs that have been ...

    DriverStudio 3.2 For VisualStudio 2005 补丁

    <br>原文件说明: <br>Compuware DriverStudio – DriverSuite Version 3.2 <br>Version 3.2 VisualStudio 2005 Integration fix. The purpose of this update is to allow DriverStudio – ...

    bizhub235 .215 .195 FAX Driver

    FAX Driver for Windows XP, Server 2003, Vista, Server 2008, Server 2008 R2 ... 2.2 Installation (Network connection) 3. Uninstalling the fax driver 3.1 Manual uninstallation 4. Release Note 4.1 General

    windows-driver-kit-81-cpp

    2018\09\10 周一 17:27 <DIR> Bindview Network Configuration Utility 2018\09\10 周一 17:27 <DIR> Bluetooth Echo L2CAP Profile Driver 2018\09\10 周一 17:27 <DIR> Bluetooth Serial HCI Bus Driver 2018\09\...

    车载以太网 Ethernet and IP for Automotive E/E-Architectures

    Todays premium class vehicles implement a variety of distributed applications cov- ering all areas of the vehicle, such as engine, chassis, body, comfort, as well as driver assistance functions....

    aim公司afdx仿真测试板卡资料

    installation, the board connections, a general description of the hardware architecture and the technical data of the API-FDX2-V2. For programming information please refer to the according documents ...

    RTL8139 SCO UnixWare 7.x/SCO openserver 6驱动

    Location of Driver: \uw7\rtspkg.tar Installing driver procedure on SCO UnixWare7 : ----------------------------------------- Before you start with the installation process, make sure that the ...

    sniffpass.exe

    You can also try to capture without any driver installation, simply by using the 'Raw Socket' capture method, but you should be aware that this method doesn't work properly in many systems. ...

    vxbus_device_driver_developers_guide_6.9

    2.4.3 Ease of Configuration ....................................................................................... 12 2.4.4 Performance Testing ..........................................................

    Solaris 10 System Administration Essentials

    1.2 The Basics of Solaris Installation 2 1.2.1 Installing Solaris on a SPARC System 6 1.2.2 Installing Solaris on an x86 System 9 1.3 Solaris JumpStart Installation 13 1.3.1 Setting up a JumpStart ...

    S7A驱动720版本

    - Passing of invalid OPC Item IDs caused a memory leak of the driver's global memory. After the global memory was exhausted, the driver crashed. - Writing of string values failed when using ...

    Nmapwin学习扫描器的人有用

    winpcap_2.3 which will guide you throught the rest of the installation procedure. For more information about WinPCap see: http://netgroup-serv.polito.it/winpcap/ To check whether the ...

    Handbook of Fiber Optic Data Communication---part2

    535 Planning and Installation of an ESCON Link 14.6. 546 Loss Budget Analysis 14.7. 1 55 Link Troubleshooting 14.8. 556 Additional Aspects 14.9...

    Handbook of Fiber Optic Data Communication---part3

    535 Planning and Installation of an ESCON Link 14.6. 546 Loss Budget Analysis 14.7. 1 55 Link Troubleshooting 14.8. 556 Additional Aspects 14.9...

    PICO2000品科监控卡软件

    simply insert the installation CD into your CD-ROM driver, then follow the instructions to finish the installation, if the setup does not run automatically, please run the "setup.exe" on the ...

    BURNINTEST--硬件检测工具

    number of Network Addresses specified in Preferences->Network will be the number of NICs tested. This will error faulty NICs that are not detected by the BurnInTest auto NIC detection mechanism. ...

    Android Platform Developer‘s Guide.doc

    1. Confirm a Clean Installation of a Basic Linux Kernel 38 2. Modify Your Kernel Configuration to Accommodate Android Drivers 38 3. Write Drivers 38 4. Burn Images to Flash 39 5. Boot the kernel and ...

    Windows MicroXP 0.82[Microsoft Windows XP SP3原版加工成的微型XP系统,=99.9%个完整XP]

    With a total installation size of just 200Mb and a CD size of just 99.9Mb, this has to be one of the smallest Windows XP installations out there. Whats more - you can use 99% of the programs you ...

Global site tag (gtag.js) - Google Analytics