LinuxSir.cn,穿越时空的Linuxsir!

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

求助:主题词 RTL8101L 网卡

[复制链接]
发表于 2003-11-12 17:50:08 | 显示全部楼层 |阅读模式
环境:redhat7.3 kernel 2.4.18-3
下载驱动:
有3个文件 8139too.c, readme,makefile

安装方法:

我已经有这个文件: /usr/include/linux/version.h,执行下面步骤:

把驱动程序Copy到一个源代码目录
#cp 8139too.c /usr/src/linux-2.4.18-3/include/linux/modules/

编译驱动程序:
gcc -DMODULE -D__KERNEL__ -O6 -c 8139too.c
后显示
In file included from /usr/include/linux/timex.h:152
                 from /usr/include/linux/sched.h:14
                      /usr/include/linux/delay.h:12
/usr/include/asm/timex.h:10:21: asm/msr.h:No such file or derectory
In file include from driver.c:115:
/usr/include/linux/delay.h:13:23 asm/delay.h:No such file or derectory

怎么回事,DX发言,谢了
发表于 2003-11-12 19:17:42 | 显示全部楼层
看一下这个网卡的芯片是什么的?
#lspci
然后我们再来找解决办法

多谢
发表于 2003-11-12 19:40:01 | 显示全部楼层
2.6内核铁定没了
http://www.realtek.com.tw/downloads/downloads.aspx
它们老家也没有,你到底是8139还是8101,好像没这个吗
这里找到了自己弄吧,我没有这种型号的
http://www.realtek.com.tw/products/products1-2.aspx?modelid=11

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2003-11-13 10:42:40 | 显示全部楼层
网卡是主板自带的,芯片是RTL8101L
用lspci显示是RTL-8139/8139c(rev10)

我到/lib/modules/2.4.18-3/kernel/driver/net 下有8139too.o
但insmod 8139too后显示
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_link_ok_R2b6bad3e
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_ethtool_sset_Rb778a431
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_ethtool_gset_Re2386924
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_nway_restart_Rcb8649cd

???
发表于 2003-11-13 11:39:35 | 显示全部楼层
在/etc/modules.conf中加入一行
alias eth0 8138too
如果原来的文件中有关于eth0的行,就删除,加上上面的一行。

然后设置ip和DNS之类的。
 楼主| 发表于 2003-11-13 12:31:26 | 显示全部楼层
已经在/etc/modules.conf中加入了
alias eth0 8139too

然后我用setup命令中的network configuration TCP/IP
键入insmod 8139too后仍然显示
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_link_ok_R2b6bad3e
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_ethtool_sset_Rb778a431
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_ethtool_gset_Re2386924
/lib/modules/2.4.18-3/kernel/driver/net/8139too.o:unresolved symbol mii_nway_restart_Rcb8649cd



??是不是ip,dns 设置不对??
 楼主| 发表于 2003-11-13 17:00:49 | 显示全部楼层

搞定了

用命令modeprobe 8139too,而不用insmode 8139too加载模块
无错误信息显示
后ifconfig eth0 up
ping 127.0.0.1显示OK

在网上查有如下解释
“如果要以手工的方式加载模块, 建议最好使用 modprobe, 因为它可以解决模块之间的依赖性问题”

感谢北南南北,dato的指点,希望以后能再帮忙


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

本版积分规则

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