The attached patch updates mkyaffs to detect when it was not able to to write the complete image to NAND due to an excessive number of bad blocks. -Frank -- Frank Rowand MontaVista Software, Inc