diff options
| author | zyh <[email protected]> | 2018-06-29 22:55:06 +0800 |
|---|---|---|
| committer | zyh <[email protected]> | 2018-06-29 22:56:42 +0800 |
| commit | eead9cbd634359f5d231ddc2c26e547bf330da15 (patch) | |
| tree | a8d23e5a8372fc823e3dadb4310cb93806251fd7 | |
| parent | 0f3820f1b671c56143e8417d4e332b035a7da176 (diff) | |
[BSP][QEMU]fix run error on mac add dbg.sh on linux
| -rwxr-xr-x | bsp/qemu-vexpress-a9/qemu-dbg.sh | 6 | ||||
| -rwxr-xr-x | bsp/qemu-vexpress-a9/qemu-nographic.sh | 2 | ||||
| -rwxr-xr-x | bsp/qemu-vexpress-a9/qemu.sh | 2 |
3 files changed, 8 insertions, 2 deletions
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 |
