From eead9cbd634359f5d231ddc2c26e547bf330da15 Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 29 Jun 2018 22:55:06 +0800 Subject: [PATCH] [BSP][QEMU]fix run error on mac add dbg.sh on linux --- bsp/qemu-vexpress-a9/qemu-dbg.sh | 6 ++++++ bsp/qemu-vexpress-a9/qemu-nographic.sh | 2 +- bsp/qemu-vexpress-a9/qemu.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 bsp/qemu-vexpress-a9/qemu-dbg.sh diff --git a/bsp/qemu-vexpress-a9/qemu-dbg.sh b/bsp/qemu-vexpress-a9/qemu-dbg.sh new file mode 100755 index 0000000000..44bc1ad967 --- /dev/null +++ b/bsp/qemu-vexpress-a9/qemu-dbg.sh @@ -0,0 +1,6 @@ +if [ ! -f "sd.bin" ]; then +dd if=/dev/zero of=sd.bin bs=1024 count=65536 +fi + + +qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc -sd sd.bin -S -s \ No newline at end of file diff --git a/bsp/qemu-vexpress-a9/qemu-nographic.sh b/bsp/qemu-vexpress-a9/qemu-nographic.sh index 1a26bd9ceb..61abb6878d 100755 --- a/bsp/qemu-vexpress-a9/qemu-nographic.sh +++ b/bsp/qemu-vexpress-a9/qemu-nographic.sh @@ -1,5 +1,5 @@ if [ ! -f "sd.bin" ]; then -dd if=/dev/zero of=sd.bin bs=64M count=1 +dd if=/dev/zero of=sd.bin bs=1024 count=65536 fi qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -nographic -sd sd.bin -net nic -net tap diff --git a/bsp/qemu-vexpress-a9/qemu.sh b/bsp/qemu-vexpress-a9/qemu.sh index d9b350388b..c8fef610c7 100755 --- a/bsp/qemu-vexpress-a9/qemu.sh +++ b/bsp/qemu-vexpress-a9/qemu.sh @@ -1,5 +1,5 @@ if [ ! -f "sd.bin" ]; then -dd if=/dev/zero of=sd.bin bs=64M count=1 +dd if=/dev/zero of=sd.bin bs=1024 count=65536 fi qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial stdio -sd sd.bin