-
Notifications
You must be signed in to change notification settings - Fork 1.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
Re: Failure loading optee-os on IMX93 custom board #7168
Comments
Hi @Oquirella, 0xffff0008 is For that you may need to check how
I see no |
560c5231-71bc-476d-8c2e-4ba107991e72 is referenced in: But no 560c5231-71bc-476d-8c2e-4ba107991e72.ta file is created... |
Oh I see, it is a pseudo-TA, not a user space TA. I can see in Please note that this PTA is not (yet) part of the official ("upstream") OP-TEE repository (here), so any issues should preferably be discussed in the downstream project https://github.com/nxp-imx/imx-optee-os. Thanks! |
I am sorry that i put my issue here. But the imx-optee-os repo doesn't have support for issues. I verified that CFG_IMX_TRUSTED_ARM_CE is enabled. But why does optee-os tries to open a binary if it is not one: E/LD: init_elf:493 sys_open_ta_bin(560c5231-71bc-476d-8c2e-4ba107991e72) |
When a UUID is not found as a PTA, then it is looked up as a TA in various places: early TA, secure storage, Linux FS (REE FS). The following patch will help to see what PTAs are included in your OP-TEE OS binary: diff --git a/core/kernel/pseudo_ta.c b/core/kernel/pseudo_ta.c
index 587faa41a..939e671e1 100644
--- a/core/kernel/pseudo_ta.c
+++ b/core/kernel/pseudo_ta.c
@@ -307,6 +307,7 @@ TEE_Result tee_ta_init_pseudo_ta_session(const TEE_UUID *uuid,
if (ta >= SCATTERED_ARRAY_END(pseudo_tas,
struct pseudo_ta_head))
return TEE_ERROR_ITEM_NOT_FOUND;
+ DMSG("... %pUl", (void *)&ta->uuid)
if (memcmp(&ta->uuid, uuid, sizeof(TEE_UUID)) == 0)
break;
ta++; |
Hi @Oquirella, Do you want to run DM-Crypt solution on i.MX93? Btw you can reach out to https://community.nxp.com/ for any query regarding nxp releases. Regards, |
Hi sahilnxp, yes indeed, i want to run the DM-crypt solution on i.MX93. |
Hi @Oquirella Sorry if you found that issue, We have updated the documentation regarding this in latest release. Please refer to section "10.5.5 DM-Crypt usage on i.MX Platforms without CAAM hardware IP" in https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf Let me know if you still face any issue after following that |
Now it works, thanks. In my opinion this should be set as default for the imx9 instead of letting the developer add this manually... |
@sahilnxp Disabling CONFIG_SEC_ENCLAVE like stated in the document, disables CONFIG_SOC_IMX9 which causes a lot of problems. Something is not right. Even systemd doesn't start. |
I am using u-boot-imx 2024.04.
I am using optee-os-imx 4.4.0
This is the output that i get from optee-os and dmesg:
tee_ta_init_pseudo_ta_session:303 Lookup pseudo TA 560c5231-71bc-476d-8c2e-4ba107991e72
D/TC:? 0 ldelf_load_ldelf:110 ldelf load address 0x40007000
D/LD: ldelf:142 Loading TS 560c5231-71bc-476d-8c2e-4ba107991e72
F/TC:? 0 trace_syscall:147 syscall #3 (syscall_get_property)
F/TC:? 0 trace_syscall:147 syscall #5 (syscall_open_ta_session)
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 560c5231-71bc-476d-8c2e-4ba107991e72 (early TA)
D/TC:? 0 ldelf_syscall_open_bin:167 res=0xffff0008
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 560c5231-71bc-476d-8c2e-4ba107991e72 (Secure Storage TA)
F/TC:? 0 plat_prng_add_jitter_entropy:68 0xC9
F/TC:? 0 plat_prng_add_jitter_entropy:68 0x70
F/TC:? 0 plat_prng_add_jitter_entropy:68 0xD2
D/TC:? 0 ldelf_syscall_open_bin:167 res=0xffff0008
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 560c5231-71bc-476d-8c2e-4ba107991e72 (REE)
D/TC:? 0 ldelf_syscall_open_bin:167 res=0xffff0008
E/LD: init_elf:493 sys_open_ta_bin(560c5231-71bc-476d-8c2e-4ba107991e72)
E/TC:? 0 ldelf_init_with_ldelf:152 ldelf failed with res: 0xffff0008
D/TC:? 0 tee_ta_open_session:696 init session failed 0xffff0008
[ 39.166586] tee_client_open_session failed, err: ffff0008
[ 39.172875] TEE-Crypto: Init failed[0xffffffea].
The text was updated successfully, but these errors were encountered: