Re: [Yaffs] [U-Boot-devel] Support for YAFFS2 in u-boot

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: Bryan Wu
Date:  
À: Nobin Mathew
CC: Wu, Bryan, u-boot-devel, yaffs
Sujet: Re: [Yaffs] [U-Boot-devel] Support for YAFFS2 in u-boot
On Thu, 2007-07-12 at 12:01 +0530, Nobin Mathew wrote:
> Bryan,
>
> My suggestion, is dont go for all those circus, try to boot JFFS2
> image, those flash_eraseall and nandwrite are enough, u-boot code is
> just copy of that.
>


Yes, I am trying. But it is weird on my side.

- my driver use ECC_SW then can eraseall flash, mkyaffs flash and mount
the mtdblockX. Then copy all rootfs files to the mtdblockX yaffs2,
kernel can boot from this yaffs2.

- but when try flash_eraseall and nandwrite to supporting JFFS2 with the
same driver. When mounting JFFS2 mtdblockX, it trys to nand_read_oob
then the whole system hang. I will debug this.

- When enable ECC_HW in my driver, yaffs2 mount and write will cause ECC
error. That maybe is my driver ECC_HW's problem.

Thanks a lot for your help.

- Bryan Wu

> So try to see what is going wrong in your driver.
>
> Nobin Mathew
>
> On 7/12/07, Wu, Bryan <> wrote:
> > Hi Nobin:
> >
> > Catch you here. -:))
> >
> > I think you can find all information here.
> > http://docs.blackfin.uclinux.org/doku.php?id=:using_nand_flash_with_u-bo
> > ot_and_linux_kernel&s=nand
> >
> > And what hardware platform are you working on? BF537-STAMP?
> >
> > - Bryan Wu
> >
> > >-----Original Message-----
> > >From:
> > >[mailto:u-boot-devel-bounces@blackfin.uclinux.org] On Behalf
> > >Of Nobin Mathew
> > >Sent: Monday, June 25, 2007 3:14 PM
> > >To: ;
> > >Subject: [U-Boot-devel] Support for YAFFS2 in u-boot
> > >
> > >Is there any support for writing yaffs2 file system image from
> > >u-boot to nand flash.
> > >
> > >I created the file system using mkyaffs2image utility.
> > >
> > >
> > >I mean using u-boot command "nand write"
> > >
> > >When I use this to write image I am not able to boot from
> > >that, it mounts yaffs2 but gives the error "initial console not found".
> > >
> > >But if I use the mtd utilities flash_eraseall and nandwrite
> > >then I am able to boot from that
> > >
> > >I use those utilities with following options
> > >
> > >./flash_eraseall /dev/mtdX
> > >./nandwrite -a -o /dev/mtdX yaffs2.img
> > >
> > >Thanks
> > >Nobin Mathew
> > >_______________________________________________
> > >U-Boot-devel mailing list
> > >
> > >http://blackfin.uclinux.org/mailman/listinfo/u-boot-devel
> > >
> >