fs p wrote: > Hi: > > I have a board with 512B page size nandflash . I use the yaffs2 source > code (because the kernel I choose is 2.6 and the MTD ... ),but I mount > flash as yaffs . > My problem is after > #nandwrite -a -o /dev/mtd0 root.yaffs > Writing data to block 0 > ioctl(MEMWRITEOOB): Input/output error > Data did not fit into device, due to bad blocks > : Illegal seek > > > I think there is no bad block in the flash( never write it before ). > The root.yaffs is maded by mkyaffsimage ,I think problem is nandwrite OOB > info to flash . > My step is : > # flash_eraseall /dev/mtd0 > #mkyaffsimage root root.yaffs > #nandwrite -a -o /dev/mtd0 root.yaffs > Is there something wrong ? I haven't tested this, but you should be able to write the yaffs1 filesystem by running: #nandwrite -f -o -y This forces nandwrite to use the same yaffs1 oob layout that mkyaffsimage uses. Regards, ../fam -- Frank Mandarino fmandarino(a)endrelia.com Endrelia Technologies Inc. Toronto, Ontario, Canada