WIFI联网配置
参考3-用户手册\2-1-评估板测试手册.pdf
接好天线

将4-软件资料\Demo\module-demos\usb_wifi_test的
bin下的所有文件
Driver下的8188eu.ko导入到开发板

insmod 8188eu.koifconfig eth0 down ifconfig eth1 down ifconfig usb0 down
复制代码kill掉wpa_supplicant进程
root@IMX8-Tronlong:~# ps -aux | grep wpa_supplicantroot 328 0.0 0.8 12888 8124 ? Ss 03:00 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant root 1727 0.0 0.0 10296 748 ttymxc1 S+ 03:29 0:00 grep --color=auto wpa_supplicant root@IMX8-Tronlong:~#
复制代码kill -9 328
查看网卡
root@IMX8-Tronlong:~# ifconfiglo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 968 bytes 63448 (63.4 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 968 bytes 63448 (63.4 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlxb46dc2a047af: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether b4:6d:c2:a0:47:af txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlxb66dc2a047af: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether b6:6d:c2:a0:47:af txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@IMX8-Tronlong:~#
复制代码网卡名字不是wlan0,按照如下修改
cp /lib/udev/rules.d/80-net-setup-link.rules /etc/udev/rules.d/vi /etc/udev/rules.d/80-net-setup-link.rules
复制代码ID_NET_NAME改成ID_NET_SLOT即可

重启
看到改过来了
root@IMX8-Tronlong:~# ifconfiglo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 56 bytes 3696 (3.6 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 56 bytes 3696 (3.6 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether b4:6d:c2:a0:47:af txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether b6:6d:c2:a0:47:af txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@IMX8-Tronlong:~#
复制代码ifconfig wlan0 upchmod +x ./wifi_setup.sh ./wifi_setup.sh -i qiqiqiqi -p cqmygysdss
复制代码看到连接成功
ping www.baidu.com确认联网成功。

查看ip
root@IMX8-Tronlong:~# ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 86:2e:15:d7:eb:1b txqueuelen 1000 (Ethernet) RX packets 54 bytes 4960 (4.9 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 94 bytes 16292 (16.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 66:18:50:66:2f:c5 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 688 bytes 50232 (50.2 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 688 bytes 50232 (50.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.31.90 netmask 255.255.255.0 broadcast 192.168.31.255 inet6 fe80::b66d:c2ff:fea0:47af prefixlen 64 scopeid 0x20<link> ether b4:6d:c2:a0:47:af txqueuelen 1000 (Ethernet) RX packets 190969 bytes 213956610 (213.9 MB) RX errors 0 dropped 4103 overruns 0 frame 0 TX packets 51883 bytes 4962112 (4.9 MB) TX errors 0 dropped 1 overruns 0 carrier 0 collisions 0
复制代码联网之后就可以使用,apt包管理了
sudo apt-get update


sudo apt-get upgrade

上下按键选择第二个keep the local... 回车
