Hi there! I've recently found out about squashfs filesystem type, and at first glance it seems to be very nice for my project as:
1) I'll eventually use read-only filesystem and spi-nand flash image (im using luckfox-pico-mini-b).
2) It's highly preferable for me to have total image size as tiny as possible.
I just have few questions on how this stuff will work:
Does it mean that i won't be able to store any file after my image is collected? Only ramfs parts like /tmp will be available for writing?
Can i create tiny rw partition to store some configuration files, scripts and my own application with this squasfs filesystem?
And last question is about how to implement this using build.sh script: I can see some options, related to squashfs, but it seems that it's not configurable via cli interface that you provide with that script. Does changing RK_PARTITION_FS_TYPE_CFG argument in BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk making it all possible? Sorry for such a big portion of questions))) Thanks in advance!
squashfs for spi-nand
We will update the SDK after a while to provide a simple example of rv1106 spi-nand using ramfs (ramfs uses squashfs). At present, the answer can be yes. If you need to write operations, you can add an rw partition of ubifs to store them.
If you use rv1103, it cannot be implemented in ramfs (rv1103 ram is only 64M), but you can run the system in spi-nand as a reference
If you use rv1103, it cannot be implemented in ramfs (rv1103 ram is only 64M), but you can run the system in spi-nand as a reference
I changed filesystem type in boardconfig from ubifs to squashfs. I assume this there is some other things i have to do because in your build.sh script some things are hard-coded for ubifs, right?