1.在Microsoft Store下载一个喜欢的Linux系统,我选择Ubuntu 18.04.6 LTS
2.切换软件镜像源:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
3.按这个配置:https://blog.csdn.net/weixin_44139099/article/details/140681442
4.一定要安装最新的nasm,否则会报错。Build/EmulatorIA32/DEBUG_GCC5/IA32/MdePkg/Library/BaseLib/BaseLib/OUTPUT/Ia32/LongJump.iii:42: error: parser: instruction expected
安装NASM

点击查看代码
wget http://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2
tar xfj nasm-2.15.05.tar.bz2
cd nasm-2.15.05/
./autogen.sh
./configure --prefix=/usr/local/
make
sudo make install

https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/
image


5.在windows安装vscode,再安装wsl扩展,这样就可以方便管理/编辑项目文档了!
image
image


完美!

image


Intel UDK Debugger Tool&&GDB调试程序

1.Intel UDK Debugger Tool下载链接
unzip解压完安装:sudo chmod +x UDK_Debugger_Tool_v1_5_1.bin
2.GDB下载安装:sudo apt isntall gdb

QEMU文档-Machine Emulator and Virtualizer.
build -p edk2/OvmfPkg/OvmfPkgX64.dsc -t GCC5 -a X64 -b DEBUG时找不到build
source edksetup.sh

BBQ了 用QEMU调试时黑屏,原因是安装的子系统没有图像界面哈哈哈!
image
WARNING: Image format was not specified for 'OVMF.fd' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] unknown keycodes (unnamed)', please report to qemu-devel@nongnu.org

发现按照书《UEFI编程实践》里面的那种方法打开有问题,换另一种方法成功打开https://cn.linux-terminal.com/?p=8385
sudo qemu-system-x86_64 -bios OVMF.fd fat:rw:hda-contents/ -net non e -vga virtio -enable-kvm
image


UEFI生命周期

Posted on   Yannercher  阅读(27)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
点击右上角即可分享
微信分享提示