Kboardinfo - Kontron Board Information; Md5Sum - Md5 Message Digest - Kontron SMARC-sAMX8 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:
Revision:
Boot Counter:
CPU:
==>
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
m 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 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
fatload usb 0:1 88000000 <image.bin>
fatload usb 0:1 8a000000 <image.md5>
if md5sum -a 88000000 $ubootsz *8a000000; then
echo 'CRC check passed'
else
echo 'CRC check failed'
fi
www.kontron.com
Kontron America Inc.
SMARC-sAMX8
51009-0208-10-2
9DP9340003
00:20:0C:7C:C4:EC
00:20:0C:7C:C4:ED
11/15/2019
A00
10
Freescale i.MX8QM rev0.1 at 1200 MHz
Kontron SMARC-sAMX8 - Rev. 1.2
// 51

Advertisement

Table of Contents
loading

Table of Contents