Hello everyone,
I am trying to add optee support to my imx8qm-iwg27m platform with Yocto and I am experencing some difficulties.
Here are the steps I followed:
1. Added optee-os, optee-client, and optee-test to IMAGE_INSTALL. Also added optee to the machine/distrop_features.
2. Added CONFIG_TEE=y and CONFIG_OPTEE=y to the kernel configs
3. Checked that the plaform_flavor name was correctly set and that the tee.bin was built.
4. Checked that the tee.bin was added to the u-boot-atf-container.img
5. Flashed device
On the device, no /dev/tee* cannot be found, systemctl status tee-supplicant shows "ERR [618] TEES:main:694: failed to find an OP-TEE supplicant device", and xtest shows "Failed to open TEE context: 0xffff0008".
It looks like u-boot is not setting the Linux drivers for TEE (by modifying the DTB on the fly as specified for ARMv8 / ATF platform).
Is there something I did wrong or did I miss an extra step ?
Thanks and regards
Solved! Go to Solution.
Hi Terry3
imx8qm-iwg27m software is not supported by nxp, one can test it on i.MX8QM MEK
with linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0
Please follow sect.5.6.10 OP-TEE enablement i.MX Yocto Project User’s Guide
Best regards
igor
How to add tee.bin to u-boot-atf-container.img?
Hi Terry3
imx8qm-iwg27m software is not supported by nxp, one can test it on i.MX8QM MEK
with linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0
Please follow sect.5.6.10 OP-TEE enablement i.MX Yocto Project User’s Guide
Best regards
igor