Hi

I did the patch as you said...
but after recompile mkyaffs2img and run,  I got segmentation fault.
can you help?

Best Regurd

----- Original Message -----
From: "Duy Thang Dao" <dthang_dao@yahoo.com>
To: <sunshareall0709@gmail.com>
Cc: <yaffs@lists.aleph1.co.uk>
Sent: Monday, October 12, 2009 2:11 PM
Subject: Re: [Yaffs] A Three YEARs Problem!!!-----Can not see file
afterwrite yaffs2 image on NAND


Hi, sunshareall0709.

 You wrote:
>>Hi, everybody!
>>I encounter a =roblem recently.
>>When I try to write yaffs2 image to nand, it always f=il!!
...
>>I have searched in this maillist for some useful informatio=,
>>a little disappoint, this problem had been found in 2007, but there=0A>>is still no a solution at present.
>>  Can any one help?
>>  Many =hanks!!

You should try using this patch:
http://www.aleph1.=o.uk/lurker/attach/3@20070912.140012.12f2d093.attach
And recompile your =kyaffs2img application. Here is an example after patching:
 ------------=-----------------
---------------------------------------------------------=--------------------
# dd if=/dev/zero of=/tmp/test/file bs=10=4 count=512
# mkyaffs2image /tmp/test/ /tmp/yaffs2.img 2
# flash_era=eall /dev/mtd3
# nandwrite -a -o /dev/mtd3 /tmp/yaffs2.img
# mount -t =affs2 /dev/mtdblock3 /mnt/
---------------------------------------------=-------------------------------------------------------------

Note: i= command "mkyaffs2image /tmp/test/ /tmp/yaffs2.img 2", 2 is
offset of yaff='s information in OBB.

Best regard