在Ubuntu20.04上,我使用页面xv6安装了6.828使用的工具项目
$ sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu他们在网页上检查的文件版本是
$ riscv64-unknown-elf-gcc --version
riscv64-unknown-elf-gcc () 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ qemu-system-riscv64 --version
QEMU emulator version 5.2.50 (v5.2.0-2349-g51db2d7cf2)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers关于xv6 6-riscv
$ make qemu
# ... lots of output ...
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-device,drive=x0,bus=virtio-mmio-bus.0程序被困在那里了。vm没有引导,也没有显示提示。
任何关于如何解决这一问题的想法都会受到欢迎。
发布于 2021-03-20 03:47:18
在6.S081中使用的工具中已经提到了这一点
此时,qemu软件包似乎收到了一个更新,破坏了它与内核的兼容性。如果您运行make,并且脚本似乎挂起 系统-riscv64 64 -machine -bios无-kernel内核/内核-m 128 m -smp 3 nographic -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk设备,drive=x0,bus=virtio-mmio-bus.0 您需要卸载该软件包并安装一个旧版本: $ sudo apt-获取删除qemu-system-misc $ sudo apt-获取安装qemu-system-misc=1:4.2-3 ubuntu6
https://stackoverflow.com/questions/66390948
复制相似问题