The existing 'conf.qemu_arm64_na' uses 'u-boot.bin' as bios, but for the case of TF-A, 'u-boot.bin' is BL33 and the assembled 'flash.bin' is the bios instead, which will be built and assembled at run-time via a post-buildman script and copied to '/tmp'.
Moreover, for running TF-A and OP-TEE on qemu, '-m 4G' and 'virtualization=false,secure=on' are required, and '-semihosting' should be replaced with its modern alias '-semihosting-config enable=on,target=native'. Last, point to the new helper script 'swtpm-tfa'. Signed-off-by: Raymond Mao <[email protected]> --- .../conf.qemu_arm64_fw_handoff_tfa_optee | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bin/travis-ci/conf.qemu_arm64_fw_handoff_tfa_optee diff --git a/bin/travis-ci/conf.qemu_arm64_fw_handoff_tfa_optee b/bin/travis-ci/conf.qemu_arm64_fw_handoff_tfa_optee new file mode 100644 index 0000000..9aa6d3b --- /dev/null +++ b/bin/travis-ci/conf.qemu_arm64_fw_handoff_tfa_optee @@ -0,0 +1,31 @@ +# Copyright (c) 2025 Linaro Limited +# Author: Raymond Mao <[email protected]> +# Based on conf.qemu_arm64 which is +# Copyright (c) 2017 Tuomas Tynkkynen. All rights reserved. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + +console_impl=qemu +qemu_machine="virt,virtualization=false,secure=on" +qemu_helper_script="swtpm-tfa" +qemu_binary="qemu-system-aarch64" +qemu_extra_args="-m 4G -cpu cortex-a57 -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0 -device virtio-rng-pci -d unimp -semihosting-config enable=on,target=native -chardev socket,id=chrtpm,path=/tmp/tpm/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0" +qemu_kernel_args="-bios /tmp/flash.bin" +reset_impl=none +flash_impl=none -- 2.25.1

