Terminate UART Console

If needing to utilize the terminal for RAW data/Modem data, reconfigure /dev/tty via the coreutils-stty module.

  1. Add kernel.printk = 0 4 1 7 to /etc/sysctl.d/:
     echo "kernel.printk = 0 4 1 7" > /etc/sysctl.d/10-printk.conf
  2. Edit /etc/inittab:
    1. Comment out lines starting with ttyS0:*, ttyATH0:* and ::askconsole:*
      sed -i -r -e "s/^((ttyS0|ttyATH0|::askconsole):.*)/#\0/" /etc/inittab
  3. Reboot
  1. Modify Kernel config in <buildroot>/target/linux/ar71xx/config-x.xx: (x.xx = kernel version)
    1. Terminates Kernel console output early:

    2. Terminates Kernel console output later in boot process:
      1. 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
  2. Recompile Kernel:
    make target/linux/{clean,prepare} V=s QUILT=1 && make V=s
  3. 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.More information about cookies
  • Last modified: 2020/07/23 10:56
  • by mtdcr