X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=utils%2Fmkyaffs2image.c;h=548fd3a7ae07f2120fb8f2baa7706a09fba909f4;hp=fba4cd3eede41379cb43f5dbf4d73290209aaa95;hb=6e5a71caad2176450f764d3e359fb972b86d83e2;hpb=34425627ebb5c993c8e60097b117710a45ff108a diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c index fba4cd3..548fd3a 100644 --- a/utils/mkyaffs2image.c +++ b/utils/mkyaffs2image.c @@ -1,26 +1,24 @@ /* - * YAFFS: Yet another FFS. A NAND-flash specific file system. + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * makeyaffsimage.c - * - * Makes a YAFFS file system image that can be used to load up a file system. - * - * Copyright (C) 2002 Aleph One Ltd. + * Copyright (C) 2002-2007 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning + * Nick Bane modifications flagged NCB + * Endian handling patches by James Ng. + * mkyaffs2image hacks by NCB * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. + */ + +/* + * makeyaffs2image.c * - * - * Nick Bane modifications flagged NCB - * - * Endian handling patches by James Ng. - * - * mkyaffs2image hacks by NCB - * + * Makes a YAFFS2 file system image that can be used to load up a file system. + * Uses default Linux MTD layout - change if you need something different. */ #include @@ -44,7 +42,7 @@ unsigned yaffs_traceMask=0; #define chunkSize 2048 #define spareSize 64 -const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.2 2005-12-13 00:34:58 tpoynor Exp $"; +const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.5 2010-01-11 21:43:18 charles Exp $"; typedef struct @@ -184,7 +182,7 @@ static int write_chunk(__u8 *data, __u32 objId, __u32 chunkId, __u32 nBytes) nPages++; - yaffs_PackTags2(&pt,&t); + yaffs_PackTags2(&pt,&t,1); // return write(outFile,&pt,sizeof(yaffs_PackedTags2)); return write(outFile,&pt,spareSize);