Why doesn't U-Boot disable the console output

user3085931 picture user3085931 · Mar 3, 2014 · Viewed 10.7k times · Source

I have this system which is accessed by a serial Debug Port. I want to disable all of the output, that was made during the U-Boot boot. Therefore there is the

setenv silent 1

parameter, which i put into the BOOTCMD string like:

#define CONFIG_BOOTCOMMAND " setenv silent 1;" \

"bootm "

and there is the

#define CONFIG_SILENT_CONSOLE

command, neither one is working (the lines printed out are still the same and the boot time didn't change). Does somebody see the error ?

Answer

Joe Kul picture Joe Kul · Mar 3, 2014

For my target, U-Boot baseline 2013.10, silent environment variable works at kernel boot time, but it needed more defines:

#define CONFIG_SILENT_CONSOLE 
#define CONFIG_SYS_DEVICE_NULLDEV
#define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET

That also killed kernel serial console after successful boot, until I added

#define CONFIG_SILENT_U_BOOT_ONLY

Refer to README.silent for more info.