On 04/27/2012 04:15 AM, Sebastian Huber wrote: > Hi, > > lets suppose you have a master YAFFS2 image (without any bad blocks) and want > to copy this image to new devices that may have bad blocks in the area > dedicated to the YAFFS2 file system. Is it possible to copy this image using a > simple bad block skip algorithm? I suppose not. Do you have to copy the image > using the YAFFS2 file system itself or is there a simpler solution? > If the "master" image came by reading raw NAND of a yaffs filesystem that was properly unmounted this won't work as the checkpoint contained in it has chunk ID information (which is the page number from start of partitition). If you insert a bad block in the middle then all those are off. If your image does not contain a checkpoint then you can burn it and skip over bad blocks, as long as the rest of the partition not burned with yaffs data is erased. Can you use mkyaffs2image to create a YAFFS image that doesn't have checkpoint information in it (and then use u-boot "nand write.yaffs" to burn it? -- Peter Barada peter.barada@logicpd.com