June 2017
Intermediate to advanced
478 pages
13h 14m
English
The squashfs filesystem was written by Phillip Lougher in 2002 as a replacement for cramfs. It existed as a kernel patch for a long time, eventually being merged into mainline Linux in version 2.6.29 in 2009. It is very easy to use: you create a filesystem image using mksquashfs and install it to the flash memory:
$ mksquashfs rootfs rootfs.squashfs
The resulting filesystem is read-only, so there is no mechanism to modify any of the files at runtime. The only way to update a squashfs filesystem is to erase the whole partition and program in a new image.
squashfs is not bad-block aware and so must be used with reliable flash memory such as NOR flash. However, it can be used on NAND flash as long as you use UBI to create an emulated, ...
Read now
Unlock full access