diff options
| author | Bernard Xiong <[email protected]> | 2018-06-30 16:27:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-30 16:27:59 +0800 |
| commit | e474861a4b7747c0dee224163201075cf8f71e52 (patch) | |
| tree | 41580b4bcc2efcb93a1aad5e9a7589d43136199b | |
| parent | 0616f81ef684c5f8d316c31b7c75e77424696521 (diff) | |
| parent | eead9cbd634359f5d231ddc2c26e547bf330da15 (diff) | |
Merge pull request #1592 from uestczyh222/master
[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 |
