How to terminate console on serial port (UART)
2016-06-02 16:14
447 查看
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. Editsysctl.conffile on your device:
/etc/sysctl.conf
Add the new line at the begining of this file:
kernel.printk = 0 4 1 7
2. Edit
inittabfile on your device:
/etc/inittab
up to revision
r28294
Find line in this file:
ttyS0::askfirst:/bin/ash --login ttyATH0::askfirst:/bin/ash --login
Edit 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 --login
Edit 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相关文章推荐
- OpenWrt 15.05 下安装Samba
- openwrt,wifi认证-nodogsplash
- openwrt mount usb Invalid argument
- openwrt x86下配置pppoe-server注意事项
- can't open '/etc/rc.common, openwrt 换行符导致无法自启动
- OpenWrt-uci命令系统
- vsftpd-2.3.4移植到8621开发板
- Openwrt笔记
- Openwrt从零开始(一)
- 如何在OpenWRT的非交换网卡/单口网卡(OpenWRT x86)下配置802.1Q VLAN
- openwrt dreambox 编译出错
- openwrt关于mac都一样的问题
- 如何编译OpenWrt
- 华为 HG255D 刷openwrt trunk 支持ipv6
- openwrt 进编译之前的准备
- 如何编译OpenWrt
- OPENWRT设置之命令行下简单配置有线和无线
- OPENWRT网络打印机TCP/IP共享设置教程 以703N为例
- openwrt firmware分区