Hi,
This is iMX8MM built with yocto scarthgap.
I am following mainly this doc-stm in conjunction with this doc
all optee-os optee-test and optee are in the build.
The Kernel config looks like:
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_AES=y
CONFIG_MD=y
CONFIG_DM_CRYPT=y
CONFIG_BLK_DEV_DM=y
CONFIG_KEYS=y
CONFIG_TRUSTED_KEYS=m
CONFIG_ENCRYPTED_KEYS=y
CONFIG_TRUSTED_KEYS_TEE=y
The drivers looks okay
[root@imx:~$ dmesg | grep optee
[ 1.530781] optee: probing for conduit method.
[ 1.530800] optee: revision 4.2 (c6be5b57)
[ 1.532316] optee: dynamic shared memory is enabled
[ 1.559229] optee: initialized driver
The xtest passes
+-----------------------------------------------------
43430 subtests of which 0 failed
155 test cases of which 0 failed
0 test cases were skipped
TEE test application done!
But
[root@imx:~$ keyctl add trusted kmk "new 32" @s
add_key: No such device
[root@Dekoda:~$
fails with,
No such device,
dmesg shows nothing