最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

macos - Running RISC-V FreeBSD with QEMU on Apple Silicon - Stack Overflow

programmeradmin4浏览0评论

I am following the instructions from freebsd to boot FreeBSD - RISC-V image booting on macOS Sequoia 15.2 with brew installed qemu :

qemu-system-riscv64 -machine virt -m 2048M -smp 2 -nographic \
    -bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
    -kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \
    -drive file=FreeBSD-15.0-CURRENT-riscv-riscv64-ufs.raw,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 \
    -netdev user,id=net0,ipv6=off,hostfwd=tcp::8022-:22 -device virtio-net-device,netdev=net0

and I get :

qemu-system-riscv64: netdev: drive with bus=0, unit=0 (index=0) exists

I also tried :

qemu-system-riscv64 \
-M virt \
-drive file=/opt/homebrew/share/qemu/edk2-riscv-code.fd,format=raw,if=pflash,readonly=on \
-accel hvf \
-cpu host \
-smp 6 \
-m 50G \
-drive file=FreeBSD-15.0-CURRENT-riscv-riscv64-ufs.raw,if=virtio,cache=writethrough,format=raw \
-serial mon:stdio \
-nographic

and got :

qemu-system-aarch64: /opt/homebrew/share/qemu/edk2-riscv-code.fd,format=raw,if=pflash,readonly=on: drive with bus=0, unit=0 (index=0) exists

(found the second command elsewhere on the internets)

Any ideas ?

发布评论

评论列表(0)

  1. 暂无评论