Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2022 17:32:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        riscv@FreeBSD.org
Subject:   [Bug 268044] NUL-byte FS corruption using QCOW2 image for RISC-V
Message-ID:  <bug-268044-40250-zgOqkjc8M9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268044-40250@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268044-40250@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268044

--- Comment #2 from Tril <fbb@tril.bespin.org> ---
6.1.0 qemu script

#!/bin/sh


VID=3D1
NETDRIVER=3Dvirtio-net-pci
USER=3Dtril

exec /home/tril/.guix-profile/bin/qemu-system-riscv64 \
        -machine virt \
        -nographic \
        -m 2048 \
        -smp 4 \
        -bios /home/tril/.guix-profile/fw_jump.elf \
        -kernel /home/tril/.guix-profile/libexec/u-boot \
        -net tap,ifname=3Dtap${VID} \
        -net nic,model=3D$NETDRIVER,macaddr=3D52:54:00:12:46:0${VID} \
        -drive
file=3DFreeBSD-14.0-CURRENT-riscv-riscv64.qcow2,format=3Dqcow2,if=3Dvirtio \
        -boot c \
        -runas $USER


5.2.0 qemu script
#!/bin/sh

exec qemu-system-riscv64 \
        -machine virt \
        -nographic \
        -m 2048 \
        -smp 4 \
        -bios /home/tril/.guix-profile/fw_jump.elf \
        -kernel /home/tril/.guix-profile/libexec/u-boot.bin \
        -device virtio-net-device,netdev=3Deth0 \
        -netdev user,id=3Deth0 \
        -drive
file=3DFreeBSD-14.0-CURRENT-riscv-riscv64.qcow2,format=3Dqcow2,if=3Dvirtio \
        -cdrom
FreeBSD-14.0-CURRENT-riscv-riscv64-20221123-fd5882e1f2ca-259385-disc1.iso \
        -boot c


The only change necessary to fix it is to change the image to the raw image
with format=3Draw.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268044-40250-zgOqkjc8M9>