Re: [Yaffs] mkyaffs2 for yaffs2

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs, yaffs
Subject: Re: [Yaffs] mkyaffs2 for yaffs2
On Thursday 19 July 2007 02:49:28 Rick Bronson wrote:
> Hi Sergey,
>
> Thanks very much for all of the help.
>
> I've got just one more question, if you don't mind. I promise not
> to bug you after this one ;-)
>
> The issue for us in using the mkyaffs2image or the nandwrite is
> that we would have to tftp around these huge files that represent
> each of our yaffs partitions. So for example, when we want to format
> a yaffs partition we would have to do:
>
> flash_eraseall --jffs2 /dev/mtd1
> nanddump -l 1 /dev/mtd1 > fs1r.bin
> nandwrite -n -o /dev/mtd1 fs1r.bin
>
> I could skip step 2 above but it would require me to tftp over the
> fs1r.bin image which is quite large.
>
> It would be really nice if there is a way to yaffs erase a partition
> without either 1) making files on-the-fly or 2) tftp'ing over big
> partition files. Can you tell me what you think is the best
> (easiest?) way to accomplish this?


I'm unsure as to exactly what you're trying to accomplish here.

To erase a yaffs partition all you need to do is flash_eraseall. An erased
partition is a formatted one.

I suspect you're trying to achieve more than just that.


>
> Thanks very much.
>
> Rick
>
> > On Tue, 17 Jul 2007, Rick Bronson wrote:
> >
> > Yes, I did.
> >
> > I did not do mkyaffs. It's not needed. You just erase the NAND with MTD
> > utils then copy the image generated with mkyaffs2image with nand_copy or
> > however it's called with the option telling that image contains OOB data.
> >
> > Sorry, I don't have time to return to that YAFFS thing right now, being
> > busy with TI DaVinci hardware bringup etc. I will return to it in
> > probably a month to properly port it to the new kernels with all the
> > tools etc.
> >
> > > Hi Sergey,
> > >
> > > Did you get my last email? Just wondered...
> > >
> > > Thanks much.
> > >
> > > Rick
> > >
> > > ------------------------------------------------------
> > > To:
> > > In-reply-to: <>
> > > Subject: Re: mkyaffs for yaffs2
> > > Reply-To:
> > > References: <>
> > > <>
> > > <>
> > > <>
> > >
> > > Oops.
> > >
> > > Actually, I was looking for a mkyaffs.c that I can use to erase a
> > > partition and format it to yaffs. mkyaffs2image doesn't do me much
> > > good. Maybe I misunderstood your mailing list posting
> > > http://lists.aleph1.co.uk/pipermail/yaffs/2006q2/001985.html
> > >
> > > Or maybe you are implying that I need to take you changes to
> > > mkyaffs2image and apply them to the old mkyaffs.c???
> > >
> > > Thanks,
> > >
> > > Rick
> >
> > ---
> > ******************************************************************
> > *  KSI@home    KOI8 Net  < >  The impossible we do immediately.  *
> > *  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
> > ******************************************************************

>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs