Create multiple SquashFS partitions

I am working on an embedded platform (Broadcom bcm5358u processor with MIPS core), where I need additional sections for the further update procedure. The file system used is SquashFS, so I modified "struct mtd_partition" accordingly, which is passed to the code associated with MTD, and I ended up with this:

#cat /proc/partitions
major minor  #blocks  name

 - 31     0        128 mtdblock0
 - 31     0        128 mtdblock0
 - 31     1       6016 mtdblock1
 - 31     2       4573 mtdblock2
 - 31     3       6016 mtdblock3
 - 31     4       4445 mtdblock4
 - 31     5       4160 mtdblock5
 - 31     6         64 mtdblock6

Now I want to be able to mount / dev / mtdblock 4 as temporary storage during a system update, but I cannot do this because it seems that there are no FS installed in this section of mtdblock4. The kernel image and FS are integrated into a single image that flashes down / dev / mtdblock 2 (which comes as root_fs for the kernel).

: squashFS, /dev/mtdblock 4 , , , (?). , , " ", ​​ MTD?

.

+3
3

, FS ?

squashFS. , - tmpfs volume. , JFFS -. / MTD , .

0

JFFS2 () . "" - . Squashfs , .

+1

.

, SquashFS , -, . SDK API MTD .

0
source

Source: https://habr.com/ru/post/1757774/


All Articles