Patchwork [OpenWrt-Devel] ar71xx: MERCURY MW4530R support for trunk

login
register
Submitter Leon Xu
Date 2013-07-25 14:20:14
Message ID <51F1341E.7020909@gmail.com>
Download mbox | patch
Permalink /patch/3856/
State Accepted
Delegated to: Gabor Juhos
Headers show

Comments

Leon Xu - 2013-07-25 14:20:14
Mercury MW4530R is TP-Link TL-WDR4310 clone but with a much lower price tag (~ $40). This patch is tested to work at trunk r37525.

Signed-off-by: Leon Xu <ylxu72@gmail.com>
---

---

Patch

diff -Naur trunk.old/target/linux/ar71xx/base-files/lib/ar71xx.sh trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- trunk.old/target/linux/ar71xx/base-files/lib/ar71xx.sh	2013-07-13 21:05:01.433947000 +0800
+++ trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh	2013-07-24 23:16:01.544773727 +0800
@@ -162,6 +162,9 @@ 
 	"431000"*)
 		model="TP-Link TL-WDR4310"
 		;;
+	"453000"*)
+		model="MERCURY MW4530R"
+		;;
 	*)
 		hwver=""
 		;;
diff -Naur trunk.old/target/linux/ar71xx/generic/profiles/tp-link.mk trunk/target/linux/ar71xx/generic/profiles/tp-link.mk
--- trunk.old/target/linux/ar71xx/generic/profiles/tp-link.mk	2013-07-24 22:22:54.164241542 +0800
+++ trunk/target/linux/ar71xx/generic/profiles/tp-link.mk	2013-07-24 22:23:09.916297794 +0800
@@ -148,12 +148,12 @@ 
 
 
 define Profile/TLWDR4300
-	NAME:=TP-LINK TL-WDR3500/3600/4300/4310
+	NAME:=TP-LINK TL-WDR3500/3600/4300/4310/MW4350R
 	PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
 endef
 
 define Profile/TLWDR4300/Description
-	Package set optimized for the TP-LINK TL-WDR3500/3600/4300/4310.
+	Package set optimized for the TP-LINK TL-WDR3500/3600/4300/4310/MW4350R.
 endef
 $(eval $(call Profile,TLWDR4300))
 
diff -Naur trunk.old/target/linux/ar71xx/image/Makefile trunk/target/linux/ar71xx/image/Makefile
--- trunk.old/target/linux/ar71xx/image/Makefile	2013-07-23 19:18:11.877971000 +0800
+++ trunk/target/linux/ar71xx/image/Makefile	2013-07-25 21:30:54.798618470 +0800
@@ -990,6 +990,7 @@ 
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR4310V1,tl-wdr4310-v1,TL-WDR4300,ttyS0,115200,0x43100001,1,8Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),MW4530RV1,mw4530r-v1,TL-WDR4300,ttyS0,115200,0x45300001,1,8Mlzma))
 
 $(eval $(call SingleProfile,UAPPRO,$(fs_64k),UAPPRO,ubnt-uap-pro,UAP-PRO,ttyS0,115200,BZ,BZ,ar934x))
 
@@ -1043,7 +1044,7 @@ 
 $(eval $(call MultiProfile,TLWR743,TLWR743NV1 TLWR743NV2))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 TLWR841NV7 TLWR841NV8))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4 TLWR941NV6))
-$(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4310V1))
+$(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4310V1 MW4530RV1))
 $(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO))
 $(eval $(call MultiProfile,WNDR3700,WNDR3700V1 WNDR3700V2 WNDR3800 WNDRMAC WNDRMACV2))
 $(eval $(call MultiProfile,WP543,WP543_2M WP543_4M WP543_8M WP543_16M))