Skip to content

Releases: viral32111/uefi-experiments

Hello World

25 Jul 22:23
0.2.0
06373dd
Compare
Choose a tag to compare

These are the first applications I have made using the GNU-EFI library.

In the previous release, I used the POSIX-UEFI library, but I prefer GNU-EFI as it does not overwrite standard POSIX functions, and seems to expose more of the UEFI specification.

There are two PE executable files:

  • hello-world-with-lib.efi is a simple hello world application using the helper library (source).
  • hello-world-without-lib.efi is a simple hello world application calling system table functions (source).

The helloworld.img files is a bootable GPT disk image with an EFI system partition formatted as FAT32 containing both of the aforementioned executable files. I tested this in QEMU using the OVMF EFI shell.
Shell

Details and SHA-256 checksums for the attached files:

hello-world-with-lib.efi:    PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
hello-world-without-lib.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
helloworld.img: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 78124 sectors, extended partition table (last)

17dc7b6328d3eb608dd806dfc5e9859ac08bb4b495d5d643febb7a807655d384  hello-world-with-lib.efi
b70fb658baa905477791ce846d54bd2ee472aa487e2ba222dbc2c19a5b87a199  hello-world-without-lib.efi
00df334ca0b883a4ea50c1c107452bb26b7a970814ba403c3283a75fd2420566  helloworld.img

Hello World

18 Jul 09:02
0.1.0
9dd57ff
Compare
Choose a tag to compare

This is the first application I made using the POSIX-UEFI library and GCC compiled as a cross-compiler for i686-elf.

The helloworld.efi is the compiled PE executable from this source code, and the helloworld.img is a bootable GPT image with a FAT32 (ESP) partition containing the aforementioned executable. I tested this in QEMU using the OVMF EFI shell.
QEMU

Here are details and SHA-256 checksums for the attached files.

helloworld.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
helloworld.img: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 93749 sectors, extended partition table (last)

1a6e1e9a4d9242627cfa0b373c30172e212b1881daeecb17ad92b95cbab6c969  helloworld.efi
e05ac4554b7e71afbf213ebac227384c62e7d7d28a10de04148d543d19e29823  helloworld.img