How to start programming under uefi
How to start programming under uefi
I try to create simple project (just Hello World) under UEFI. But I can't understand where I can execute this. I downloaded edk2 with duel package for Debian Linux (gcc 4.9) but I can't understand what is next? What I need to do to create and execute hello world? How I should use this emulator?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: How to start programming under uefi
- Start with loading the proper BIOS image into Bochs or qemu, and see if you get to a prompt.
- Craft a partitioned disk with FAT and a few files on it and see if it likes that.
- Build an x86_64 PE toolchain
- Read the EFI documentation and write a hello world based on the examples out there.
- Craft a partitioned disk with FAT and a few files on it and see if it likes that.
- Build an x86_64 PE toolchain
- Read the EFI documentation and write a hello world based on the examples out there.
Re: How to start programming under uefi
Why not try uefi simple project which uses gnu-efi under visual studio ? It works really good.
Firstly it free you from EDK2 and its various types of files,
Secondly it free you from makefile and uefi_call_wrapper(),
Also you can work under vs under windows instead of gedit or vim under linux
And what is worth to mention is that you can use masm/nasm/yasm as custom assembly compile tools for vs, instead of gas grammar with inline assembly under gcc
useful feather if you want to modify GDTR or CRs.
Firstly it free you from EDK2 and its various types of files,
Secondly it free you from makefile and uefi_call_wrapper(),
Also you can work under vs under windows instead of gedit or vim under linux
And what is worth to mention is that you can use masm/nasm/yasm as custom assembly compile tools for vs, instead of gas grammar with inline assembly under gcc
useful feather if you want to modify GDTR or CRs.
Re: How to start programming under uefi
This is a little old, but I've been working on the wiki UEFI page pretty heavily over the past couple days, and I think it provides a slightly more gentle introduction now.
Re: How to start programming under uefi
Just today I was thinking if using UEFI would be a good idea and was very pleased by that page. Thank you!