[Bug 285554] sysutils/edk2: Update to 202508

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Sep 2025 18:14:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285554

--- Comment #15 from Roman Bogorodskiy <novel@FreeBSD.org> ---
(In reply to Michael Osipov from comment #13)

It doesn't work for me still, even with the new edk2.

My test is the following: I have a FreeBSD guest with HD and CD drives, I want
to boot from HD.

Commands I use:

sudo bhyve -c 2 -m 4096 -A -I -u -H -P \
-s 0:0,hostbridge \
-l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/var/lib/libvirt/bhyve/nvram/freebsd_VARS.fd,fwcfg=qemu
\
-s 2:0,xhci,tablet -s 1:0,lpc \
-s
3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2
\
-s 4:0,virtio-net,tap4,mac=52:54:00:47:f4:dc -s 5:0,fbuf,tcp=127.0.0.1:5920 \
-l com1,stdio \
freebsd

Same, but with fwcfg on the lpc device:

sudo bhyve -c 2 -m 4096 -A -I -u -H -P \
-s 0:0,hostbridge \
-l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/var/lib/libvirt/bhyve/nvram/freebsd_VARS.fd
\
-s 2:0,xhci,tablet -s 1:0,lpc,fwcfg=qemu \
-s
3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2
\
-s 4:0,virtio-net,tap4,mac=52:54:00:47:f4:dc -s 5:0,fbuf,tcp=127.0.0.1:5920 \
-l com1,stdio \
freebsd

Same, but without VARS:

sudo bhyve -c 2 -m 4096 -A -I -u -H -P \
-s 0:0,hostbridge \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-s 2:0,xhci,tablet -s 1:0,lpc,fwcfg=qemu \
-s
3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2
\
-s 4:0,virtio-net,tap4,mac=52:54:00:47:f4:dc -s 5:0,fbuf,tcp=127.0.0.1:5920 \
-l com1,stdio \
freebsd

Same, but with lpc on slot 31:

sudo bhyve -c 2 -m 4096 -A -I -u -H -P \
-s 0:0,hostbridge \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-s 2:0,xhci,tablet -s 31:0,lpc,fwcfg=qemu \
-s
3:0,ahci,hd:/data/img/freebsd.img,bootindex=1,cd:/data/isos/FreeBSD-14.2-RELEASE-amd64-disc1.iso,bootindex=2
\
-s 4:0,virtio-net,tap4,mac=52:54:00:47:f4:dc -s 5:0,fbuf,tcp=127.0.0.1:5920 \
-l com1,stdio \
freebsd

Am I doing something wrong?

BTW, your vm-bhyve change in combination with the bhyve(1) manual look a bit
confusing to me. The manual mentions fwcfg in the bootrom section of `-l
lpcdev[,conf]`, then gives more details in the "Boot ROM device backends". It
also mentions:

                 The possible values for the conf argument are listed in the
                 -s flag description.

But it wasn't obvious to me that it means that "-31,lpc,fwcfg=qemu" should be
used. There are also no examples for that. I haven't yet checked the code
though.

Almost forgot, after update I've re-created VARs file using:

sudo cp /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd
/var/lib/libvirt/bhyve/nvram/freebsd_VARS.fd

Not sure if that's the right way, there's no information on that in the manual
page (or I missed that somehow).

-- 
You are receiving this mail because:
You are the assignee for the bug.