发布v5.2勘误:tslib, wifi

This commit is contained in:
weidongshan
2024-05-24 13:19:19 +08:00
parent caf198f4c0
commit 9206032291
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# 1. 禁止系统自动启动wpa_supplicant,
# 否则后面执行"iw wlan0 link"时会提示"command failed: No such file or directory"
mv /etc/init.d/S45network-manager /root
reboot
# 2. 启动WIFI网卡
ifconfig wlan0 up
# 3. 查找SSID
iw dev wlan0 scan | grep SSID
# 4. 设置WIFI SSID和密码
# ssid_name 改为你的WIFI SSID
# your_password 改为你的WIFI密码
wpa_passphrase ssid_name your_password >> /etc/wpa_supplicant.conf
# 5. 连接WIFI
wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
等待出现: wlan0: link becomes ready
# 6. 查看连接状态
iw wlan0 link
# 7. 动态获取IP
udhcpc -i wlan0
# 8. 测试
ping news.qq.com
# 成功后以后再次启动系统后只需要执行第5、第7条命令即可连接WIFI

View File

@@ -0,0 +1,39 @@
# 1. 对于IMX6ULL配置工具链
export ARCH=arm
export CROSS_COMPILE=arm-buildroot-linux-gnueabihf-
export PATH=$PATH:/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin
# 2. 交叉编译tslib
tar xJf tslib-1.21.tar.xz
cd tslib-1.21
./configure --host=arm-buildroot-linux-gnueabihf --prefix=/
make
make install DESTDIR=$PWD/tmp
# 3. 复制头文件、库文件到工具链里面
cd tmp/
cp include/* /home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/7.5.0/include
cp -d lib/*so* /home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/7.5.0/../../../../arm-buildroot-linux-gnueabihf/lib
# 4. 把库文件放到单板上
# 在开发板上使用NFS挂载Ubuntu的目录
# 再把前面编译出来的tslib-1.21/tmp/部分文件复制到板子上,示例命令如下:
cp /mnt/tslib-1.21/tmp/lib/ts -rfd /lib
cp /mnt/tslib-1.21/tmp/lib/*so* -d /lib
cp /mnt/tslib-1.21/tmp/bin/* /bin
cp /mnt/tslib-1.21/tmp/etc/ts.conf -d /etc
# 5. 关闭GUI
# 对于IMX6ULL首先需要关闭默认的qt gui程序
# 才可以执行ts_test_mt测试命令关闭qt命令如下所示
mv /etc/init.d/*hmi* /root
mv /etc/init.d/*lvgl* /root
reboot
# 6. 运行程序
# 在单板上执行测试程序:
export TSLIB_PLUGINDIR=/lib/ts
ts_test_mt