aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-08-06 12:31:06 +0000
committerJohn Crispin <blogic@openwrt.org>2013-08-06 12:31:06 +0000
commitd54d2af57ddd3674b7c75d10c3c792e28713d855 (patch)
treee1478d6a757172d35138888748fb6800bb65312a
parent6253ea72b642481ccb42b8f6d1ea011b882ef8b5 (diff)
downloadupstream-d54d2af57ddd3674b7c75d10c3c792e28713d855.tar.gz
upstream-d54d2af57ddd3674b7c75d10c3c792e28713d855.tar.bz2
upstream-d54d2af57ddd3674b7c75d10c3c792e28713d855.zip
firmware-utils: add support for TDW8970 to mktplinkfw
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37718 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--tools/firmware-utils/src/mktplinkfw.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c
index ea2dccbd6b..05e40c5daf 100644
--- a/tools/firmware-utils/src/mktplinkfw.c
+++ b/tools/firmware-utils/src/mktplinkfw.c
@@ -62,6 +62,7 @@
#define HWID_TL_WR1043ND_V1 0x10430001
#define HWID_TL_WR1041N_V2 0x10410002
#define HWID_TL_WR2543N_V1 0x25430001
+#define HWID_TD_W8970_V1 0x89700001
#define MD5SUM_LEN 16
@@ -209,6 +210,12 @@ static struct flash_layout layouts[] = {
.kernel_ep = 0x80060000,
.rootfs_ofs = 0x100000,
}, {
+ .id = "8Mltq",
+ .fw_max_len = 0x7a0000,
+ .kernel_la = 0x80002000,
+ .kernel_ep = 0x80002000,
+ .rootfs_ofs = 0x140000,
+ }, {
.id = "16Mppc",
.fw_max_len = 0xf80000,
.kernel_la = 0x00000000,
@@ -376,6 +383,12 @@ static struct board_info boards[] = {
.hw_rev = 1,
.layout_id = "4Mlzma",
}, {
+ .id = "TD-W8970v1",
+ .hw_id = HWID_TD_W8970_V1,
+ .hw_rev = 1,
+ .layout_id = "8Mltq",
+ .hdr_version = HEADER_VERSION_V2
+ }, {
/* terminating entry */
}
};