IMX8MN Flashing Fuses / Secure Boot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MN Flashing Fuses / Secure Boot

553件の閲覧回数
heiko
Contributor I

Hi ,

 

Im in the process of enabling secure boot (hab) on a customboard with an IMX8MN.
I followed the CST_UG.pdf and AN4581.pdf . With most of the steps im done, i got my signed images for spl and u-boot. 

Next step would be flashing my 4 generated SRK keys/hashes to the nano.
In the Application Node and here(which i found sadly really late) I learned that you can use u-boot to program the fuses. I was wondering if there isnt a way to program the fuses using uuu.
Some searches later I think there should be a way by using uuu with an "auxiliary"-binary and a scritp but i couldnt find much more then this bit of information. Is there a way to do it with uuu and is there some documentation for this available ?

 

thanks in advance

0 件の賞賛
返信
1 返信

511件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,


Yes, you can program fuses using the Universal Update Utility (UUU) tool. This approach is particularly useful in manufacturing environments and can be more convenient than using U-Boot commands directly.

To program fuses with UUU, you need to:

1. Create a UUU script (typically named uuu.auto) that loads U-Boot and then executes the necessary fuse commands.

Here's an example script structure:
```
SDPS: boot -f imx-uboot.bin-flash
FB: ucmd fuse prog -y # Format for programming fuses
```

For programming SRK hash fuses specifically, you would use commands like:
```
FB: ucmd fuse prog -y 6 0 # Example for first word of SRK hash
FB: ucmd fuse prog -y 6 1 # Example for second word
FB: ucmd fuse prog -y 6 2 # Example for third word
FB: ucmd fuse prog -y 6 3 # Example for fourth word
```

When programming SRK hash fuses, first dump the values from your SRK_1_2_3_4_fuse.bin file using:
```
od -t x4 SRK_1_2_3_4_fuse.bin
```

Important recommendations:
1. Always verify HAB status after programming the SRK hash but before closing the device
2. Only close the device if HAB status is OK with no HAB events
3. Refer to the UUU documentation for complete command syntax: https://github.com/NXPmicro/mfgtools/releases/download/uuu_1.4.193/UUU.pdf

For additional information, check the i.MX8M secure boot guide at: https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_secure_boot.txt?...

Regards

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2248487%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MN%20%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%92%E3%83%A5%E3%83%BC%E3%82%BA%20%2F%20%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%E3%83%96%E3%83%BC%E3%83%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248487%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIMX8MN%20%E3%82%92%E6%90%AD%E8%BC%89%E3%81%97%E3%81%9F%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%9C%E3%83%BC%E3%83%89%E3%81%A7%E3%82%BB%E3%82%AD%E3%83%A5%E3%82%A2%20%E3%83%96%E3%83%BC%E3%83%88%20(HAB)%20%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E4%BD%9C%E6%A5%AD%E3%82%92%E8%A1%8C%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E7%A7%81%E3%81%AF%20CST_UG.pdf%20%E3%81%A8%20AN4581.pdf%20%E3%81%AB%E5%BE%93%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%BB%E3%81%A8%E3%82%93%E3%81%A9%E3%81%AE%E6%89%8B%E9%A0%86%E3%81%8C%E5%AE%8C%E4%BA%86%E3%81%97%E3%80%81SPL%20%E3%81%8A%E3%82%88%E3%81%B3%20U-Boot%20%E7%94%A8%E3%81%AE%E7%BD%B2%E5%90%8D%E6%B8%88%E3%81%BF%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E6%AC%A1%E3%81%AE%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%81%AF%E3%80%81%E7%94%9F%E6%88%90%E3%81%95%E3%82%8C%E3%81%9F%204%20%E3%81%A4%E3%81%AE%20SRK%20%E3%82%AD%E3%83%BC%2F%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5%E3%82%92%20nano%20%E3%81%AB%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%20%E3%83%8E%E3%83%BC%E3%83%89%E3%81%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FSteps-to-enable-secure-boot-in-i-MX8M-Nano%2Fta-p%2F1246417%22%20target%3D%22_self%22%3E%E3%81%93%E3%81%93%E3%81%A7%3C%2FA%3E(%E6%AE%8B%E5%BF%B5%E3%81%AA%E3%81%8C%E3%82%89%E3%81%8B%E3%81%AA%E3%82%8A%E9%81%85%E3%82%8C%E3%81%A6%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%BE%E3%81%97%E3%81%9F)%E3%80%81u-boot%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%92%E3%83%A5%E3%83%BC%E3%82%BA%E3%82%92%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%A7%E3%81%8D%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%9F%A5%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82uuu%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%92%E3%83%A5%E3%83%BC%E3%82%BA%E3%82%92%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%AA%E3%81%84%E3%81%AE%E3%81%8B%E3%81%A8%E6%80%9D%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E6%A4%9C%E7%B4%A2%E3%81%97%E3%81%9F%E5%BE%8C%E3%80%81uuu%20%E3%82%92%E3%80%8C%E8%A3%9C%E5%8A%A9%E3%80%8D%E3%83%90%E3%82%A4%E3%83%8A%E3%83%AA%E3%81%A8%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A8%E3%81%A8%E3%82%82%E3%81%AB%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%8C%E3%81%82%E3%82%8B%E3%81%AF%E3%81%9A%E3%81%A0%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E3%81%93%E3%81%AE%E6%83%85%E5%A0%B1%E4%BB%A5%E5%A4%96%E3%81%AB%E3%81%AF%E3%81%82%E3%81%BE%E3%82%8A%E8%A6%8B%E3%81%A4%E3%81%91%E3%82%89%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82uuu%20%E3%81%A7%E3%81%93%E3%82%8C%E3%82%92%E8%A1%8C%E3%81%86%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%20%E3%81%BE%E3%81%9F%E3%80%81%E3%81%93%E3%82%8C%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E5%89%8D%E3%82%82%E3%81%A3%E3%81%A6%E6%84%9F%E8%AC%9D%E3%81%97%E3%81%BE%E3%81%99%3C%2FP%3E%3C%2FLINGO-BODY%3E