浏览代码

[BSP] Update qemu nographic script

Bernard Xiong 7 年之前
父节点
当前提交
37c6eac27b
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      bsp/qemu-vexpress-a9/qemu-nographic.sh

+ 6 - 1
bsp/qemu-vexpress-a9/qemu-nographic.sh

@@ -1 +1,6 @@
-qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -nographic
+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 -nographic -sd sd.bin
+