From 9a9a0e9082141b5e66c4c13ea0162d612fc54ce1 Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Tue, 2 Jan 2018 15:16:12 +0800 Subject: [PATCH] [BSP] Add sd.bin in command --- bsp/qemu-vexpress-a9/qemu-dbg.bat | 7 ++++++- bsp/qemu-vexpress-a9/qemu.bat | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bsp/qemu-vexpress-a9/qemu-dbg.bat b/bsp/qemu-vexpress-a9/qemu-dbg.bat index 64268002e9..402bb460fe 100644 --- a/bsp/qemu-vexpress-a9/qemu-dbg.bat +++ b/bsp/qemu-vexpress-a9/qemu-dbg.bat @@ -1 +1,6 @@ -qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc -S -s +@echo off +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 -S -s diff --git a/bsp/qemu-vexpress-a9/qemu.bat b/bsp/qemu-vexpress-a9/qemu.bat index 33cae43db5..603fe4a0ff 100644 --- a/bsp/qemu-vexpress-a9/qemu.bat +++ b/bsp/qemu-vexpress-a9/qemu.bat @@ -1 +1,6 @@ -qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc +@echo off +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