使用atheros的SDK编译出来,AR9331平台的,默认情况下wifi没有起来,我想让其起来,执行一下命令:
makeVAP ap AP24G 0:RF:8:11NGHT20
~ # makeVAP ap AP24G 0:RF:8:11NGHT20
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br0 no wireless extensions.
Args: 1
asf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U5.508 (Atheros/multi-bss)
Boostrap clock 25MHz
ar9300RadioAttach: Need analog access recipe!!
Restoring Cal data from Flash
ath_get_caps[4735] rx chainmask mismatch actual 7 sc_chainmak 0
ath_get_caps[4710] tx chainmask mismatch actual 7 sc_chainmak 0
SC Callback Registration for wifi0
wifi0: Atheros 9380: mem=0xb8100000, irq=2
Creating ap for AP24G on
wlan_vap_create : enter. devhandle=0x80e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x80e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath0 created
Added ath0 mode master
Configuring RF . . .
DES SSID SET=AP24G
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
Invalid command : setVowExt
Invalid command : setKeySrchAlways
Invalid command : mcastenhance
Invalid command : acparams
Invalid command : acparams
Invalid command : set_vsp_enable
Interface doesn't accept private ioctl...
setPhyRestartWar (8BE0): Operation not permitted
Invalid command : setVowExtStats
Created ath0 mode ap for AP24G
这个时候执行ifconfig -a,已经看到加多了两个wifi接口:
~ # ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:02:03:04:05:06
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
br0 Link encap:Ethernet HWaddr 00:03:7F:FF:FF:FE
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6806 (6.6 KiB) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:03:7F:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:111 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12763 (12.4 KiB) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:03:7F:FF:FF:FE
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:Ethernet HWaddr 00:02:03:04:05:06
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:2 Memory:b8100000-b811ffff
但是想让其中的wifi接口up起来,执行 ifconfig wifi0 up,系统就会重启:
~ # ifconfig wifi0 up
U-Boot 1.1.4 (Jan 11 2013 - 23:16:00)
AP121 (ar9331) U-boot
DRAM: 16 MB
Top of RAM usable for U-Boot at: 81000000
Reserving 138k for U-Boot at: 80fdc000
Reserving 192k for malloc() at: 80fac000
Reserving 44 Bytes for Board Info at: 80fabfd4
Reserving 36 Bytes for Global Data at: 80fabfb0
Reserving 128k for boot params() at: 80f8bfb0
Stack Pointer at: 80f8bf98
Now running in RAM - U-Boot at: 80fdc000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot: 2
请问高手或者搞过这个的牛人 有没有遇到类似的问题? |