Terminate UART Console
- Related Documentation:
- Forum Discussion:
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
toCONFIG_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