Hi,
I was testing the latest BSP image() for i.MX8MP, and I found that I will get the following error when trying to install TA
root@imx8mpevk:~# xtest --install-ta /usr/lib/optee_armtz/
Searching directory "/usr/lib/optee_armtz/" for TAs
Installing "e13010e0-2ae1-11e5-896a-0002a5d5c51b.ta"
Installing "b3091a65-9751-4784-abf7-0298a7cc35ba.ta"
Installing "731e279e-aafb-4575-a771-38caa6f0cca6.ta"
Installing "11b5c4aa-6d20-11ea-bc55-0242ac130003.ta"
Installing "cb3e5ba0-adf1-11e0-998b-0002a5d5c51b.ta"
Installing "25497083-a58a-4fc5-8a72-1ad7b69b8562.ta"
Installing "fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta"
Installing "c3f6e2c0-3548-11e1-b86c-0800200c9a66.ta"
Installing "5c206987-16a3-59cc-ab0f-64b9cfc9e758.ta"
xtest: install_ta: TEEC_InvokeCommand: 0xffff000f err_origin 0x4
I think the following TA are having this issue when installing
- 5c206987-16a3-59cc-ab0f-64b9cfc9e758.ta
- 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.ta
- a720ccbb-51da-417d-b82e-e5445d474a7a.ta
Could you please check what went wrong?
Thanks!
Hi,
those two TA's <5c206987-16a3-59cc-ab0f-64b9cfc9e758.ta> and <a720ccbb-51da-417d-b82e-e5445d474a7a.ta>
shouldn't be installed, they should not actually TA's and are subkeys with the *.ta extension.
can you please use an image with the debug flag activated?
optee_os should have TEE_CORE_LOG_LEVEL=4 and DEBUG=1
Regards
Harvey
Hi @Harvey021
After removing the TAs that I listed above, there will be some xtest case failed
root@imx8mpevk:~# rm /usr/lib/optee_armtz/5c206987-16a3-59cc-ab0f-64b9cfc9e758.ta
root@imx8mpevk:~# rm /usr/lib/optee_armtz/5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.ta
root@imx8mpevk:~# rm /usr/lib/optee_armtz/a720ccbb-51da-417d-b82e-e5445d474a7a.ta
root@imx8mpevk:~# xtest --install-ta /usr/lib/optee_armtz/
Searching directory "/usr/lib/optee_armtz/" for TAs
Installing "e13010e0-2ae1-11e5-896a-0002a5d5c51b.ta"
Installing "b3091a65-9751-4784-abf7-0298a7cc35ba.ta"
Installing "731e279e-aafb-4575-a771-38caa6f0cca6.ta"
Installing "11b5c4aa-6d20-11ea-bc55-0242ac130003.ta"
Installing "cb3e5ba0-adf1-11e0-998b-0002a5d5c51b.ta"
Installing "25497083-a58a-4fc5-8a72-1ad7b69b8562.ta"
Installing "fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta"
Installing "c3f6e2c0-3548-11e1-b86c-0800200c9a66.ta"
Installing "02a42f43-d8b7-4a57-aa4d-87bd9b5587cb.ta"
Installing "80a4c275-0a47-4905-8285-1486a9771a08.ta"
Installing "528938ce-fc59-11e8-8eb2-f2801f1b9fd1.ta"
Installing "8aaaf200-2450-11e4-abe20002a5d5c51c.ta"
Installing "a4c04d50-f180-11e8-8eb2-f2801f1b9fd1.ta"
Installing "873bcd08-c2c3-11e6-a937-d0bf9c45c61c.ta"
Installing "f157cda0-550c-11e5-a6fa-0002a5d5c51b.ta"
Installing "5ce0c432-0ab0-40e5-a056-782ca0e6aba2.ta"
Installing "b689f2a7-8adf-477a-9f99-32e90c0ad0a2.ta"
Installing "d17f73a0-36ef-11e1-984a-0002a5d5c51b.ta"
Installing "ffd2bded-ab7d-4988-95ee-e4962fff7154.ta"
Installing "380231ac-fb99-47ad-a689-9e017eb6e78a.ta"
Installing "e6a33ed4-562b-463a-bb7e-ff5e15a493c8.ta"
Installing "023f8f1a-292a-432b-8fc4-de8471358067.ta"
Installing "f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c.ta"
Installing TAs done
Please see full log here: https://pastebin.ubuntu.com/p/r6cDzrT45j/
However, if I did not try to use xtest to install TAs, all the test case could pass, so I believe there are some bugs with the `xtest --install-ta` command, or probably some bugs with the problematic TAs
Hi
For xtest, that TA is used for some tests, deleting it which will result in test failing.
There is no test failing with xtest on my side.
47316 subtests of which 0 failed
156 test cases of which 0 failed
0 test cases were skipped
TEE test application done!
You can have a try on your side. to mv files under the /var/lib/tee/ and reboot and then run command "xtest" for a test.
Regards
Harvey