configs: imx8m{m, n, p}_venice_defconfig: add arch_misc_init
Subsystems (2)
PATCH 1/2 configs: imx8m{m, n, p}_venice_defconfig: add arch_misc_init
Enable call to arch_misc_init in order to probe the CAAM driver.
--- configs/imx8mm_venice_defconfig | 1 + configs/imx8mn_venice_defconfig | 1 + configs/imx8mp_venice_defconfig | 1 + 3 files changed, 3 insertions(+)
configs/imx8mm_venice_defconfig +1 -0
@@ -31,6 +31,7 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="gsc wd-disable" +CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x910000
configs/imx8mn_venice_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="gsc wd-disable" +CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x25000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
configs/imx8mp_venice_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_OF_SYSTEM_SETUP=y CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="gsc wd-disable" +CONFIG_ARCH_MISC_INIT=y CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_MAX_SIZE=0x26000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
Signature · 1 line
2.25.1
PATCH 2/2 ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Prepare for DEK blob encapsulation support through "dek_blob" command. On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob for encrypted boot.
The DEK blob is encapsulated by OP-TEE through a trusted application call. U-boot sends and receives the DEK and the DEK blob binaries through OP-TEE dynamic shared memory.
To enable the DEK blob encapsulation, add to the defconfig:CONFIG_SECURE_BOOT=yCONFIG_FAT_WRITE=yCONFIG_CMD_DEKBLOB=y
Taken from NXP's commit 56d2050f4028 ("imx8m: Add DEK blob encapsulation for imx8m").
--- arch/arm/dts/imx8mm-venice-u-boot.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/dts/imx8mm-venice-u-boot.dtsi +7 -0
@@ -11,6 +11,13 @@ wdt = <&wdog1>; bootph-pre-ram; }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; }; &gpio1 {
Signature · 1 line
2.25.1
Fabio Estevam
reviewerRe: [PATCH 2/2] ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Hi Tim,
Quoted 11 lines · Tim Harvey
Prepare for DEK blob encapsulation support through "
dek_blob" command. On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob for encrypted boot.The DEK blob is encapsulated by OP-TEE through a trusted application call. U-boot sends and receives the DEK and the DEK blob binaries through OP-TEE dynamic shared memory.
To enable the DEK blob encapsulation, add to the defconfig:
CONFIG_SECURE_BOOT=y
This option does not exist.
Do you mean CONFIG_IMX_HAB=y?
Re: [PATCH 2/2] ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Quoted 13 lines · Fabio Estevam
Hi Tim,
Quoted 9 lines · Tim Harvey
Prepare for DEK blob encapsulation support through "
dek_blob" command. On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob for encrypted boot.The DEK blob is encapsulated by OP-TEE through a trusted application call. U-boot sends and receives the DEK and the DEK blob binaries through OP-TEE dynamic shared memory.
Quoted 6 lines
Quoted 2 lines
To enable the DEK blob encapsulation, add to the defconfig:
CONFIG_SECURE_BOOT=yThis option does not exist.
Do you mean
CONFIG_IMX_HAB=y?
Fabio,
The commit log details are not valid for upstream. I was basing this off of 8d060e4a66d6884341fbb3d8ab1d837a3f173d47 which made it upstream with the same message.
I can submit a v2 if necessary.
Best Regards,
Tim
Fabio Estevam
reviewerRe: [PATCH 2/2] ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Hi Tim,
Quoted 7 lines · Tim Harvey
Fabio,
The commit log details are not valid for upstream. I was basing this off of
8d060e4a66d6884341fbb3d8ab1d837a3f173d47which made it upstream with the same message.I can submit a v2 if necessary.
Yes, please submit a v2 and I will queue this series and the TPM one to u-boot-imx next.
Regards,
Fabio Estevam
Re: [PATCH 2/2] ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Quoted 7 lines · Fabio Estevam
Hi Tim,
Quoted 2 lines · Tim Harvey
Fabio,
Quoted 8 lines
Quoted 5 lines
The commit log details are not valid for upstream. I was basing this off of
8d060e4a66d6884341fbb3d8ab1d837a3f173d47which made it upstream with the same message.I can submit a v2 if necessary.
Yes, please submit a v2 and I will queue this series and the TPM one to u-boot-imx next.
This node appears to already be in the imx8mm-u-boot.dtsi encapsulated by an #ifdef looking for optee. Can this ifdef be expanded to include CONFIG_SECURE_BOOT?
adam
Quoted 3 lines
Regards,
Fabio Estevam
Re: [PATCH 2/2] ARM: dts: imx8mm-venice: prepare for dek blob encapsulation
Quoted 13 lines · Adam Ford
Quoted 11 lines · Fabio Estevam
Hi Tim,
Quoted 6 lines · Tim Harvey
Fabio,
The commit log details are not valid for upstream. I was basing this off of
8d060e4a66d6884341fbb3d8ab1d837a3f173d47which made it upstream with the same message.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
I can submit a v2 if necessary.
Yes, please submit a v2 and I will queue this series and the TPM one to u-boot-imx next.
This node appears to already be in the
imx8mm-u-boot.dtsiencapsulated by an #ifdef looking for optee. Can this ifdef be expanded to includeCONFIG_SECURE_BOOT?
Adam,
Thanks for reminding me of that... that was my submission.
This patch just needs to be dropped... it was a remnant from before bb6a4c55363c3 "(arm: dts: imx8mm: move firmware/optee node to common imx8mm-u-boot.dtsi")
I think it makes sense that the firmware/optee node is protected within a CONFIG_OPTEE
Best Regards,
Tim
Fabio Estevam
reviewerQuoted 4 lines · Tim Harvey
Enable call to
arch_misc_initin order to probe the CAAM driver.Signed-off-by Tim Harvey <[email protected]>
Applied only this one to u-boot-imx next, thanks.