From 29a508222c5c49bd48b45a952e51691b14b4263d Mon Sep 17 00:00:00 2001 From: zhkag Date: Tue, 26 Sep 2023 10:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20qemu=20=E6=8C=82=E8=BD=BD?= =?UTF-8?q?=20elm=20=E6=96=87=E4=BB=B6=E7=B3=BB=E7=BB=9F=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/qemu-virt64-aarch64/qemu-debug.sh | 1 + bsp/qemu-virt64-aarch64/qemu-graphic.sh | 1 + bsp/qemu-virt64-aarch64/qemu.sh | 1 + bsp/qemu-virt64-riscv/qemu-nographic.sh | 1 + bsp/qemu-virt64-riscv/qemu-v-nographic.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/bsp/qemu-virt64-aarch64/qemu-debug.sh b/bsp/qemu-virt64-aarch64/qemu-debug.sh index 91f0cf7526..6e60986085 100644 --- a/bsp/qemu-virt64-aarch64/qemu-debug.sh +++ b/bsp/qemu-virt64-aarch64/qemu-debug.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 +mkfs.fat sd.bin fi qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \ diff --git a/bsp/qemu-virt64-aarch64/qemu-graphic.sh b/bsp/qemu-virt64-aarch64/qemu-graphic.sh index 09d4371cab..52e78ba177 100644 --- a/bsp/qemu-virt64-aarch64/qemu-graphic.sh +++ b/bsp/qemu-virt64-aarch64/qemu-graphic.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 +mkfs.fat sd.bin fi qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.bin -serial stdio \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \ diff --git a/bsp/qemu-virt64-aarch64/qemu.sh b/bsp/qemu-virt64-aarch64/qemu.sh index f025e2c947..4f07acaad4 100755 --- a/bsp/qemu-virt64-aarch64/qemu.sh +++ b/bsp/qemu-virt64-aarch64/qemu.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 +mkfs.fat sd.bin fi qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \ diff --git a/bsp/qemu-virt64-riscv/qemu-nographic.sh b/bsp/qemu-virt64-riscv/qemu-nographic.sh index 11bdb0bcac..c43d82308d 100755 --- a/bsp/qemu-virt64-riscv/qemu-nographic.sh +++ b/bsp/qemu-virt64-riscv/qemu-nographic.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 +mkfs.fat sd.bin fi qemu-system-riscv64 -nographic -machine virt -m 256M -kernel rtthread.bin \ diff --git a/bsp/qemu-virt64-riscv/qemu-v-nographic.sh b/bsp/qemu-virt64-riscv/qemu-v-nographic.sh index 31ce3f2dc1..068ff4fa6c 100644 --- a/bsp/qemu-virt64-riscv/qemu-v-nographic.sh +++ b/bsp/qemu-virt64-riscv/qemu-v-nographic.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 +mkfs.fat sd.bin fi qemu-system-riscv64 -nographic -machine virt -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -m 256M -kernel rtthread.bin \