Hello, I have tried using manufacturing protection with i.MX8MM. I have followed the instructions in AN13222. I have enabled the following features in U-Boot:
CONFIG_SECURE_BOOT=y
CONFIG_IMX_HAB=y
CONFIG_FSL_MFGPROT=y
CONFIG_IMX_CAAM_MFG_PROT = y
CONFIG_IMX_SECO_MFG_PROT = n
I have also added the following to the CSF file, between [Authenticate CSF] and [Install Key]:
[Unlock]
Engine = CAAM
Features = MFG
After this, the commands "mfgprot pubk" and "mfgprot sign" work, but since the device is not closed, the result is not valid.
Then I close the device. Secure boot works. But when I try to get the manufacturing protection public key, I get the following error (with some debugs enabled):
u-boot=> mfgprot pubk
Generating Manufacturing Protection Public Key
SEC Dequeue timed out
Error in public key generation -2
exit not allowed from main input shell.
The command "mfgprot sign" still works.