mktplinkfw: fix help string, and remove duplicated option
[openwrt.git] / tools / firmware-utils / src / mktplinkfw.c
index 25c3ad6..ad422d7 100644 (file)
@@ -38,6 +38,7 @@
 #define HWID_TL_WR841ND_V3     0x08410003
 #define HWID_TL_WR841ND_V5     0x08410005
 #define HWID_TL_WR941ND_V2     0x09410002
+#define HWID_TL_WR941ND_V4     0x09410004
 #define HWID_TL_WR1043ND_V1    0x10430001
 
 #define MD5SUM_LEN     16
@@ -146,6 +147,14 @@ static struct board_info boards[] = {
                .kernel_la      = 0x80060000,
                .kernel_ep      = 0x80060000,
                .rootfs_ofs     = 0x140000,
+       }, {
+               .id             = "TL-WR941NDv4",
+               .hw_id          = HWID_TL_WR941ND_V4,
+               .hw_rev         = 1,
+               .fw_max_len     = 0x3c0000,
+               .kernel_la      = 0x80060000,
+               .kernel_ep      = 0x80060000,
+               .rootfs_ofs     = 0x140000,
        }, {
                .id             = "TL-WR1043NDv1",
                .hw_id          = HWID_TL_WR1043ND_V1,
@@ -209,7 +218,8 @@ static void usage(int status)
 "  -k <file>       read kernel image from the file <file>\n"
 "  -r <file>       read rootfs image from the file <file>\n"
 "  -o <file>       write output to the file <file>\n"
-"  -v <version>    set image version to <version>\n"
+"  -N <vendor>     set image vendor to <vendor>\n"
+"  -V <version>    set image version to <version>\n"
 "  -h              show this screen\n"
        );
 
@@ -445,7 +455,7 @@ int main(int argc, char *argv[])
        while ( 1 ) {
                int c;
 
-               c = getopt(argc, argv, "B:V:N:ck:r:o:v:h:");
+               c = getopt(argc, argv, "B:V:N:ck:r:o:h");
                if (c == -1)
                        break;
 
@@ -471,9 +481,6 @@ int main(int argc, char *argv[])
                case 'o':
                        ofname = optarg;
                        break;
-               case 'v':
-                       version = optarg;
-                       break;
                case 'h':
                        usage(EXIT_SUCCESS);
                        break;
This page took 0.019823 seconds and 4 git commands to generate.