Closed MrZLeo closed 1 year ago
And I have tried sudo make qemu
as well, it did not work.
I am running Qemu on a M1 too. Ending up having the exact same error when trying to boot. :(
The comments on this thread make it sound like Qemu was patched in May to address this issue.
https://bugs.launchpad.net/qemu/+bug/1914849
Perhaps try using Qemu 6.1.0
I'm not sure if this is the right place to post this, but at time of writing this, homebrew has qemu
7.2.0, which works pretty well with riscv.
Command:
qemu-system-riscv64 \
-machine virt \
-cpu rv64 \
-m 4G \
-device virtio-blk-device,drive=hd \
-drive file=overlay.qcow2,if=none,id=hd \
-device virtio-net-device,netdev=net \
-netdev user,id=net,hostfwd=tcp::2222-:22 \
-kernel ./u-boot-qemu/uboot.elf \ # extracted from u-boot-qemu_2021.01+dfsg-5_all.deb
-object rng-random,filename=/dev/urandom,id=rng \
-device virtio-rng-device,rng=rng \
-append "root=LABEL=rootfs console=ttyS0" \
-nographic
@tresf Yes, it works now. It has been supported by qemu right now : )
I download the necessary dependencies and type
make qemu
in xv6's directory, it seems some troubles happened:I don't know what does it means and how to solve it. But it seems I have to exit it by
ctrl + A + x
rather thanctrl + c
, which indicates that the problem may come from qemu.My device: