LinuxSir.cn,穿越时空的Linuxsir!

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

请大侠帮忙 看一下网卡驱动的安装文档~谢谢

[复制链接]
发表于 2007-4-13 21:50:47 | 显示全部楼层 |阅读模式
:comp 刚装的redhat 不能上网 捣鼓了几天 实在搞不定 请大侠指点一下啊 谢谢了

我一开始用的是主板上的网卡  一开始能上网 用了2次后就不能上了  后来就换一D-LINK 还是不能上  驱动不会装了
各位大侠帮个忙啊

最好把命令写上啊

我照葫芦画瓢 估计也能整上 谢谢拉
前几步我都会 就是到 Compile the driver source files and it will generate rhinefet.o
这里不知道怎么操作了
怎么编译啊?

谢谢拉 ~! 借您10分钟帮个忙吧

我翻了 置顶的帖子 可没找到啊

驱动光盘里的安装文档如下

    D-Link DFE-530TX PCI Fast Ethernet Adapter Installation
                         for Linux

                          v4.16  May. 2002


                 
         
Introduction:
=============

    The instructions listed below are for linux driver installation. You must
    compile the source code to generate rhinefet.o and use insmod command to
    insert rhinefet.o as module.


Contents of the Subdirectory:
=============================

    linux.txt               This file.
    rhinefet.h              The linux core driver header file
    rhinefet.c              The linux core driver source code file
    Makefile                Makefile for generating driver object file
    rhine_vmns.c            The vmns driver support source file
    rhine_vmns.h            The vmns driver support header file
    rhine_cfg.h             The vmns driver support header file
    vmns_drv.h              The vmns driver support header file

Kernel Supported
================
    This driver support linux kernel version 2.2.x and 2.4.x now.

Installation
============
    Please enter the following commands at the UNIX prompt. Remember, UNIX is
    case sensitive.

    1) Create a temporary directory:
        mkdir /temp

    2) Change to the temporary directory:
        cd /temp

    2) Copy driver (dlkfet.tar) from DOS disk, (mcopy below is one tool in
       mtools, if you didn't install mtools, you can type
       'mount -t msdos /dev/fd0 /mnt' and use 'cp /mnt/dlkfet.tar /temp'
       command to copy the driver to the temporary directory):
        mcopy a:dlkfet-4.16.tar.gz .

    3) untar the archive file:

        tar xzvf dlkfet-4.16.tar.gz
        cd dlkfet-4.16
                        
    4) Compile the driver source files and it will generate rhinefet.o, and
       copy it to correct driver installation path (The installation directory
       is different in different kernel versions. In 2.4.x kernel, the path is
       /lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
       the path is /lib/modules/KERNEL_VERSION/net/, the KERNEL_VERSION (see
       above) means the kernel version of your Linux distribution. If you don't
       know your kernel version , please run 'uname -r' command in command
       line. The kernel version will look like '2.2.16', '2.4.2-2smp' etc.) :
        make install

    5) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
       depend on your Linux distribution) for loading kernel modules. Make sure
       there is the following content in the configuration file, where # is
       interface number (eg: alias eth0 rhinefet):
        alias eth# rhinefet

    6) Reboot now:
        shutdown -r now

    7) Install your driver module (If the driver module is in the wrong place,
       an error message will appear, and say that can't find the driver
       module):
        insmod rhinefet

    8) Use ifconfig command to assign the IP address, where # is network
       interface number:
        ifconfig eth# <IP>

    9) Check the interface works:
        ping <remote_host_IP>


Uninstallation
==============
    Please enter the following commands to uninstall your driver:
        make uninstall

