QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 653|回复: 3

谁能救救我的实达网卡啊!!!

[复制链接]
发表于 2003-5-12 17:07:46 | 显示全部楼层 |阅读模式
我装了redhat8.0后,网卡一直不能被linux激活,不能在linux下面上网

我的网卡是实达—900的,网卡的芯片是DAVICOM—DM9102AF的
网卡附带的驱动程序,但是不会装   :-(  :-(  :-(  :-(
哪位高手能否帮助一下我,希望尽量详细一点,我linux刚刚开始学,很多都不懂的!
发表于 2003-5-12 17:11:42 | 显示全部楼层
看里面的readme呀,要不就把readme贴出来。
回复

使用道具 举报

 楼主| 发表于 2003-5-12 17:18:36 | 显示全部楼层
A. Compiler command:

     A-1: For normal single processor kernel
          "gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
            -Wstrict-prototypes -O6 -c dmfe.c"

     A-2: For single processor and set version info on all module symbol
          "gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet
            -Wall -Wstrict-prototypes -O6 -c dmfe.c"

     A-3: For multiple processors(SMP) and set ver. info. on all module symbol
          "gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux
           /net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c"

        Note: O of -O6 is a capital "o", not a "0".
            

  B. How to compile driver
  
     B-1: Login by supervisor
     B-2: Copy dmfe.c and Makefile into your HD. You can make a new directoty
          to put.
     B-3: Keep driver source file name as "dmfe.c" and makefile name as
          "Makefile"
     B-4: You can type the following command to compile driver. Please according
               to your system to pick one.
                     make org        ;;Without SMP & Set version info on module
                                ;;<For example> Redhat6.0
                     make mod        ;;Set version info on all module symbol
                                ;;<For example> Redhat6.1/6.2,
                                ;;                Mandrake6.1/7.0/7.1,
                                ;;                Caldera2.3
                     make smp        ;;symmetric multi-processing(SMP) support
                                ;;
                     make smp_mod        ;;SMP & Set version info on module
                                ;;
                make org24        ;;Compiled dm9xs.c
                make mod24        ;;Compiled dm9xs.c
                make smp24        ;;Compiled dm9xs.c
                make smp_mod24        ;;Compiled dm9xs.c
            
               Or you can type above compiler command to compile driver.
                    
             Note: Please check you must have the right kernel source on
                   "/usr/src/linux".


  C. The following steps teach you how to activate NIC:

     C-1: A simple and temporary method
     
        1. Used the upper compiler command to compile dmfe.c

        2. Insert dmfe module into kernel
           "insmod dmfe"        ;;Auto Detection Mode (Suggest)
           "insmod dmfe mode=0" ;;Force 10M Half Duplex
           "insmod dmfe mode=1" ;;Force 100M Half Duplex
           "insmod dmfe mode=4" ;;Force 10M Full Duplex
           "insmod dmfe mode=5" ;;Force 100M Full Duplex
           "insmod dmfe mode=0x10" ;;Force 1M HomePNA
           "insmod dmfe SF_mode=1" ;;VLAN Enable
           "insmod dmfe SF_mode=2" ;;Flow Control Enable
           "insmod dmfe SF_mode=4" ;;TX Pause Packet Enable

           NOTE:1. SF_mode can be a combination of 3 special mode.
                2. You can type "man insmod" to see more description.

        3. Config a dm9102 network interface
           "ifconfig eth0 172.22.3.18"
                          ^^^^^^^^^^^ Your IP address

           NOTE: You can type "man ifconfig" to see more description.

        4. Activate the IP routing table. For some distributions, it is not
           necessary. You can type "route" to check.

           "route add default netmask 255.255.255.0 eth0"

           NOTE: You can type "man route" to see more description.


        5. Well done. Your DM9102 adapter actived now.

        Note. This is a temporary method. After you reboot the system, you
              will lost the setting.


     C-2: For Mandrake/Redhat, You can use the following to Activate NIC
       
        1. login your system used the superuser
        2. (Mandrake7.0)
                   rename dmfe_m70.o to dmfe.o and copy dmfe.o into
                  /lib/modules/2.2.14-15mdk/net to overwrite the old dmfe.o.
           or(Mandrake6.1)
                   rename dmfe_m61.o to dmfe.o and copy dmfe.o into
                  /lib/modules/2.2.13-7mdk/net to overwrite the old dmfe.o.
           or(RedHat6.2)
                   rename dmfe_r62.o to dmfe.o and copy dmfe.o into
                  /lib/modules/2.2.14-5.0/net to overwrite the old dmfe.o.
              or(RedHat6.1)
                   rename dmfe_r61.o to dmfe.o and copy dmfe.o into
                  /lib/modules/2.2.12-20/net to overwrite the old dmfe.o.
           or(RedHat6.0)
                   rename dmfe_r60.o to dmfe.o and copy dmfe.o into
                  /lib/modules/2.2.5-15/net to overwrite the old dmfe.o.
   
        3. execute "linuxconf".
        4. Then select Config->Networking->Client tasks ->Basic host information
        5. Fill your IP address, netmask,
           net device = eth0
           kernel module = dmfe
        6. press <Accept> to confirm and exit this setting
        7. press <quit> exit the main menu
        8. Now it displays "Status of the system" menu. Select <Activate the
           changes> to active the new setting and exit.
        9. reboot your system and kernel will automatically load driver and
           active network.
        10. try to ping other host to test your NIC.


     C-3: For Caldera or others, You can use the following to Activate NIC
          permanently. Please try C-1 firstly. After your NIC works on C-1
          method, you do the following to active NIC permanently.
          
        1. copy dmfe.o to your kernel network module directory
           <eg>
                for Caldera 2.3:
                        cp dmfe.o /lib/modules/2.2.10/net

        2. put C-1 manual command into file "/etc/rc.d/rc.local" or
           "/etc/rc.d/rc.inet1".
           <eg>
                for Caldera 2.3:
                    add the following 3 line into rc.local
                        insmod /lib/modules/2.2.10/net/dmfe.o
                        ifconfig xxx.xxx.xxx.xxx netmask 255.255.255.0 eth0
                        route add default eth0

        3. reboot your system
回复

使用道具 举报

 楼主| 发表于 2003-5-12 17:21:52 | 显示全部楼层
上面就是readme的内容,我应该找着哪一个步骤做啊?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-20 01:13 , Processed in 0.037803 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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