Hi Toradex Team,
I am working on enabling HABv4 Secure Boot on an Apalis iMX6 using the Toradex BSP (Yocto 7.7, U-Boot 2024.07).
Steps performed
-
Built the standard
tdx-reference-multimedia-imagesuccessfully. -
Generated CST keys and certificates.
-
Enabled Secure Boot in
local.confusing:-
tdx-signed -
imx-hab -
TDX_SECURE_BOOT = "1" -
TDX_IMX_HAB_ENABLE = "1" -
FIT image signing (
UBOOT_SIGN_ENABLE,FIT_SIGN_ENABLE,UBOOT_HAB_ENABLE) -
Kernel FIT image generation.
-
-
Rebuilt the image successfully.
-
Verified the following BitBake variables:
-
TDX_SECURE_BOOT=1 -
TDX_IMX_HAB_ENABLE=1 -
UBOOT_SIGN_ENABLE=1 -
UBOOT_HAB_ENABLE=1 -
FIT_SIGN_ENABLE=1
-
-
Verified the generated U-Boot
.configcontains:-
CONFIG_FIT=y -
CONFIG_FIT_SIGNATURE=y -
CONFIG_RSA=y -
CONFIG_RSA_VERIFY=y -
CONFIG_SHA256=y
-
-
Verified that the build generated:
-
u-boot-ivt.img -
u-boot.dtb-signed -
csf_uboot.bin -
csf_uboot.csf -
csf_SPL.bin -
csf_SPL.csf
-
-
Verified
log.do_uboot_assemble_fitimage, which shows:-
FIT signature generated successfully
-
Signature check OK -
HAB Blocks generated
-
CSF generated successfully
-
CSF appended to both U-Boot and SPL
-
The image was then flashed using the Toradex Easy Installer image (Apalis-iMX6_Reference-Multimedia-Image-upstream-Tezi_*.tar).
Current issue
Running hab_status in U-Boot gives:
Secure boot disabled
HAB Configuration: 0xf0
HAB State: 0x66
STS = HAB_WARNING (0x69)
RSN = HAB_ENG_FAIL (0x30)
CTX = HAB_CTX_ENTRY (0xE1)
ENG = HAB_ENG_CAAM (0x1D)
how can i solve this hab_event