[Yaffs] Re: problem in creating yaffs image

Christian Bünnig masala at web.de
Fri Jul 7 10:58:34 BST 2006


Thanks, that makes life a bit easier.

But what about that mkyaffs2image? What's its purpose all about, if it 
does not work? I tried to solve the problem that the image does not get 
created properly, but looking through the code, I have no idea where to 
do what..

Christian

> You don't have to make an empty image as far as I had tested,
> Just use flash_eraseall to erase mtd device and put files into it,
> boot with option rootfstype=yaffs2, it boot properly .
> I am not sure whether it is truely yaffs2 partition ,but /proc
> information tell me it's an yaffs2 partition.
> 
> For your reference.
> 
> Will
> 
> 2006/7/5, Christian Bünnig <christian.buennig at wbs-germany.de>:
>  > I could not solve the problem, but I found a way to shift around.
>  >
>  > When creating a YAFFS2 image with mkyaffs2image, the files within the
>  > directory to create an image from does not appear in the root directory
>  > of the created image, they _exist_, but they are not shown. In deed they
>  > exist as directories (try a cd into them). But i could not delete or
>  > even list them (segmentation fault).
>  >
>  > Is this a bug in mkyaffs2image?
>  >
>  > A workaround is to
>  >
>  > -> create an empty yaffs2 image with mkyaffs2image:
>  >
>  > mkdir dummy
>  > mkyaffs2image dummy img.yaffs
>  >
>  > -> write into flash:
>  >
>  > flash_eraseall /dev/mtd0
>  > nandwrite -a -o /dev/mtd0 img.yaffs
>  >
>  > -> mount /dev/mtd0
>  >
>  > -> and write all files via cp into the filesystem
>  >
>  > that works for me, but it is not the best solution
>  >
>  > Christian
>  >
>  >
>  >
>  > _______________________________________________
>  > yaffs mailing list
>  > yaffs at stoneboat.aleph1.co.uk
>  > http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>  >
> 




More information about the yaffs mailing list