Comments (4)
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.
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.
Hi @ChoKyuWon
It seems that ldelf panic
occurs.ldelf
is a user mode ELF loader in OPTEE OS(reference here).
- 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. - If not working,debugging the
ldelf
using GDB may help(reference here and here).
Best Regards,
Yuan
from incubator-teaclave-trustzone-sdk.
@DemesneGH Thanks! upgrade SDK is the perfect solution for me.
from incubator-teaclave-trustzone-sdk.
Related Issues (20)
- (Solved) Failed to build example HOT 3
- (Solved) Failed to build repo with optee-3.18.0 HOT 3
- Create a persistent object from an initialized transient object HOT 8
- API doc links broken HOT 3
- Will this library support remote attestation? HOT 1
- Upstream status for rustc aarch64-unknown-optee-trustzone target? HOT 7
- Missing mem::forget(b) in TA_InvokeCommand() error path? HOT 3
- [VOTE] Change the default branch to "no-std" HOT 1
- Error: System ran out of resources. (error code 0xffff000c) HOT 8
- Build issues on aarch64 Linux hosts HOT 6
- what can i do update the Rust version ? HOT 8
- Use openssl/serde in host app HOT 2
- Xargo Version? HOT 1
- ECDH shared secret derivation HOT 6
- Performance issues HOT 1
- ./hello_world-rs not found in shared folder HOT 6
- make optee: fatal error: uuid/uuid.h: No such file or directory HOT 6
- Question: returning data from the TA
- Error: Unresolved import 'self::inner'
- Question: Third party crates HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-teaclave-trustzone-sdk.