squashfs and NAND flash

Anil Gupta
2006-04-25T10:02:49Z

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?

Thanks

-Anil

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963