当前位置:网站首页>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 .
边栏推荐
- Ceil, floor and round functions
- Distributed task scheduling
- 使用Visual Studio 2017创建简单的窗口程序
- 电脑启动快捷键一览表
- Dragon Boat Festival Ankang - - les Yankees dans mon cœur de plus en plus de zongzi
- MySQL index
- UEFI EDKII 编程学习
- ThreadLocal
- More than 90% of the software companies will ask the software test interview questions. Hurry to recite them
- 榜样访谈——董宇航:在俱乐部中收获爱情
猜你喜欢
数据库常见面试题都给你准备好了
Test case and bug description specification reference

Four steps for sending rockertmq producer messages

科创人·世界500强集团CIO李洋:数字化转型成事在人,决策者应时刻聚焦于「柴」

Es6-- common basic knowledge

软件定义存储概览(一篇就够)

SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000

005:数据湖与数据仓库的区别
软件测试工作经验分享,一定有你想知道的

测试用例如何编写?
随机推荐
Auto.js学习笔记10:实例化自定义对象,在子线程使用JSON.stringify()方法导致报错(已解决)
003:AWS认为什么是数据湖?
Autojs学习笔记6:text(txt).findOne()切换app时会报错,最后解决实现效果,切换任何app直到脚本找到指定的txt文字的控件进行点击。
网络层IP协议 ARP&ICMP&IGMP NAT
Semaphore flow control semaphore
SQL basic syntax II
使用Visual Studio 2017创建简单的窗口程序
Black screen solution for computer boot
Quick sort
Auto.js调试:使用雷电模拟器的网络模式进行调试
端午節安康--諸佬在我心裏越來越粽要了
价值投资.
Auto.js学习笔记4:autojs打包后,大部分华为等大牌子手机无法安装?利用模拟器远程在autoPro里签名打包可以解决该问题。
Distributed transactions - Theoretical Overview
QQ, wechat chat depends on it (socket)?
C # getting started series (12) -- string
Example interview -- dongyuhang: harvest love in the club
Test case and bug description specification reference
软件测试面试官问这些问题的背后意义你知道吗?
Ceph性能优化与增强