
Copyright ©
WIN Enterprises, Inc. All Rights Reserved.
Dec., 2014
Chapter 4. U-Boot Reference Manual
34
You must use the back slash '\' before '$' to prevent variables from being
expanded into other variables’ values.
4.11.2 Scripts
In U-Boot, a script is made up of variables that contain a set of commands;
the commands are executed one after another.
Consider this variable:
If you were to run this script, with run cmd1 the var variable would be
created with val value, the value would be printed to the console, and the
variables would be saved to either the EEPROM or flash partition
dedicated to variables.