LinuxSir.cn,穿越时空的Linuxsir!

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

我是新手,请教redhat下网卡的问题

[复制链接]
发表于 2005-10-15 01:03:08 | 显示全部楼层 |阅读模式
新装了redhat as 3 update 5,网卡主办集成,
但是启动了检测不到网卡,用的主板芯片是ULi的ULi M1689,怎么解决阿
发表于 2005-10-15 08:44:59 | 显示全部楼层
得查看lspci -v  的输出 。

Linux 硬件管理的基础知识
http://fedora.linuxsir.cn/main/?q=node/89
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-15 12:57:31 | 显示全部楼层
谢谢,我找到驱动了,按他的步骤安装
Copy uli526x.c to /usr/src/linux-2.4/drivers/net, and modify the

following file in this directory. (Make a backup of them.)



1.Config.in

add the following lines to Config.in file.(refer to the Config.in file we provide to you)



dep_tristate '    ULi M526x controller support' CONFIG_M526X $CONFIG_PCI



2.Makefile

add the following lines to Makefile.(refer to the Makefile we provide to you)



obj-$(CONFIG_M526X) += uli526x.o

------------------------------------

Install as a kernel module

------------------------------------



  Step 1:

        Change directory to /usr/src/linux-2.4

        Use the command "make menuconfig" or "make xconfig", and make

        sure "ULi M526x controller support" is set as module.

       

        Example:       

        Select "Network device support-->Ethernet (10 or 100Mbit)-->

                ULi M526x controller support" as "m"



  Step 2:

        Select "Loadable module support", and unselect "Set version information

        on all module symbols"

       

        Before exit, save your configration.





  Step 3:

        make dep

        make modules

        make modules_install



  Step 4:

         Insert uli526x module into kernel

       

          "insmod uli526x"        ;;Auto Detection Mode (Suggest)

          "insmod uli526x mode=0" ;;Force 10M Half Duplex

          "insmod uli526x mode=1" ;;Force 100M Half Duplex

          "insmod uli526x mode=4" ;;Force 10M Full Duplex

          "insmod uli526x mode=5" ;;Force 100M Full Duplex       



  The screen will show the message:

  Using /lib/modules/2.4/kernel/drivers/net/uli526x.o

  It indicates the M5261 10/100M Ethernet driver has been inserted to

  your kernel.

但是到第四步 输入  insmod uli526x
时说 uli526x 模块名无效,怎么回事阿,
回复 支持 反对

使用道具 举报

发表于 2005-10-15 13:12:22 | 显示全部楼层
确认一下有没有uli526x.o
modprobe uli526x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-15 23:20:12 | 显示全部楼层
第三步完了后/lib/modules/linux2.4..../kernel....../net下并没有uli526x.o,但/lib/modules下多了个叫linux2.4..custom目录,里边相应的net目录下有uli526x.o和另外一个文件,不知道为什么,我就把那两个文件考到/lib/modules/linux2.4..../kernel....../net下了(不知道这么作行不行),再insmod uli526x.o 能加载了但还是有错误,驱动要求的版本是2.4.20-,
我的是2.4.21-32,就差一点,这会影响么。
回复 支持 反对

使用道具 举报

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

本版积分规则

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