浏览代码

修复 qemu 挂载 elm 文件系统失败

zhkag 1 年之前
父节点
当前提交
29a508222c

+ 1 - 0
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 \

+ 1 - 0
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 \

+ 1 - 0
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 \

+ 1 - 0
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 \

+ 1 - 0
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 \