The hardware for TP-Link TL-WDR4300 v1.1 and TL-WDR4310 v1.0 is
identical, but requires different firmware headers:

TL-WDR4300:
00000040  43 00 00 01 00 00 00 01  00 00 00 00 76 fb 83 40  |C...........v..@|

TL-WDR4310:
00000040  43 10 00 01 00 00 00 01  00 00 00 00 38 2b 50 6c  |C...........8+Pl|

Signed-off-by: Stefan Lippers-Hollmann <s....@gmx.de>
Cc: Gabor Juhos <juh...@openwrt.org>
---
UNTESTED, please don't apply until anyone with TL-WDR4310 hardware can
confirm this to be functional.

Update: According to http://wiki.openwrt.org/toh/tp-link/tl-wdr4310, 
these changes seem to be sufficient.

 linux/ar71xx/base-files/lib/ar71xx.sh    |    2 +-
 linux/ar71xx/generic/profiles/tp-link.mk |    2 +-
 linux/ar71xx/image/Makefile              |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/ar71xx.sh        (revision 32499)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh        (working copy)
@@ -123,7 +123,7 @@
        "342000"*)
                model="TP-Link TL-MR3420"
                ;;
-       "430000"*)
+       "430000"*|"431000"*)
                model="TP-Link TL-WDR4300"
                ;;
        *)
Index: target/linux/ar71xx/generic/profiles/tp-link.mk
===================================================================
--- target/linux/ar71xx/generic/profiles/tp-link.mk     (revision 32499)
+++ target/linux/ar71xx/generic/profiles/tp-link.mk     (working copy)
@@ -95,7 +95,7 @@
 
 
 define Profile/TLWDR4300
-       NAME:=TP-LINK TL-WDR4300
+       NAME:=TP-LINK TL-WDR4300/ TL-WDR4310
        PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
 endef
 
Index: target/linux/ar71xx/image/Makefile
===================================================================
--- target/linux/ar71xx/image/Makefile  (revision 32499)
+++ target/linux/ar71xx/image/Makefile  (working copy)
@@ -977,6 +977,7 @@
 tlwdr4300_cmdline=board=TL-WDR4300 console=ttyS0,115200
 define Image/Build/Profile/TLWDR4300
        $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,tl-wdr4300-v1,$(tlwdr4300_cmdline),0x43000001,1,8Mlzma)
+       $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,tl-wdr4310-v1,$(tlwdr4300_cmdline),0x43100001,1,8Mlzma)
 endef
 
 wndr3700_cmdline=board=WNDR3700 console=ttyS0,115200
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to