mips-vm: enlarge mtd

This commit is contained in:
Daniel Barlow 2023-04-15 17:22:35 +01:00
parent 1cc0b13b57
commit 11f2715d18

View file

@ -30,7 +30,8 @@ fi
test -n "$2" || usage test -n "$2" || usage
rootfs=$(mktemp mips-vm-fs-XXXXXX) rootfs=$(mktemp mips-vm-fs-XXXXXX)
dd if=$2 of=$rootfs bs=65536 conv=sync dd if=/dev/zero of=$rootfs bs=1M count=16 conv=sync
dd if=$2 of=$rootfs bs=65536 conv=sync,nocreat,notrunc
if test -n "$3"; then if test -n "$3"; then
initramfs="-initrd $3" initramfs="-initrd $3"
@ -43,7 +44,7 @@ qemu-system-mips \
-M malta -m 256 \ -M malta -m 256 \
-echr 16 \ -echr 16 \
-append "liminix default console=ttyS0,38400n8 panic=10 oops=panic init=$INIT loglevel=8 root=/dev/mtdblock0 block2mtd.block2mtd=/dev/vda,65536" \ -append "liminix default console=ttyS0,38400n8 panic=10 oops=panic init=$INIT loglevel=8 root=/dev/mtdblock0 block2mtd.block2mtd=/dev/vda,65536" \
-drive file=$rootfs,format=raw,readonly=on,if=virtio \ -drive file=$rootfs,format=raw,readonly=off,if=virtio,index=0 \
${initramfs} \ ${initramfs} \
-netdev socket,id=access,mcast=230.0.0.1:1234,localaddr=127.0.0.1 \ -netdev socket,id=access,mcast=230.0.0.1:1234,localaddr=127.0.0.1 \
-device virtio-net-pci,disable-legacy=on,disable-modern=off,netdev=access,mac=ba:ad:1d:ea:21:02 \ -device virtio-net-pci,disable-legacy=on,disable-modern=off,netdev=access,mac=ba:ad:1d:ea:21:02 \