Show pagesourceOld revisionsBacklinksBack to top × Table of Contents Terminate UART Console w/o Kernel Rebuild With Kernel Rebuild Terminate UART Console Related Documentation: Serial Console Cannot Disable Serial Console on AR71xx Debugging Techniques Monitoring Session - Using Basic Linux Utility Programs Forum Discussion: Disable UART Console (without recompiling the patched firmware) w/o Kernel Rebuild If needing to utilize the terminal for RAW data/Modem data, reconfigure /dev/tty via the coreutils-stty module. Add kernel.printk = 0 4 1 7 to /etc/sysctl.d/: echo "kernel.printk = 0 4 1 7" > /etc/sysctl.d/10-printk.conf Edit /etc/inittab: Comment out lines starting with ttyS0:*, ttyATH0:* and ::askconsole:* sed -i -r -e "s/^((ttyS0|ttyATH0|::askconsole):.*)/#\0/" /etc/inittab Reboot With Kernel Rebuild Modify Kernel config in <buildroot>/target/linux/ar71xx/config-x.xx: (x.xx = kernel version) Terminates Kernel console output early: Add CONFIG_MESSAGE_LOGLEVEL_DEFAULT=0 Terminates Kernel console output later in boot process: Add loglevel=0 to CONFIG_CMDLINE=“rootfstype=squashfs,jffs2 noinitrd” sed -i -r -e 's/(CONFIG_CMDLINE=".*)(")/\1 loglevel=0\2/' target/linux/ar71xx/config-x.xx Recompile Kernel: make target/linux/{clean,prepare} V=s QUILT=1 && make V=s Flash recompiled image This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.OKMore information about cookies Last modified: 2020/07/23 06:56by mtdcr