[Yaffs-archive] Re: How to write yaffsimage to flash

Charles Manning manningc2@actrix.gen.nz
Fri, 4 Apr 2003 05:29:16 +1200


On Tue, 01 Apr 2003 21:56, Steve Tsai wrote:
> I want to write the yaffs image to flash. From the howto on
> incorporation yaffs as a root fs, I should add in the block numbers in
> the oob. Where is the block number? Is is chunkNumber? I did not saw
> block number in tha tags. Thanks.

Steve

There are two useful utilities for this. They are in CVS under /utils:

* mkyaffsimage: This takes a directory and builds a yaffs file system image 
from it. This file is in the form of NAND pages that you can write to NAND 
quite simply (eg. with bootloder style code) or you can write with mkyaffs.

* mkyaffs: Format an mtd for YAFFS. Optionally load it with an image 
generated by mkyaffsimage.

Hope that is what you were looking for.

-- Charles

---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.