X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=utils%2Fmkyaffsimage.c;h=e8434e8bd621a1fab7ac99015060cab41312d529;hp=fa9479ad3b227e7e32469b5386121255fcd49be1;hb=6db5aca55acb7c8af07c8ec90ba8dd9085ab0895;hpb=34425627ebb5c993c8e60097b117710a45ff108a diff --git a/utils/mkyaffsimage.c b/utils/mkyaffsimage.c index fa9479a..e8434e8 100644 --- a/utils/mkyaffsimage.c +++ b/utils/mkyaffsimage.c @@ -1,25 +1,22 @@ /* - * 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 * * 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. + */ + +/* + * makeyaffsimage.c * - * - * Nick Bane modifications flagged NCB - * - * Endian handling patches by James Ng. - * - * + * Makes a YAFFS file system image that can be used to load up a file system. */ #include @@ -244,7 +241,7 @@ static int write_chunk(__u8 *data, __u32 objId, __u32 chunkId, __u32 nBytes) t.chunkId = chunkId; t.serialNumber = 0; - t.byteCount = nBytes; + t.byteCountLSB = nBytes; t.objectId = objId; if (convert_endian)