imx: hab: Increase CSF_SIZE for i.MX6 and i.MX7 devices
PATCH 1/1 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.
--- include/configs/mx6_common.h | 2 +- include/configs/mx7_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/mx6_common.h +1 -1
@@ -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
include/configs/mx7_common.h +1 -1
@@ -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
Signature · 1 line
2.17.1
PATCH 1/1 imx: hab: Increase CSF_SIZE for i.MX6 and i.MX7 devices
Quoted 11 lines · On Fri, 26 Apr 2019 02:56:48 +0000 Breno Matheus Lima <[email protected]>…
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
0x2000and append DEK blob.In this case the total image size in boot data structure must cover the entire binary otherwise the
dek_blobwon't be copied to memory and image won't be decrypted.Increase
CSF_SIZEto0x4000to avoid such issue when booting encrypted boot images.
Quoted 25 lines
Signed-off-by Breno Lima <[email protected]>--- include/configs/mx6_common.h | 2 +- include/configs/mx7_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/mx6_common.hindex6b20c6db58..2b8ce9d71d100644include/configs/mx6_common.h +1
-1@@ -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 (quoted diff) +0
-0
b/include/configs/mx7_common.hindexcc7e87269e..f3167c51d4100644
include/configs/mx7_common.h line 54
Quoted 8 lines
include/configs/mx7_common.h +1
-1@@ -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
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190426/bfaa5ccc/attachment.sig>
PATCH 1/1 imx: hab: Increase CSF_SIZE for i.MX6 and i.MX7 devices
In reply to Breno Matheus LimaQuoted 6 lines · Breno Matheus Lima
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
0x2000and append DEK blob.
Quoted 8 lines
In this case the total image size in boot data structure must cover the entire binary otherwise the
dek_blobwon't be copied to memory and image won't be decrypted.Increase
CSF_SIZEto0x4000to avoid such issue when booting encrypted boot images.Signed-off-by Breno Lima <[email protected]>