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

This commit is contained in:
zhkag 2023-09-26 10:22:35 +08:00 committed by guo
parent c60ecd7c4a
commit 29a508222c
5 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
if [ ! -f "sd.bin" ]; then if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536 dd if=/dev/zero of=sd.bin bs=1024 count=65536
mkfs.fat sd.bin
fi fi
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \ 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 \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

View File

@ -1,5 +1,6 @@
if [ ! -f "sd.bin" ]; then if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536 dd if=/dev/zero of=sd.bin bs=1024 count=65536
mkfs.fat sd.bin
fi fi
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.bin -serial stdio \ 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 \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

View File

@ -1,5 +1,6 @@
if [ ! -f "sd.bin" ]; then if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536 dd if=/dev/zero of=sd.bin bs=1024 count=65536
mkfs.fat sd.bin
fi fi
qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -m 128M -smp 4 -kernel rtthread.bin -nographic \ 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 \ -drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \

View File

@ -1,5 +1,6 @@
if [ ! -f "sd.bin" ]; then if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536 dd if=/dev/zero of=sd.bin bs=1024 count=65536
mkfs.fat sd.bin
fi fi
qemu-system-riscv64 -nographic -machine virt -m 256M -kernel rtthread.bin \ qemu-system-riscv64 -nographic -machine virt -m 256M -kernel rtthread.bin \

View File

@ -1,5 +1,6 @@
if [ ! -f "sd.bin" ]; then if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536 dd if=/dev/zero of=sd.bin bs=1024 count=65536
mkfs.fat sd.bin
fi fi
qemu-system-riscv64 -nographic -machine virt -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -m 256M -kernel rtthread.bin \ qemu-system-riscv64 -nographic -machine virt -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -m 256M -kernel rtthread.bin \