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

浙公网安备 33010602011771号