Re: [Yaffs] nandsim and mkyaffs2image problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
CC: eq
Subject: Re: [Yaffs] nandsim and mkyaffs2image problem
On Sunday 18 June 2006 12:26, eq wrote:
> Hi:
> I use  mkyaffs2image to make the img,and use  the nandsim tool  to mount
> it on fake /dev/mtdblock/0,
> but the file is lost.Is there some one comfront  the same problem?
>   Here is my step :
>     mkyaffs2image  fsdir yaffs.img
>     dd if=yaffs.img of=/dev/mtdblock/0
>     mount -t yaffs  /dev/mtdblock/0 /mnt/


dd to the nand mtd will not work because it does not handle the oob area
properly. Use mkyaffs for that purpose.

Also, you seem to be mixing yaffs (the original yaffs 1) and yaffs2

If you really want to be using yaffs2, be aware that the mkyaffs2image is just
for guidance only. It will not always work with all mtds due to different oob
placements.

Something like

mkyaffsimage fsdir yaffs.img
mkyaffs /dev/mtdblock/0 yaffs.img
mount -t yaffs /dev/mtdblock/0 /mnt

-- Charles