nand write problem

Peter Grayson pgrayson at realmsys.com
Tue May 31 11:24:59 EDT 2005


> # ./nandwrite -f /dev/mtd/2 jffs2.img
> ./nandwrite: illegal option -- f

The short option (-f) for the --forcelegacy option is broken in the
latest nandwrite. Check out the patch below.

--- nandwrite.c.orig    2005-05-31 09:22:00.000000000 -0600
+++ nandwrite.c 2005-05-31 09:22:08.000000000 -0600
@@ -124,7 +124,7 @@

        for (;;) {
                int option_index = 0;
-               static const char *short_options = "os:ajynqp";
+               static const char *short_options = "os:ajyfnqp";
                static const struct option long_options[] = {
                        {"help", no_argument, 0, 0},
                        {"version", no_argument, 0, 0},






More information about the linux-mtd mailing list