openwrt 开发外围准备工作:(四)安装stty工具

前言

其他准备结束后就可以安装一下这个所需的工具了。

操作

在确保你的设备可以联网的情况下,
简单测试办法就是ping一下百度,如果能够ping通一般没有问题
ping baidu.com
root@OpenWrt:~# ping baidu.com
PING baidu.com (220.181.38.148): 56 data bytes
64 bytes from 220.181.38.148: seq=0 ttl=128 time=37.277 ms
64 bytes from 220.181.38.148: seq=1 ttl=128 time=37.388 ms
^Z[1]+ Stopped ping baidu.com

进行库的更新:
opkg update
tip: openwrt 有一个自带的软件包管理工具:opkg,等同于Ubuntu的apt。
然后进行下载工具:
opkg install coreutils
opkg install coreutils-stty
如下方打印如果下载和安装正常就可以用了。

丢点打印

root@OpenWrt:~# opkg install stty
Unknown package ‘stty’.
Collected errors:
opkg_install_cmd: Cannot install package stty.
root@OpenWrt:~# opkg install coreutils
Installing coreutils (8.31-1) to root…
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/coreutils_8.31-1_x86_64.ipk
Configuring coreutils.
root@OpenWrt:~# opkg install coreutils-stty
Installing coreutils-stty (8.31-1) to root…
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/coreutils-stty_8.31-1_x86_64.ipk
Configuring coreutils-stty.
root@OpenWrt:~# stty
speed 38400 baud; line = 0;
-brkint -imaxbel
root@OpenWrt:~#

结语

到此所以外围准备工作算是结束了,可以进行接下来的串口调试和wifi释放功能测试了。

发布了19 篇原创文章 · 获赞 5 · 访问量 1283

猜你喜欢

转载自blog.csdn.net/ex_xyz/article/details/105064485