beautypg.com

Usage – Kontron SMARC-sAMX6i User Manual

Page 34

background image

SMARC-sAMX6i / Bootloader Operation

memory range and printed to the console.
If the optional 3rd parameter is specified, the md5 message digest is calculated over the specified
memory range and compared with the md5 message digest at . If the digest is identical, the command
returns 0; if the digests do not match, a value other than zero is returned. When a comparison is made, nothing is printed
to the console since this usage of the command is meant to be used within scripts.
The md5 message digest at may be specified in ASCII or binary format.

Usage

Calculate an md5 message digest: Check the md5 message digest of a file previously loaded to 100000 with a size of 80000
and its md5 message digest loaded to 10000 in a script

=> setenv check_crc “if md5sum 100000 80000 10000; then echo ‘md5 message

digest OK’; else echo ‘md5 message digest BAD’; fi”
=>run check_crc

md5 message digest OK
=>

34