it updates the arm64 UEFI firmware to a version newer than 2023.11, as running on qemu >= 9.0 can trigger a bug in the older versions of the EDK2 guest firmware, causing Synchronous Exception and potential bootloops. While doing so it updates the amd64 OVMF firmware, which now has removed support for the 2M firmware and only supports the 4M one. The 4M OVMF firmware comes with split CODE and VARS images, which need to be loaded as pflash drives in the qemu vm, rather than via the -bios flag. For more details on the migration see: https://salsa.debian.org/qemu-team/edk2/-/blob/debian/latest/debian/howto-2M-to-4M-migration.md Fixes https://github.com/gokrazy/tools/issues/80
14 lines
253 B
Go
14 lines
253 B
Go
// Package edk provides a bundled copy of the systemd-boot UEFI app.
|
|
package edk
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed QEMU_EFI.fd
|
|
var Arm64EFI []byte
|
|
|
|
//go:embed OVMF_CODE_4M.fd
|
|
var Amd64OVMFCODE4M []byte
|
|
|
|
//go:embed OVMF_VARS_4M.fd
|
|
var Amd64OVMFVARS4M []byte
|