[Yaffs] Về: A Three YEARs Problem!!!-----Can not see file a…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Duy Thang Dao
Date:  
To: yichia lan
CC: yaffs
Subject: [Yaffs] Về: A Three YEARs Problem!!!-----Can not see file afterwrite yaffs2 image on NAND
Hi,
You should look into the kernel source code to find the solution. For example, I am using linux kernel 2.6.29.3. Come to driver/mtd/nand/,
and read into nand_base.c. You see that:

static struct nand_ecclayout nand_oob_64 = {
     .eccbytes = 24,
     .eccpos = {
            40, 41, 42, 43, 44, 45, 46, 47,
            48, 49, 50, 51, 52, 53, 54, 55,
            56, 57, 58, 59, 60, 61, 62, 63},
     .oobfree = {
         {.offset = 2,
          .length = 38}}
};


Is that your NAND which has 64 bytes in OOB ? And you are using this definition for your NAND ?
If the offset = 2 then you can be use command "mkyaffs2image /tmp/test/ /tmp/yaffs2.img 2".
So offset = x, using:
mkyaffs2image /tmp/test/ /tmp/yaffs2.img x

Make clearly what is your definition of your NAND 's OBB.
Best, regard
________________________________
Từ: yichia lan <>
Đến:
Cc:
Gửi ngày: Thứ Hai, 2 tháng 11, 2009 12:12:03
Chủ đề: Re: [Yaffs] A Three YEARs Problem!!!-----Can not see file afterwrite yaffs2 image on NAND


>>Hi


>>Thank you for your reply.
>>I'm trying to use another yaffs2 branch source, and patch it as you offered.
>>Now, there is no segmentation.
>>But, after nandwrite -a -o /dev/mtd0 yaffs2.img, and mount it to /mnt/nandyaffs2
>>There still only "lost+found" .


>>I can new files and new folders in /mnt/nandyaffs2 after mount the nand.
>>But I can not nandwrite a yaffs2 imge into NAND and get only lost+found.
>>Why?
>>Confused!!!!!


>>My English is not good either, and thank you for your patience.


>>Best Regards.



      Cảm giác an toàn hơn khi online. Nâng cấp lên Internet Explorer 8 mới, an toàn hơn,tối ưu hóa cho Yahoo!. Hoàn toàn miễn phí. Tải IE8 tại đây! 
http://downloads.yahoo.com/vn/internetexplorer/