[U-Boot] autoscr command

Detlev Zundel dzu at denx.de
Fri Jul 3 11:57:17 CEST 2009


Hi Rainer,

> i use the autoscr command to store further information in a NAND at the
> first start.
> After this it modify the bootcmd and save the enviroment and the last
> command should restart the device.

Where is your environment located?  What parser do you use,
i.e. "regular" or "hush"?

> The script works fine but "saveenv" seams to abort the script file.
> I have used different memory location, i have checked the memory contents
> and i have placed saveenv at the beginning, middle and at the end of the
> script.
> It allways abort after "saveenv".
> I use Uboot 2008.10.

I presume there is a bad return code somewhere.  If you have the
hush-parser enebled, try this for a start:

=> if saveenv ; then echo ok ; else echo failed ; fi           
Saving Environment to Flash...
Un-Protected 2 sectors
Un-Protected 2 sectors
Erasing Flash...
.. done
Erased 2 sectors
Writing to Flash... done
Protected 2 sectors
Protected 2 sectors
ok
=> 


Cheers
  Detlev

-- 
I shall be telling this with a sigh / Somewhere ages and ages hence: /
Two roads diverged in a wood, and I-- / I took the one less traveled by, /
And that has made all the difference.              -- Robert Frost
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list