在MagicLinux1.2正式版下安装3com网卡的经过
MagicLinux1.2正式版光盘安装。系统安装后不能识别3com的网卡。按下面的步骤做一遍:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[这段引自http://www.linuxquestions.org/hcl/showproduct.php?product=516&sort=8&cat=all&page=1 作者fibbi]
Kernel
(uname -r):2.6.4
Distribution:Slackware
Excelent card, but you'll most likely have trouble that 3com/Asus provides on their respective websites. I've tested the drivers on multiple computers (with 2.4.xx and 2.6.x), and they always die with a compile error.
Here's the workaround:
Syskonnect makes an excelent driver (sk98lin) which works flawlessly with this card. So flawlessly, in fact, that the 3com/asus drivers seem to be a derivative of this driver, as most of the .c and .o files in the driver begin with sk. But thats beyond the point. Here are the steps:
1-If you're using the 2.4.XX kernel, i'd recommend updating, but you can obtain a source patch from syskonnect to add the driver to your source tree. 2.6 has it built in.
2-go to your source tree (/usr/src/linux), and type "make menuconfig".
If you don't have networking support or something like that, then you'll have to enable that and recompile the whole kernel. Otherwise, though, you can just make this one as a module. Go to device drivers -> networking support -> Ethernet (1000 mbit) -> Marvell Yukon Chipset / SysKonnect SK-98xx Support (modularize it).
3-exit and save your configuration
4-type "make modules"
5-"type "make modules_install"
6-type "modprobe sk98lin"
7-Use the net!
Any questions, email me. (fibbiATopentechsupportDOTnet)
-fibbi
------------------------------
ctrl a, ctrl c, submit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
然后在/etc/sysconfig/networking/下添加文件ifcfg-eth0,文件内容如下:
------------------------------------------------
DEVICE=eth0
IPADDR=162.105.245.206
NETMASK=255.255.255.0
ONBOOT=yes
(上面这几条是自己写的,然后到图形界面配置网卡,把网关和DNS服务器填上后,系统又自动向ifcfg-eth0添加了下面这几条:)
BOOTPROTO=none
NAME="Ethernet Network Device"
BROADCAST=162.105.245.255
NETWORK=162.105.245.0
PEERDNS=no
------------------------------------------------
还要用命令"ln -s /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/networking/ifcfg-eth0"在/etc/sysconfig/network-scripts/下给它做个软链接。
到图形界面配置网卡(最初ifcfg-eth0文件不存在时根本就看不到可配置的网卡),填写网关和DNS服务器地址,enable一下eth0,就可以用了。
问题:
实际上那个SK-98xx模块已经默认选择了(modularize)。所以目前还不知道这样做是否必须("make modules"要很久的)──是不是直接添加ifcfg-eth0文件及其软链接就可以了呢?
页:
[1]