hooks: qemu-arm64be: New board

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Jiaxun Yang
2024-06-11 22:00:23 +01:00
committed by Simon Glass
parent ed46aceb27
commit 2f10447cf2
2 changed files with 23 additions and 0 deletions

View File

@@ -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

View File

@@ -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'],
}