squashfs for spi-nand
Posted: 2024-10-02 12:54
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!
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!