|
笔记本是ASUS的A6J,安装了FC5,过程中没出现什么问题,只是明显显卡、网卡、声卡的驱动都没装好。我打算先装网卡驱动。查了网卡的芯片是realtek8168Gigabit,上realtek主页下载了for linux的驱动。其readme文件我贴出来让大家看看:
======================================================
<Linux device driver for Realtek Ethernet controllers>
This is the Linux device driver released for RealTek Ethernet controllers, which are listed as following.
1. RTL8169S/SB/SC (Gigabit Ethernet with PCI interface)
2. RTL8168B (Gigabit Ethernet with PCI-Express interface)
3. RTL8101E (Fast Ethernet with PCI-Express interface)
<Requirements>
- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation
<Quick install with proper kernel settings>
Unpack the tarball :
tar vzxf r1000_vX.YZ.tgz
Change to the directory:
cd r1000_vX.YZ
If you are running the target kernel, then you should be
able to do :
make clean modules (as root or with sudo)
make install
depmod -a
<Force Link Status>
1. Force the link status when insert the driver.
If the user is in the path ~/r1000, the link status can be forced to one of the 5 modes as following command.
#insmod ./src/r1000.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION
,where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = 0 for half-duplex
= 1 for full-duplex
NWAY_OPTION = 0 for auto-negotiation off
= 1 for auto-negotiation on
For example:
#insmod ./src/r1000.ko speed=100 duplex=0 autoneg=0
will force PHY to operate in 100Mpbs Half-duplex.
2. Force the link status by using ethtool.
a. Insert the driver first.
b. Make sure that ethtool exists in /sbin.
c. Force the link status as the following command.
#ethtool -s eth? speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION
,where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = half for half-duplex
= full for full-duplex
NWAY_OPTION = off for auto-negotiation off
= on for auto-negotiation on
=====================================================
前面make clean modules,make install,depmod -a这三步都没问题,没有得到错误提示,但装后没有任何反应,在网络配制里也没有显示任何网络设备。重启也没有。
然后想做#insmod这一步,却无论如何找不到~/r1000这个目录,命令打下去当然也是出错。我是新手,怎么想也想不通我已经完全按照说明书做了却怎么还不行。不知道是不是这个驱动有问题。请大家帮帮忙!谢谢! |
|