]> git.baikalelectronics.ru Git - uboot.git/commit
tools: socfpgaimage: Print image header information
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 11 Dec 2020 06:46:47 +0000 (14:46 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 15 Jan 2021 09:48:39 +0000 (17:48 +0800)
commit6a56d4b7cb120caa4dbfed09c9f4e24c81809425
treecc4880d0bc2973b43858eb5e07bca742ee5fba7c
parenta86a94e22e4de7aee2dca591dbec95afcbb6ce22
tools: socfpgaimage: Print image header information

Print image header information if the header is verified.

Example output from mkimage "-l" option:

$ ./tools/mkimage -l spl/u-boot-spl.sfp
Image Type      : Cyclone V / Arria V SoC Image
Validation word : 0x31305341
Version         : 0x00000000
Flags           : 0x00000000
Program length  : 0x00003a59
Header checksum : 0x00000188

$ ./tools/mkimage -l spl/u-boot-spl.sfp
Image Type      : Arria 10 SoC Image
Validation word : 0x31305341
Version         : 0x00000001
Flags           : 0x00000000
Header length   : 0x00000014
Program length  : 0x000138e0
Program entry   : 0x00000014
Header checksum : 0x00000237

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
tools/socfpgaimage.c