Hi Lonnie, Martin, to mimic the UEFI system in qemu you can do the following:
- find OVMF_CODE.fd, in my case: /usr/share/edk2/ovmf/OVMF_CODE.fd- compile the framebuffer example with `make efiimage E=framebuffer-example` (Code base: 2024.08 snapshot)
- start qemu with:qemu-system-x86_64 -cpu host -enable-kvm -m 2G -smp 2 -serial stdio -bios /usr/share/edk2/ovmf/OVMF_CODE.fd -kernel images/l4re_framebuffer-example.efi
This gives me the serial output in the terminal and the nice morphing spectrum window within mag on the qemu screen.
Cheers, Philipp Am 26.11.24 um 17:50 schrieb Martin Decky:
Dear Lonnie,If it can be worked out in some way [..]If you are targeting a native UEFI system, try the "efiimage" target that generates a binary that can be booted directly from UEFI (just make sure you boot the .efi file, not the .elf file). Or you can use the "chainloader" command if you already use GRUB 2 as your boot loader for UEFI.The framebuffer example should use the GOP framebuffer and not rely on the VESA BIOS in this case.If you also need an ISO image for UEFI, there is a patch upstream that provides the "grub2efiiso" target as a convenience [1] (not in the snapshot release yet).[1] https://github.com/kernkonzept/mk/commit/ce9a28f474c2da4187a0c8f0ca2e43c288b870beBest regards Martin Decky _______________________________________________ l4-hackers mailing list -- [email protected] To unsubscribe send an email to [email protected]
-- [email protected] - Tel. 0351-41 883 221 http://www.kernkonzept.com Kernkonzept GmbH. Sitz: Dresden. Amtsgericht Dresden, HRB 31129. Geschäftsführer: Dr.-Ing. Michael Hohmuth
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ l4-hackers mailing list -- [email protected] To unsubscribe send an email to [email protected]
