OP-TEE / manifest

Manifests to use OP-TEE on various platforms
69 stars 176 forks source link

question about how to run OP-TEE using QEMU for RISCV (either 32 or 64) #269

Closed aousherovitch-tt closed 9 months ago

aousherovitch-tt commented 10 months ago

Hello, In https://optee.readthedocs.io/en/latest/building/gits/build.html and https://optee.readthedocs.io/en/latest/building/devices/qemu.html I see instructions for building and running OP-TEE using QEMU for Armv8-A. Can you please advise how the RISCV related changes in OP-TEE are being tested (presumably on qemu?). I've tried running the following

ARCH=riscv make -j2 toolchains
ARCH=riscv make run 

and the toolchain was built ok, but make run fails, it seems to be still expecting to build and run for ARM:

% ARCH=riscv make run
make -C /data/aousherovitch/prj/optee/build/../optee_os O=out/riscv CFG_USER_TA_TARGETS=ta_rv64 CFG_RV64_core=y PLATFORM=vexpress-qemu_armv8a CROSS_COMPILE="/usr/bin/ccache /data/aousherovitch/prj/optee/build/../toolchains/riscv64/bin/riscv64-unknown-linux-gnu-" CROSS_COMPILE_core="/usr/bin/ccache /data/aousherovitch/prj/optee/build/../toolchains/riscv64/bin/riscv64-unknown-linux-gnu-" CROSS_COMPILE_ta_rv64="/usr/bin/ccache /data/aousherovitch/prj/optee/build/../toolchains/riscv64/bin/riscv64-unknown-linux-gnu-" CROSS_COMPILE_ta_rv32="/usr/bin/ccache " CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=0 CFG_IN_TREE_EARLY_TAS="trusted_keys/f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c" DEBUG=0 CFG_ARM_GICV3=y 
make[1]: Entering directory '/data/aousherovitch/prj/optee/optee_os'
core/arch/riscv/riscv.mk:72: *** CFG_ARM_GICV3 is set to 'y' (from command line) but its value must be 'n'.  Stop.
make[1]: Leaving directory '/data/aousherovitch/prj/optee/optee_os'
make: *** [common.mk:550: optee-os-common] Error 2

Please advise. Thank you

aousherovitch-tt commented 9 months ago

Opened https://github.com/OP-TEE/optee_os/issues/6668 instead of this.