Page 1 of 1
How to start programming under uefi
Posted: Mon Sep 21, 2015 8:38 am
by afx34
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?
Re: How to start programming under uefi
Posted: Mon Sep 21, 2015 9:51 am
by Combuster
- 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.
Re: How to start programming under uefi
Posted: Mon Sep 21, 2015 10:37 am
by jnc100
UEFI Bare Bones
Regards,
John.
Re: How to start programming under uefi
Posted: Fri Oct 23, 2015 7:52 am
by wyj
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.
Re: How to start programming under uefi
Posted: Wed Nov 11, 2015 11:40 am
by intx13
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
Posted: Thu Nov 12, 2015 4:28 pm
by HoTT
Just today I was thinking if using UEFI would be a good idea and was very pleased by that page. Thank you!