How to terminate console on serial port (UART)
来源:互联网 发布:工业设计常用建模软件 编辑:程序博客网 时间:2024/04/30 09:28
How to terminate console on serial port (UART)
Related documentation:
- port.serial
- https://dev.openwrt.org/ticket/11243
- http://web.cecs.pdx.edu/~jrb/ui/linux/driver4.txt
- http://www.networksecuritytoolkit.org/nst/docs/user/ch11s02.html
First method (NO need re-build the Kernel):
1. Edit sysctl.conf
file on your device:
- /etc/sysctl.conf
Add the new line at the begining of this file:
kernel.printk = 0 4 1 7
2. Edit inittab
file on your device:
- /etc/inittab
up to revision r28294
Find line in this file:ttyS0::askfirst:/bin/ash --loginttyATH0::askfirst:/bin/ash --loginEdit the line by following example:
#ttyS0::askfirst:/bin/ash --login#ttyATH0::askfirst:/bin/ash --login
since revision r36992
Find line in this file:::askconsole:/bin/ash --loginEdit the line by following example:
#::askconsole:/bin/ash --login
3. Reboot your device.
Note:If you need to use the terminal for RAW data/Modem data, then you need to reconfigure this terminal/dev/tty*
via coreutils-stty module.
Second method (need re-build the Kernel):
You can change the Kernel command line:
- target/linux/ar71xx/config-X.XX
where 'X.XX
' - the last version of Kernel build.
Find line in this file:
CONFIG_CMDLINE="rootfstype=squashfs,jffs2 noinitrd"
Add the parameter 'console=null
':
CONFIG_CMDLINE="rootfstype=squashfs,jffs2 noinitrd console=null"
Then you have to recompile the Kernel with 'make target/linux/{clean,prepare} V=s QUILT=1
' and then'make V=99
', after this, re-install new firmware on your device.
Forum discussion:
https://forum.openwrt.org/viewtopic.php?id=47723
- How to terminate console on serial port (UART)
- How to activate Serial Console on Debian Squeeze
- How-To set up a serial console on Debian
- How to use Serial Port in Windows
- TTL To UART RS232 COM Serial Port Adapter Cable
- How to connect USB Serial Console Cable to Linux
- How to change your USB Serial Port COM number?
- How to terminate call
- Virtual Serial Port on Ubuntu
- How to kill a process on a port on ubuntu
- Unity How to Serial
- How To Set Up A Serial Port Between Two Virtual Machines In VirtualBox
- How to use rar in console on linux.
- Enable Serial Console on CentOS/RHEL 7
- Unable to open serial port /dev/ttyUSB0
- Unable to open serial port /dev/ttyUSB0
- serial port VirtualBox on Linux host(tested on ubuntu )
- Serial Port
- 华为机试---整形数组合并
- Cxf发布restful传递到客户端部分汉字乱码的解决
- ImportError: No module named theano
- 接入微信JSAPI被扫码支付--JAVA
- sencha 为panel 注册点击事件
- How to terminate console on serial port (UART)
- 嵌入式驱动之阻塞操作、非阻塞操作
- HTML ,CSS关于表格,边框美化的问题
- 下载图片,下载文件
- c++--实参和形参
- Android Transition 和 Activity & Fragment Transition详解(二)--Android Transition框架介绍
- JAVa Web从入门到上机学习
- setfacl权限
- leetcode 36 Valid Sudoku C++