> On Monday 06 August 2007 21:17, Siddharth Choudhuri wrote:
> > I tried using the nandwrite (mkyaffs2image -> erase flash ->
> > nandwrite -a -o /dev/mtdN yaffs2.img), but every time I
> > mount/umount, I get a series of "gc prioritised messages" for
> > every block that the image was written to. However, if I erase
> > the flash and copy the files, the same messages does not
> > appear. Are these messages a notification or error ?
>
> I don't see how nandwrite can be formating the oob data correctly.
> I've made a small change to the oob scatter loop, see if this
> does anything for you. Apply the patch to mtd-utils-1.0.0.
>
> -imcd
>
> diff -uar mtd-utils-1.0.0/nandwrite.c mtd-utils-1.0.0-x/nandwrite.c
> --- mtd-utils-1.0.0/nandwrite.c 2006-04-30 16:59:15.000000000 -0400
> +++ mtd-utils-1.0.0-x/nandwrite.c 2007-08-07 10:03:04.000000000 -0400
> ...
> ...
>
Thanks for the patch. It did not work for me though. My current solution is to make a standard
ext2 fs image, mount it in loopback mode and copy the image to a mounted NAND-yaffs2 directory:
1. eraseall /dev/mtdN
2. mount -t yaffs2 /dev/mtdblockN /dest/dir
3. mount -t ext2 -o loopback ext2_image /source/dir
4. cp source to dest
This is similar to what Brian suggested.
thanks,
-siddharth
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz