freebsd不认识我的网卡

来源:互联网 发布:淘宝账号贷款口子 编辑:程序博客网 时间:2024/04/29 02:40

我装了freebsd5.4,但是不能识别我的网卡Marvell 88E8053 Gigabit Ethernet Controller

我到官方网站下载了驱动mykbsd54x86-8.11.1.2.tgz

解压缩后有好几个文件,有个叫if_myk.ko

我在网上查了一下资料,用kldload ./if_myk.ko装上了,意思好像是装成模块了,这时已经可以使用了

myk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=2b<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU>
        inet6 fe80::213:d4ff:fe98:f4fb%myk0 prefixlen 64 scopeid 0x5
        inet 192.168.5.16 netmask 0xffffff00 broadcast 192.168.5.255
        ether 00:13:d4:98:f4:fb
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: active

但是重启之后又没了

到CU上提问

http://bbs.chinaunix.net/viewthread.php?tid=669826&extra=page%3D1

终于最后自己google到答案

http://www.syskonnect.com/syskonnect/support/driver/readme/gebsd/mykbsd53x86-8.10.4.3.htm

The driver software can be installed by typing:

pkg_add mykbsd53x86-8.10.4.3.tgz

This installs the driver binary into /boot/kernel and the manpage into
/usr/share/man/man4.
In order for the system to load the driver automatically on booting, the
following line must be added to the file /boot/loader.conf:

if_myk_load="YES"

In addition to this, the following line must be added to the /etc/rc.conf
file to configure the interface when the system is booted:

ifconfig_myk0="inet 192.168.100.1"

This assumes a local IP address of 192.168.100.1. You must replace this
IP address with your computer's IP address.
On reboot, the driver will be loaded and the interface configured
automatically.

It is also possible to load and unload the kernel module by hand. To load
the kernel module by hand, type:

kldload if_myk.ko

To unload the kernel module by hand, type:

kldunload if_myk.ko

原创粉丝点击