The sample code in direct folder doesn't implement yflash_MarkNANDBlockBad fully. does it?
In yaffs_ramem2k.c, nandemu2k_MarkNANDBlockBad simply clear all the content of a PackedTags2.
nandemul2k_QueryNANDBlock calls nandemul2k_ReadChunkWithTagsFromNAND to read tags unpacked from PackedTags2
During the unpack procedure, yaffs_UnpackTags always mark a block not bad.
So I don't think yflash_MarkNANDBlockBad can actually mark a block bad. Is it true?