安装screen环境
百度安装screen的包
安装usb驱动
百度很多
查找tty.usbserial*串口
cd /dev/
ls -l tty.*
登录设备
screen /dev/tty.usbserial-14410 115200
设备、PC统一环境
设备通过网线插在路由器上,电脑连接该路由器wifi,确保在同一网络下
修改网口配置文件
vi /etc/network/interfaces
文件改为下面内容后重启:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
SSH登录设备
ssh root@192.168.1.121
keyword:root
配置4G
插入4G卡后, 执行命令会出现wwan0并且有ip
ifconfig wwan0 up
nohup /usr/bin/quectelCM 2>&1 &
交叉编译工具下载
下载地址
交叉编译工具需要在linux环境下使用
解压到/usr/local/文件下,设置配置,profile文件中增加
export PATH=$PATH:/usr/local/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/
配置文件打开&生效
vim ~/.profile
source ~/.profile
vim /etc/profile
source /etc/profile
项目修改编译工具
SCP可执行文件到设备
scp -r /your/file/path root@10.8.112.112:/target/file/