]> git.baikalelectronics.ru Git - uboot.git/commit
imx: hab: Increase CSF_SIZE for i.MX6 and i.MX7 devices
authorBreno Matheus Lima <breno.lima@nxp.com>
Fri, 26 Apr 2019 02:56:48 +0000 (02:56 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
commitbd1a6fd20f486329a012bc82dccb0c22d3774160
tree21ded82391b9e55e9c318f91a584a24d95e756ae
parenta158bb56d310fe6df10527953e5cb07be6370e25
imx: hab: Increase CSF_SIZE for i.MX6 and i.MX7 devices

In certain i.MX devices the encrypted boot image is failing to boot.

According to AN12056 "Encrypted Boot on HABv4 and CAAM Enabled Devices"
it's necessary to pad CSF to 0x2000 and append DEK blob.

In this case the total image size in boot data structure must cover the
entire binary otherwise the dek_blob won't be copied to memory and image
won't be decrypted.

Increase CSF_SIZE to 0x4000 to avoid such issue when booting encrypted
boot images.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
include/configs/mx6_common.h
include/configs/mx7_common.h