David
We have some response from internal expert and response is below:
---------------------------------------------------------------------------------------------------
For iMX6 secure boot in development stage is possible to override the need to have efuses locked for secure boot,
by forcing the result of check_hab_enable to be true:
for uboot-imx branch imx_v2013.04_3.10.17_1.0.0_beta:
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 4702dc6..2daaca6 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -643,7 +643,7 @@ int check_hab_enable(void)
if (reg & 0x2)
result = 1;
- return result;
+ return result = 1;
}
That way hab_authenticate is executed without the need to burn fuses, so user could make sure that secure boot is working as expected.
Is also recommended to define the macro DEBUG_AUTHENTICATE_IMAGE in the config header file for the platform used so
HAB can log more information.
---------------------------------------------------------------------------------------------------
Regards,
Yixing