helloworld.efi example failing on real hardware
Yesterday I started playing with POSIX-UEFI, and tried out the helloworld.efi example from the OSDev wiki article. At first I tried it out in QEMU using OVFM and everything worked. However, I couldn't get the example to run on real hardware.
After compiling helloworld.efi, I followed the steps on the UEFI osdev article to create a FAT16
partition that includes the UEFI Shell in \EFI\BOOT\BOOTX64.EFI
and helloworld.efi
in another directory. I burned that to a flashdrive with dd
and rebooted the computer.
The computer boots to the UEFI Shell, but it hangs when I try to execute the helloworld.efi app. I can run other shell commands without problems.
I have no idea how to debug this. I created a thread in the osdev forums, and someone told me to ask here for more help.
Note that I haven't tried using TianoCore or GNU-EFI apps yet, I started with POSIX-UEFI as it seemed the easiest one. I will try with TianoCore next and see if I have the same issues.