
In message 462BBDF2.5080608@freescale.com you wrote:
No, I think you need to understand my situation. I want to develop a building system which I can ship to multiple persons Each person will need a customized set of environment variables.
Is there a way to build an flash-able image that contains all the environment variables? You could then take this image, write it to flash, and the next time U-Boot boots, it will have the new environment variables.
Yes, ther eis. There are actually many possible solutions.
Example 1: You can put all settings you want in a script, create a script image from it, and place this in the flash sector directly following the U-Boot image (which means you can just cat the images and write them to flash in a single programming operation). Have your default bootcmd run this script using the autoscr command. Note that the script can then also define a new bootcmd setting.
Example 2: You can put your U-Boot environment in the flash sector(s) directly following the U-Boot image ...
Etc.
Best regards,
Wolfgang Denk