public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] CONFIG_SILENT_CONSOLE not working with NAND env
@ 2011-04-05 14:07 Nick Thompson
  2011-04-05 15:52 ` Mike Frysinger
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Thompson @ 2011-04-05 14:07 UTC (permalink / raw)
  To: u-boot

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.

I can set the flag unconditionally and that works fine, but I don't think that
that will make a patch worthy of submission...?

Any thoughts?

Thanks,
Nick.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-06 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 14:07 [U-Boot] CONFIG_SILENT_CONSOLE not working with NAND env Nick Thompson
2011-04-05 15:52 ` Mike Frysinger
2011-04-05 16:07   ` Nick Thompson
2011-04-05 17:46     ` Scott Wood
2011-04-06  8:21       ` Nick Thompson
2011-04-06  9:22         ` Wolfgang Denk
2011-04-06 10:06           ` Nick Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox