Yesterday I started playing with UEFI and wanted to try out en efi app. I downloaded POSIX-UEFI and went to test out the hello world program. Under qemu it worked without any issues, however, I could not get it to run on real hardware.
These are the steps that I am running:
I generate helloworld.efi program, as indicated in the wiki article, I also downloaded a version of the UEFI Shell so I can boot to it.
Then I created a FAT16 filesystem which includes the UEFI Shell and the EFI app, following the instructions in the UEFI wiki article, the only difference here is that I created the EFI/BOOT folders with mmd, and put the UEFI Shell as
Code: Select all
EFI\BOOT\BOOTX64.EFI
Upon reboot, I am able to boot into the UEFI Shell if I choose the flash drive. I can also see the helloworld.efi app with ls, but when I try to execute it, the computer just hangs. I don't know how to further debug this. The next thing I am going to try is to use GNU-UEFI or TianoCore directly to see if it's a problem related to POSIX-UEFI.
Any ideas?