X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=utils%2Fmkyaffsimage.c;h=e8434e8bd621a1fab7ac99015060cab41312d529;hp=f07cdd5820c0d64d4c1c767214611aaee24ac994;hb=f37d0b9ff0c87c1e22a5f708dbb4b455da7af59f;hpb=5c97e0bdf340b75c0a644dbc05418db0c5d9e42d diff --git a/utils/mkyaffsimage.c b/utils/mkyaffsimage.c index f07cdd5..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) @@ -532,7 +529,7 @@ int main(int argc, char *argv[]) printf("mkyaffsimage: image building tool for YAFFS built "__DATE__"\n"); - if(argc <= 3) + if(argc < 3) { printf("usage: mkyaffsimage dir image_file [convert]\n"); printf(" dir the directory tree to be converted\n");