X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3507828a2c65c118066dbe4498461751ba53443c..e1065cc197ee54889dfdea625fe503ba3e124672:/tools/firmware-utils/src/mktplinkfw.c diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c index 9bb353eb6..ad422d709 100644 --- a/tools/firmware-utils/src/mktplinkfw.c +++ b/tools/firmware-utils/src/mktplinkfw.c @@ -34,8 +34,12 @@ #define HEADER_VERSION_V1 0x01000000 #define HWID_TL_WR741ND_V1 0x07410001 +#define HWID_TL_WR841N_V1_5 0x08410002 #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 @@ -111,6 +115,14 @@ static struct board_info boards[] = { .kernel_la = 0x80060000, .kernel_ep = 0x80060000, .rootfs_ofs = 0x140000, + }, { + .id = "TL-WR841Nv1.5", + .hw_id = HWID_TL_WR841N_V1_5, + .hw_rev = 2, + .fw_max_len = 0x3c0000, + .kernel_la = 0x80060000, + .kernel_ep = 0x80060000, + .rootfs_ofs = 0x140000, }, { .id = "TL-WR841NDv3", .hw_id = HWID_TL_WR841ND_V3, @@ -119,6 +131,14 @@ static struct board_info boards[] = { .kernel_la = 0x80060000, .kernel_ep = 0x80060000, .rootfs_ofs = 0x140000, + }, { + .id = "TL-WR841NDv5", + .hw_id = HWID_TL_WR841ND_V5, + .hw_rev = 1, + .fw_max_len = 0x3c0000, + .kernel_la = 0x80060000, + .kernel_ep = 0x80060000, + .rootfs_ofs = 0x140000, }, { .id = "TL-WR941NDv2", .hw_id = HWID_TL_WR941ND_V2, @@ -127,6 +147,22 @@ 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, + .hw_rev = 1, + .fw_max_len = 0x7c0000, + .kernel_la = 0x80060000, + .kernel_ep = 0x80060000, + .rootfs_ofs = 0x140000, }, { /* terminating entry */ } @@ -182,7 +218,8 @@ static void usage(int status) " -k read kernel image from the file \n" " -r read rootfs image from the file \n" " -o write output to the file \n" -" -v set image version to \n" +" -N set image vendor to \n" +" -V set image version to \n" " -h show this screen\n" ); @@ -418,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; @@ -444,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;