当前位置:网站首页>UEFI development learning 2 - running ovmf in QEMU
UEFI development learning 2 - running ovmf in QEMU
2022-07-05 07:51:00 【Yang_ Winston】
stay qemu Run in OVMF
install qemu
The first thing you need to do is Ubuntu Install in qemu, Use the following command to install .
sudo apt-get install qemu
Choose the right processor architecture
Be sure to align the processor architecture for OVMF with the proper processor archtecture of QEMU.
For the IA32 build of OVMF, there is a little more choice, since the X64 processor is also compatible with IA32. Therefore, with the IA32 build of OVMF, you can use the following commands: qemu, qemu-system-i386 or qemu-system-x86_64.
For the X64 build of OVMF, however, you can only use the qemu-system-x86_64 command.
by OVMF QEMU establish BIOS Catalog
- Create a directory , also cd Go to the directory .
bash$ mkdir ~/run-ovmf
bash$ cd ~/run-ovmf
- take OVMF.fd Copy files to this directory , And rename to bios.bin:
bash$ cp /path/to/ovmf/OVMF.fd bios.bin
- Create a directory as QEMU Hard disk image of
(QEMU can turn the contents of a directory into a disk image ‘on-the-fly’):
bash$ mkdir hda-contents
Use OVMF function QEMU
The following three commands are similar , But the parameters are different .
bash$ qemu-system-x86_64 -L . -hda fat:hda-contents
Add -net none You can disable PXE start-up .
qemu-system-x86_64 -L . --bios ~/src/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd -net none
I use the following command .
qemu-system-x86_64 -pflash bios.bin -hda fat:hda-contents -net none


Input exit You can quit 
Reference resources :How-to-build-OVMF
Last one :UEFI Developing learning 1 - Ubuntu18.04 build edk2 Environmental Science
边栏推荐
- Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
- Software designer: 03 database system
- Record the visual shock of the Winter Olympics and the introduction of the screen 2
- Altium Designer 19.1.18 - 导入板框
- Train your dataset with yolov4
- Altium designer 19.1.18 - Import frame
- assert_ Usage of param function
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
- "Source code interpretation" famous programmer TJ's only library
- .NET服务治理之限流中间件-FireflySoft.RateLimit
猜你喜欢

Markdown tips

Altium designer 19.1.18 - change the transparency of copper laying

Butterfly theme beautification - Page frosted glass effect

Numpy——1.數組的創建

Oracle-触发器和程序包

Application of ultra pure water particle counter in electronic semiconductors

From then on, I understand convolutional neural network (CNN)

Extended application of single chip microcomputer-06 independent key

Ads usage skills

生产中影响滑环质量的因素
随机推荐
Altium designer 19.1.18 - change the transparency of copper laying
Practical application cases of digital Twins - fans
Markdown tips
mysql 盲注常见函数
Thunderbird tutorial \ easy to use mail client
NSIS finds out whether the file exists and sets the installation path
Batch modify the txt file code to UTF-8 (notepad++)
Ads learning record (lna_atf54143)
Altium designer 19.1.18 - Import frame
Oracle triggers and packages
Numpy——1.数组的创建
[MySQL] database knowledge record
The browser cannot access Baidu
Differences between pycharm and idle and process -- join() in vs Code
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
万字详解八大排序 必读(代码+动图演示)
Pointnet++ classification practice
Explain STM32 startup file in detail
Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
如何进行导电滑环选型