MIT 6.s081 make qemu启动的时候卡住了动不了了

执行了make qemu,卡住动不了了

1
2
3
qemu-system-riscv64 -machine virt -bios none -kernel kernel/kernel -m 128M -smp
3 -nographic -drive file=fs. img, if=none, format=raw, id=x0 -device virtio-blk-devi
ce, drive=x0,bus=virtio-mmio-bus.0

停在了这么个倒霉地方

此时此刻,似乎软件包 qemu-system-misc 收到了一个更新,该更新破坏了它与我们内核的兼容性。如果运行 make qemu 并且脚本在 qemu-system-riscv64 -machine virt -bios none -kernel/kernel -m 128M -smp 3 -nographic -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 之后出现挂起,则需要卸载该软件包并安装旧版本:

1
2
$ sudo apt-get remove qemu-system-misc
$ sudo apt-get install qemu-system-misc=1:4.2-3ubuntu6