beautypg.com

6 md5sum command, Md5sum command, U-boot usage am4150 u-boot bootloader – Kontron AM4150 U-Boot Bootloader User Manual

Page 24

background image

U-Boot Usage

AM4150 U-Boot Bootloader

Page 24

ID 1052-5678, Rev. 1.0

P R E L I M I N A R Y

3.6

md5sum Command

md5sum

FUNCTION:

Creates or checks the md5 message digest over a memory area

SYNTAX:

md5sum []

where:

md5sum

command

parameter: hexadecimal

start address of memory area

parameter: hexadecimal
length of memory area

parameter:

if present: compares the calculated md5 message
digest with the md5 message digest available at this
address

if absent: calculates the md5 message digest over the
specified memory range and prints it to the console

DESCRIPTION:

This command is used to create or check the md5 message digest over
a memory area.

If the optional 3

rd

parameter is omitted, the md5

message digest is calculated over the specified memory range and
printed to the console.

If the optional 3

rd

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

COMMAND / RESPONSE:

=> md5sum 100000 80000

8fe7006660a2df2265b7cd707eb98786

=>