
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