Openwrt development peripheral preparation: (4) Install stty tools

Foreword

After the other preparations are complete, you can install the required tools.

operating

In order to ensure that your device can be connected to the Internet , the
simple test method is to ping Baidu. If you can ping it, there is no problem.
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

Update the library:
opkg update
tip: openwrt has a built-in package management tool: opkg, which is equivalent to Ubuntu's apt.
Then download the tool:
opkg install coreutils
opkg install coreutils-stty
print as follows if the download and installation are normal.

Lost dot printing

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:~#

Conclusion

At this point, the peripheral preparation work is over, and the next serial port debugging and wifi release function test can be carried out.

Published 19 original articles · Liked5 · Visit 1283

Guess you like

Origin blog.csdn.net/ex_xyz/article/details/105064485