[PATCH] test: add ARMv8 EFI app testing
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Feb 16 00:49:34 PST 2026
Add test coverage for barebox running as an EFI application on ARM64
by having barebox as EFI firmware boot barebox.efi as EFI app via
QEMU FW_CFG.
Cc: Chali Anis <chalianis1 at gmail.com>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
This requires some of the fixes in the 39-patch series that was I just sent
out to be applied.
---
.github/workflows/test-labgrid-pytest.yml | 4 +++
test/arm/multi_v8_efi_defconfig.yaml | 30 +++++++++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 test/arm/multi_v8_efi_defconfig.yaml
diff --git a/.github/workflows/test-labgrid-pytest.yml b/.github/workflows/test-labgrid-pytest.yml
index 8469a5387f22..1247ced8e0ac 100644
--- a/.github/workflows/test-labgrid-pytest.yml
+++ b/.github/workflows/test-labgrid-pytest.yml
@@ -42,6 +42,10 @@ jobs:
defconfig: multi_v7_efiloader_defconfig
osimg: debian-13.3.0-armhf-netinst.iso
+ - ARCH: arm
+ lgenv: test/arm/multi_v8_efi_defconfig.yaml
+ defconfig: multi_v8_efi_defconfig
+
- ARCH: mips
lgenv: test/mips/qemu-malta_defconfig.yaml
defconfig: qemu-malta_defconfig
diff --git a/test/arm/multi_v8_efi_defconfig.yaml b/test/arm/multi_v8_efi_defconfig.yaml
new file mode 100644
index 000000000000..3848d3b34574
--- /dev/null
+++ b/test/arm/multi_v8_efi_defconfig.yaml
@@ -0,0 +1,30 @@
+targets:
+ main:
+ drivers:
+ QEMUDriver:
+ qemu_bin: qemu-system-aarch64
+ machine: virt,highmem=off
+ cpu: cortex-a57
+ memory: 1024M
+ bios: barebox-qemu-virt.img
+ kernel: barebox.efi
+ display: qemu-default
+ BareboxDriver:
+ prompt: 'barebox@(\x1b.+)?barebox EFI payload:[^ ]+ '
+ bootstring: 'Starting EFI payload at'
+ autoboot: 'stop autoboot'
+ BareboxTestStrategy: {}
+ features:
+ - virtio-mmio
+ devices:
+ wdog0: 'Parent: efi-wdt'
+ efivarfs0: 'Driver: efivarfs'
+ # efifs0: 'Driver: efifs' # TODO: ESP not detected
+ env:
+ nv/boot.default: qemu_fw_cfg
+ nv/autoboot: boot
+images:
+ barebox-qemu-virt.img: !template "$LG_BUILDDIR/images/barebox-qemu-virt.img"
+ barebox.efi: !template "$LG_BUILDDIR/barebox.efi"
+imports:
+ - ../strategy.py
--
2.47.3
More information about the barebox
mailing list