Re: [Yaffs] yaffs2 support for linux 2.6.23

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Rupesh Kumar
日付:  
To: YAFFS
CC: Charles Manning
題目: Re: [Yaffs] yaffs2 support for linux 2.6.23
On 2009-07-15 22:13, Charles Manning wrote:
> On Thursday 16 July 2009 02:46:24 Rupesh Kumar wrote:
> > Hi
> > I am using custom board based on MPC8313 processor. I have 2.6.23

kernel
> > running on it . I tried for YAFFS2 support on this kernel.
> > For this i downloaded "yaffs2.tar.gz" for this kernel and compiled

kernel
> > with yaffs2 support.
> > I used "mkyaffs2image" utility to generate rootfs image and then i

wrote
> > this rootfs image to one of nand partition.
>
> mkyaffs2image doesn't just work out of the box because different NAND

types
> and different ECC layouts etc need different binary layouts.
>
> Instead mkyaffs2image is intended as tweakware. You will need to tweak

it to
> get the layout you need.
>
> -- Charles
>
>


Hi
I applied KSI's patch(mkyaffs2_image.patch) to mkyaffs2image.c for NAND
used in my board(page size 2k & oob 64bytes).
Then generated yaffs2 RFS image for my powerpc (MPC8313E) based custom
board.
I booted with this image but it did not work. :(

The image created by mkyaffs2image utility is in little endian mode. (KSI
patch says convert functionality is BROKEN)
Can i use little endian rfs image with big endian powerpc ? or will it be
a problem..?

In another try, i created yaffs2 RFS when booted with ramdisk
image(mounted empty flash partition as yaffs2 and copied RFS contents to
that) and then booted with that, it worked and board booted with yaffs2
RFS.
But, in this case during boot up it complains of bad blocks. and, when i
create/write some files to yaffs2 partition, it complains of "yaffs2
Chunks not erased " and also increases no of bad blocks. :(
I am not able to understand why writing in yaffs2 shall mark nand block as
bad :(

Please suggest how shall i proceed to fix these problems.

Thanks
Rupesh