当前位置:网站首页>UEFI edkii programming learning
UEFI edkii programming learning
2022-06-12 09:38:00 【Tody Guo】
Environment construction
First step :
download EDK2
https://sourceforge.net/projects/edk2/files/latest/download?source=files
The second step :
Will download UDK2015.Complete.MyWorkSpace Medium BaseTools(Windows).zip Unzip it to the working directory defined by you , for example :E:\code\edkWorkSpace\
The third step :
take UDK2015.Complete.MyWorkSpace Files in package , The specific path is as follows (UDK2015.Complete.MyWorkSpace\UDK2015.MyWorkSpace.zip\MyWorkSpace\) Unzip all to the working directory (E:\code\edkWorkSpace\)
Step four :
To website https://www.acpica.org/downloads download asl compiler ( Optional )
Step five :
perform edksetup.bat --nt32
Step six :
edit E:\code\edkWorkSpace\Conf\target.txt Medium TOOL_CHAIN_TAG = VS2010x86,( The compiler you are currently using ), Save and execute build Instructions
Step seven :
perform build run can Open the interface of simulation software .
standard C Addition of modules
Use git clone https://github.com/tianocore/edk2.git Download the code locally ( File size in 230M about )
StdLib There are items containing the standard library (AppPkg, StdLib, and StdLibPrivateInternalFiles.), Need to copy to E:\code\edkWorkSpace\ Under the table of contents
Compile with instructions : build -a X64 -p AppPkg\AppPkg.dsc
If you need to make the files in the standard library cheap and available in the virtual machine (SecMain) Run in , After research, it is found that \AppPkg\AppPkg.dsc The following changes are made in
#OUTPUT_DIRECTORY = Build/AppPkg
OUTPUT_DIRECTORY = Build/NT32IA32
If you compile your own test program , You need to in \AppPkg\AppPkg.dsc Add your own part to it ( The underlined parts below ). for example :
[Components]
#### Sample Applications.
AppPkg/Applications/Hello/Hello.inf # No LibC includes or functions.
AppPkg/Applications/Main/Main.inf # Simple invocation. No other LibC functions.
AppPkg/Applications/Enquire/Enquire.inf #
AppPkg/Applications/ArithChk/ArithChk.inf #
AppPkg/Applications/Main_test/Main.inf
Then compile with instructions :build -a X64 -p AppPkg\AppPkg.dsc -m AppPkg\Applications\Main_test\main.inf ( Suppose your program path is AppPkg\Applications\Main_test\ Next )
In the use of build run Command to run the simulator program .
边栏推荐
- 榜样访谈——董宇航:在俱乐部中收获爱情
- Research progress of DNA digital information storage
- Example interview -- dongyuhang: harvest love in the club
- 《真北》读书笔记
- 哈希表的理论讲解
- Difference between MySQL unreal reading and non repeatable reading
- Essentials reading notes
- ADB命令集锦,一起来学吧
- II Transforming regular expressions into finite state automata: NFA state machine recognizes input strings
- Black screen solution for computer boot
猜你喜欢
测试用例和bug描述规范参考

Tap series article 3 | introduction to Tanzu application platform deployment reference architecture

Distributed transactions - Theoretical Overview

SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000

【极术公开课预告】Arm最强MCU内核Cortex-M85处理器,全方位助力物联网创新(有抽奖)
帮助你拿到offer的金融测试面试题
測試用例和bug描述規範參考

软件测试面试官问这些问题的背后意义你知道吗?

After going to the bathroom, I figured out the ES search server

基于 Ceph 对象存储的实战兵法
随机推荐
The onbindviewholder of recyclerview is called twice at the same time
价值投资.
In 2026, the capacity of China's software defined storage market will be close to US $4.51 billion
[cloud native] establishment of Eureka service registration
Auto.js学习笔记8:常用且重要的一些API
Crazy temporary products: super low price, big scuffle and new hope
存储研发工程师招聘
Example interview -- dongyuhang: harvest love in the club
How to write test cases?
2022 极术通讯-安谋科技纷争尘埃落定,本土半导体产业基石更稳
What are the design principles of an automated test framework? I'll sum it up for you. Come and see
Introduction to applet
功能测试面试常见的技术问题,总结好了你不看?
Database common interview questions are ready for you
端午節安康--諸佬在我心裏越來越粽要了
Distributed task scheduling
Abstract classes and interfaces
List、Set、Map的区别
Full arrangement of numbers (digital password dictionary)
SAP HANA 错误消息 SYS_XSA authentication failed SQLSTATE - 28000