beautypg.com

U-boot – Artesyn ATCA-8310 Installation and Use (May 2014) User Manual

Page 182

background image

U-Boot

ATCA-8310 Installation and Use (6806800M72E)

182

Each time a script is called, u-boot sets the following internal shell variables for the script:

interface_
The interface name

device_
The device number and partition separated by a colon

partition_
The partition number

fname_
The name of the file

fstype_
The type of filesystem

loadcmd_
The u-boot command for loading a file from this device. For example, to load a file xxx to
address 0x100000 from the device where the current script is running on:

$loadcmd_ $interface_ $device_ 0x100000 xxx

6.2.1.8.2 Other Configuration Parameters

boot_fstypes
When set, runscript matches it's file-system type names against the contents of this string.
A filesystem who's name does not occur in boot_fstypes is not used.
Example:

setenv boot_fstypes fat

causes runscript to look only at FAT partitions (not ext2

or other known types).If boot_fstypes is not defined, all filesystems are probed.

6.2.1.8.3 Example

The boot file on the onboard disk is named "autoexec.ui", the boot file on an optional external
USB device is named "recover.ui".

This manual is related to the following products: