]> Git Repo - u-boot.git/commit
imx: hab: extend hab_auth_img to calculate ivt_offset
authorParthiban Nallathambi <[email protected]>
Wed, 21 Nov 2018 13:50:40 +0000 (14:50 +0100)
committerStefano Babic <[email protected]>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
commitea91031b223223667b8dbbaec7fa7bbb51f96a0b
treee15b646ff7abd2d0499667f7a7de1bea5163edad
parentc54564474f73cca9341e7cc7904fa19b831b7097
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 <[email protected]>
Reviewed-by: Breno Lima <[email protected]>
arch/arm/mach-imx/hab.c
This page took 0.034512 seconds and 4 git commands to generate.