Squashfs and handling bad blocks are independent for each other. Basically the handling of bad block in NAND flash should be done in driver like below.
The blockrom MTD driver provides bad block free read access to MTDs via /dev/blockromX device files. Bad blocks are automatically skipped upon read, and reading ...
Should mtd handle bad blocks when using squashfs? I suspect you will have to write a simple 'translation layer' that automatically skips bad blocks. This is ...
2011年3月22日 — Write a user-space utility that writes Squashfs filesystems to NAND, skipping bad blocks (and record that bad bocks have been skipped in the out ...
2014年8月20日 — + * partition, because squashfs do not know bad block. + * So the we have do the valid mapping between logic block; + * and phys block; + */; + ...
2018年9月2日 — + * partition, because squashfs do not know bad block. + * So the we have do the valid mapping between logic block; + * and phys block; + */ ...
squashfs mount just fine on mtdblock1 since it has no bad block. ... This confirms that having UBI volume on top of SquashFS solves the bad block handling issue.