SMARC-sAMX7 User Guide. Rev. 1.9
// 40
7.4.1.
kboardinfo - Kontron Board Information
The "kboardinfo" command shows a summary of board serialization data gathered from the system EEPROM.
=> kboardinfo
Manufacturer: Kontron Europe GmbH
Product name: SMARC-sAMX7
Material number: 51009-0208-10-2
Serial number: NZD070001
MAC0 (ethaddr): 00:a0:a5:79:25:30
MAC1 (eth1addr): 00:a0:a5:79:25:31
Manufacturer Date: 11/15/2017
Revision: B00
Boot Counter: 10
CPU: Freescale i.MX7D 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_sAMX7 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