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
tekkamanninja has joined #fedora-riscv
jimwilson has quit [Quit: Leaving]
<davidlt[m]> It's 700MB
<davidlt[m]> djdelorie: IIRC most of it is empty
<davidlt[m]> the disks are created with sgdisk --clear --set-alignment=2 [..] as described in the U-Boot documentation
<davidlt[m]> [PATCH v1 0/2] Basic support for the Ventana VT1 w/ instruction fusion
<davidlt[m]> This series provides support for the Ventana VT1 (a 4-way superscalar... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6f31e9c4d1aaf549d9f864fe194a391a5db6361d)
<djdelorie> davidlt[m]: for 4k disks, --set-alignment=8 minimum. Probably more for flash-based, which is why fdisk defaults o 2048 sectors (1Mb)
<djdelorie> and /boot wasn't big enough to install a second kernel last time I tried
<davidlt[m]> I could experiment with the alignment as long as that doesn't affect the 1st two RAW parititions
<djdelorie> yeah, I left those alone
<davidlt[m]> The layout for those are recorded in U-Boot environment
<davidlt[m]> It's less a problem if FW and normal distro partitions, as those are separate image
<davidlt[m]> I don't know how alignment settings would affect where everything is in the same disk image (for booting from MMC)
<davidlt[m]> /dev/nvme0n1p1 662M 108M 533M 17% /boot
<davidlt[m]> So a single kernel eats ~100M with 500+M still available for new installs
<davidlt[m]> That's plenty enough space for a new kernel install
<djdelorie> I suppose; I bumped mine to 2G based on a memory of "not big enough"... I wonder what I was doing to fill that..
<davidlt[m]> This is from my laptop: /dev/sda6 976M 237M 673M 27% /boot
<davidlt[m]> so that has ~1G
<djdelorie> maybe it was from an old FAT partition layout?
<davidlt[m]> Not a big difference between 700G and 1G
<davidlt[m]> I actually checked, we don't use FAT partitions anymore, /boot is ext4
<davidlt[m]> So there is not FAT32 anywhere
<djdelorie> the image that sifive produces
<davidlt[m]> ah, yes, that's a different story
<davidlt[m]> maybe I should change that
<davidlt[m]> You will want to use firmware from Fedora
<davidlt[m]> I just noticed some exciting I2C, DA9063 and kinda reset support for Unmatched
<davidlt[m]> I might try to build that today
<davidlt[m]> I am finishing my coffee, and I am off for the morning walk, almost 7 AM
<djdelorie> right, I rebuilt both mmc and nvme from the fedora images today
<davidlt[m]> djdelorie: Here are the docs for the layout: https://u-boot.readthedocs.io/en/latest/board/sifive/unmatched.html#flashing
<davidlt[m]> actually they are using 1 sector alignment now
<davidlt[m]> unleashed is at 2 sector alignment: https://u-boot.readthedocs.io/en/latest/board/sifive/unleashed.html#id2
<davidlt[m]> They should be identical
<djdelorie> the start numbers are very over-aligned though
<djdelorie> for partitions 3 and 4
<davidlt[m]> Again, I can experiment with sgdisk and see what happens
<davidlt[m]> The U-Boot allows us to put rootfs into SPI NOR Flash
<davidlt[m]> I guess that's why the alignment is like that
<djdelorie> also the uboot instructions don't include setting the legacy_boot flag that the uboot scripts want
<djdelorie> well, "our" uboot scripts
<davidlt[m]> It's not really needed if (1) you change U-Boot logic (2) your firmware actually sits in SPI-NOR or MMC and the whole other stuff is in NVMe
<davidlt[m]> Of if you move away RAW partitions
<davidlt[m]> The problem is that if RAW partitions are not 0 and 1 you cannot expand other partitions
<davidlt[m]> I mean you cannot put it at the end of disk :)
<davidlt[m]> But putting them after /boot also sounds crazy
<djdelorie> I'm not talking about the firmware partitions; they should be the first two and can be any alignment
<davidlt[m]> But U-Boot logic is <interface> 0:0 for /boot
<djdelorie> partitions 3 and 4 (boot and root) should be at least 4k aligned
<davidlt[m]> The 1st drive, the 1st partition
<davidlt[m]> Unless there is a legacy boot flag in GPT
<davidlt[m]> I can play with that :)
<djdelorie> the uboot scripts for searching for "a bootable partition" looks for the legacy_boot flag, which we need since our boot is partition 3
<davidlt[m]> Let me experiment for some days and I will come back with some results for the next disk image
<djdelorie> yeah, parted can set it with "set 3 legacy_boot on"
<davidlt[m]> Yes, the disk images that I provide has that
<davidlt[m]> bootflag on /boot
<djdelorie> it did. I resized /boot so had to do it again
<davidlt[m]> What? It nukes the flags?
<djdelorie> well, I deleted parts 3 and 4 and recreated them
<davidlt[m]> But the /boot is at 700M, I do expand it, that's tons of space
<davidlt[m]> I can shoot for 1G if you want
<davidlt[m]> As on my Fedora laptop install
<djdelorie> eh, go with your own experience, my memory is suspect
<davidlt[m]> 2G is a lot, but if you want we could go for it if that's not causing some bloated disk images
<davidlt[m]> Larger is better in some cases as you never need to touch it :)
<djdelorie> for a big nvme drive, 2G is not a problem. For mmc it needs to be minimal
<djdelorie> still wondering about optimal swap...
<davidlt[m]> 2G is file for MMC too kinda, people should use 32-64G at minimum
<davidlt[m]> Don't have swap partition, but we could some or not
<davidlt[m]> If it's swapfile you can go nuts at set it to another 16G or so
<davidlt[m]> Don't have a guidance yet for Unmatched as a builder, still working on some other issues
<davidlt[m]> Keep sending suggestions for the next image
<djdelorie> fedora defaults to zram swap but the board doesn't have a ton of ram anyway...
<djdelorie> glibc rpm build just finished, took 7.2 hours
rwmjones|HOLS has quit [*.net *.split]
oaken-source has quit [*.net *.split]
rwmjones has joined #fedora-riscv
oaken-source has joined #fedora-riscv
<davidlt[m]> djdelorie: we don't use zram by default, is that default for all arches now? I recall that the last arch (or the only one) is armv7hl.
jcajka has joined #fedora-riscv
zsun has joined #fedora-riscv
Jefro has joined #fedora-riscv
zsun has quit [Remote host closed the connection]
jimwilson has joined #fedora-riscv
davidlt has joined #fedora-riscv
<djdelorie> davidlt[m]: swap on zram was enabled in the image you built
<davidlt[m]> so it's probably on by default
King_In0 has joined #fedora-riscv
King_InuYasha has quit [Ping timeout: 256 seconds]
<davidlt[m]> Yup, looking at it too
<djdelorie> I switched my board to 1 4G swap file on nvme
<davidlt[m]> Well if zram is working, that's good, but I would add a swapfile too
davidlt has quit [Remote host closed the connection]
<djdelorie> I'm not a fan of using RAM as a "fast disk" on machines with low RAM to start with... and I installed a fast disk already
King_In0 has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
King_InuYasha has joined #fedora-riscv
Jefro has quit [Ping timeout: 256 seconds]
jcajka has quit [Quit: Leaving]
tekkamanninja has quit [Ping timeout: 260 seconds]
tekkamanninja_ has joined #fedora-riscv