Hello,
We implemented the security reference design described in section 10.9 of i.MX Linux User's Guide. Our custom board is based on the imx8mn_evk machine, and the image complies and boots successfully. However, we have questions based on the security-related messages we see during boot (see attached screenshot):
Thank you,
解決済! 解決策の投稿を見る。
After some troubleshooting, the answers are summarized below:
The combination of 3 and 4 made us doubt if we had a proper image before closing the device. We really wanted to see an intentional authentication failure. The only way to do this is to program the fuse and then generate an image with a different SRK table. Then, you will get the authentication failure messages as shown below.
Hi,
HAB (some versions and open device) won't compare SRK table against fuses when fuses are 0's. That is correct, we have to burn SRK hash.
Without burning SRK hash, we will not get complete authentication. I think that the reference from Linux User guide mainly focus on the image signing with automation with Yocto build.
Regards
Harvey
This response confirms that the meta-secure-boot layer provided in the security reference design dose not program the SRK fuse and we would have to do it ourselves. Based on this clarification how come we are passing authentication when the fuse is all zero?
The statement “HAB (some versions and open device) won't compare SRK table against fuses when fuses are 0's.” does not agree with the statement “All HAB functions are executed as for a closed device.” mentioned in section 6.1.2.5 in imx8mn reference manual. Can you clarify?
No answers were given to questions 1 and 4. Could you please provide answers.
thank you.
Q1, correct.
Q4, zeros means that there are no fuses hash burned.
Regards
Harvey
Please answer, "Based on this clarification, how come we are passing authentication when the fuse is all zero?"
Also, we attempted to program the fuse using uboot fuse commands, but we are still reading zeros.
Please refer to the AN4581.
Regards
Harvey
@Harvey021, where did you get the table you copied (5.5.1)? This was not included in AN4581.We are familiar with AN4581, but it does not provide answers to our issue.
Have you attempted secure boot on imx8mn EVK? Were you able to read back the SRK fuse after programming, or did you get zeros as well?
AN4581:
i.MX Secure Boot on HABv4 Supported Devices (nxp.com)
Or search "AN4581" from nxp.com
Have you reset the board before read it? Please share more details about how you program SRK fuse hashs.
Regards
Harvey
After some troubleshooting, the answers are summarized below:
The combination of 3 and 4 made us doubt if we had a proper image before closing the device. We really wanted to see an intentional authentication failure. The only way to do this is to program the fuse and then generate an image with a different SRK table. Then, you will get the authentication failure messages as shown below.