×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

我操作的步骤如下:...

1): typing "ifconfig" command, there was only Io, no eth0

2): I tried to copy dmfe.o to "/lib/module/2.x.x/kernel/drivers/net/", and configue IP address, Netmast and net device using graphical interface program: "Linuxconf", and then reboot my computer. the driver loading process failed.

3): I tried to manually load the dmfe.o by typing: "insmod dmfe.o", but I got an error message as below:
"dmfe: Interrupt wrong : IRQ=255
dmfe: Can't find DM910X board or resource error
dmfe.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters"

I tried to change the IRQ to 5, 10, 11, ... but I got the same result.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 急急急!!!如何在Red Hat Linux环境中安装NIC驱动程序?
    我安装完Linux后发现系统没有自动检测到我的网卡(DM9102),但我有一张驱动程序软盘For这张网卡。但我不知道该如何安装,请赐教!
    • 这个管用么?
      • 看不太懂!好像没有步骤在其中
        • 好久没摸linux了,是rpm -ivh 语句吧,还看你软盘里有什么?有readme么?
    • 盘上有什么文件?
      • 在Linux目录下:....
        dmfe.c
        dmfe.o
        dmfe_m70.o
        dmfe_r62.o
        readme.txt
        Makefile
        ....

        我按照Readme的步骤做:
        1):编译dmfe.c To dmfe.o
        2):insmod dmfe
        or
        insmod dmfe_m70
        该步骤出错:
        Using /lib/modules/2.2.16.22/net/dmfe.o
        dmfe: Interrupt wrong : IRQ=0
        /lib/modules/2.2.16-22/net/dmfe.o: init_module: Device or resource busy
        Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
        • 这不是说irq 0 忙么,有没有换irq的地方,比如卡上有无跳线可改此设置?
          • 我的网卡是新型号的,没有任何跳线
        • 有的网卡安装的时候需指定IO和IRQ, man一下insmod会有详细说明,具体IO和中断可以参照windows下的,如果你装的是双操作系统。
          • insmod 太复杂,看不懂
      • Readme.txt 文件内容如下...
        本文发表在 rolia.net 枫下论坛dmfe.c: Version 1.33 07/20/2000

        A DM9102/DM9102A/DM9102A+DM9801(HomeRun)/
        DM9102A+DM9802(LongRun) NIC fast ethernet driver for Linux.
        Copyright (C) 1997 Sten Wang

        This program is free software; you can redistribute it and/or
        modify it under the terms of the GNU General Public License
        as published by the Free Software Foundation; either version 2
        of the License, or (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
        GNU General Public License for more details.


        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 enable kernel module version function
        "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 enable the module version function
        "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 ;;
        make mod ;;Set version info on all module symbol
        make smp ;;symmetric multi-processing(SMP) support
        make smp_mod ;;SMP & Set version into on module

        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=100" ;;Force 1M HomeRun
        "insmod dmfe mode=200" ;;Force 1M LongRun

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

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

        "route add default eth0"


        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.


        D. Object files description:
        1. dmfe_r62.o: For Redhat 6.2, kernel version 2.2.14-5.0
        2. dmfer61c.o: For Redhat 6.1+CLE0.8, kernel 2.2.12-20
        3. dmfe_r60.o: For Redhat 6.0, Kernel 2.2.5-15
        4. dmfe_m70.o: For Mandrake 7.0, Kernel 2.2.14-15mdk
        5. dmfe_m61.o: For Mandrake 6.1, Kernel 2.2.13-7mdk
        6. dmfer60c.o: For RedHat6.0+CLE0.8, kernel 2.2.5-15CLE
        7. dmfe_k240t1.o: For Kernel240test1. Without SMP and
        did not set version on kernel module.
        8. dmfe_k240t4.o: For Kernel240test4. Without SMP and
        did not set version on kernel module.

        If you can make sure your kernel version, you can rename
        to dmfe.o and directly use it without re-compiling.


        Author: Sten Wang, 886-3-5798797-8517, E-mail: sten_wang@davicom.com.tw更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • I don't know why, try to download the newest driver from
      • or buy a new one. Now nic is not expensive, about 8CND
        • 8CND太贵了,我穷!
    • 你怎么知道没有检测到网卡?
      我前几天也装了red hat7.2, 软件自动监测到了网卡,也是固化到主办上的dm9102.

      $ifconfig
      如果除了lo之外还有一个eth0, 说明已经检测到网卡,并且正常运行。

      redhat load network module的同时,会给她起一个alias, 可能叫tulip,

      如果你用lsmod察看, 得到一个tulip的module就说明redhat已经识别了你的网卡。

      如果没有...
      先手工作一下

      0.check dmfe in /lib/module/2.x.x/kernel/drivers/net/dmfe.o
      1.insmod dmfe
      2.ifconfig eth0 up
      3.ifconfig eth0 192.168.0.1

      ping 192.168.0.1

      如果要自动,可以把上述命令加入到rc.local中(应该还有更好的地方,我不知道)
      • 我操作的步骤如下:...
        1): typing "ifconfig" command, there was only Io, no eth0

        2): I tried to copy dmfe.o to "/lib/module/2.x.x/kernel/drivers/net/", and configue IP address, Netmast and net device using graphical interface program: "Linuxconf", and then reboot my computer. the driver loading process failed.

        3): I tried to manually load the dmfe.o by typing: "insmod dmfe.o", but I got an error message as below:
        "dmfe: Interrupt wrong : IRQ=255
        dmfe: Can't find DM910X board or resource error
        dmfe.o: init_module: Device or resource busy
        Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters"

        I tried to change the IRQ to 5, 10, 11, ... but I got the same result.
        • my suggestion
          I used redhat 7.2, I can find the dmfe in system directory.

          1. build the new module file according to your redhat kernel.
          2.get the nic irq before your installation
    • 哪个版本? 8.0很容易
      • Mine is Red Hat Linux 7.0
        • 7.0就需要手工配置了,第一需要把你的网卡的PNP关掉, 7。0不认即插即用,然后试试用 setup 配置 (login as root and type setup in command line prompt )
        • 说错了,用linuxconfig不是setup , 另外linuxconfig 在图形模式下也可以用,而且更好用
          • 我是用linuxconf做的,设置完后启动计算机,显示网卡错误信息
            • 可能是网卡的 irq/mem 的设置跟 linux 设置不同,或者是跟其他器件冲突,强烈建议装 redhat 8.0 ,在redhat 网站上可以当,如果不方便,偶这里有,帮你烧一套
      • cd /proc cat pci if you could find a ethernet device there means your kernel had detected your NIC copy your .o to /lib/modules/2.2.16/net/ modconf , select your device from net modules it sould be OK