Just found the solution: I am using the mkyaffs2image parameter oob_ecc_size of 2 to shift OOB data. This parameter is provided in the patch mentioned above. Now, I can program YAFFS2 images using nandwrite... :-)) Thank you!