【米尔瑞萨RZ/G2L开发板-试用体验】WIFI测试
小天线的走起https://file1.elecfans.com/web2/M00/88/89/wKgaomRrTgCASFJ0AAZIzQ4NkvA489.jpgSTA模式手动连接WIFI热点[*]确保wlan0网络设备处于激活状态
root@myir-yg2lx:~# ifconfig wlan0
wlan0: flags=4098<BROADCAST,MULTICAST>mtu 1500metric 1
ether 68:4e:05:b3:ff:f2txqueuelen 1000(Ethernet)
RX packets 0bytes 0 (0.0 B)
RX errors 0dropped 0overruns 0frame 0
TX packets 0bytes 0 (0.0 B)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
[*]扫描附近WIFI热点
https://file1.elecfans.com/web2/M00/88/89/wKgaomRrTtGAWwWkAAEe5SqL7KY292.png
[*]wpa_passphrase设置wifi名字和密码
https://file1.elecfans.com/web2/M00/88/89/wKgaomRrT4eAKgJ1AAB7FeLpcrw378.png
[*]关掉 并初始化wpa_supplicant 进程
https://file1.elecfans.com/web2/M00/88/8A/wKgZomRrUEiAJ8tlAABjtrf9y_Y714.png
妥妥的三种上网方式都已经成功
https://file1.elecfans.com/web2/M00/88/8A/wKgZomRrUPqABbDVAAL_bilk4os199.png
使能开机自动连wlanroot@myir-yg2lx:~# systemctl enable wpa_supplicant@wlan0.service
Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant@wlan0.service → /lib/systemd/system/wpa_supplicant@.service.
开机wifi自动获取到IProot@myir-yg2lx:~# vi /etc/systemd/network/11-wlan0.network
root@myir-yg2lx:~# cat /etc/systemd/network/11-wlan0.network
Name=wlan0
DHCP=yes
RouteMetric=20
页:
[1]