Note
====
    1) Make sure the link file /usr/src/linux (or /usr/src/linux-2.4) is linked
       to correctly kernel sources directory (eg: if you run 'uname -r', it
       appears "2.4.2-2", then the link file must be linked to
       /usr/src/linux-2.4.2 directory, or you will fail in compiling),
       and make sure there are kernel header files in /usr/src/linux/include
       directory (or /usr/src/linux-2.4/include), we need kernel header files
       in compling.

    2) If you can't install driver in SUSE Linux using insmod or modprobe
       commands, and error messages appear (see below), please run 'uname -r'
       in command line. And make sure the result of 'uname -r' (eg: 2.4.2-4GB)
       is the same with the definition of UTS_RELEASE in
       /usr/src/linux/include/linux/version.h. If not, please modify the
       definition of UTS_RELEASE in /usr/src/linux/include/linux/version.h.

         rhinefet.o: kernel-module version mismatch
                 rhinefet.o was compiled for kernel version 2.4.2
                 while this kernel is version 2.4.2-4GB.

    3) Make sure that your kernel is built with network, fast_ethernet
       and module support. Otherwise, you have to rebuild your kernel (see
       below).
        1. Go to /usr/src/linux (or /usr/src/linux-2.4) directory:
            cd /usr/src/linux
        2: Run 'make menuconfig' or 'make config' in text mode, or 'make
           xconfig' in graphic mode.
        3: Mark the options list above.
        4: Exit and rebuild your kernel:
            make dep;make clean;make bzImage
           The file 'bzImage' will be at /usr/src/linux/arch/i386/boot/bzImage
        5: Modify /etc/lilo.conf.(this file specifies where kernel image is)
        6: Run 'lilo'
        7: Reboot, and select the correct kernel image to boot your system.

    4) You can use the utility (like netconfig, linuxconf) in your Linux
       distribution to set your network parameters(like ip,gateway). These
       parameters will be used at boot time. The following is the demonstration
       to show how to use linuxconf (it's a utitlity in RedHat Linux 6.x) set
       the network paramters.
       1. Run linuxconf:
           linuxconf
       2. Enter setting in the Config/Networking/Client tasks/Basic host information/
          and fill out the following information. Where 'xxx' is the IP address
          what you have.
                    IP address:    xxx.xxx.xxx.xxx
                    Netmask:       255.255.255.xxx
                    Net device:    eth0
                    Kernel module: rhinefet
        
    5) If you can't install driver at boot time.
       If you can install your driver using insmod command, but you can't
       install it at boot time, please check whether the driver is in the
       correct directory (eg: /lib/modules/2.2.XXX/net/), and check the
       /lib/modules/2.2.XXX/modules.dep file, it must include the following
       line:
            /lib/modules/2.2.XXX/net/rhinefet.o:

       You can insert this line using depmod command or insert it manually.
       Also, you must consult your Linux distribution installation guide
       and learn how to set the IP address of your network interface and
       up it at boot time.

    6) If you can't compile this driver, and parse error messages appear,
       please make sure your source code text format is right. You must convert
       your source code text format from MS-DOS to UNIX, as show below (see
       Solution 1 and 2).
       Make sure the files in floppy disk are not dlkfet.tar file. They must
       be the source code text files (5 files), dlkfet.tar is not a text file
       , so it can't be converted.

        Solution1:
            If you use mcopy command to copy your driver from floppy disk to
            linux, you can type:
                mcopy -t a:\* .
            then it will convert the format for you.

        Solution2:
            If you use mount command to mount floppy disk to linux, you can
            type:
                mount -t vfat -o conv=t /dev/fd0 /mnt/floppy
            then, when you copy files from /mnt/floppy, these files format will
            be right.

Module Parameter:
=================
The following parameters can be set when we install the driver module. You can add this parameters when
you execute 'insmod' or 'modprobe' command to install the driver (as below).
    insmod rhinefet.o parameter=value1,value2,value3,...
For example, if you have 3 NIC cards, and you want to set the speed_duplex paramter value of them .
You can type the following command to set it.
    insmod rhinefet.o speed_duplex=1,2,3
Then, the parameter value of first card will be 1 (100Mbps half duplex mode), the second card will
be 2 (100Mbps full duplex mode), and the third card will be 3 (10Mbps half duplex mode).
Remember, our driver only support 8 cards parameter setting.

1) speed_duplex
   speed_duplex[] is used for setting the speed and duplex mode of NIC.
   Value:
       0: indicate autonegotiation for both speed and duplex mode (Default).
       1: indicate 100Mbps half duplex mode
       2: indicate 100Mbps full duplex mode
       3: indicate 10Mbps half duplex mode
       4: indicate 10Mbps full duplex mode

2) enable_tagging (For management adapter only)
   enable_tagging[] is used for enabling VLAN ID setting and enabling
   priority transmit.
   Value:
       0: disable VID setting and priority transmit (Default).
       1: enable VID setting and priority transmit.

3) VID_setting (For management adapter only)
   VID_setting[] is used for setting the VLAN ID of NIC.
   Value:
       0: default VID.
       1-4094: other VIDs.

4) csum_offload (For management adapter only)
   csum_offload[] is used for setting the checksum offload ability of NIC.
   Value:
       0: disable csum_offload (Default).
       1: enable checksum offload. (We only support RX checksum offload now)

