Hello,
I have follow the documents AN4581/AN12056 try to build an encrypted and signed u-boot image for imx8mq chipset.
I rebuild uboot with correct config :
CONFIG_SECURE_BOOT=y
CONFIGURE_FAT_WRITE=y
CONFIGURE_CMD_DEKBLOB=y
CONFIG_IMX_OPTEE_DEKBLOB_ENCAP=Y
CONFIG_CMD_PRIBLOB=Y
I have also recompile ATF (with SPD=opteed) and OP-TEE (with CFG_NXPCRYPT=Y and CFG_GEN_DEK_BLOB=y)
I follow all the steps and when i try to generate the DEK blob on the target with this cmd :
dek_blob 0x40400000 0x40401000 128
I have error message "Cannot get OP-TEE device" .
With more log, I can see the reason is OP-TEE capabilities mismatch, and OP-TEE Dynamics seems to not support "Dynamic share memory". But the OP-TEE config.mk file is configured with CFY_DYN_SHM_CAP=y (dynamic share memory is enable).
So i don't understand why DEK blob generation is falling and I have no idea how to fix it.
One remark, there is no fuse done on the chipset. I don't know if it is required to generate the dek_blob.
Thanks for your help
Dominique