Skip to content

Commit 29a5082

Browse files
zhkagGuozhanxin
authored andcommitted
修复 qemu 挂载 elm 文件系统失败
1 parent c60ecd7 commit 29a5082

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

bsp/qemu-virt64-aarch64/qemu-debug.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ ! -f "sd.bin" ]; then
22
dd if=/dev/zero of=sd.bin bs=1024 count=65536
3+
mkfs.fat sd.bin
34
fi
45
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \
56
-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

bsp/qemu-virt64-aarch64/qemu-graphic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ ! -f "sd.bin" ]; then
22
dd if=/dev/zero of=sd.bin bs=1024 count=65536
3+
mkfs.fat sd.bin
34
fi
45
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.bin -serial stdio \
56
-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

bsp/qemu-virt64-aarch64/qemu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ ! -f "sd.bin" ]; then
22
dd if=/dev/zero of=sd.bin bs=1024 count=65536
3+
mkfs.fat sd.bin
34
fi
45
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \
56
-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

bsp/qemu-virt64-riscv/qemu-nographic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ ! -f "sd.bin" ]; then
22
dd if=/dev/zero of=sd.bin bs=1024 count=65536
3+
mkfs.fat sd.bin
34
fi
45

56
qemu-system-riscv64 -nographic -machine virt -m 256M -kernel rtthread.bin \

bsp/qemu-virt64-riscv/qemu-v-nographic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ ! -f "sd.bin" ]; then
22
dd if=/dev/zero of=sd.bin bs=1024 count=65536
3+
mkfs.fat sd.bin
34
fi
45

56
qemu-system-riscv64 -nographic -machine virt -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -m 256M -kernel rtthread.bin \

0 commit comments

Comments
 (0)