diff --git a/bsp/qemu-vexpress-a9/qemu.bat b/bsp/qemu-vexpress-a9/qemu.bat index 603fe4a0ffd2120e8af16ced8cf14456e8f41a15..4a4acb33247da50e01652d241c5f63474be06dc3 100644 --- a/bsp/qemu-vexpress-a9/qemu.bat +++ b/bsp/qemu-vexpress-a9/qemu.bat @@ -3,4 +3,4 @@ if exist sd.bin goto run qemu-img create -f raw sd.bin 64M :run -qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc -sd sd.bin +qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial stdio -sd sd.bin diff --git a/bsp/qemu-vexpress-a9/qemu.sh b/bsp/qemu-vexpress-a9/qemu.sh index e9568fa2692ee3be48c0ca063c16d49432a8906e..d9b350388b1146e888927c8d1fa0a0c90e614998 100644 --- a/bsp/qemu-vexpress-a9/qemu.sh +++ b/bsp/qemu-vexpress-a9/qemu.sh @@ -1 +1,5 @@ -qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc +if [ ! -f "sd.bin" ]; then +dd if=/dev/zero of=sd.bin bs=64M count=1 +fi + +qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial stdio -sd sd.bin