We need to completely disable the U-Boot console output sicne /dev/ttyS0 will be used for a different purpose on our project (Android VIM3).
We have added the following lines to board/khadas/configs/kvim3.h: #define CONFIG_SILENT_CONSOLE #define CONFIG_DISABLE_CONSOLE #define CONFIG_SYS_DEVICE_NULLDEV
And on CONFIG_EXTRA_ENV_SETTINGS:
We have added the line "silent=1\0" \.
And removed console=ttyS0,115200 no_console_suspend earlycon=aml-uart,0xff803000 from initargs.
We managed to suppress the Linux console, but the U-Boot console output is still present.
We have also tried to add: #define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET #define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC
but it had no effect.
Can you assist us in completely disabling all output to /dev/ttyS0?
Thank you for your reply; however it does not resolve our problem.
NOTE: in any case soc boot loader which start uboot same have some output to serial
This is exactly the output we need to suppress.
We have both Khadas serial ports (/dev/ttyS0 and /dev/ttyS3) connected to external devices that malfunction if they receive that bootloader serial ouput.
@JorgeVila Maybe you can get rid of the log in uboot through the above method, but you can’t disable the printing of the first level loader, because this part of the source code is not open source.
So you should solve the problem from another angle.
You can make the external device turn off the power before entering the kernel to prevent it from working normally. Maybe the log printing in front of the kernel will not affect it.