OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 3:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to start programming under uefi
PostPosted: Mon Sep 21, 2015 8:38 am 
Offline

Joined: Mon Sep 21, 2015 8:32 am
Posts: 1
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?


Top
 Profile  
 
 Post subject: Re: How to start programming under uefi
PostPosted: Mon Sep 21, 2015 9:51 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
- 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.

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: How to start programming under uefi
PostPosted: Mon Sep 21, 2015 10:37 am 
Offline
Member
Member

Joined: Mon Apr 09, 2007 12:10 pm
Posts: 775
Location: London, UK
UEFI Bare Bones

Regards,
John.

_________________
Tysos | rpi-boot


Top
 Profile  
 
 Post subject: Re: How to start programming under uefi
PostPosted: Fri Oct 23, 2015 7:52 am 
Offline

Joined: Thu Nov 27, 2014 8:23 pm
Posts: 11
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.


Top
 Profile  
 
 Post subject: Re: How to start programming under uefi
PostPosted: Wed Nov 11, 2015 11:40 am 
Offline
Member
Member

Joined: Wed Sep 07, 2011 3:34 pm
Posts: 112
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.


Top
 Profile  
 
 Post subject: Re: How to start programming under uefi
PostPosted: Thu Nov 12, 2015 4:28 pm 
Offline
Member
Member

Joined: Tue Jan 21, 2014 10:16 am
Posts: 56
Just today I was thinking if using UEFI would be a good idea and was very pleased by that page. Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 161 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group