yes, I checked it.
This URL has instructions for Colibri-iMX6 (equipped with eMMC flash), but I’m using Colibri-iMX6ULL (equipped with raw NAND flash), so it doesn’t work.
In the image shown below (“changing the emmcargs_set parameter”), I think I have to replace the settings for eMMC with the settings for raw NAND.
But I don’t know how to change it.
Do you know how to change the settings?
UBI is as well compressed, so I wonder why you want squashfs. zstd? UBI supports zstd as well.
Freeing space for yet another MTD volume would require U-Boot mods. You may temporarily override U-Boot’s mtdparts variable, but it is not safe, since you may loose your U-Boot environment. So I would recommend squashfs on top of UBI volume if you really need it. You may need to change kernel config a bit for it.
UBI provides not only wear leveling, but as well ubihealthd, which checks in a random order blocks, and in case of bit flip, moves (scrubs) data to another block (with lowest wear?). That’s advantage, since even SLC cells do self discharge.
The simplest would be to mount UBI rootfs in ro mode. If you don’t like ability to remount it to rw temporarily, then what about authenticated UBI FS? As advertised, with unknown auth key, you could mount it only in ro mode, though I didn’t try it my self.
Thanks for your fast reply. No, unfortunately, I don’t think we have more info about SquashFS in NAND. Is your goal to create a read only file system? We have this other documentation that is not exclusive to eMMC: