dgilmore changed the topic of #fedora-riscv to: Fedora on RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V || Logs: https://libera.irclog.whitequark.org/fedora-riscv || Alt Arch discussions are welcome in #fedora-alt-arches
davidlt has joined #fedora-riscv
esv has joined #fedora-riscv
davidlt has quit [Ping timeout: 265 seconds]
davidlt has joined #fedora-riscv
esv has quit [Remote host closed the connection]
davidlt has quit [Ping timeout: 244 seconds]
esv has joined #fedora-riscv
zsun has joined #fedora-riscv
Guest70 has joined #fedora-riscv
Guest70 has quit [Quit: Client closed]
zsun has quit [Ping timeout: 260 seconds]
Guest70 has joined #fedora-riscv
Guest70 is now known as omac777
omac777 is now known as omac777_2022
zsun has joined #fedora-riscv
<omac777_2022> I found:
<omac777_2022> And most important of all: https://fedorapeople.org/groups/risc-v/disk-images/readme.txt
<omac777_2022> showing how to run that image I found.  I'll give it go.  Thank you so much :)
omac777_2022 has quit [Quit: Client closed]
zsun has quit [Ping timeout: 244 seconds]
zsun has joined #fedora-riscv
zsun has quit [Quit: Leaving.]
oaken-so1rce is now known as oaken-source
rneese has joined #fedora-riscv
davidlt has joined #fedora-riscv
davidlt has quit [Ping timeout: 244 seconds]
Guest70 has joined #fedora-riscv
Guest70 is now known as omac777_2022
<omac777_2022> Pre-requisites for running qemu with the riscv image on fedora silverblue 37:
<omac777_2022> sudo rpm-ostree upgrade
<omac777_2022> sudo systemctl reboot
<omac777_2022> sudo rpm-ostree install guestfs-tools qemu-system-riscv qemu-system-riscv-core
<omac777_2022> sudo systemctl reboot
<omac777_2022> So I think I expanded the image properly:
<omac777_2022> #decompress image
<omac777_2022> unxz Fedora-Developer-Rawhide-20220726.n.0-sda.raw.xz
<omac777_2022> #use rawhide.raw's size as a reference for a new file
<omac777_2022> truncate -r Fedora-Developer-Rawhide-*.raw expanded.raw
<omac777_2022> #now resize that file to 40GB
<omac777_2022> truncate -s 40G expanded.raw
<omac777_2022> #rawhide.raw inputdisk cannot be filesystem-resized in-place
<omac777_2022> #resized filesystem found in expanded.raw
<omac777_2022> virt-resize -v -x --expand /dev/sda4 Fedora-Developer-Rawhide-*.raw expanded.raw
<omac777_2022> But the output for the following doesn't seem right:
<omac777_2022> #lists file filesystems, partitions, logical volumes and sizes
<omac777_2022> virt-filesystems --long -h --all -a expanded.raw
<omac777_2022> Name Type VFS Label MBR Size Parent
<omac777_2022> #display free space on all filesystems within image
<omac777_2022> virt-df -h -a expanded.raw
<omac777_2022> Filesystem Size Used Available Use%
<omac777_2022> Yeah...
<omac777_2022> The new nightly image doesn't have 4 partitions on it.  It just has two. The first sda1 is bootable the second sda2 is not. Both are ext4.
<omac777_2022> # just resize the last partition in this case sda2
<omac777_2022> virt-resize -v -x --expand /dev/sda2 Fedora-Developer-Rawhide-*.raw expanded.raw
<omac777_2022> #lists file filesystems, partitions, logical volumes and sizes
<omac777_2022> virt-filesystems --partitions --long -a expanded.raw
<omac777_2022> Name Type MBR Size Parent
<omac777_2022> #display free space on all filesystems within image
<omac777_2022> virt-df -h -a expanded.raw
<omac777_2022> Filesystem Size Used Available Use%
<omac777_2022> expanded.raw:/dev/sda1 456M 136M 305M 30%
<omac777_2022> expanded.raw:/dev/sda2 39G 5.8G 33G 15%
<omac777_2022> That's better.
<omac777_2022> Where is the respective .elf file for the nightly builds?
<omac777_2022> I tried taking the older .elf found from a a 2020 build but it froze after not finding cores 2,3,4:
<omac777_2022> mv Fedora-Minimal-Rawhide-20200108.n.0-fw_payload-uboot-qemu-virt-smode.elf expanded.elf
<omac777_2022> qemu-system-riscv64 \
<omac777_2022>    -nographic \
<omac777_2022>    -machine virt \
<omac777_2022>    -smp 4 \
<omac777_2022>    -m 2G \
<omac777_2022>    -kernel expanded.elf \
<omac777_2022>    -bios none \
<omac777_2022>    -object rng-random,filename=/dev/urandom,id=rng0 \
<omac777_2022>    -device virtio-rng-device,rng=rng0 \
<omac777_2022>    -device virtio-blk-device,drive=hd0 \
<omac777_2022>    -drive file=expanded.raw,format=raw,id=hd0 \
<omac777_2022>    -device virtio-net-device,netdev=usernet \
<omac777_2022>    -netdev user,id=usernet,hostfwd=tcp::10000-:22
omac777_2022 has quit [Quit: Client closed]
rneese has left #fedora-riscv [#fedora-riscv]