LinuxSir.cn,穿越时空的Linuxsir!

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

MYSON EP-320X-S 100M/10M 网卡如何驱动?

[复制链接]
发表于 2003-3-27 09:50:53 | 显示全部楼层 |阅读模式
请问出现了下述情况,是否可以认为系统不能识别网卡,
也就是说需装驱动程序?
我用的是REDHAT8.0,几家组成一个局域网,
HUB做服务器,ADSL非播号上网。用的是10M到100M自适应网卡。
许多朋友说RH8.0可以自动识别这种网卡,
我便直接Main Menu => System Tools => Internet Configuration Wizard.
在ETHERNET CONNECTION中
设置IP地址,网关和子网掩码。I/O,IRQ没有设置,
具体参数已在WINDOWS下检验过,可以上网。
但无法ACTIVE。
在GNOME下,MAIN MENU BUTTON/SYSTEM TOOLS/HARDWARE BROWER中
没有相应的网卡项目。
一位朋友说[root@localhost root]# ifconfig之后应出现:
eth0 Link encap:Ethernet HWaddr 00:80:C8:43:BC:79
inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:148 errors:0 dropped:0 overruns:0 frame:0
TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10065 (9.8 Kb) TX bytes:15140 (14.7 Kb)
Interrupt:9 Base address:0x300

lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:98 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9312 (9.0 Kb) TX bytes:9312 (9.0 Kb)
但我在[root@localhost root]# ifconfig之后只出现:
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4682 (4.5 Kb) TX bytes:4682 (4.5 Kb)
安装时,选择了最大化安装,启动时BRING UP INTERFACE ETHO一项为FAILED,
原来此项为OK,最近刚出现了这种变化。
介于我的LINUX历史只有三天,
许多操作不敢冒然进行。
望指教。
谢谢。
发表于 2003-3-27 12:05:06 | 显示全部楼层
兄弟这种网卡linux是基本自认的,从查询的显示是系统还未找到你的网卡,建议自己添加再配置,不行就编译内核的把相关模块编译进去。
 楼主| 发表于 2003-3-27 13:12:30 | 显示全部楼层
"建议自己添加再配置"
需要添加什么?
怎么再配置?
买网卡时带的软盘中LINUX文件夹下共有六个文件:
kern_compat.h,Makefile,pci-scan.c,pci-scan.h,RTK8189C.c,Readme.txt。
这是驱动程序的README文件
RADTEK RTK8189C Based Fast Ethernet Card
Linux 2.4.X Driver Installation Guide
Installation Procedure
1. Make network adapter driver modules
        touch *
        make clean
        make
2. Insert network adapter driver modules
        insmod        pciscan.o
        insmod        RTK8189C.o
5. Bind your card to an IP address
        ifconfig eth0 {IPADDR} netmask {NETMASK}
6. Now, you should be able to ping local network.
*Every time you reboot the system, you must execute step 4 and step 5
  again to bind your card.
发现缺少3、4步。
是否需要把软盘中的六个文件复制到LINUX分区中的某个特定的目录中?
如果是的话,需要复制到哪个目录?
 楼主| 发表于 2003-3-28 18:12:35 | 显示全部楼层
也许dsj看错了。
网卡蕊片是:RADTEK RTK8189C,而非REALTEK 瑞昱的RTL系列。
我的这种网卡LINUX好象也无法自动识别,
我安装时,便没有出现有关网卡配置方面的信息。
我这几天一直在找它的驱动程序,或README文件,
发现甚至连WINDOWS下的都找不到!
 楼主| 发表于 2003-3-30 19:29:41 | 显示全部楼层

make clean and make

这是网卡的README文件:
RADTEK RTK8189C Based Fast Ethernet Card
Linux 2.4.X Driver Installation Guide
Installation Procedure
1. Make network adapter driver modules
touch *
make clean
make
但当我[root@localhost tmp] make clean时,
make:***No rule to make 'clean'.Stop.
当我[root@localhost tmp] make时,
make:***No targets specified and no makefile found. Stop.
我已把驱动程序中的六个文件:
kern_compat.h,Makefile,pci-scan.c,pci-scan.h,RTK8189C.c,Readme.txt。
使用右键单击的方式全部复制到了TMP文件夹.
这是怎么回事?
谢谢.
 楼主| 发表于 2003-3-31 11:36:08 | 显示全部楼层

怎样编译生成网卡的驱动模块?

怎样编译生成网卡的驱动模块?
买网卡时带的软盘中LINUX文件夹下共有六个文件:
kern_compat.h,Makefile,pci-scan.c,pci-scan.h,RTK8189C.c,Readme.txt。
RADTEK RTK8189C Based Fast Ethernet Card
Linux 2.4.X Driver Installation Guide
这是帮助文件:
Installation Procedure
1. Make network adapter driver modules
touch *
make clean
make
*Under some distribution, such as SuSe 7.2 and BluePoint 2.0, there is no version.h.
You have to run "make config" or "make menuconfig" at /usr/src/linux to create it.
**If you are using Mandrake 8.0 and you have problems when insmod the dirver, please
remove "-DMODVERSIONS" option from makefile.
***On SMP system, the driver may NOT work well. The bug will be fixed in the future.
***On SMP system, the driver may NOT work well. The bug will be fixed in the future.
2. Insert network adapter driver modules
insmod pciscan.o
insmod RTK8189C.o
我的操作:
#gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall
-Wstrict-prototypes -O6 -c pciscan.o时:
出错.应该怎么办?
谢谢.
 楼主| 发表于 2003-4-1 11:09:41 | 显示全部楼层
按帮助文件上所说,
make命令是用来编译生成insmod pciscan.o
insmod RTK8189C.o的,
但是我在执行make时报错,
发表于 2003-4-2 10:19:27 | 显示全部楼层
兄弟把网卡的芯片组说一下。多谢
 楼主| 发表于 2003-4-2 15:43:44 | 显示全部楼层
RADTEK RTK8189C
台湾一家公司的产品,
好象是PRO-LINK.
应该说谢谢的是我.
报错的第二、三部分,超过了100K,
不能在这里发了,
我发在了
http://www.linuxfans.org/nuke/mo ... ewtopic&t=16342
发表于 2003-4-3 18:01:14 | 显示全部楼层
在安装kernel-source的包。否则 不能编译。
要把这个驱动包复制到/usr/src目录,然后再来操作命令。如果/usr/src目录中没有linux这个目录,我们还要做一个链接。
ln -s /usr/src/linux-2.XXXX /usr/src/linux
其中XXX是具体的内核号,到/usr/src目录看一下就明白了。

然后就是解压包,来make,把生成来的包复制到

/lib/modules/你的内核版本/kernel/drivers/net/这个目录下
然后
insmod -f /lib/modules/你的内核版本/kernel/drivers/net/pciscan.o

insmod -f /lib/modules/你的内核版本/kernel/drivers/net/RTK8189C.o

试一下吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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