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/
5.在windows
安装vscode
,再安装wsl
扩展,这样就可以方便管理/编辑项目文档了!
完美!
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调试时黑屏,原因是安装的子系统没有图像界面哈哈哈!
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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具