How to block serial console to accept inputs and prints from uboot and kernel

We followed below steps,

  1. Disabled from kernel configuration
    #CONFIG_SERIAL_MSM_CONSOLE is not set

  2. uboot-1.0/include/configs/ ipq40xx_cdp.h
    #add below macros to disable console from uboot
    #define CONFIG_DISABLE_CONSOLE
    #define CONFIG_SILENT_CONSOLE
    #define CONFIG_SYS_DEVICE_NULLDEV
    #define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC

    #removied below file macro to stop TFTP
    /*#define CONFIG_CMD_TFTPPUT */

  3. uboot-1.0/board/qcom/ipq40xx_cdp/ ipq40xx_cdp.c
    gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE);

After installing the image, we observed that all WiFi interfaces are down and the WiFi menu tab got disappeared.

Please suggest me, how can I block serial console?

1 Like

is it possible to disable completely from uboot and kernel?

can we use virtual console option to disable the console?

1 Like