-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtest fails to run on fvp - #3055
Comments
That is clearly why the driver has not loaded. Which kernel version? Upstream driver? |
Kernel version is: TF-A/Optee/Linux built using Yocto project. |
Is it this recipe? https://layers.openembedded.org/layerindex/branch/master/layer/meta-optee/ Koen left Linaro a while ago, so not sure if there is anyone maintaining that, @fboudra do you know anything about that? The OP-TEE core team, doesn't use Yocto, so we're a bit on thin ice when it comes to issues like this and relies on the people who put together the recipes. |
Yes, you're right about the recipe. |
Sorry I missed to add the information that the Linux is running on Xen hypervisor. I have added CFG_VIRTUALIZATION=y in the optee config. It seems Xen 4.12 does not support SMCCC required for communication between kernel and optee-os. I tried a branch that has an experimental support but without success (https://github.com/lorc/xen) |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
Did anybody have any luck with this? I am having the exact same issue.
|
@sajtrga have you enabled the TEE support in Xen? Quoting https://xenproject.org/2019/12/18/whats-new-in-xen-4-13/:
|
Thank you for that, I have not enabled TEE support in Xen. That being said, I now built Xen 4.14 with CONFIG_TEE=y, but I still keep getting the exact same error. I also tried the experimental branch posted above without success. |
OK, at this point I have nothing more to suggest than adding debug traces to the kernel and OP-TEE to figure out the cause of |
I have contacted lorc, the developer of the TEE mediator in Xen, and he helped me resolve a few issues. First, for the record, the proper way to build Xen 4.13 with OP-TEE support is:
Then, the TEE mediator does not support OP-TEE version 3.9. It fails at the end of the optee_probe function in xen/arch/arm/tee/optee.c, when trying to determine whether OP-TEE was built with virtualization support. OP-TEE version 3.5 seems to go through OK, however. Lastly, using Linux kernel 5.4 results in the optee driver causing this error: However, despite the advances made, I still cannot load tee-supplicant:
|
Last piece of the puzzle: The patch posted in this issue linaro-swg/linux#77 I'm sorry for hijacking this old issue, but perhaps it can now be treated as resolved. |
No worries, the important thing now is to make sure that all known issues have been addressed. |
If it was ever posted I've missed it. |
I have same problem. Can you give me path to fix this issue?. @sajtrga @jforissier @jenswi-linaro |
xtest fails to run and gives the following error. Having read other threads about similar issue I have checked few things and it seems the tee driver has not loaded. I have checked the optee node in dtb. Appreciate any help. Thanks.
The text was updated successfully, but these errors were encountered: