8 application boot, U-boot – Artesyn ATCA-8310 Installation and Use (May 2014) User Manual
Page 180

U-Boot
ATCA-8310 Installation and Use (6806800M72E)
180
6.2.1.8
Application Boot
The default boot device of the ATCA-8310 is the internal USB disk, or the external USB storage
device. Boot order is defined by a proper boot script stored in the "bootcmd" variable.
The basic requirement is to support a boot mechanism which, by default, boots from the
onboard USB disk module, but to also allow booting from an USB stick automatically if plugged
in at reset.
This specific behavior can be implemented using the generic command "runscript".
6.2.1.8.1 runscript Command
"runscript" takes a list of boot device identifiers and a list of file names. For each specified file
name it will check whether this file name exists on any of the provided devices. If yes, it's
executed, otherwise runscript continues with the next device.
The syntax of runscript is:
runscript device1,device2,… file1,file,… [abort] [
In a pseudo programming language, "runscript" does the following:
Repeat
For each
For each existing
For each existing
For each
If
Preset shell internal environment variables
Execute the script
If "abort" option is given, terminate here
The default number of loops is 1. If the loops parameter is 0 the procedure is performed in an
endless loop.