Main function that will be executed firstĮFI_STATUS efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) So, First of All, Create a new file "main.c" in "boot" directory and following code. That's All we are now going to code a very basic "Hello Universe" Application. Then Create a "boot" named directory in gnu-efi-3.0.13 directory. On Line 45-47, you can see a SUBDIRS container, Replace that line with SUBDIRS = lib gnuefi inc apps boot We added one more value here that is "boot", this is the name of directory that consists our main Application code. Then, We need to make a build rule to compile our code, That is Very Simple, Open your Main Project directory with your Favoirite code editor, then Open "gnu-efi-3.0.13/Makefile". Open your Terminal, Change directory to your gnu-efi directory in your Main Project Root Directory, then Run make This will compile the raw library files. After Grabbing the source code extract it in your Main Project Root directory. However, you want to grab the only source code instead of reading this blog, you can click the "Get Source Code" link.įirst Grab the Source Code of GNU-EFI from this Here (We are using GNU-EFI 3.0.13 - Which is Latest Now ). Then, We Configure Makefile, after that we will code a simple application in C, that can print texts. We will be first Setup GNU-EFI bootloader. We are going to make a simple application that use GNU-EFI as a bootloader, that supports x86 and 64 bit Architectures. In this Article, We are going to make a Simple x86_64 UEFI Application, that is able to print a text on screen and can be safely tested on a Real Hardware.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |