我想加载一个简单的内核使用qemu模拟器,但是,qemu卡在“从硬盘启动”。在目录obj/kern/kernel.img
https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-828-operating-system-engineering-fall-2012/,在实验室1分配: Qemu卡在从硬盘启动
为内核的源代码可以在下面的链接中找到。 Pdf of lab1,tar.gz of lab1,pointers1.c。现在的任务是:
The first part concentrates on getting familiarized with x86 assembly language, the QEMU x86 emulator, and the PC's power-on bootstrap procedure. The second part examines the boot loader for our 6.828 kernel, which resides in the boot directory of the lab tree ...
% cd lab % make ... + mk obj/kern/kernel.img
.. Now you're ready to run QEMU, supplying the file obj/kern/kernel.img, created above, as the contents of the emulated PC's "virtual hard disk." This hard disk image contains both our boot loader (obj/boot/boot) and our kernel (obj/kernel).
% make qemu
添加更多关于启动参数的信息。这张照片无助于找出你面临的问题吗? – LethalProgrammer
@LethalProgrammer感谢您的回应!我正在使用以下命令:sudo qemu-system-x86_64 -drive format = raw,file = obj/kern/kernel.img – eng140
什么是'obj/kern/kernel.img',它是否可启动?什么说'file -k obj/kern/kernel.img'? – osgx