How to use EADK

If you want to use C library in your program such as: printf, scanf....... You should use EADK library in EDK2.

1.Decompress EADK_A2_Release. There are 3 directories. Put them to your EDK2 source directory. In fact you should make sure your EDK2 can build and run NT32 well.


2.Run edksetup.bat in your EDK directory.


3.You can build EADK_A2_Release by using

build -a IA32 -p AppPkg\AppPkg.dsc

3.You well get the first error message.(AppPkg.dsc error 000E)


4.You should modify AppPkg.dsc as below as we just want to test program under NT32:

# TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
## Comment out the above line and un-comment the line below for running under Nt32 emulation.

5.Build again and your will get the second error message (time.h Error C2220)


6.The solution is simple. Use the Notepad to open the time.h and save again.

7.At last all the demos can be build. You can get main.efi hello.efi and Enquire.efi. They can be run in NT32 emulation environment.

They will be placed at "\Build\AppPkg\DEBUG_VS2008\IA32" after compiling. And you can copy them to "\Build\NT32\DEBUG_VS2008\IA32". After that they can be seen under fsnt0:


8.You can use printf in your program now. Ex.

main (
IN int Argc,
IN char **Argv

puts("Hello there fellow Programmer.");
puts("Welcome to the world of EDK II.");

printf(" %x\n",8212);

return 0;


<2016> I find it seems to be hard to download an EADK package from internet, and I put one here EadkPkg_A2

2.] .UEFI 实战(1) 配置开发环境

《How to use EADK》有6个想法

  1. 分享一下,如果沒有錢買VSS2008, 可以去Download 完全free 的 "Visual Studio Ultimate 2013 with Update 4",然後更改以下之設定 (我的OS 是Win8.1)
    1. Conf\target.txt
    ACTIVE_PLATFORM = AppPkg/AppPkg.dsc
    TOOL_CHAIN_TAG = VS2012x86
    *_MYTOOLS_*_ASM16_PATH = DEF(VS2012_BIN)\ml.exe
    將 VS2010 改成 VS2012
    將10.0 改成 12.0
    3.改完就可以 build -a X64 -p AppPkg\AppPkg.dsc

  2. 搭建环境对于新手来说是很难的一件事,我按照你说的做,会遇到和你不一样的问题,可能是我系统环境变量和你设置的不一样。我就不知道该怎么解决了~~~~

  3. Since UDK2015 is already release. so removed the UDK2010 and added UDK2015 packaged to EADK compiler environment.
    1. To download below packages
     EADK:
     EDKII:
     MdePkg 1.00 :
     EDK II Shell :
    2.install Visual studio 2013_U5()


电子邮件地址不会被公开。 必填项已用*标注