I've set up an environment in QEMU, but I'm having some troubles booting into the UEFI console. I'm running QEMU v 5.0.1 and am running Ubuntu 16.04 using edk2 for my UEFI environment with MdeModulePkg/MdeModulePkg.dsc as the platform for my OVMF build. I am using the following command for booting my QEMU system:
sudo qemu/x86_64-softmmu/qemu-system-x86_64 -m 1G -enable-kvm \ -machine q35,smm=on \ -smp cores=4,sockets=1 \ -global ICH9-LPC.disable_s3=1 \ -kernel linux-stable/arch/x86/boot/bzImage \ -vga qxl \ -display gtk,show-cursor=on \ -drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd \ -drive if=pflash,format=raw,file=copy_OVMF_VARS.fd \ -hda images/example.qcow2 --append "root=/dev/sda1 console=ttyS0" \ -hdc qemu-img.img \ -debugcon file:debug.log -global isa-debugcon.iobase=0x402 \ -monitor telnet:127.0.0.1:55555,server,nowait -device e1000,netdev=net0 \ -netdev user,id=net0After running, it goes straight into Ubuntu (see here), but I've been trying to boot into the UEFI shell so I can view the memory map addresses, but I'm unable to boot into this before Ubuntu boots. I've tried entering Esc, Enter and every F1 - F12 key while it's booting, but none work. I've tried running systemctl reboot --firmware-setup but this returns Cannot indicate to EFI to boot into setup mode: No such file or directory. I'm unsure what else to try. Is there a qemu option I can pass when initially booting to go into the EFI shell instead of booting into Ubuntu?