Re: squashfs and NAND flash

Vitaly Wool
2006-04-25T12:21:04Z

Hi,

Anil Gupta wrote:
> Hi,
> We have an embedded system with a squashfs rootfs in NAND flash. The
> rootfs is mounted using the RO mtdblock device. The rootfs is
> occasionally upgraded, writing the entire squashfs
> image into flash using nandwrite.
>
> We found that if the NAND flash has a bad sector, the bad sector is
> correctly skipped when the image is written but fs access errors occur
> when the fs is mounted. Some debugging shows that the filesystem is
> off by 1 when reading flash sectors beyond the bad sector.
>
> We are using squashfs-2.1, kernel 2.4.31, mtd snapshot 20051003.
>
> Should mtd handle bad blocks when using squashfs?
Please see
http://lists.infradead.org/pipermail/linux-mtd/2004-May/009695.html.
It's outdated, but I don't think it's hard to make it up-to-date.
if it's of interest to many people, I can even do that :)

Vitaly