User manual
U-Boot for MPL SBC
User Manual
2003 by MPL AG
11
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.3.5 bootp - boot image via network using BOOTP/TFTP protocol
Used to load a image via network using the BOOTP/TFTP protocol.
Abbreviation:
bootp
=> help bootp
bootp [loadAddress] [bootfilename]
=>
To use this command, you need to set-up a bootp server.
3.3.6 cmp - memory compare
The cmp command compares the first memory area with the second one. The command stops on the first non matching
address or if the count parameter is reached.
Abbreviation: cmp
=> help cmp
cmp [.b, .w, .l] addr1 addr2 count
- compare memory
=>
Example:
=> cmp ffc00000 400000 400
word at 0xffc00320 (0x13f0efff) != word at 0x00400320 (0x55ff55ff)
Total of 200 words were the same
=>
3.3.7 coninfo - print console devices and information
Abbreviation:
conin
=>conin
List of available devices:
vga 80000002 S.O
serial 80000003 SIO stdin stdout stderr
=>
This command shows information of the console devices. The characters ‘SIO’ shows the device capabilities:
S = System device, I = Input and O = Output. The current assignment is shown by ‘stdin’, ‘stdout’ and ‘stderr’.
3.3.8 cp - memory copy
The copy command copies data from one memory address to another. It distinguish itself if the destination lies in the
flash area, so this command can be used to write to the flash.
Abbreviation:
cp
=> help cp
cp [.b, .w, .l] source target count
- copy memory
Example:
Copy 0x400 Longs from 0xFFC00000 to 0x400000.
=> cp ffc00000 400000 400
=>
Writing to the flash:
=> cp.b 400000 ffc00000 10000
Copy to Flash... done
=>
Please note, that the count value specifies the amount of data in the modifier size. This means, count is the number of
bytes to copy if the modifier is ‘.b’, the number of words (2Bytes) if the modifier is ‘.w’ and the number of longs (4Bytes) if
no modifier or the modifier is ‘.l’.
Note: Please make sure to use the correct modifier (.b, .w or .l). If you are using the wrong
modifier, you may overwrite a memory area which is already used.
The flash area must be erased and unprotected, prior to write.