设备条件,windows xp系统 mini2440 开发板 无线网卡
一:PC端正 进行的设置 右键网上邻居——属性;无线网络连接——属性;
设置IP地址和网关
在无线网络 配置里面点击 高级出现下面的对话框,按我的截图选择
PC端设置完毕。
二:下面对开发板进行设置。
我不太清楚开发板如何加载usb无线网卡,友善的usb-wifi-kits-for-mini2440-linux-2.6.32.2-20100728.tar.gz
这个软件 可以自动 加载USB无线网卡,大家可以在http://www.arm9home.net/论坛里下载。使用方法我就不多说了。
进入开发板的
下面按我的命令设置就可以 了
[root@FriendlyARM /]# scan-wifi
Compat-wireless backport release: compat-wireless-2011-01-06
Backport based on linux-next.git next-20110111
cfg80211: Calling CRDA to update world regulatory domain
kfifo: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
usbcore: registered new interface driver ath9k_hif_usb
usbcore: registered new interface driver rt73usb
Registered led device: rt2800usb-phy0::radio
Registered led device: rt2800usb-phy0::assoc
Registered led device: rt2800usb-phy0::quality
usbcore: registered new interface driver rt2800usb
usbcore: registered new interface driver zd1211rw
84% 0
87% CMCC
87% A
87% CMCC-EDU
53% TP-LINK_D0ABC0 (Security)
100% mini2440
41% 0
41% CMCC
39% A
41% CMCC-EDU
61% 0
61% CMCC
59% A
59% CMCC-EDU
14 Access Point Found
[root@FriendlyARM /]# ifconfig wlan0 down
[root@FriendlyARM /]# iwconfig wlan0 mode Ad-Hoc
[root@FriendlyARM /]# ifconfig wlan0 up
[root@FriendlyARM /]# iwconfig wlan0 essid "mini2440"
[root@FriendlyARM /]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"mini2440"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 02:1F:3C:00:06:EA
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
[root@FriendlyARM /]# ifconfig wlan0 192.168.0.230 netmask 255.255.255.0
[root@FriendlyARM /]# ifconfig eth0 down
[root@FriendlyARM /]# ifconfig
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:139 errors:0 dropped:0 overruns:0 frame:0
TX packets:139 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15208 (14.8 KiB) TX bytes:15208 (14.8 KiB)
wlan0 Link encap:Ethernet HWaddr 48:02:2A:43:38:61
inet addr:192.168.0.230 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7226 (7.0 KiB) TX bytes:124 (124.0 B)
[root@FriendlyARM /]# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
64 bytes from 192.168.0.10: seq=0 ttl=64 time=13.270 ms
64 bytes from 192.168.0.10: seq=1 ttl=64 time=8.273 ms
64 bytes from 192.168.0.10: seq=2 ttl=64 time=4.266 ms
64 bytes from 192.168.0.10: seq=3 ttl=64 time=4.276 ms
^C
--- 192.168.0.10 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 4.266/7.521/13.270 ms
[root@FriendlyARM /]#
再说一点,大家可以写一个脚本,如图
#!/bin/sh
# a programm for starting wifi ,made by sun
scan-wifi
ifconfig wlan0 down
iwconfig wlan0 mode Ad-Hoc
ifconfig wlan0 up
iwconfig wlan0 essid "mini2440"
iwconfig
ifconfig wlan0 192.168.0.230 netmask 255.255.255.0
ifconfig eth0 down
ifconfig
把它启动脚本命令放到/etc/init.d/rcS 文件最后一行就可以开机启动wifi网卡了。