GithubHelp home page GithubHelp logo

Comments (10)

laurencechan avatar laurencechan commented on August 14, 2024

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.
image

from incubator-teaclave-trustzone-sdk.

mssun avatar mssun commented on August 14, 2024

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.

mssun avatar mssun commented on August 14, 2024

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.

laurencechan avatar laurencechan commented on August 14, 2024

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.
image

from incubator-teaclave-trustzone-sdk.

laurencechan avatar laurencechan commented on August 14, 2024

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.
image

from incubator-teaclave-trustzone-sdk.

laurencechan avatar laurencechan commented on August 14, 2024

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.

laurencechan avatar laurencechan commented on August 14, 2024

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.

mssun avatar mssun commented on August 14, 2024

Yes, you can use any language to write CA (same as OPTEE's client).

from incubator-teaclave-trustzone-sdk.

laurencechan avatar laurencechan commented on August 14, 2024

Yes, you can use any language to write CA (same as OPTEE's client).

@mssun I see, thank you~~

from incubator-teaclave-trustzone-sdk.

SimonWan avatar SimonWan commented on August 14, 2024

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)

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.