[u-boot-test-hooks PATCH 2/4] qemu-arm64be: New board

Simon Glass sjg at chromium.org
Wed Jun 12 00:22:27 CEST 2024


On Tue, 11 Jun 2024 at 15:01, Jiaxun Yang <jiaxun.yang at flygoat.com> wrote:
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
> ---
>  bin/travis-ci/conf.qemu_arm64be_na              | 13 +++++++++++++
>  py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py | 10 ++++++++++
>  2 files changed, 23 insertions(+)
>  create mode 100644 bin/travis-ci/conf.qemu_arm64be_na
>  create mode 100644 py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py
>

Reviewed-by: Simon Glass <sjg at chromium.org>


> diff --git a/bin/travis-ci/conf.qemu_arm64be_na b/bin/travis-ci/conf.qemu_arm64be_na
> new file mode 100644
> index 000000000000..3929636932e6
> --- /dev/null
> +++ b/bin/travis-ci/conf.qemu_arm64be_na
> @@ -0,0 +1,13 @@
> +# SPDX-License-Identifier: MIT
> +#
> +# Copyright (c) 2024 Jiaxun Yang
> +#
> +
> +console_impl=qemu
> +qemu_machine="virt"
> +qemu_helper_script="swtpm"
> +qemu_binary="qemu-system-aarch64"
> +qemu_extra_args="-cpu cortex-a57 -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0 -device virtio-rng-pci -semihosting -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 ${U_BOOT_BUILD_DIR}/u-boot.bin"
> +reset_impl=none
> +flash_impl=none
> diff --git a/py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py b/py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py
> new file mode 100644
> index 000000000000..5746b37dbcf5
> --- /dev/null
> +++ b/py/travis-ci/u_boot_boardenv_qemu_arm64be_na.py
> @@ -0,0 +1,10 @@
> +import os
> +import travis_tftp
> +
> +env__net_uses_pci = True
> +env__net_dhcp_server = True
> +env__net_tftp_readable_file = travis_tftp.file2env('u-boot.bin', 0x40400000)
> +env__efi_fit_tftp_file = {
> +    'addr' : 0x40400000,
> +    "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'],
> +}
> --
> 2.43.0
>


More information about the U-Boot mailing list