Comments (10)
Maybe I just did wrong. After I compiled all the examples, what should I do next?
follow the instuction in the link? But if I do so, I will got duplicated source code of optee? I was confused.
from incubator-teaclave-trustzone-sdk.
Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.
from incubator-teaclave-trustzone-sdk.
Actually, there is a daily Travis CI job to run the code with the following steps:
https://github.com/mesalock-linux/rust-optee-trustzone-sdk/blob/master/.travis.yml
from incubator-teaclave-trustzone-sdk.
Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.
After I finished "make examples", How should I build the QEMU?
Start from the first red frame or the second?
I‘ve tried both of them.The first case, it was actually a pure original optee env, It runs well with its own C demo, but not the rust ones. The second case, I encoutered the error I described above.
Again, I think the doc in this page (https://github.com/mesalock-linux/rust-optee-trustzone-sdk) is not so pricise, maybe you could add the following actions to this one page, but not a link to another page with some other actions which is duplicated and unnecessary for the current case.
from incubator-teaclave-trustzone-sdk.
Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.
How to use your dockerfile?I did not find any docs from your project about this except a dockerfile. I just build a image from it and run a container from this image without any specified args and it will runs well?
I've tried your dockerfile but still failed.
$ sudo docker run --rm -it -v$(pwd):/rust-optee-trustzone-sdk -w /rust-optee-trustzone-sdk mesalocklinux/rust-optee-trustzone-sdk-qemuv8-ci bash -c "cd ci && ./ci.sh"
+ pushd ../tests
/rust-optee-trustzone-sdk/tests /rust-optee-trustzone-sdk/ci
+ ./test_hello_world.sh
+ rm -rf screenlog.0
+ rm -rf optee-qemuv8-3.4.0
+ rm -rf shared
+ curl http://mesalock-linux.org/assets/optee-qemuv8-3.4.0.tar.gz
+ tar zxv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:39 --:--:-- 0curl: (6) Could not resolve host: mesalock-linux.org
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
I do have a proxy and when I use docker pull to fetch a image, It works well.
from incubator-teaclave-trustzone-sdk.
I exec the container and it works well.
#sudo docker run -it -d --network host --name complie -v$(pwd):/rust-optee-trustzone-sdk -w /rust-optee-trustzone-sdk mesalocklinux/rust-optee-trustzone-sdk-qemuv8-ci:v1 /bin/bash
#sudo docker exec -it complie /bin/bash
# cd ci/
# ls
ci.sh
./ci.sh
+ pushd ../tests
/rust-optee-trustzone-sdk/tests /rust-optee-trustzone-sdk/ci
+ ./test_hello_world.sh
+ rm -rf screenlog.0
+ rm -rf optee-qemuv8-3.4.0
+ rm -rf shared
+ source /root/.bashrc
++ '[' -z '' ']'
++ return
+ curl --connect-timeout 200 http://mesalock-linux.org/assets/optee-qemuv8-3.4.0.tar.gz
+ tar zxv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 34.1M 0 15789 0 0 970 0 10:14:54 0:00:16 10:14:38 3332optee-qemuv8-3.4.0/
But outside the container, it won't. seems wired.
$sudo docker run --rm -it --network host --dns 8.8.4.4 -v$(pwd):/rust-optee-trustzone-sdk -w /rust-optee-trustzone-sdk mesalocklinux/rust-optee-trustzone-sdk-qemuv8-ci:v1 bash -c "cd ci && ./ci.sh"
+ pushd ../tests
/rust-optee-trustzone-sdk/tests /rust-optee-trustzone-sdk/ci
+ ./test_hello_world.sh
+ rm -rf screenlog.0
+ rm -rf optee-qemuv8-3.4.0
+ rm -rf shared
+ source /root/.bashrc
++ '[' -z '' ']'
++ return
+ tar zxv
+ curl --connect-timeout 200 http://mesalock-linux.org/assets/optee-qemuv8-3.4.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: mesalock-linux.org
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
from incubator-teaclave-trustzone-sdk.
Actually, there is a daily Travis CI job to run the code with the following steps:
https://github.com/mesalock-linux/rust-optee-trustzone-sdk/blob/master/.travis.yml
Hi @mssun , I still Got another question. If I use rust write a TA, is it possible to use C to write the corresponding CA?
from incubator-teaclave-trustzone-sdk.
Yes, you can use any language to write CA (same as OPTEE's client).
from incubator-teaclave-trustzone-sdk.
Yes, you can use any language to write CA (same as OPTEE's client).
@mssun I see, thank you~~
from incubator-teaclave-trustzone-sdk.
Looks like the titled issue has been resolved. Feel free to reopen the issue if it's not.
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
- rustc version 1.57 or 1.58
- Failed to spread pgdir on small tables
- Signature Verification example using ring crate HOT 2
- Get Public/Private key from generated key in TA HOT 2
- 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.