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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Duy Thang Dao
Date:  
To: sunshareall0709
CC: yaffs
Subject: Re: [Yaffs] A Three YEARs Problem!!!-----Can not see file after write yaffs2 image on NAND
Hi, sunshareall0709.

You wrote:
>>Hi, everybody!
>>I encounter a problem recently.
>>When I try to write yaffs2 image to nand, it always fail!!

...
>>I have searched in this maillist for some useful information,
>>a little disappoint, this problem had been found in 2007, but there
>>is still no a solution at present.
>> Can any one help?
>> Many Thanks!!


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


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

Best regard


      Yahoo! Mail nay NHANH HƠN - Thử ngay! http://vn.mail.yahoo.com