Hi:<br><br>I have a board with&nbsp; 512B page size nandflash . I use&nbsp; the yaffs2 source code&nbsp; (because the kernel&nbsp; I choose is 2.6 and the MTD ... ),but I mount flash as yaffs .<br>My problem is after <br>#nandwrite -a -o /dev/mtd0 
root.yaffs<br>Writing data to block 0<br>ioctl(MEMWRITEOOB): Input/output error<br>Data did not fit into device, due to bad blocks<br>: Illegal seek<br><br><br>I think there is no bad block in the flash( never write it before ).
<br>The root.yaffs is maded by mkyaffsimage ,I think problem is nandwrite OOB info to flash&nbsp; .<br>My step is :<br># flash_eraseall /dev/mtd0 <br>#mkyaffsimage root root.yaffs <br>#nandwrite -a -o /dev/mtd0 
root.yaffs<br>Is there something wrong ?<br><br><br>Regards.<br>