Each of these commands has additional help available, which can be viewed by entering help <command>.
All numeric values, which are needed for different commands, are interpreted as HEX values. Entering 30100000 means 0x30100000.To speed up programming, the real size of the image files can be used. In the commands above we have used the maximum size of the partition instead of the actual size of the image files (0x180000 words = 3 Mb)
The following table explains some of the more often used commands:
bootm ADDR ARG | boots image from ADDR passing arguments ARG. ARG is the | |
address of the initrd image | ||
| ||
|
| |
boot, bootd | boots image via running default bootcmd | |
|
| |
nand bad | prints a list of bad blocks on the current device | |
|
| |
nand erase OFF SIZE | erase SIZE bytes from OFF | |
|
| |
nand erase clean | erase entire NAND Flash | |
WARNING: after this command, | ||
| ||
|
| |
nand read ADDR OFF SIZE | read SIZE bytes from OFF in NAND flash to ADDR. If there are | |
bad blocks the command stops with an error. | ||
| ||
|
| |
nand read.jffs2s ADDR OFF SIZE | read SIZE bytes from OFF in NAND flash to ADDR. Bad blocks are | |
skipped. | ||
| ||
|
| |
nand write ADDR OFF SIZE | write SIZE bytes from ADDR to OFF in NAND flash. If there are | |
bad blocks or writing fails the command stops with an error. | ||
| ||
|
| |
nand write.jffs2 ADDR OFF SIZE | write SIZE bytes from ADDR to OFF in NAND flash. Bad blocks | |
are skipped. | ||
| ||
|
| |
printenv | prints the environment variables | |
|
| |
saveenv | stores the changed environment variables persistently | |
|
| |
| sets the environment variable VARIABLE to the given value | |
setenv VARIABLE VALUE | VALUE. If a semicolon is used, to set different variables, it has to | |
| be masked with “\” | |
|
| |
run VARIABLE | executes the commands of VARIABLE like a script | |
|
| |
tftp ADDR image | loads image to ADDR via network using TFTP and the environment | |
variables “ipaddr” and “serverip” | ||
| ||
|
| |
usb reset | enables and resets the USB interface | |
|
| |
usb scan | scans the bus for attached USB storage devices | |
|
| |
usb tree | shows the connected devices | |
|
|
7 3