Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2598120
  • 博文数量: 333
  • 博客积分: 4817
  • 博客等级: 上校
  • 技术积分: 4413
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-28 10:51
文章分类

全部博文(333)

文章存档

2017年(20)

2016年(57)

2015年(27)

2014年(20)

2013年(21)

2012年(164)

2011年(24)

分类: LINUX

2011-12-08 15:54:28

       由于工作关系,需要安装ubuntu11.04,可是网络一直不稳定,经常掉线(同事的网络灰常),ARM板和PC的tftp服务灰常不稳定,时而可以,时而不行,灰常郁闷,在网上终于找到一篇文章,跟我碰到问题一样,于是一步一步照着做,现在网络灰常稳定,再次感谢他们。


first:make user to root.
$su -root

1) Check to see if the r8169 module is loaded
-> lsmod | grep r816
r8168 41104 0
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8169
Kernel modules: r8169

2) Download the official Realtek driver
Realtek RTL8111/RTL8168

3) Remove the r8169 module
-> rmmod r8169
-> mv /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko ~/r8169.ko.backup
( the ` is a backtick, it is not an apostrophe or single quote )

4) Build the new r8168 module for the kernel
-> bzip2 -d r8168-8.009.00.tar.bz2 (这儿的包名称有点儿变化,需要改动)
-> tar -xf r8168-8.009.00.tar
-> cd r8168-8.009.00
-> make clean modules
-> make install

5) Rebuild the kernel module dependencies
-> depmod -a
-> insmod ./src/r8168.ko

6) Remove the r8169 module from initrd
-> mv /initrd.img ~/initrd.img.backup
-> mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`

7) Add r8168 module to /etc/modules
-> echo "r8168" >> /etc/modules

Reboot, You are done!

9) Examine that ONLY the r8168 module is loaded for the interface
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8168
Kernel modules: r8168

链接:
阅读(21892) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

wximeng2014-08-22 09:10:05

3) Remove the r8169 module
-> rmmod r8169

博主你是在物理机上操作的吧,这要是ssh连接机器就坑了

starp1282013-09-06 23:17:42

膜拜的一塌糊涂,涛哥。。。