?ueCpG>5P%o_
1. 环境安装好vmware ,里面装个linux系统,比如ubuntu
2. 虚拟机里面安装qemu
sudo apt update
sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
3. 虚拟机里面git下载Xv6
git clone https://github.com/mit-pdos/xv6-riscv.git
4. 进入xv6-riscv,执行make qemu命令,就可以直接跑起来xv6系统了
如果报错,就安装对应的包
sudo apt install binutils-riscv64-linux-gnu
sudo apt install gcc-riscv64-linux-gnu
sudo apt install gdb-multiarch
sudo apt install qemu-system-misc opensbi u-boot-qemu qemu-utils
https://500ml.name/
qemu-system-riscv64 -machine virt -bios none -kernel kernel/kernel -m 128M -smp 3 -nographic -global virtio-mmio.force-legacy=false -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0
make: qemu-system-riscv64: Command not found
Makefile:172: recipe for target 'qemu' failed
make: *** [qemu] Error 127
配置编译 RISC-V 支持:
./configure --target-list=riscv64-softmmu
make -j$(nproc)
sudo make install
https://stackoverflow.com/questions/33277246/qemu-system-riscv-command-not-found
https://nn0310.xn--8stx8olrwkucjq3b.com/link/8s81fB84wOfPwEFh?clash=1