qemu_v8 with FF-A
Master-Chi opened this issue · 2 comments
hi, community
i want to build a project upon qemu_v8 to test FF-A feature, the commands are listed below:
repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml
repo sync
cd build
make toolchains
export SPMC_AT_EL=1
make run
but there are some error:
ERROR LOG:
CROSS_COMPILE="/usr/bin/ccache /home/somebody/workspace/FF-A/build/../toolchains/aarch64/bin/aarch64-linux-gnu-"
make -C /home/somebody/workspace/FF-A/build/../trusted-firmware-a
BL33=/home/somebody/workspace/FF-A/build/../edk2/Build/ArmVirtQemuKernel-AARCH64/RELEASE_GCC5/FV/QEMU_EFI.fd
PLAT=qemu QEMU_USE_GIC_DRIVER=QEMU_GICV3 ENABLE_SVE_FOR_NS=1 ENABLE_SVE_FOR_SWD=1 ENABLE_SME_FOR_NS=1
ENABLE_SME_FOR_SWD=1 BL32_RAM_LOCATION=tdram DEBUG=0 LOG_LEVEL=30
BL32=/home/somebody/workspace/FF-A/build/../optee_os/out/arm/core/tee-header_v2.bin
BL32_EXTRA1=/home/somebody/workspace/FF-A/build/../optee_os/out/arm/core/tee-pager_v2.bin
BL32_EXTRA2=/home/somebody/workspace/FF-A/build/../optee_os/out/arm/core/tee-pageable_v2.bin
SPD=spmd CTX_INCLUDE_EL2_REGS=0 SPMD_SPM_AT_SEL2=0 SPMC_OPTEE=1 all fip
make[1]: Entering directory '/home/somebody/workspace/FF-A/trusted-firmware-a'
Including services/std_svc/spmd/spmd.mk
services/std_svc/spmd/spmd.mk:12: *** recipe commences before first target. Stop.
make[1]: Leaving directory '/home/somebody/workspace/FF-A/trusted-firmware-a'
make: *** [Makefile:201: arm-tf] Error 2
did i use the wrong manifest or commands?
sorry for bothering
There shouldn't be a tab in the TF-A makefile (spmd.mk
). The actual error is:
services/std_svc/spmd/spmd.mk:12: *** "Error: SPMD is not compatible with ENABLE_SME_FOR_NS". Stop.
Maybe try to remove ENABLE_SME_FOR_NS=1 ENABLE_SME_FOR_NWD=1
from qemu_v8.mk
and use -cpu cortex-a57
instead of -cpu max
.
There shouldn't be a tab in the TF-A makefile (
spmd.mk
). The actual error is:services/std_svc/spmd/spmd.mk:12: *** "Error: SPMD is not compatible with ENABLE_SME_FOR_NS". Stop.
Maybe try to remove
ENABLE_SME_FOR_NS=1 ENABLE_SME_FOR_NWD=1
fromqemu_v8.mk
and use-cpu cortex-a57
instead of-cpu max
.
i tried that, and other errors occured after that. it seems that ff-a is not supported in master branch?
Finally, i found https://github.com/jenswi-linaro/manifest/blob/poc/qemu_v8_el3_spmc/qemu_v8.xml and build successfully.