2021-09-22 17:57:45 +08:00
|
|
|
@echo off
|
|
|
|
if exist sd.bin goto run
|
|
|
|
qemu-img create -f raw sd.bin 64M
|
|
|
|
|
|
|
|
:run
|
2023-04-17 23:59:43 +08:00
|
|
|
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.bin -nographic ^
|
2022-03-29 11:08:25 +08:00
|
|
|
-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 ^
|
2022-07-08 02:11:19 +08:00
|
|
|
-netdev user,id=net0 -device virtio-net-device,netdev=net0,bus=virtio-mmio-bus.1 ^
|
|
|
|
-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
|