2021-09-22 17:57:45 +08:00
|
|
|
if [ ! -f "sd.bin" ]; then
|
|
|
|
dd if=/dev/zero of=sd.bin bs=1024 count=65536
|
|
|
|
fi
|
2022-01-07 13:49:06 +08:00
|
|
|
qemu-system-aarch64 -M virt -cpu cortex-a53 -smp 4 -kernel rtthread.elf -nographic \
|
|
|
|
-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0
|