<somlo>
the longer version of this story is that I have a riscv-fedora root image (currently as ext4, cloned from a qemu vm) that I'm trying to chroot into and run some commands from
<somlo>
so fat is out since I need proper permissions and file name (case, length) support
<azonenberg>
what about squashfs or jffs2? :p
<azonenberg>
wrt beign light
<azonenberg>
or something along those lines
<azonenberg>
(you didn't need it writable, did you?)
<somlo>
thanks, I'll RTFMing on f2fs, squashfs, and jffs2, see what shakes out!
<azonenberg>
squashfs is for rom-type stuff, it's compressed and lightweight but not writable
<azonenberg>
jffs2 and yaffs iirc are common embedded flash filesystems for lightweight stuff
edmund_ has quit [Ping timeout: 272 seconds]
<somlo>
writable would be nice though, since once I chroot some programs might try and write to "disk"
<hackerfoo>
I guess jffs2 is for devices without a flash translation layer (FTL), and f2fs is for devices with a FTL.
<somlo>
I can access a SD card in SPI mode
<hackerfoo>
somlo: You can combine them with an overlay FS.
<hackerfoo>
I think SD cards have a FTL.
<tpw_rules>
they do
<hackerfoo>
JFFS2 is for when you just have a flash chip, and no dedicated controller.
<somlo>
ok, so f2fs, then -- fingers crossed, I'll see how it goes :)
<hackerfoo>
I wrote an EEPROM emulation layer for flash on a microcontroller before. That was fun.
<somlo>
thanks again to everyone for the clue!
<hackerfoo>
It rotated a old, new, and log page through three pages of flash each time the log filled up, such that all writes were atomic and it performed wear leveling.