u-boot-2016/tools
Holger Dengler 7e1a0483c3 tools/imximage: get HAB information from header
Signing parts of a u-boot imximage for image verification in High
Assurance Boot (HAB) in a post-build process, requires some
information from the imximage header. Currently, this information is
only provided during the image build, which makes the transfer of this
information to the post-build process harder than necessary.

The i.MX HAB information (start and length) can be calculated either
by using information from the image-configuration file, or from the
information in the flash header of the imximage.
The advantage of using information from flash header is, that they are
not only available during image creation, but also available if
existing images are processed.

Example:
$ tools/mkimage -l u-boot.imx
Image Type:   Freescale IMX Boot Image
Image Ver:    2 (i.MX53/6/7 compatible)
Mode:         DCD
Data Size:    483328 Bytes = 472.00 KiB = 0.46 MiB
Load Address: 877ff420
Entry Point:  87800000
HAB Blocks:   0x877ff400 0x00000000 0x00071c00
DCD Blocks:   0x00910000 0x0000002c 0x00000208

Signed-off-by: Holger Dengler <dengler@linutronix.de>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
2018-07-23 11:04:22 +02:00
..
binman binman: Support updating the device tree with calc'd info 2018-07-09 09:11:00 -06:00
buildman
dtoc dtoc: Add functions to add integer properties 2018-07-09 09:11:00 -06:00
easylogo
env
gdb
kermit
libfdt
logos
omap
patman lib: fdtdec: Rename routine fdtdec_setup_memory_size() 2018-07-19 10:49:56 +02:00
scripts
.gitignore
aisimage.c
aisimage.h
atmel_pmecc_params.c
atmelimage.c
bmp_logo.c
default_image.c mkimage: Refactor imagetool_get_source_date to take command name 2018-07-10 16:56:00 -04:00
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h
fdtgrep.c
file2include.c
fit_check_sign.c
fit_common.c
fit_common.h
fit_image.c mkimage: fit_image: Add support for SOURCE_DATE_EPOCH in signatures 2018-07-10 16:56:00 -04:00
fit_info.c
gen_eth_addr.c
gen_ethaddr_crc.c
genboardscfg.py
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c
ifdtool.h
image-host.c mkimage: fit_image: Add support for SOURCE_DATE_EPOCH in signatures 2018-07-10 16:56:00 -04:00
imagetool.c mkimage: Refactor imagetool_get_source_date to take command name 2018-07-10 16:56:00 -04:00
imagetool.h mkimage: Refactor imagetool_get_source_date to take command name 2018-07-10 16:56:00 -04:00
img2brec.sh
img2srec.c
imximage.c tools/imximage: get HAB information from header 2018-07-23 11:04:22 +02:00
jtagconsole
kwbimage.c
kwbimage.h
kwboot.c
lpc32xximage.c
Makefile vboot: Add FIT_SIGNATURE_MAX_SIZE protection 2018-07-10 16:55:58 -04:00
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mips-relocs.c
mkenvimage.c
mkexynosspl.c
mkimage.c
mkimage.h
mksunxiboot.c
moveconfig.py
mrvl_uart.sh
mxsboot.c
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c
pblimage.h
prelink-riscv.c
prelink-riscv.inc
proftool.c
relocate-rela.c
rkcommon.c
rkcommon.h
rkimage.c
rkmux.py
rksd.c
rkspi.c
socfpgaimage.c
stm32image.c
sunxi-spl-image-builder.c
ublimage.c
ublimage.h
ubsha1.c
vybridimage.c
xway-swap-bytes.c
zynqimage.c
zynqmpbif.c
zynqmpimage.c
zynqmpimage.h