[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009679980


   @gaojunjie03 
   
   > 如果我要运行在qemu,还得要继续执行这些吗?
   
   需要。如果要在QEMU中运行,需要先clone OP-TEE repo,QEMU是在OP-TEE repo里build的。
   整个流程是先在Teaclave TrustZone SDK中build 
examples,再运行OP-TEE的QEMU,拷贝examples到QEMU中执行。
   
   
   此外,Teaclave TrustZone 
SDK已经集成到OP-TEE主分支,也可以按照这个文档下载和编译OP-TEE,编译完成的buildroot里自带Teaclave TrustZone 
SDK的examples: 
https://optee.readthedocs.io/en/latest/building/optee_with_rust.html
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009674693


   > @gaojunjie03
   > 
   > > 我看你们的dockerfile的ubuntu也是20.04版本的,不会报这个错?
   > 
   > 
我们的dockerfile是用来编译的。运行是在QEMU里,用的是这个文档build的image:https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/
   
   就是如果我要运行在qemu,还得要继续执行这些吗?
   
![image](https://user-images.githubusercontent.com/30582212/148900898-cf92d44f-034b-4b6f-95d8-1029baa301f4.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009642950


   @gaojunjie03 
   
   > 我看你们的dockerfile的ubuntu也是20.04版本的,不会报这个错?
   
   
我们的dockerfile是用来编译的。运行是在QEMU里,用的是这个文档build的image:https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009634172


   运行 tee-supplicant 报错,运行的ubuntu版本是20.04
   tee-supplicant: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not 
found (required by ./tee-supplicant)
   但我看你们的dockerfile的ubuntu也是20.04版本的,不会报这个错?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009600896


   @gaojunjie03 
   
   > 之前报的在make toolchains报的buildroot错是这样的:
   
   因为我们之前编译examples的host都是x86_64,在这种情况下`make 
toolchains`会下载prebuilt的toolchain。你的host架构是aarch64,会build 
toolchain,所以需要buildroot。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009572891


   嗯嗯 好的  我尝试下, 之前报的在make toolchains报的buildroot错是这样的:
   
![5c35ba49f29f0d34b174fc3f35b0b0d](https://user-images.githubusercontent.com/30582212/148877931-ffef5d35-0591-4ce6-82ae-ab2b32a5103c.png)
   所以我手动克隆了buildroot到/optee目录下


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009547811


   @gaojunjie03 
   > 执行到最后的make examples
   
   这篇文档写的是build 
examples的步骤。在QEMU上运行examples的步骤需要看https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/
 。
   如果是运行在物理机,不需要安装QEMU,make examples后:
   1. 拷贝TA到`/lib/optee_armtz/`
   2. 拷贝optee_client/out下编译出的libteec.so.* 到系统lib目录,拷贝`tee-supplicant`
   3. `$ tee-supplicant &`
   4. `$ ./hello_world-rs`
   
   
   
   > 是否不能在docker上
   
   
运行`tee-supplicant`需要root权限,并且需要访问host的`/dev/tee0`和`/dev/tee_priv0`设备。建议先用QEMU或物理机跑通之后,再尝试在docker里跑。
   
   
   > /lib/optee_armtz/ 这个目录在哪?没看见...
   
   `/lib/optee_armtz/`没有就自己建一个。
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009538020


   /lib/optee_armtz/  这个目录在哪?没看见...,我是完全按照
   
![image](https://user-images.githubusercontent.com/30582212/148869626-cd6a5712-803d-49c0-99e0-8998fc716993.png)
   这里进行的,执行到最后的make 
examples,还得要按着https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/这份文档继续进行下去吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009530303


   > > 然后怎么运行案例?我make 
examples成功了,我进入其中一个案例,hello_world-rs/host/target/aarch64-unknown-linux-gnu/release
 运行./hello_world-rs 报错了。
   > 
   > @gaojunjie03 
CA和TA需要在arm64架构的物理机或虚拟机中运行,参考这个文档:https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/
   > 
   > > 似乎所有案例都报这个错 Error: The requested data item is not found. (error code 
0x0008)
   > 
   > 这个错有可能是TA没有放到`/lib/optee_armtz/`目录中。
   
   我这台机是aarch64,应该也是arm64吧? 我全程都是在docker容器上运行,包括编译 make optee和最终的make examples 
运行案例都是在docker上(方便后面迁移到其他机器上)。是否不能在docker上?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009528306


   > 然后怎么运行案例?我make 
examples成功了,我进入其中一个案例,hello_world-rs/host/target/aarch64-unknown-linux-gnu/release
 运行./hello_world-rs 报错了。
   
   @gaojunjie03  
CA和TA需要在arm64架构的物理机或虚拟机中运行,参考这个文档:https://teaclave.apache.org/trustzone-sdk-docs/getting-started-with-optee-for-qemu-armv8/
   
   
   
   > 似乎所有案例都报这个错 Error: The requested data item is not found. (error code 
0x0008)
   
   这个错有可能是TA没有放到`/lib/optee_armtz/`目录中。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009523928


   似乎所有案例都报这个错 Error: The requested data item is not found. (error code 
0x0008)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1009511318


   > Hi @gaojunjie03
   > 
   > > 在每一步make之前都有执行这个source environment的
   > 
   > 我用Dockerfile build的image里按步骤编译没有报错,或许重新run一个编译环境试试?
   > 
   > 另外,optee/目录下是不需要有buildroot的,`make toolchains`也不需要buildroot。也可以把报错信息贴上来看一下。
   > 
   > > 我看到项目里面的.cargo文件夹下有关于aarch64-unknown-optee-trustzone的处理,这个要怎么处理?
   > 
   > target的specification是默认在当前目录或者`$RUST_TARGET_PATH`中找的,可以`echo 
$RUST_TARGET_PATH`看一下是不是sdk的路径。specification是sdk目录下的`aarch64-unknown-optee-trustzone.json`。
   echo $RUST_TARGET_PATH为空,我设置了这个变量值为sdk目录,可以了,估计是我source environment没成功,
   然后怎么运行案例?我make 
examples成功了,我进入其中一个案例,hello_world-rs/host/target/aarch64-unknown-linux-gnu/release
  运行./hello_world-rs   报错了。Error: The requested data item is not found. (error 
code 0x0008)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



Re: [apache/incubator-teaclave] [Website] Incorrect archive link (Issue #599)

2022-01-10 Thread Mingshen Sun
Fixed and rendered. Thanks!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/599#issuecomment-1009424456
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [apache/incubator-teaclave] [Website] Incorrect archive link (Issue #599)

2022-01-10 Thread Mingshen Sun
Closed #599.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/599#event-5869287311
You are receiving this because you are subscribed to this thread.

Message ID: 


Re: [apache/incubator-teaclave] [Website] Incorrect archive link (Issue #599)

2022-01-10 Thread Mingshen Sun
Fixed in this commit: 
https://github.com/apache/incubator-teaclave-website/commit/1921d33ab1cbe52e4a0045cb2200544b010808f2

The updated page will be rendered soon.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/599#issuecomment-1009372462
You are receiving this because you are subscribed to this thread.

Message ID: 

[apache/incubator-teaclave] [Website] Incorrect archive link (Issue #599)

2022-01-10 Thread Gordon King
There is a minor bug that appears on the `community` webpage.  The following 
`Archive`  linked to `commit mail-list` not the `dev`
dev@teaclave.apache.org: A list for discussion on Teaclave 
development including design proposal, release
announcements, meetup schedules, and commnity voting, etc.
[mailto:dev-subscr...@teaclave.apache.org?subject=Subscribe; 
rel="noreferrer" data-ss1641849516="1">Subscribe | mailto:dev-unsubscr...@teaclave.apache.org?subject=Unsubscribe; 
rel="noreferrer" data-ss1641849516="1">Unsubscribe | https://lists.apache.org/list.html?comm...@teaclave.apache.org; 
target="_blank" rel="noopener noreferrer" 
data-ss1641849516="1">Archive] 


-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/599
You are receiving this because you are subscribed to this thread.

Message ID: 

[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008775976


   Hi @gaojunjie03 
   
   
   
   > 在每一步make之前都有执行这个source environment的
   
   我用Dockerfile build的image里按步骤编译没有报错,或许重新run一个编译环境试试?
   
   另外,optee/目录下是不需要有buildroot的,`make toolchains`也不需要buildroot。也可以把报错信息贴上来看一下。
   
   
   
   > 我看到项目里面的.cargo文件夹下有关于aarch64-unknown-optee-trustzone的处理,这个要怎么处理?
   
   target的specification是默认在当前目录或者`$RUST_TARGET_PATH`中找的,可以`echo 
$RUST_TARGET_PATH`看一下是不是sdk的路径。specification是sdk目录下的`aarch64-unknown-optee-trustzone.json`。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008725515


   我看到项目里面的.cargo文件夹下有关于aarch64-unknown-optee-trustzone的处理,这个要怎么处理?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008723969


   > Hi @gaojunjie03
   > 
   > > 完了之后,根据(2)得到的镜像就开始git submodule update --init -- optee 然后make 
toolchains(这里我把make optee 拆成了make toolchains、make optee-os、make 
optee-client三步完成)
   > 
   > 在
   > 
   > ```
   > $ git submodule update --init -- optee
   > ```
   > 
   > 之后,需要运行
   > 
   > ```
   > $ source environment
   > ```
   > 
   > 然后再`make toolchains` `make optee-os`和`make optee-client`,以及`make -C 
examples/hello_world-rs`。
   
   在每一步make之前都有执行这个source environment的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008698951


   Hi @gaojunjie03 
   
   
   > 完了之后,根据(2)得到的镜像就开始git submodule update --init -- optee 然后make 
toolchains(这里我把make optee 拆成了make toolchains、make optee-os、make 
optee-client三步完成)
   
   
   在
   ```
   $ git submodule update --init -- optee
   ```
   之后,需要运行
   ```
   $ source environment
   ```
   然后再`make toolchains` `make optee-os`和`make optee-client`,以及`make -C 
examples/hello_world-rs`。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] gaojunjie03 commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


gaojunjie03 commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008666889


   我是全程使用dockerfile文件进行编译此项目的
   platform:aarch64
   (1)basedockerfile:
   FROM ubuntu:20.04
   MAINTAINER Teaclave Contributors 
   ENV DEBIAN_FRONTEND=noninteractive
   
   # Install dependencies for building OP-TEE
   RUN apt-get update && \
   apt-get install -y \
   git \
   android-tools-adb \
   android-tools-fastboot \
   autoconf \
   automake \
   bc \
   bison \
   build-essential \
   ccache \
   cscope \
   curl \
   device-tree-compiler \
   expect \
   flex \
   ftp-upload \
   gdisk \
   iasl \
   libattr1-dev \
   libcap-dev \
   libfdt-dev \
   libftdi-dev \
   libglib2.0-dev \
   libgmp-dev \
   libhidapi-dev \
   libmpc-dev \
   libncurses5-dev \
   libpixman-1-dev \
   libssl-dev \
   libtool \
   make \
   mtools \
   netcat \
   ninja-build \
   python \
   python-crypto \
   python3-crypto \
   python-pyelftools \
   python3-pycryptodome \
   python3-pyelftools \
   python3-serial \
   rsync \
   unzip \
   uuid-dev \
   xdg-utils \
   xterm \
   xz-utils \
   zlib1g-dev \
   wget \
   cpio \
   libcap-ng-dev \
   screen \
   libvdeplug-dev \
   libsdl2-dev \
   pip \
   ca-certificates
   
   
   
   RUN pip install cryptography -i https://mirrors.aliyun.com/pypi/simple/
   RUN apt-get install -y software-properties-common
   COPY lib/* /usr/lib/aarch64-linux-gnu/
   RUN ls /usr/lib/aarch64-linux-gnu/
   #COPY libpng12-0_1.2.54-1ubuntu1_arm64.deb .
   #RUN dpkg -i libpng12-0_1.2.54-1ubuntu1_arm64.deb
   
   
   #RUN add-apt-repository ppa:linuxuprising/libpng12
   #RUN apt-get update
   #RUN apt-get install -y libpng12-0
   
   # Install Rust
   RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
 . $HOME/.cargo/env && \
 rustup default nightly-2021-09-20 && \
 rustup component add rust-src && \
 rustup target install aarch64-unknown-linux-gnu && \
 rustup default 1.44.0 && cargo +1.44.0 install xargo && \
 rustup default nightly-2021-09-20
   
   ENV PATH="/root/.cargo/bin:$PATH"
   
   (2)这个基础依赖镜像打包好镜像之后,就根据该基础镜像制作上层镜像就是这个操作
   
![image](https://user-images.githubusercontent.com/30582212/148739532-f949229e-9456-4a9f-bb98-3c2fa210299d.png)
   这里也制作了个镜像
   (3)完了之后,根据(2)得到的镜像就开始git submodule update --init -- optee 然后make 
toolchains(这里我把make optee 拆成了make toolchains、make optee-os、make 
optee-client三步完成),然后在编译toolchains的时候,一直/optee目录下报找不到buildroot文件夹,后来我查询了optee的相关资料在/optee下克隆了buildroot(分支是2021.08,克隆深度为1的项目下来,跟build
 optee-os optee-client同级),这样之后就可以继续编译下去了。该步也同样制作一个镜像
   (4)在(3)得到的镜像之后,就开始make optee-os,制作该层镜像
   (5)在(4)之后,紧接着make 
optee-client,这里一开始报了找不到aarch64-linux-gnu-gcc、aarch64-linux-gnu-gcc.br_real等各种文件,我查看到/incubator-teaclave-trustzone-sdk/optee/toolchains/aarch64/bin文件夹是有aarch64-buildroot相关文件的,所以我拷贝了一份改名称aarch64-linux-gnu-gcc等就可以继续编译,然后在make
 examples上,报了这个错“Provided allocation has wrong size for slot count 131072", 
"the compiler unexpectedly panicked. this is a bug”,查阅相关资料后执行该命令后可以继续下去 rustup 
override set nightly-2021-09-22,然后又报了这个错“/usr/bin/ld can not find 
-lteec”,我执行了这个:cp ./optee/optee_client/out/export/usr/lib/libteec.so /usr/lib/。 
就可以了,最终就报了
   Could not find specification for target "aarch64-unknown-optee-trustzone" 该错误
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org



[GitHub] [incubator-teaclave-trustzone-sdk] DemesneGH commented on issue #55: Could not find specification for target "aarch64-unknown-optee-trustzone"

2022-01-10 Thread GitBox


DemesneGH commented on issue #55:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/55#issuecomment-1008645944


   Hi @gaojunjie03 
   Have you followed the [Getting 
Started](https://github.com/apache/incubator-teaclave-trustzone-sdk#getting-started)
 documents?
   Or you can paste your operations here for reproducing the error.
   
   Thanks!
   Yuan 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org