Re: [Yaffs] A Three YEARs Problem!!!-----Can not see file af…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: yichia lan
Date:  
To: sunshareall0709
CC: yaffs
Subject: Re: [Yaffs] A Three YEARs Problem!!!-----Can not see file afterwrite yaffs2 image on NAND
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" <>

To: <>

Cc: <>

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.=

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