先把usb-wifi-kits-for-mini2440-linux-2.6.32.2-20100728.tar.gz这个压缩包拷贝到mini2440的linux系统中,然后直接在根系统下面解压缩,使用以下命令:
#tar -xzvf usb-wifi-kits-for-mini2440-linux-2.6.32.2-20100728.tar.gz -C /
(参考:http://www.arm9home.net/read.php?tid-12194.html
使用USB无线网卡和USB摄像头打造mini2440无线监控系统
http://www.arm9home.net/read.php?tid-7237.html打造mini2440上的万能USB无线网卡工具包)
用人家做好的最新的内核mini2440-linux-image-20100925.zip包里的zImage_X35,插上USB无线网卡B-Link有以下信息:
usb 1-1: new full speed USB device using s3c2410-ohci and address 4
usb 1-1: New USB device found, idVendor=0bda, idProduct=8176
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: 802.11n WLAN Adapter
usb 1-1: Manufacturer: Realtek
usb 1-1: SerialNumber: 00e04c000001
usb 1-1: configuration #1 chosen from 1 choice
然而scan-wifi之后,ifconfig并不能查看到wlan0信息。可见该内核也不能支持该无线网卡。
用TP-LINK的TL-WN322G+试一下:
[root@FriendlyARM /]# usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=0cf3, idProduct=1006
usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
usb 1-1: Product: USB2.0 WLAN
usb 1-1: Manufacturer: ATHEROS
usb 1-1: SerialNumber: 12345
usb 1-1: configuration #1 chosen from 1 choice
[root@FriendlyARM /]# scan-wifi
63% CMCC
81% CMCC-AUTO(Security)
(Security)
54% CMCC-AUTO(Security)
(Security)
50% CMCC
51% hquic(Security)
57% CMCC-2013(Security)
51% OpenWrt(Security)
44% TP-LINK_1387D9
39% ChinaNet-QD7d(Security)
29% CMCC-AUTO(Security)
[root@FriendlyARM /]#start-wifi wpa2 hquic 12345678
cfg80211: Calling CRDA to update world regulatory domain
udhcpc (v1.13.3) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending select for 192.168.1.5...
Sending select for 192.168.1.5...
Lease of 192.168.1.5 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 218.85.157.99
adding dns 218.85.152.99
便是漫长的等待。。
如果可以的话,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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:160 (160.0 B)
TX bytes:160 (160.0 B)
wlan0
Link encap:Ethernet
HWaddr B0:48:7A:09:90:D8
inet addr:192.168.1.5
Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST
MTU:1500
Metric:1
RX packets:4238 errors:0 dropped:0 overruns:0 frame:0
TX packets:1479 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1732306 (1.6 MiB)
TX bytes:190157 (185.7 KiB)
ping 192.168.2.145和联了网的PC机通信,可以看出联上了的信息。
然而,在PC机输入telnet 192.168.1.5或ping 192.168.1.5都没效果。
在也用无线网卡联同一局域网的PC机(IP地址:192.168.1.6)cmd:输入telnet 192.168.1.5,可以远程控制开发板,但是速度很卡。效果不佳。
#ifconfig wlan0 down可以断开网络连接。
相关文章
- 记一次无线网卡实现wifi渗透
- 使用Kali无线渗透获取宿舍WiFi密码(WPA)
- WIN7使用技巧 让电脑变身WiFi热点,让手机、笔记本共享上网,如何开启无线网络,共享无线网络
- 设置VMWARE通过桥接方式使用主机无线网卡上网(zz)
- 买了一个USB无线网卡
- [硬件配置]记录Ubuntu 14.04 下安装无线网卡驱动解决无法连接WiFi的过程
- 使用USB-TTL调试ESP8266 WIFI模块
- Centos7VMware虚拟机最小化安装后,安装Tenda U12 USB无线网卡驱动
- Tiny6410移植MT7601U方案的USB无线网卡 (360随身WiFi2代3代)(通过测试,串口数据很少)
- 嵌入式Linux下移植MT7601无线WIFI(网卡)驱动