根据帖子
【MYS-6ULX-IOT试用体验】2、加载WIFI驱动并连接网络楼主
jackeyt( 楼主 )
周末看到这个帖子,由于平时比较忙,所以也一直没来得及测试!今天根据@
jackeyt测试了一下wifi,发现有点错误的地方!
大家可下载原提供的光盘文件,解压。
03-ToolsManufactoryToolMYS-6ULX-mfgtoolsMYS-6ULX-mfgtools 这个为工具目录
03-ToolsManufactoryToolMYS-6ULX-mfgtoolsMYS-6ULX-mfgtoolsProfilesLinuxOS Firmwarefiles
这个为系统文件替换目录
二:
配置wifi ssid/pass到conf
wpa_passphrase 123 12345678 >./wifi_pass.conf
期间,./在linux表示当前目录。..表示上层目录。不熟悉的同学可能会在这个地方造成误导!./可以再命令中不写或者用空代替
wpa_supplicant -iwlan0 -B -Dwext -c ./wifi_conf.conf
在驱动中,我的板子一直驱不起来,发现命令wifi—conf.conf在上条命令中命名为wifi_pass.conf
所以同学们应该在这里注意下,
- [12:25:18]
- [12:25:19]
- [12:25:20]root@mys6ull14x14:~#
- [12:25:20]root@mys6ull14x14:~#
- [12:26:03]root@mys6ull14x14:~# wpa_passphrase xx xx >./wifi_pass.conf
- [12:26:20]root@mys6ull14x14:~# cat wifi_pass.conf
- [12:26:20]network={
- [12:26:20] ssid="xx"
- [12:26:20] #psk="xx"
- [12:26:20] psk=xx
- [12:26:20]}
- [12:26:39]root@mys6ull14x14:~# wpa_supplicant -iwlan0 -B -Dwext -c ./wifi_pass.conf
- [12:26:40]Successfully initialized wpa_supplicant
- [12:26:40]rfkill: Cannot open RFKILL control device
- [12:26:40][ 260.872894] MAC Address = a0:2c:36:e7:22:a1
- [12:26:40][ 260.882851] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
- [12:26:40]ioctl[SIOCSIWAP]: Operation not permitted
- [12:26:42]root@mys6ull14x14:~# [ 262.350214] R8188EU: ERROR assoc success
- [12:26:42][ 262.354494] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
- [12:27:06]udhcpc -i wlan0
- [12:27:06]udhcpc (v1.24.1) started
- [12:27:06]Sending discover...
- [12:27:09]Sending select for 10.1.1.177...
- [12:27:09]Lease of 10.1.1.177 obtained, lease time 43200
- [12:27:09]/etc/udhcpc.d/50default: Adding DNS 10.1.1.1
- [12:27:22]root@mys6ull14x14:~# ifconfig
- [12:27:22]eth0 Link encap:Ethernet HWaddr a6:d3:17:85:c0:75
- [12:27:22] UP BROADCAST MULTICAST MTU:1500 Metric:1
- [12:27:22] RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- [12:27:22] TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- [12:27:22] collisions:0 txqueuelen:1000
- [12:27:22] RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- [12:27:22]
- [12:27:22]lo Link encap:Local Loopback
- [12:27:22] inet addr:127.0.0.1 Mask:255.0.0.0
- [12:27:22] inet6 addr: ::1/128 Scope:Host
- [12:27:22] UP LOOPBACK RUNNING MTU:65536 Metric:1
- [12:27:22] RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- [12:27:22] TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- [12:27:22] collisions:0 txqueuelen:0
- [12:27:22] RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- [12:27:22]
- [12:27:22]wlan0 Link encap:Ethernet HWaddr a0:2c:36:e7:22:a1
- [12:27:22] inet addr:10.1.1.177 Bcast:10.1.1.255 Mask:255.255.255.0
- [12:27:22] UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- [12:27:22] RX packets:9 errors:0 dropped:12 overruns:0 frame:0
- [12:27:22] TX packets:37 errors:0 dropped:2 overruns:0 carrier:0
- [12:27:22] collisions:0 txqueuelen:1000
- [12:27:22] RX bytes:2556 (2.4 KiB) TX bytes:8202 (8.0 KiB)
- [12:27:22]
- [12:27:49]root@mys6ull14x14:~# ping www.baidu.com
- [12:27:49]PING www.a.shifen.com (115.239.210.27) 56(84) bytes of data.
- [12:27:59]64 bytes from 115.239.210.27: icmp_seq=1 ttl=54 time=8.33 ms
- [12:28:05]64 bytes from 115.239.210.27: icmp_seq=3 ttl=54 time=12.4 ms
- [12:28:11]64 bytes from 115.239.210.27: icmp_seq=5 ttl=54 time=9.18 ms
- [12:28:16]64 bytes from 115.239.210.27: icmp_seq=6 ttl=54 time=9.32 ms
- [12:28:21]64 bytes from 115.239.210.27: icmp_seq=7 ttl=54 time=23.9 ms
- [12:28:26]64 bytes from 115.239.210.27: icmp_seq=8 ttl=54 time=7.83 ms
- [12:28:31]64 bytes from 115.239.210.27: icmp_seq=9 ttl=54 time=7.77 ms
- [12:28:36]64 bytes from 115.239.210.27: icmp_seq=10 ttl=54 time=7.67 ms
- [12:28:41]64 bytes from 115.239.210.27: icmp_seq=11 ttl=54 time=8.51 ms
- [12:28:46]64 bytes from 115.239.210.27: icmp_seq=12 ttl=54 time=19.8 ms
- [12:28:51]64 bytes from 115.239.210.27: icmp_seq=13 ttl=54 time=10.5 ms
- [12:28:57]64 bytes from 115.239.210.27: icmp_seq=15 ttl=54 time=7.78 ms
- [12:29:01]64 bytes from 115.239.210.27: icmp_seq=16 ttl=54 time=16.8 ms
- [12:29:01]
- [12:29:01]--- www.a.shifen.com ping statistics ---
- [12:29:01]16 packets transmitted, 13 received, 18% packet loss, time 68424ms
- [12:29:01]rtt min/avg/max/mdev = 7.673/11.538/23.900/5.098 ms
这是测试的日志报文,100M光纤电信网,ping包的速度还是很给力的!