User manual

U-Boot for MPL SBC
User Manual
2003 by MPL AG
12
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.3.9 crc32 - checksum calculation
The crc32 command is used to calculate the crc32 checksum over a certain memory area.
Abbreviation:
crc
=> help crc32
crc32 address count [addr]
- compute CRC32 checksum [save at addr]
Example:
=> crc ffc00000 400
CRC32 for ffc00000 ... ffc003ff ==> 056ec8f3
If issued with 3 parameters, the crc32 checksum is written to the specified location.
=> crc ffc00000 400 400000
CRC32 for ffc00000 ... ffc003ff ==> 056ec8f3
=> md 400000 1
00400000: 056ec8f3 .n..
=>
3.3.10 date - get/set/reset date & time
The date command gets, sets or resets date and time of the RTC:
Abbreviation: dat
=> help dat
date [MMDDhhmm[[CC]YY][.ss]]
date reset
- without arguments: print date & time
- with numeric argument: set the system date & time
- with 'reset' argument: reset the RTC
=>
The command
=> date 062913302001
sets the RTC to the Jun 29 2001 - 13:30:00
Caution: If the battery has been replaced or the RTC is stuck of another reason, you must first
reset the RTC with the command
date reset.
3.3.11 dhcp - invoke DHCP client to obtain IP/boot params
Used to get the IP and boot parameter using a DHCP server.
Abbreviation: dhcp
=> help dhcp
dhcp
=>
3.3.12 diskboot- boot from IDE device
Used to load an image from the IDE disk. The U-Boot reads the image by first reads the first block of the partition and
then analyzes the image header to distinguish how many blocks must be read. Then the whole image will be read. This
means that one or more small partitions must be created on the IDE disk containing only the raw image (no filesystem).
Please note that the device number starts with 0 whereas the partition number starts with 1.
Abbreviation:
disk
=> help diskboot
diskboot loadAddr dev:part
=>
Example:
=> diskboot 400000 0:1
Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.4.2-ppc405gp for PIP405
Created: 2001-06-08 10:57:25 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 688383 Bytes = 672 kB=0MB
Load Address: 00000000
Entry Point: 00000000
=>