qemu-all: how to make -bios EFI aka EDK2 work for x86 (again)
Hello. Just in case someone stumbles upon that. I had removed my EDK2 package long ago, after realizing that it now ships with QEMU by default. However, since the (second to) last (i think) update it no longer worked for x86, i had no time to look around though. 'Turns out that it still works .. like so: if [ -n "$vmefi" ]; then case "$vmsys" in x86_64|i386) vmefi="${QEMU_EFI}"/edk2-$vmsys.fd if [ ! -f "$vmefi" ]; then if [ -f "${QEMU_EFI}"/edk2-i386-vars.fd ] && [ -f "${QEMU_EFI}"/edk2-$vmsys-code.fd ]; then cat "${QEMU_EFI}"/edk2-i386-vars.fd "${QEMU_EFI}"/edk2-$vmsys-code.fd > $vmefi chmod 0644 $vmefi ^ Ie, just cat(1) together those two files into the one the -bios command line expects! Maybe someone has a better approach though, i would believe most of you however operate all this through a myriad of other software monsters that drive this for you. else echo >&2 '$vmefi: missing firmware files!' fi fi #vmefi="${QEMU_EFI}"/$vmsys.fd ;; aarch64|arm) vmefi="${QEMU_EFI}"/edk2-$vmsys.fd #vmefi="${QEMU_EFI}"/$vmsys.fd ;; *) echo >&2 '$vmefi: unsupported $vmsys='$vmsys syno ;; esac if [ ! -f "$vmefi" ]; then echo >&2 '$vmefi: no such edk2-ovmf firmware: '$vmefi syno fi vmefi='-bios '$vmefi fi P.S.: one final thanks to beerman for the *excellent* tips he has given to me before going psycho: both, adv_windowlist and umatrix where *absolutely* top tips for which i am very thankful. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
participants (1)
-
Steffen Nurpmeso