The problem here is probably that the SAM-BA tool from Atmel doesn't
write the OOB area of the flash, which YAFFS2 requires. You might have
some luck looking at the various options available to see if it can do
the OOB writes, otherwise you're probably stuck.
We have had a go at writing a command linux sam-ba tool for our
at91sam9260 devboard, which is documented here:
http://www.bluewatersys.com/quickstart/9260sambootassistant.php
This tool does support writing yaffs2 images properly including the OOB.
However this is customised for our board, so I doubt it will have the
correct NAND/SDRAM settings required for the EK devkit.
Andre
Harikrishna Donti wrote:
>
>
> Hi,
>
> I have created a yaffs2 image using:
> mkyaffs2image config config.yaffs2
> And if use nandwrite and mount on partition I could see all the files
> properly.
> nandwrite -a -o /dev/mtd3 config.yaffs2
>
>
> My probelm is,
> When I try to use the SAM-BA tool from ATMEL (AT91SAM9260 EK) to flash
> the yaffs2 image at the correct address of the partition, on mounting
> there would be no files except lost + found.
>
> So, I don't understand what's the problem. It seems, The flags -a -o for
> the nandwrite are really important to flash the image. This is not acheived
> by SAM-BA tool.
>
> If I just use nandwrite without flags, I get error
> #nandwrite /dev/mtd3 config.yaffs2
> Input file is not page aligned
> Data did not fit into device, due to bad blocks
> : Success
>
> So, can any one suggest, How can I create page aligned yaffs2 image (which
> may be fine with SAMBA)? And, also Did any one try using SAMBA tool for
> yaffs2 images at all??
>
> Waiting for HELP...
> Regards,
> Hari
>
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
--
Bluewater Systems Ltd - ARM Technology Solution Centre
Andre Renaud Unit 5, Amuri Park
Phone: +64 3 3779127 404 Barbadoes St
Fax: +64 3 3779135 PO Box 13 889
Email: andre@bluewatersys.com Christchurch, 8013
Web: http://www.bluewatersys.com New Zealand
Freecall Australia 1800 148 751 USA 1800 261 2934