Kboardinfo - Kontron Board Information; Md5Sum - Md5 Message Digest - Kontron SMARC-sAMX8X User Manual

Table of Contents

Advertisement

7.4.1. kboardinfo - Kontron Board Information

The "kboardinfo" command shows a summary of board serialization data gathered from the system EEPROM.
=> kboardinfo
Manufacturer:
Product name:
Material number:
Serial number:
MAC0 (ethaddr):
MAC1 (eth1addr):
Manufacturer Date: 11/15/2017
Revision:
B00
Boot Counter:
CPU:
Freescale i.MX8XD rev1.2 at 996 MHz
==>
7.4.2. md5sum – MD5 Message Digest
The "md5sum" command is already part of standard U-Boot implementation. However Kontron provides the "-a"
extension (ASCII) that allows to check MD5 checksum of a given memory area (e.g. a binary image copied into
memory) against the checksum that has been copied into an ASCII file on an external linux host. To achieve this, the
ASCII string in the file representing the checksum is converted into hexadecimal values and compared against the
calculated one.
Syntax:
=> help md5sum
md5sum - compute MD5 message digest
Usage:
md5sum address count [[*]sum]
- compute MD5 message digest [save to sum]
md5sum -v address count [*]sum
- verify md5sum of memory area
md5sum -a address count [*]sum
- verify md5sum given in ASCII format
Example:
Calculate MD5 checksum of a given binary using the md5sum command on linux host and redirect output messages
into a file:
# md5sum image.bin >image.md5
Copy both image file and checksum file to USB thumb device with EXT2/3/4 or FAT partition. Connect the USB device
to the module carrier.
The following sequence shows how to load both image file and image checksum file into SMARC_sAMX8X memory
and compare them. In case of success, the "md5sum -a" command will have no output messages as this extensions
is meant to be used in automatic update scripts to check the binary images against their MD5 checksum.
usb start
load usb 0:1 88000000 <image.bin>
load usb 0:1 8a000000 <image.md5>
if md5sum -a 88000000 $ubootsz *88a00000; then
echo 'CRC check passed'
else
echo 'CRC check failed'
fi
www.kontron.com
Kontron Europe GmbH
SMARC-sAMX8X
51009-0208-10-2
NZD070001
00:a0:a5:79:25:30
00:a0:a5:79:25:31
10
SMARC-sAMX8X User Guide. Rev. 1.1
// 40

Advertisement

Table of Contents
loading

Table of Contents