[U-Boot] CONFIG_SILENT_CONSOLE not working with NAND env
Mike Frysinger
vapier at gentoo.org
Tue Apr 5 17:52:37 CEST 2011
On Tue, Apr 5, 2011 at 10:07 AM, Nick Thompson wrote:
> common/console.c has this function:
>
> /* Called before relocation - use serial functions */
> int console_init_f(void)
> {
> gd->have_console = 1;
>
> #ifdef CONFIG_SILENT_CONSOLE
> if (getenv("silent") != NULL)
> gd->flags |= GD_FLG_SILENT;
> #endif
>
> return 0;
> }
>
> I have defined CONFIG_SILENT_CONSOLE and set "silent" in my NAND env,
> but the SILENT flag doesn't get set.
>
> I suspect this function is called way too early for NAND env to be available.
NAND isnt the only one with this problem (SPI does too last i looked).
during early boot, you only have the default env available. so if
you want silent console, i'd suggest you enable that in your default
env.
-mike
More information about the U-Boot
mailing list