diff options
author | Parthiban Nallathambi | 2018-11-21 14:50:40 +0100 |
---|---|---|
committer | Stefano Babic | 2019-01-01 14:12:18 +0100 |
commit | ea91031b223223667b8dbbaec7fa7bbb51f96a0b (patch) | |
tree | e15b646ff7abd2d0499667f7a7de1bea5163edad /arch/mips | |
parent | c54564474f73cca9341e7cc7904fa19b831b7097 (diff) |
imx: hab: extend hab_auth_img to calculate ivt_offset
Current implementation of hab_auth_img command needs ivt_offset to
authenticate the image. But ivt header is placed at the end of image
date after padding.
This leaves the usage of hab_auth_img command to fixed size or static
offset for ivt header. New function "get_image_ivt_offset" is introduced
to find the ivt offset during runtime. The case conditional check in this
function is same as boot_get_kernel in common/bootm.c
With this variable length image e.g. FIT image with any random size can
have IVT at the end and ivt_offset option can be left optional
Can be used as "hab_auth_img $loadaddr $filesize" from u-boot script
Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Breno Lima <breno.lima@nxp.com>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions