2011-09-16 18:32:56     2010R1-RC2 silent quiet mode

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2011-09-16 18:32:56     2010R1-RC2 silent quiet mode

Chris Page (UNITED STATES)

Message: 103419   

 

I am trying to get uboot to not display output to the console unless I press a certain button for debugging. Unless I explicitly  add gd->flags |= GD_FLG_SILENT in console.c (below getenv("silent")) the  output is always printed to the console. Following README.silent I have added

 

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SYS_DEVICE_NULLDEV 

 

in my bfin_adi_common.h

 

When the button is not pressed I add

 

setenv("silent","yes")

 

this is in the same place I set bootargs (misc_init_r(void)) based on a button press which works.

 

For debugging purposes I set this environment variable (in misc_init_r(void)) regardless of what button is pressed, however I am still getting output. I confirmed that CONFIG_SILENT_CONSOLE and CONFIG_SYS_DEVICE_NULLDEV   are properly defined. Any ideas why I am getting output

QuoteReplyEditDelete

 

 

2011-09-17 23:02:32     Re: 2010R1-RC2 silent quiet mode

Mike Frysinger (UNITED STATES)

Message: 103439   

 

where is your env stored ?  if it's in SPI flash, you'll probably have to workaround the issue by putting silent=yes into your default env settings (see BOARD_ENV_SETTINGS).

QuoteReplyEditDelete

 

 

2011-09-27 12:11:19     Re: 2010R1-RC2 silent quiet mode

Chris Page (UNITED STATES)

Message: 103582   

 

I have not used BOARD_ENV_SETTINGS but I have used CONFIG_EXTRA_ENV_SETTINGS. The only issue with this is it cannot be changed at run time (default to silent unless I press a button). I am having issues with uboot loading images from nand with bad blocks. I would like to have the ability to examine the output of uboot without having to recompile or have clients see the output.  Currently the env is stored in memory (CONFIG_ENV_IS_NOWHERE). Should I still be able to define and change environement variables in  misc_init_r(void)? This function is called before the console initiallizes I believe.

 

Thanks

QuoteReplyEditDelete

 

 

2011-09-28 21:23:02     Re: 2010R1-RC2 silent quiet mode

Mike Frysinger (UNITED STATES)

Message: 103603   

 

it can be changed at runtime if you store your env in flash.  if you don't have any flash storage at all, i'm not sure how you can expect silent mode to be dynamic.

QuoteReplyEditDelete

 

 

2011-09-29 16:14:40     Re: 2010R1-RC2 silent quiet mode

Chris Page (UNITED STATES)

Message: 103628   

 

HI Mike

 

misc_init_r is run after pretty much everything else has been initialized but before the main execution of the console shell.

 

At this point the console is initialzed so it would be to late to  set the variable. Not sure, will store the variables in spi and give it a shot. Thanks

Attachments

    Outcomes