]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mxsboot.c
ARM : Add GPIO Driver and IOMUX definition for S3C2440
[karo-tx-uboot.git] / tools / mxsboot.c
index 176753d2ce07078dc1fe053b70539ab9c45822bd..6c05aa479d4360c0c14cd0f989c250ecf119126d 100644 (file)
@@ -453,7 +453,7 @@ static int mx28_nand_write_firmware(struct mx28_nand_fcb *fcb, int infd,
 void usage(void)
 {
        printf(
-               "Usage: mx28image [ops] <type> <infile> <outfile>\n"
+               "Usage: mxsboot [ops] <type> <infile> <outfile>\n"
                "Augment BootStream file with a proper header for i.MX28 boot\n"
                "\n"
                "  <type>       type of image:\n"
@@ -606,6 +606,9 @@ int parse_ops(int argc, char **argv)
        };
        int type;
 
+       if (argc < 4)
+               return -1;
+
        for (i = 1; i < argc; i++) {
                if (!strncmp(argv[i], "-w", 2))
                        type = PARAM_WRITE;