From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Thompson Date: Wed, 06 Apr 2011 09:21:08 +0100 Subject: [U-Boot] CONFIG_SILENT_CONSOLE not working with NAND env In-Reply-To: <20110405124610.2250d933@schlenkerla.am.freescale.net> References: <4D9B2233.5060506@ge.com> <4D9B3E31.6080304@ge.com> <20110405124610.2250d933@schlenkerla.am.freescale.net> Message-ID: <4D9C2274.3080602@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/04/11 18:46, Scott Wood wrote: > On Tue, 5 Apr 2011 17:07:13 +0100 > Nick Thompson wrote: > >> On 05/04/11 16:52, Mike Frysinger wrote: >>> 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 >> Yes, that's what I intend to do, I think, though I'd have liked it to be >> configurable at run time. > Try enabling CONFIG_NAND_ENV_DST to have the environment be loaded by the > SPL along with the main U-Boot image. You didn't say what board/chip > you're using, so if you're using something other than the common > nand_boot.c you may need to add support for this (it's just a couple > lines), and silence any output from the SPL itself. > > -Scott > Thanks Scott, That's interesting. I'm using a TI board (da830evm). Unfortunately it has its own UBL, so I don't have the SPL to configure that way. That might be a good reason to consider dropping the UBL though. I believe TI are moving to U-Boot SPL themselves. I'll add it to my TODO list. Thanks, Nick.