Re: Qemu EFI Firmware files/docs (aarch64)

From: Ed Maste <emaste_at_freebsd.org>
Date: Wed, 04 Oct 2023 14:12:31 UTC
On Thu, 28 Sept 2023 at 07:42, David Horn <dhorn2000@gmail.com> wrote:
>
> A)  Is `edk2-aarch64-code.fd` included with Qemu the canonical and
> correct firmware for UEFI aarch64 , or is there a better one ?[1]

The Cirrus-CI smoke test switched to using the uefi image provided by
QEMU as of commit 7d9794b34bcd. I am not aware of any reason to use a
different one.

> B)  I think a bit of clarity on both the Wiki and the release
> announcement would be useful.  I am willing to assist with the wiki
> update if I can get an 'ack' from some folks here on the best
> firmware.

I think the arm64 VM section of the release notes should just be
removed, starting from "Note regarding arm64/aarch64 virtual machine
images". Standard QEMU instructions should apply to amd64 and arm64.

For reference, Cirrus-CI's smoke test invocation:

for amd64:
        QEMU="qemu-system-x86_64 -drive
if=pflash,format=raw,readonly=on,file=${OVMF}"
for arm64:
        QEMU="qemu-system-aarch64 -cpu cortex-a57 -M virt -bios
edk2-aarch64-code.fd"

and the rest of the arguments are common to both:
    $QEMU -m 256M -nodefaults \
        -serial stdio -vga none -nographic -monitor none \
        -snapshot -hda $hda 2>&1 | tee ${BOOTLOG}