Skip to main content
Associate II
September 29, 2025
Question

Unable To Load OPTEE Trusted Applications from REE

  • September 29, 2025
  • 1 reply
  • 310 views

I am running OPTEE OS 4.0 from openstlinux distro 6.0. When i build package optee-examples (I also tried to build examples manually) and try to run it I get the following error;

 

D/TC:? 1 tee_ta_init_pseudo_ta_session:303 Lookup pseudo TA 8aaaf200-2450-11e4-abe2-0002a5d5c51b
D/TC:? 1 ldelf_load_ldelf:110 ldelf load address 0x40005000
D/LD: ldelf:142 Loading TS 8aaaf200-2450-11e4-abe2-0002a5d5c51b
D/TC:? 1 ldelf_syscall_open_bin:163 Lookup user TA ELF 8aaaf200-2450-11e4-abe2-0002a5d5c51b (early TA)
D/TC:? 1 ldelf_syscall_open_bin:167 res=0xffff0008
D/TC:? 1 ldelf_syscall_open_bin:163 Lookup user TA ELF 8aaaf200-2450-11e4-abe2-0002a5d5c51b (REE)
D/TC:? 1 ldelf_syscall_open_bin:167 res=0
E/LD: copy_section_headers:1124 sys_copy_from_ta_bin
E/TC:? 1 ldelf_init_with_ldelf:152 ldelf failed with res: 0xffff0009
D/TC:? 1 tee_ta_open_session:701 init session failed 0xffff0009
optee_example_hello_world: TEEC_Opensession failed with code 0xffff0009 origin 0x3

 

The logs show the .ta file is successfully found but something goes wrong while loading it. I also tried to build optee-examples_4.0 but the result was the same.

 

Anyone has any idea?

1 reply

GatienC
ST Employee
September 30, 2025

Hello,

Can you check what is the value of the CFG_STM32MP_PROFILE switch in the out/conf.mk of OP-TEE please?

Is your TA present in the filesystem? You can have a look at How to develop an OP-TEE Trusted Application or the official documentation if needed.

Best regards,
Gatien

arifbalikAuthor
Associate II
October 1, 2025

It is `secure_and_system_services` and yes my TA is present in the file system, as you can see from the logs, it correctly finds the .ta file but fails to load it. I use the default signature pem file.

 

When I try to load it as an early TA it works just fine, so there is something wrong about either tee-supplicant or while during the signature verification