xref: /bsp/qemu-virt64-riscv/qemu-v-nographic.sh
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1if [ ! -f "sd.bin" ]; then
2dd if=/dev/zero of=sd.bin bs=1024 count=65536
3mkfs.fat sd.bin
4fi
5
6qemu-system-riscv64 -nographic -machine virt -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -m 256M -kernel rtthread.bin \
7-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \
8-netdev user,id=tap0 -device virtio-net-device,netdev=tap0,bus=virtio-mmio-bus.1 \
9-device virtio-serial-device -chardev socket,host=127.0.0.1,port=4321,server=on,wait=off,telnet=on,id=console0 -device virtserialport,chardev=console0
10

Last Index update Fri Aug 22 02:45:11 CST 2025