User manual

U-Boot for MPL SBC
User Manual
2003 by MPL AG
22
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.3.38 saveenv - save environment variables to persistent storage
On boot-up the environment is copied from the EEPROM to the RAM, and all changes on the environment variables are
done in the RAM. So the environment is volatile. To store the actual environment to the persistent storage use this
command.
Abbreviation:
save
=> save
Saving Environment to EEPROM...
=>
3.3.39 scsiboot- boot from SCSI device
Booting from a SCSI device works in the same way as the diskboot command.
Abbreviation:
scsib
=> help scsib
scsiboot loadAddr dev:part
=>
3.3.40 scsi - SCSI sub-system
The SCSI sub-system is similar to the ide sub-system, with the difference that all transactions take place on the SCSI
bus and the command starts with scsi.
Abbreviation: scsi
=> help scsi
scsi reset - reset SCSI controller
scsi info - show available SCSI devices
scsi scan - (re-)scan SCSI bus
scsi device [dev] - show or set current device
scsi part [dev] - print partition table of one or all SCSI devices
scsi read addr blk# cnt - read `cnt' blocks starting at block `blk#'
to memory address `addr'
=>
3.3.41 setenv - set environment variables
Use this command to set or delete an environment variable.
Abbreviation: setenv
=> help setenv
setenv name value ...
- set environment variable 'name' to 'value ...'
setenv name
- delete environment variable 'name'
If you call this command with only one parameter the variable will be deleted:
=> printenv bootit
bootit=usb stop; bootd
=> setenv bootit
=> printenv bootit
## Error: "bootit" not defined
=>
To set a environment variable, invoke this command with more than one parameter, whereas the first one is the variable
name, and the following parameters are the variable contents.
Please note that the variable name must be delimited with a space from the contents.
=> printenv bootit
## Error: "bootit" not defined
=> setenv bootit usb stop\; bootd
=> printenv bootit
bootit=usb stop; bootd
=>
If assigning more than one command to a variable, use semicolons ‘;’ to delimiting the commands.
Note: To escape special character such as ‘;’ (command delimiter) and ‘$’ (variable
substitution) use the backslash ‘\’.
=> setenv update era FFC00000 FFF7FFFF\; tftp 400000 mip405_multi.img\; cp.b 400000 FFC00000
\$(filesize)
=> printenv update
update=era FFC00000 FFF7FFFF; tftp 400000 mip405_multi.img; cp.b 400000 ffc00000 $
(filesize)
=>