03:14
davidlt has joined #fedora-riscv
03:48
esv has joined #fedora-riscv
04:24
davidlt has quit [Ping timeout: 265 seconds]
06:17
davidlt has joined #fedora-riscv
12:36
esv has quit [Remote host closed the connection]
13:26
davidlt has quit [Ping timeout: 244 seconds]
14:23
esv has joined #fedora-riscv
14:27
zsun has joined #fedora-riscv
15:10
Guest70 has joined #fedora-riscv
15:18
Guest70 has quit [Quit: Client closed]
15:19
zsun has quit [Ping timeout: 260 seconds]
15:19
Guest70 has joined #fedora-riscv
15:21
Guest70 is now known as omac777
15:24
omac777 is now known as omac777_2022
15:33
zsun has joined #fedora-riscv
15:42
<
omac777_2022 >
I found:
15:42
<
omac777_2022 >
showing how to run that image I found. I'll give it go. Thank you so much :)
15:44
omac777_2022 has quit [Quit: Client closed]
15:52
zsun has quit [Ping timeout: 244 seconds]
15:54
zsun has joined #fedora-riscv
16:15
zsun has quit [Quit: Leaving.]
16:31
oaken-so1rce is now known as oaken-source
17:26
rneese has joined #fedora-riscv
18:52
davidlt has joined #fedora-riscv
20:26
davidlt has quit [Ping timeout: 244 seconds]
21:22
Guest70 has joined #fedora-riscv
21:22
Guest70 is now known as omac777_2022
21:29
<
omac777_2022 >
Pre-requisites for running qemu with the riscv image on fedora silverblue 37:
21:29
<
omac777_2022 >
sudo rpm-ostree upgrade
21:29
<
omac777_2022 >
sudo systemctl reboot
21:29
<
omac777_2022 >
sudo rpm-ostree install guestfs-tools qemu-system-riscv qemu-system-riscv-core
21:29
<
omac777_2022 >
sudo systemctl reboot
22:12
<
omac777_2022 >
So I think I expanded the image properly:
22:12
<
omac777_2022 >
#decompress image
22:12
<
omac777_2022 >
unxz Fedora-Developer-Rawhide-20220726.n.0-sda.raw.xz
22:12
<
omac777_2022 >
#use rawhide.raw's size as a reference for a new file
22:12
<
omac777_2022 >
truncate -r Fedora-Developer-Rawhide-*.raw expanded.raw
22:12
<
omac777_2022 >
#now resize that file to 40GB
22:12
<
omac777_2022 >
truncate -s 40G expanded.raw
22:12
<
omac777_2022 >
#rawhide.raw inputdisk cannot be filesystem-resized in-place
22:12
<
omac777_2022 >
#resized filesystem found in expanded.raw
22:12
<
omac777_2022 >
virt-resize -v -x --expand /dev/sda4 Fedora-Developer-Rawhide-*.raw expanded.raw
22:13
<
omac777_2022 >
But the output for the following doesn't seem right:
22:13
<
omac777_2022 >
#lists file filesystems, partitions, logical volumes and sizes
22:13
<
omac777_2022 >
virt-filesystems --long -h --all -a expanded.raw
22:13
<
omac777_2022 >
Name Type VFS Label MBR Size Parent
22:13
<
omac777_2022 >
#display free space on all filesystems within image
22:13
<
omac777_2022 >
virt-df -h -a expanded.raw
22:13
<
omac777_2022 >
Filesystem Size Used Available Use%
22:24
<
omac777_2022 >
Yeah...
22:24
<
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.
22:24
<
omac777_2022 >
# just resize the last partition in this case sda2
22:24
<
omac777_2022 >
virt-resize -v -x --expand /dev/sda2 Fedora-Developer-Rawhide-*.raw expanded.raw
22:24
<
omac777_2022 >
#lists file filesystems, partitions, logical volumes and sizes
22:24
<
omac777_2022 >
virt-filesystems --partitions --long -a expanded.raw
22:24
<
omac777_2022 >
Name Type MBR Size Parent
22:24
<
omac777_2022 >
#display free space on all filesystems within image
22:24
<
omac777_2022 >
virt-df -h -a expanded.raw
22:24
<
omac777_2022 >
Filesystem Size Used Available Use%
22:24
<
omac777_2022 >
expanded.raw:/dev/sda1 456M 136M 305M 30%
22:24
<
omac777_2022 >
expanded.raw:/dev/sda2 39G 5.8G 33G 15%
22:24
<
omac777_2022 >
That's better.
22:47
<
omac777_2022 >
Where is the respective .elf file for the nightly builds?
22:50
<
omac777_2022 >
I tried taking the older .elf found from a a 2020 build but it froze after not finding cores 2,3,4:
22:50
<
omac777_2022 >
mv Fedora-Minimal-Rawhide-20200108.n.0-fw_payload-uboot-qemu-virt-smode.elf expanded.elf
22:50
<
omac777_2022 >
qemu-system-riscv64 \
22:50
<
omac777_2022 >
-nographic \
22:50
<
omac777_2022 >
-machine virt \
22:50
<
omac777_2022 >
-smp 4 \
22:50
<
omac777_2022 >
-m 2G \
22:50
<
omac777_2022 >
-kernel expanded.elf \
22:50
<
omac777_2022 >
-bios none \
22:50
<
omac777_2022 >
-object rng-random,filename=/dev/urandom,id=rng0 \
22:50
<
omac777_2022 >
-device virtio-rng-device,rng=rng0 \
22:50
<
omac777_2022 >
-device virtio-blk-device,drive=hd0 \
22:50
<
omac777_2022 >
-drive file=expanded.raw,format=raw,id=hd0 \
22:50
<
omac777_2022 >
-device virtio-net-device,netdev=usernet \
22:50
<
omac777_2022 >
-netdev user,id=usernet,hostfwd=tcp::10000-:22
22:52
omac777_2022 has quit [Quit: Client closed]
23:12
rneese has left #fedora-riscv [#fedora-riscv]