LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 2

网卡驱动里的安装说明书,看不懂,请指点

[复制链接]
发表于 2006-12-18 07:24:23 | 显示全部楼层 |阅读模式
<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

<Advanced feature>

  - Supports Jumbo Frame
  - Hardware Tx/Rx flow control








真是一点都没看懂,请给以一些指点.谢谢
发表于 2006-12-18 10:44:23 | 显示全部楼层
8139的网卡应该不需要编译驱动的,我的理解大概如此:
第一个方法是告诉你把驱动编译进内核
第二个方法是不需要编译进内核,但是你要指定驱动模块在哪儿,以及网卡的一些参数
大概就是这样吧,不知对否?
回复 支持 反对

使用道具 举报

发表于 2006-12-18 11:00:45 | 显示全部楼层
网卡驱动是属于内核模块,因此需要内核头文件或者内核源文件(指正在运行的内核)

然后解压下载的包并进入解压后生成的目录,并进行编译和安装(因为是内核模块,因此安装的时候必须使用root用户)

后面部分的内容就是说在加载该该网卡内核模块的时候可能通过添加相应的参数来改变网卡的功能,比如链接速度(100M、1000M或者自动适应等)、全双工或者半双工

当然,说明文件中也说了,除了通过添加启动参数的方式外,还可能通过ethtool这个工具来改变网卡的属性。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表