GithubHelp home page GithubHelp logo

Comments (4)

SimonWan avatar SimonWan commented on August 14, 2024

Hi, generally speaking, the SDK should be compatible with (at least) some external crates, and our serde example is using the external crate serde. Please refer to the example to double-check you are using the extra crate correctly.

Also, by taking a quick look at your log, your TA is getting the error 0xffff0008, which is the item not found error. Though I'm not 100% sure, it looks like the TA is not compiled correctly, so probably you can go over your logs again to see what's happening when building the TA.

from incubator-teaclave-trustzone-sdk.

ChoKyuWon avatar ChoKyuWon commented on August 14, 2024

First, I look around serde example code, but some linker script make confusing me.
There's some extra work other than add packagename=VERSION on Cargo.toml?

Second, I think item not found is just for lookup walking. When I try to run normal TA, It also poped up, so it;s not main cause of error.
Here is message when I run optee_example_hello_world: There's also 0xffff0008 exist.

D/TC:? 0 tee_ta_init_pseudo_ta_session:299 Lookup pseudo TA 8aaaf200-2450-11e4-abe2-0002a5d5c51b
D/TC:? 0 ldelf_load_ldelf:91 ldelf load address 0x104000
D/LD:  ldelf:134 Loading TA 8aaaf200-2450-11e4-abe2-0002a5d5c51b
D/TC:? 0 ldelf_syscall_open_bin:140 Lookup user TA ELF 8aaaf200-2450-11e4-abe2-0002a5d5c51b (Secure Storage TA)
D/TC:? 0 ldelf_syscall_open_bin:144 res=0xffff0008
D/TC:? 0 ldelf_syscall_open_bin:140 Lookup user TA ELF 8aaaf200-2450-11e4-abe2-0002a5d5c51b (REE)
D/TC:? 0 ldelf_syscall_open_bin:144 res=0
D/LD:  ldelf:168 ELF (8aaaf200-2450-11e4-abe2-0002a5d5c51b) at 0x11a000
D/TA:  TA_CreateEntryPoint:39 has been called
D/TA:  TA_OpenSessionEntryPoint:68 has been called
I/TA: Hello World!
D/TA:  inc_value:105 has been called
I/TA: Got value: 42 from NW
I/TA: Increase value to: 43
D/TC:? 0 tee_ta_close_session:514 csess 0xb90916b0 id 1
D/TC:? 0 tee_ta_close_session:533 Destroy session
I/TA: Goodbye!
D/TA:  TA_DestroyEntryPoint:50 has been called
D/TC:? 0 destroy_context:310 Destroy TA ctx (0xb9091670)

Thanks for your help.

from incubator-teaclave-trustzone-sdk.

DemesneGH avatar DemesneGH commented on August 14, 2024

Hi @ChoKyuWon

It seems that ldelf panic occurs.ldelf is a user mode ELF loader in OPTEE OS(reference here).

  1. We have upgraded the sdk to OPTEE 3.11.0.TAs built with previous sdk will probably cause a ldelf panic when running on newer OPTEE OS(such as OPTEE 3.11.0).Maybe you could try the latest sdk version.
  2. If not working,debugging the ldelf using GDB may help(reference here and here).

Best Regards,
Yuan

from incubator-teaclave-trustzone-sdk.

ChoKyuWon avatar ChoKyuWon commented on August 14, 2024

@DemesneGH Thanks! upgrade SDK is the perfect solution for me.

from incubator-teaclave-trustzone-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.