2009-12-10 07:26:24     set silent boot

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

2009-12-10 07:26:24     set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83351   

 

Hello.

 

I'm using tcm-bf537 from bluetechnix.

 

I had a custom u-boot working from 2009R1-RC3.

 

I only change de Clock VCO and boot comands

 

I'm trying to set this for silent boot, (wiki documentacion)

 

in the file called tcm-bf537.h I add this lines

 

/* Silent boot*/

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SILENT "yes"

 

The problem is that the silent env variable don't apear in u-boot.

 

If I set manual "set silent tes" + "save" + "saveenv" i'ts working fine.

 

What is the correct way to set the silent = yes in u-boot files?

 

 

 

Thanks

 

Miquel Soler i Mir

TranslateQuoteReplyEditDelete

 

 

2009-12-10 07:33:02     Re: set silent boot

Mike Frysinger (UNITED STATES)

Message: 83354   

 

the silent config options dont touch the default environment.  if you want to control the default environment, then add the strings you want to the env defines.

 

QuoteReplyEditDelete

 

 

2009-12-10 08:27:16     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83356   

 

Thanks.

 

Buy Where I can modifier the default environment variables?

TranslateQuoteReplyEditDelete

 

 

2009-12-10 08:30:40     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83357   

 

buy -> But

TranslateQuoteReplyEditDelete

 

 

2009-12-10 08:33:01     Re: set silent boot

Mike Frysinger (UNITED STATES)

Message: 83358   

 

the u-boot documentation explains what defines are available to board porters

QuoteReplyEditDelete

 

 

2009-12-10 09:25:28     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83360   

 

Thanks Mike.

 

I readed all the documentacion from wiki about u-boot and I CAN't found this "explanis"

 

Miquel

TranslateQuoteReplyEditDelete

 

 

2009-12-10 09:28:33     Re: set silent boot

Mike Frysinger (UNITED STATES)

Message: 83361   

 

read the README in u-boot itself

QuoteReplyEditDelete

 

 

2009-12-10 12:40:18     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83364   

 

Thanks Mike

 

I readed all the docum from wiki, amb the 4005 lines of README from u-boot root folder.

 

I try with this lines:

 

/* Silent boot */

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SYS_DEVICE_NULLDEV

//#define CONFIG_SILENT 1

//#define CONFIG_ENV_SILENT 1

//#define CONFIG_ENV "silent = 1"

#define CFG_ENV_SILENT 1

 

And still not working.

 

Setting the silent variable by hand in u-boot terminal works fine.

 

The question are..

 

How I can set the silent variable in source code (bfin_adi_common.h or tcm-bf537.h)?

 

Where I can find the information to make this in documentation?

 

Thanks, Miquel Soler i Mir

TranslateQuoteReplyEditDelete

 

 

2009-12-10 13:03:38     Re: set silent boot

Mike Frysinger (UNITED STATES)

Message: 83365   

 

simply searching the README for "ENV" shows the answer pretty quickly.  i dont know what you're searching for.

 

- Default Environment:

        CONFIG_EXTRA_ENV_SETTINGS

 

        Define this to contain any number of null terminated

        strings (variable = value pairs) that will be part of

        the default environment compiled into the boot image.

QuoteReplyEditDelete

 

 

2009-12-10 15:12:19     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83366   

 

Thanks Mike, but still not working

 

I'm trying to configure the u-boot for tcm-bf537 with silent boot

 

I add this lines in tcm-bf537.h

 

/* Silent boot */

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SYS_DEVICE_NULLDEV

#define CONFIG_EXTRA_ENV_SETTINGS \

            "silent=yes\0"

 

The silent variable is not present when the system boot !!!!

 

What I'm making wrong?

 

Thanks

 

Miquel Soler i Mir

TranslateQuoteReplyEditDelete

 

 

2009-12-10 15:25:52     Re: set silent boot

Robin Getz (UNITED STATES)

Message: 83367   

 

Miguel:

 

I bet if you "printenv" - the var isn't set - this means you are either booting the wrong image, or its not building like you think it is.

 

-Robin

QuoteReplyEditDelete

 

 

2009-12-10 15:27:00     Re: set silent boot

Mike Frysinger (UNITED STATES)

Message: 83368   

 

you probably didnt `make clean`, or you're testing incorrectly.  track the env during compile to make sure the changes make it into the final binary (.bin/.ldr).

QuoteReplyEditDelete

 

 

2009-12-12 15:47:56     Re: set silent boot

Miquel Soler i Mir (SPAIN)

Message: 83437   

 

Thanks Mike.

 

Finaly is working:

 

2 errors:

 

1.- redefinition of "#define CONFIG_EXTRA_ENV_SETTINGS "

 

2.- make clean needed

 

The final report:

 

lines added in tcm-bf537.h

 

/* Silent boot */

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SYS_DEVICE_NULLDEV

#define CONFIG_EXTRA_ENV_SETTINGS \

            "silent=yes\0" \

            "flashboot=flread 20060000 1000000 280000; bootm 0x1000000\0"

 

Thanks for you help.

 

Miquel Soler i Mir

Attachments

    Outcomes