In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "OpenWRt how to close the serial console", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "OpenWRt how to close the serial console"!
Since the mt7620n has only one UART lite interface, it is used in the native OpenWRt as kernel printing and tty console. In many cases, you need to use serial port to communicate with external chips, then you need to release serial port from OpenWRt. There are actually only two steps to this task: (Let's assume that $(TOPDIR) is the compiled directory for OpenWRt)
Turn off the serial console
The requested URL/target/linux/ramips/base-files/etc/inittab/was not found on this server.
::askconsole:/bin/ash --login$ vi $(TOPDIR)/target/linux/ramips/base-files/etc/inittab::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown#::askconsole:/bin/ash --login
Turn off kernel printing
Add the following two sentences to the $(TOPDIR)/package/base-files/files/etc/config/system file
option 'conloglevel' '1'option 'kconloglevel' '1'$ vi $(TOPDIR)/package/base-files/files/etc/config/systemconfig system option 'conloglevel' '1' option 'kconloglevel' '1' option hostname OpenWrt option timezone UTCconfig timeserver ntp list server 0.openwrt.pool.ntp.org list server 1.openwrt.pool.ntp.org list server 2.openwrt.pool.ntp.org list server 3.openwrt.pool.ntp.org option enable_server 0
Through the above two steps, you can close all system serial port interactions in OpenWRt, except for uboot print information and Kernel early print information more than ten seconds before the system is started (for residual print information in this part, it is recommended to make redundancy when developing the lower computer).
The above method is to modify the OpenWRt source code, compile the new firmware, burn the new firmware into the WRTnode to release the serial port.
Due to the writability of OpenWRt file system, you can also directly modify the/etc/inittab and/etc/config/system files in the existing firmware of WRTnode, and release the serial port after restarting.
At this point, I believe everyone has a deeper understanding of "OpenWRt how to close the serial console," may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.