aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBreno Matheus Lima <breno.lima@nxp.com>2019-04-26 02:56:48 +0000
committerStefano Babic <sbabic@denx.de>2019-06-11 10:42:48 +0200
commit0633e134784aba58ee664e9fbcee4afe1588d2be (patch)
tree21ded82391b9e55e9c318f91a584a24d95e756ae /include
parent4721d7d3b47c1ca44c3f18c50c92bc9bcfc096e9 (diff)
downloadu-boot-0633e134784aba58ee664e9fbcee4afe1588d2be.zip
u-boot-0633e134784aba58ee664e9fbcee4afe1588d2be.tar.gz
u-boot-0633e134784aba58ee664e9fbcee4afe1588d2be.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx6_common.h2
-rw-r--r--include/configs/mx7_common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h
index 6b20c6d..2b8ce9d 100644
--- a/include/configs/mx6_common.h
+++ b/include/configs/mx6_common.h
@@ -59,7 +59,7 @@
/* Secure boot (HAB) support */
#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE 0x2000
+#define CONFIG_CSF_SIZE 0x4000
#ifdef CONFIG_SPL_BUILD
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
#endif
diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h
index cc7e872..f3167c5 100644
--- a/include/configs/mx7_common.h
+++ b/include/configs/mx7_common.h
@@ -48,7 +48,7 @@
/* Secure boot (HAB) support */
#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE 0x2000
+#define CONFIG_CSF_SIZE 0x4000
#ifdef CONFIG_SPL_BUILD
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
#endif