I compiled optee functionality from NVIDIA provided sources. It failed.
I run tow commands as follow:
./nv_public_src_build.sh
./nv_public_src_build_tos.sh -p t234 -u path_to_standalonemm_optee_t234.bin -s path_to_gen_tos_part_img.py
log1.txt (1.0 KB)
The release version is “JetPack 5.1.3”
What Hardware are you using? Then I can forward you to the correct forum category.
Thanks!
I used agx orin with coustom board
hello wonderkay94,
please refer to atf_and_optee_README.txt
for the [Prerequisites] to install build prerequisites.
for instance, python3-pycryptodome
and python3-pyelftools
in your build machine.
please see-also OP-TEE documentation, Prerequisites — OP-TEE documentation documentation
besides,
it’s a must to download the toolchain from Jetson release page according to your L4T version:
i.e. Jetson Linux Archive | NVIDIA Developer
before compile op-tee sources,
please set environment variable CROSS_COMPILE_AARCH64_PATH
to point to the aarch64 toolchain.
for example, if the aarch64 toolchain directory is… /toolchain/aarch64--glibc--stable-2022.03-1/
,
please set the CROSS_COMPILE_AARCH64_PATH with the command below.
$ export CROSS_COMPILE_AARCH64_PATH=/toolchain/aarch64--glibc--stable-2022.03-1
then, set environment variable CROSS_COMPILE_AARCH64 with the command below.
$ export CROSS_COMPILE_AARCH64=/toolchain/aarch64--glibc--stable-2022.03-1/bin/aarch64-buildroot-linux-gnu-
Hi JerryChang,
Now it can compile but failed on L4T 35.5.0
log2.txt (2.1 KB)
hello wonderkay94,
re-cap error logs as below.
27 | #include <bits/libc-header-start.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /opt/nvidia/gcc930_64_r3550/aarch64-buildroot-linux-gnu/sysroot/usr/include/errno.h:25,
from src/tee_client_api.c:28:
/opt/nvidia/gcc930_64_r3550/aarch64-buildroot-linux-gnu/sysroot/usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or directory
461 | # include <sys/cdefs.h>
| ^~~~~~~~~~~~~
please check whether you’ve libc-header-start.h
and cdefs.h
within your toolchain.
you may using find
commands to locate the files.
Hi JerryChang,
I compile OK. Thank you very much.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.