5) txcsum_offload (For management adapter only)
   csum_offload[] is used for setting the checksum offload ability of NIC.
   Value:
       0: disable (default)
       1: enable


6) flow_control
   flow_control[] is used for setting the flow control ability of NIC.
   Value:
       1: hardware deafult (Default). Use Hardware default value in ANAR.
       2: disable PAUSE in ANAR.
       3: enable PAUSE in ANAR.


7) IP_byte_align
   IP_byte_align[] is used for IP header DWORD byte aligned (For IPVS environment).
   (In some enviroment, the IP header should be DWORD byte aligned,or the packet
   will be droped when we receive it. (eg: IPVS))
   Value:
       0: indicate the IP header won't be DWORD byte aligned (Default).
       1: indicate the IP header will be DWORD byte aligned.


8) tx_thresh
   tx_thresh[] is used for controlling the transmit fifo threshold.
   Value:
       0: indicate the txfifo threshold is 128 bytes (Default).
       1: indicate the txfifo threshold is 256 bytes.
       2: indicate the txfifo threshold is 512 bytes.
       3: indicate the txfifo threshold is 1024 bytes.
       4: indicate that we use store and forward

9) rx_thresh
   rx_thresh[] is used for controlling the receive fifo threshold.
   Value:
       0: indicate the rxfifo threshold is 64 bytes (Default).
       1: indicate the rxfifo threshold is 32 bytes.
       2: indicate the rxfifo threshold is 128 bytes.
       3: indicate the rxfifo threshold is 256 bytes.
       4: indicate the rxfifo threshold is 512 bytes.
       5: indicate the rxfifo threshold is 768 bytes.
       6: indicate the rxfifo threshold is 1024 bytes.   
       7: indicate that we use store and forward
      
10) DMA_length
   DMA_length[] is used for controlling the DMA length.
   Value:
       0: 8 DWORDs
       1: 16 DWORDs (Deafult)
       2: 32 DWORDs
       3: 64 DWORDs
       4: 128 DWORDs
       5: 256 DWORDs
       6: SF(flush till emply)
       7: SF(flush till emply)

小弟 实在是看不懂了 请大家帮个忙哈

