flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > UEFI Test Bootloader |
| Author |
|
|
Core i7 09 Nov 2026, 06:51
I’ve been learning UEFI programming and have written a small bootloader.
I’m running it in a QEMU virtual machine on Windows; if you have some time, could you please test the application on your end so I can fix any bugs? Attached is a screenshot of the bootloader window, along with the contents of my Windows batch file. It is important to include the "-smbios type=1" flag, as the code reads data from the SMBIOS table. The last line specifies a virtual disk to be used as the boot drive. You will need to create a directory structure—"\Bootdrv\EFI\Boot\"—anywhere on your system and place my bootloader image, "Bootx64.efi" (do not change the filename), inside it. Please run the batch file from within the QEMU folder so that it can locate the EFI firmware ("qemu\share\edk2-x86_64-code.fd") instead of the legacy BIOS. Thanks in advance! Code: qemu-system-x86_64 ^ -smp 2 -m 1024M -machine q35 -smbios type=1 ^ -netdev user,id=net0,hostfwd=tcp::5555-:80 ^ -device virtio-net-pci,netdev=net0,vectors=4 ^ -drive if=pflash,format=raw,readonly=on,file=share\edk2-x86_64-code.fd ^ -drive file=fat:rw:D:\_vm\bootdrv,format=raw,if=virtio
|
||||||||||||||||||||
|
||||||||||||||||||||
|
bitRAKE 09 Nov 2026, 07:41
It worked in QEMU and real hardware.
QEMU looks exactly the same. Hardware boot has an orange title bar - no text, on titlebar - rest is good. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.