1 May 2006 23:49
mtd-utils
Steve Finney <saf76 <at> earthlink.net>
2006-05-01 21:49:55 GMT
2006-05-01 21:49:55 GMT
I'm new on this list, but not new to Linux...I've been using mtd-utils recently, and find a few rough edges. I'd be happy to fix them, but I just wanted to check first about whether there's some reason these aren't good ideas... 1) nandwrite and nanddump only take decimal for numbers like offsets; it seems as if a hex option would be useful (just change atoi to strtol). 2) nandump does not provide an option for reading non-error-corrected data; I'm playing with ECC on a Samsung chip. so this would be useful for debugging. I guess this would just be adding an SETOOBSEL as is done in nandwrite? 3) flash_erase doesn't have any usage or --help option. If these would be generally useful things, I can post the (fairly trivial) patches to the list. sf ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
.
sf
Signed-off-by: Steven FInney <sfinney <at> healthhero.com>
----------------------------------
--- util.orig/nandwrite.c 2006-05-02 07:52:41.556880288 -0700
+++ util/nandwrite.c 2006-05-02 09:37:13.843347808 -0700
<at> <at> -183,7 +183,7 <at> <at> void process_options (int argc, char *ar
pad = 1;
break;
case 's':
- mtdoffset = atoi (optarg);
+ mtdoffset = strtol (optarg, NULL, 0);
break;
case 'b':
blockalign = atoi (optarg);
______________________________________________________
Linux MTD discussion mailing list
RSS Feed