我的网卡光盘自带的linux驱动 就是不知道怎么装 我用的是redhat9.03 内核2.4-8
intel pentium4 2.0  
主板ASUS  P4PE2-X(芯片组 intel 82845G/GL/GE Brookdale(B1-SEP)--集成网卡
内存 现代 DDR333(256M+512M)
显卡 NVIDIA GeForce2 MX/MX 400
网卡 D-Link DFE-530TX PCI Fast Ethernet Adapte...
硬盘  希捷80G
 楼主| 发表于 2007-4-13 21:54:17 | 显示全部楼层
自己顶下~
恳求了~~
回复 支持 反对

使用道具 举报

发表于 2007-4-13 22:44:12 | 显示全部楼层
将rhinefet.o章则拷贝到/lib/modules/...version/kernel/driver/net  
重启动
insmod rhinefet.o
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-14 09:14:24 | 显示全部楼层
是不是 将 rhinefet.c编译成rhinefet.o?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-14 09:53:37 | 显示全部楼层
我的 那个压缩包 揭开后 成了一个dlkfet-4.16名字的文件夹
cd dlkfet-4.16后
我make
显示 Linux kernel source not found. Stop!
各位老大帮个忙啊

这是不能编译 还是咋回挥啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-14 13:28:05 | 显示全部楼层
还没人啊 我哭
回复 支持 反对

使用道具 举报

发表于 2007-4-14 15:58:35 | 显示全部楼层
将你的linux 源文件夹链接到 /usr/src/linux~~
回复 支持 反对

使用道具 举报

发表于 2007-4-14 19:36:08 | 显示全部楼层
没事帮你翻译了点:翻译的不好别怪我.......(偶是新手)
(安装部分)说明:
以下是驱动程序在LINUX上的安装说明.你必须编译源代码生成rhinefet.o,然后使用命令将insmod假如模块里面.
子目录的内容:
linux.txt 这个文件.
rhinefet.h linux 核心驱动头文件
rhinefet.c linux 核心驱动源代码
Make文件生成目标文件
rhine_vmns.c The vmns 驱动支持源文件
rhine_vmns.h The vmns 驱动支持头文件
rhine_cfg.h The vmns 驱动支持头文件
vmns_drv.h The vmns 驱动支持头文件
内核支持:
这个内核支持2.2.X到2.4.X
安装说明:
在UNIX下面输入如下命令,记住,UNIX是对大小写敏感的.
1)创建一个临时文件夹:
mkdir /temp
2)进入文件夹
cd /temp
3)复制驱动程序的压缩文件到/temp
4)解压缩驱动文件
tar xzvf dlkfet-4.16.tar.gz
cd dlkfet-4.16
5)编译文件会生成rhinefet.o,复制此文件到正确的安装路径(不同内核版本安装路径会有不同.在内核是2.4.X中路径为/lib/modules/KERNEL_VERSION/kernel/drivers/net/,在2.2X中路径为is /lib/modules/KERNEL_VERSION/net/.路径中的KERNEL_VERSION指的是你发行版的内核版本.假如你不知道你的内核版本可以使用"uname -r"这个命令查看.)然后使用make install.
6)检查配置文件(/etc/modules.conf or /etc/conf.modules取决于你的系统版本)装载内核模块.确定包含有下面的配置文件.
alias eth# rhinefet
7)重新启动
shutdown -r now
8)安装驱动模块(假如驱动模块放的地方不对会有错误的显示信息,说不能发现驱动)
insmod rhinefet
9)使用ifconifg命令设置IP
ifconfig eth# <IP>
卸载:
使用下面的命令卸载驱动.
make uninstall
注意:
1)确定连接文件/usr/src/linux (or /usr/src/linux-2.4)是连接在正确的内核目录.确定内核头文件在/usr/src/linux/include directory (or /usr/src/linux-2.4/include)里面.编译需要头文件.
2)假如你在SUSE里面使用insmod or modprobe安装不了,和出现错误信息.请使用"uname -r"确认是不是和/usr/src/linux/include/linux/version.h里面的是一致的.假如不一致,请修改UTS_RELEASE  in /usr/src/linux/include/linux/version.h
3)确定内核能支持网络,快速以太网模块支持.否则你必须重建你的内核.
1. 去 /usr/src/linux (or /usr/src/linux-2.4) directory:
cd /usr/src/linux
2: 使用 'make menuconfig' or 'make config'在文本模式, or 'make
xconfig' 图形界面.
3:使用操作清单
4:推出重建内核
make dep;make clean;make bzImage
The file 'bzImage' will be at /usr/src/linux/arch/i386/boot/bzImage
5:修改/etc/lilo.conf.这个文件指定内核image在哪
6:启动 lilo
7:重起选择你正确的内核启动系统
4)你可以使用工具来设置你的发行版LINUX网络参数.这些参数会在启动的时候使用.下面示范怎么使用linuxconf设置网络参数.
1.启动 linuxconf
2:输入以下信息/Networking/Client tasks/Basic host information/
IP address: xxx.xxx.xxx.xxx
Netmask: 255.255.255.xxx
Net device: eth0
Kernel module: rhinefet
5)假如不能启动网络卡
假如你能用insmod命令安装驱动,却不能启动网卡.请检查驱动是否在正确的目录(eg: /lib/modules/2.2.XXX/net/), 然后检查/lib/modules/2.2.XXX/modules.dep文件是否有下面行:
/lib/modules/2.2.XXX/net/rhinefet.o:

你可以使用depmod命令查入上面行,也可以手工写入.当然,你必须查阅你的LINUX发行版的安装向导.学会在启动的时候开启网络接口.
6)假如你不能编译驱动,分析错误信息.确定源代码文件格式正确.转换源代码文件格式从DOS到UNIX.(注意下面的Solution 1 and 2)
确定软盘里的不是dlkfet.tar 文件,一定是文本文件.dlkfet.tar 不是文本文件,所以不能转换.

解决1:
假如你使用mcopy复制软件的文件到LINUX,你可以使用:
mcopy -t a:\* .来转换你的格式.
解决2:
假如你使用mount命令在LINUX上挂载软盘,你可以使用:
mount -t vfat -o conv=t /dev/fd0 /mnt/floppy.然后你可以从/mnt/floppy里面复制正确文件了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-15 02:19:57 | 显示全部楼层
谢谢 ~~ 谢谢大家  非常感谢

5752836 你翻译的太详细了

我哭 好感动~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-15 02:25:36 | 显示全部楼层
将你的linux 源文件夹链接到 /usr/src/linux~~ 能说的详细点吗

linux源文件夹是什么?

怎么链接啊?

谢谢 不好意思 我菜鸟
回复 支持 反对

使用道具 举报

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

本版积分规则

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