Re: [Yaffs] Re: YAFFS garbage collection

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Woon Liang Soh
Date:  
To: goog long
CC: yaffs
Subject: Re: [Yaffs] Re: YAFFS garbage collection
You can specify the type of fs, either yaffs or yaffs2 or you can enable the
YAFFS_AUTO_YAFFS2

#ifdef CONFIG_YAFFS_AUTO_YAFFS2

    if (yaffsVersion == 1 &&
        mtd->oobblock >= 2048) {
        T(YAFFS_TRACE_ALWAYS,("yaffs: auto selecting yaffs2\n"));
        yaffsVersion = 2;
    }


    /* Added NCB 26/5/2006 for completeness */
    if (yaffsVersion == 2 &&
        mtd->oobblock == 512) {
        T(YAFFS_TRACE_ALWAYS,("yaffs: auto selecting yaffs1\n"));
        yaffsVersion = 1;
    }


#endif

On 9/6/06, goog long <> wrote:
>
> Sorry for asking a silly question. I am totally new to yaffs. What change
> do I need to be able to use yaffs2 in yaffs1 compatibility mode? It seems
> like this is not a config option change. I searched back past messages and
> could not find any that mentioned how to do it.
>
> Thanks,
> Ceco
>
>
> *Wookey <>* wrote:
>
> On 06-09-05 13:53 -0700, goog long wrote:
> >
> > Can you please provide more info on the NAND flash you're using? I
> > suspect you've got 512b page size flash chip...
> >
> >
> > It is Samsung NAND Flash component (K9K1216Q0C-D). This memory component
> > has 512Mb/64MB of capacity that is architected as 32Mx16b.
>
> yep - that's a 512 byte (528 byte) chip. Nevertheless you should be
> able to use yaffs2 on it (in yaffs1 compatibility mode).
>
> Wookey
> --
> Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK Tel +44 (0) 1223 811679
> work: http://www.aleph1.co.uk/ play: http://wookware.org/
>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
> ------------------------------
> How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> rates.
> <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
>
>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>
>