Hi!
I'm currently developing a secure boot solution for one of our customers. Following some tutorials (including the ones provided by U-Boot itself), I've managed to get a signed version of U-Boot to execute on my iMX.8 Quad Plus.
Since I haven't programmed the fuses yet, I get a message like
Lifecycle: 0x0020, NXP closed
SECO Event[0] = 0x0087FA00
CMD = AHAB_AUTH_CONTAINER_REQ (0x87)
IND = AHAB_BAD_KEY_HASH_IND (0xFA)
SECO Event[1] = 0x0087FA00
CMD = AHAB_AUTH_CONTAINER_REQ (0x87)
IND = AHAB_BAD_KEY_HASH_IND (0xFA)
sc_seco_get_event: idx: 2, res:3
when calling ahab_status from the U-Boot CLI.
Now I wonder if there's any documentation on this output and if there are any Linux user space tools to read the SECO information.
解決済! 解決策の投稿を見る。
@OlegHahm
Hello,
According to the following
"For the command field (CMD), the expected value at this step is 0x87 (ID for AHAB_AUTH_CONTAINER_REQ). The indicator field (IND) shows the code AHAB_BAD_KEY_HASH_IND (0xFA) because the key hash verification does not match the current OTPs. Once the OTP SRK hash fuses are programmed on the target OTPs, the AHAB events will no longer have errors.
See the NXP secure boot application notes for more information on event decoding."
Please use section 4.3 (Verifying/Decoding SECO events) of AN12312 (Secure Boot
on i.MX 8 and i.MX 8X Families using AHAB).
https://www.nxp.com/webapp/Download?colCode=AN12312
Regards,
Yuri.
@OlegHahm
Hello,
According to the following
"For the command field (CMD), the expected value at this step is 0x87 (ID for AHAB_AUTH_CONTAINER_REQ). The indicator field (IND) shows the code AHAB_BAD_KEY_HASH_IND (0xFA) because the key hash verification does not match the current OTPs. Once the OTP SRK hash fuses are programmed on the target OTPs, the AHAB events will no longer have errors.
See the NXP secure boot application notes for more information on event decoding."
Please use section 4.3 (Verifying/Decoding SECO events) of AN12312 (Secure Boot
on i.MX 8 and i.MX 8X Families using AHAB).
https://www.nxp.com/webapp/Download?colCode=AN12312
Regards,
Yuri.
Thanks for the pointer, this is helpful indeed. However, I'm still wondering if there is a way to retrieve the AHAB status information from within Linux (not U-Boot). Do you have any idea?