作者slinbody (不败地球人)
看板FreeBSD
标题Re: [问题] 无线网卡 PCI介面安装
时间Sun Apr 3 19:04:49 2011
自问自答
我在kernel加入
device ral
device ralfw
device wlan
device wlan_amrr
device firmware
後重新compile
又在网路上找到其他说明
# ifconfig wlan0 create wlandev ral0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 0xffffff00 ssid btest channel 11
freebsd 8.0之後 要用一个虚拟的介面出来
(说明
http://forums.freebsd.org/showthread.php?t=8784)
这样就可以work了
开机的话,就修改rc.conf
rc.conf:
wlans_ral0="wlan0"
create_args_wlan0="wlanmode hostap mode 11g"
ifconfig_wlan0="inet 192.168.0.1 netmask 0xffffff00 ssid btest channel 11"
不过又衍生出一个问题
isc-dhcp-server会对wlan0提供服务,但是因为wlan0在ral0上
所以isc-dhcp-server刚启动会跳出关於ral0的warning message
但ral0上又不能设定IP address
不知道有什麽方法可以让isc-dhcp-server不跳出这个warning
※ 引述《slinbody (不败地球人)》之铭言:
: 我用无线网卡想装在freebsd 8.0 上
: 在官网上找支援的pci网卡
: http://www.freebsd.org/releases/8.1R/hardware.html#WLAN
: 选定用型号GN-WP01GS 这张
: 插上去 重新弄kernel 可以看到有这张卡
: ral0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
: ether 00:16:e6:3c:f9:53
: media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
: status: associated
: 当我要设定它的IP时
: #ifconfig ral0 10.77.77.254 netmask 255.255.255.0
: ifconfig: ioctl (SIOCAIFADDR): Invalid argument
: 後来我在/etc/rc.conf中加入
: ifconfig_ral0="inet 10.77.77.254 netmask 255.255.255.0"
: 开机都会跳出
: ral0: MAC/BBP RT2661B, RF RT2527
: ral0: [ITHREAD]
: ral0: rt2661_load_microcode: timeout waiting for MCU to initialize
: ral0: rt2661_init_locked: could not load 8051 microcode, error 5
: ral0: rt2661_load_microcode: timeout waiting for MCU to initialize
: ral0: rt2661_init_locked: could not load 8051 microcode, error 5
: ral0: need multicast update callback
: ral0: need multicast update callback
: ral0: rt2661_load_microcode: timeout waiting for MCU to initialize
: ral0: rt2661_init_locked: could not load 8051 microcode, error 5
: ral0: need multicast update callback
: 黄色的字在man ral中有提到
: The onboard 8051 microcontroller unit failed to initialize in time.
: 红色的字在man ral中
: An error occurred while attempting to upload the microcode to the onboard
: 8051 microcontroller unit.
: Google也找不到解法
: 不知道有没有人用过跟这张卡一样晶片(Ralink系列)
: 分享一下怎麽解决这些问题
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 112.105.91.245
※ 编辑: slinbody 来自: 112.105.91.245 (04/03 19:05)