Modify

Opened 4 years ago

Last modified 2 years ago

#12748 new task

Add support for TL-LINK TL-MR3420 v2

Reported by: Permadi Witjaksono <permaditw@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: 3420 3420v2 Cc:

Description

I'm creating new patches to support TP-LINK MR3420v2 to openwrt ,the whole topic can be found here https://forum.openwrt.org/viewtopic.php?id=41326

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c	(revision 35015)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c	(working copy)
@@ -18,6 +18,7 @@
 #include "dev-gpio-buttons.h"
 #include "dev-leds-gpio.h"
 #include "dev-m25p80.h"
+#include "dev-usb.h"
 #include "dev-wmac.h"
 #include "machtypes.h"
 
@@ -110,6 +111,7 @@
 	ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
 					ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
 					tl_wr841n_v8_gpio_keys);
+	ath79_register_usb();
 
 	ath79_register_m25p80(&tl_wr841n_v8_flash_data);
 
Index: target/linux/ar71xx/image/Makefile
===================================================================
--- target/linux/ar71xx/image/Makefile	(revision 35015)
+++ target/linux/ar71xx/image/Makefile	(working copy)
@@ -883,7 +883,7 @@
 $(eval $(call SingleProfile,TPLINKOLD,$(fs_squash),TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M))
 
 $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x32200001,1,4M))
-$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
+$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420V1,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
 $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA701,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M))
 $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x75100001,1,4M))
 $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA801NV1,tl-wa801nd-v1,TL-WA901ND,ttyS0,115200,0x08010001,1,4M))
@@ -904,9 +904,10 @@
 $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M))
 
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11U,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
-$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,16Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x32200002,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-WR841N-v8,ttyS0,115200,0x34200002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x07400004,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
@@ -956,6 +957,7 @@
 $(eval $(call MultiProfile,OPENMESH,OM2P MR600))
 $(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
 $(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))
+$(eval $(call MultiProfile,TLMR3420,TLMR3420V1 TLMR3420V2))
 $(eval $(call MultiProfile,TLWA801,TLWA801NV1))
 $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2))
 $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/ar71xx.sh	(revision 35015)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh	(working copy)
@@ -357,6 +357,9 @@
 	*TL-MR3420)
 		name="tl-mr3420"
 		;;
+	*"TL-MR3420 v2")
+		name="tl-mr3420-v2"
+		;;
 	*TL-WA7510N)
 		name="tl-wa7510n"
 		;;
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh	(revision 35015)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh	(working copy)
@@ -155,6 +155,7 @@
 	tl-mr3220 | \
 	tl-mr3220-v2 | \
 	tl-mr3420 | \
+	tl-mr3420-v2 | \
 	tl-wa7510n | \
 	tl-wa901nd | \
 	tl-wa901nd-v2 | \
Index: target/linux/ar71xx/base-files/etc/uci-defaults/leds
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/leds	(revision 35015)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/leds	(working copy)
@@ -128,6 +128,16 @@
 	ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
 	;;
 
+tl-mr3420-v2)
+	ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+	ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+	ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+	ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+	ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+	ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+	;;
+
 tl-wa901nd)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
 	;;
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/network	(revision 35015)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network	(working copy)
@@ -217,6 +217,7 @@
 tl-mr3220 |\
 tl-mr3220-v2 |\
 tl-mr3420 |\
+tl-mr3420-v2 |\
 tl-wr741nd |\
 tl-wr741nd-v4 |\
 tl-wr841n-v7 |\
Index: target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- target/linux/ar71xx/base-files/etc/diag.sh	(revision 35015)
+++ target/linux/ar71xx/base-files/etc/diag.sh	(working copy)
@@ -132,6 +132,7 @@
 	tl-mr3220 | \
 	tl-mr3220-v2 | \
 	tl-mr3420 | \
+	tl-mr3420-v2 | \
 	tl-wa901nd | \
 	tl-wa901nd-v2 | \
 	tl-wr1041n-v2 | \
Index: target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch
===================================================================
--- target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch	(revision 35015)
+++ target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch	(working copy)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/machtypes.h
 +++ b/arch/mips/ath79/machtypes.h
-@@ -16,22 +16,112 @@
+@@ -16,22 +16,113 @@
  
  enum ath79_mach_type {
  	ATH79_MACH_GENERIC = 0,
@@ -67,6 +67,7 @@
 +	ATH79_MACH_TL_MR3220,		/* TP-LINK TL-MR3220 */
 +	ATH79_MACH_TL_MR3220_V2,	/* TP-LINK TL-MR3220 v2 */
 +	ATH79_MACH_TL_MR3420,		/* TP-LINK TL-MR3420 */
++	ATH79_MACH_TL_MR3420_V2,	/* TP-LINK TL-MR3420 v2 */
 +	ATH79_MACH_TL_WA7510N_V1,	/* TP-LINK TL-WA7510N v1*/
 +	ATH79_MACH_TL_WA901ND,		/* TP-LINK TL-WA901ND */
 +	ATH79_MACH_TL_WA901ND_V2,	/* TP-LINK TL-WA901ND v2 */
Index: feeds.conf.default
===================================================================
--- feeds.conf.default	(revision 35015)
+++ feeds.conf.default	(working copy)
@@ -8,3 +8,5 @@
 #src-svn xfce svn://svn.openwrt.org/openwrt/feeds/xfce
 #src-svn lxde svn://svn.openwrt.org/openwrt/feeds/lxde
 #src-link custom /usr/src/openwrt/custom-feed
+src-svn mwan svn://213.136.13.52/var/svn/mwan
+src-svn lorcon http://802.11ninja.net/svn/lorcon/trunk
\ No newline at end of file
Index: tools/firmware-utils/src/mktplinkfw.c
===================================================================
--- tools/firmware-utils/src/mktplinkfw.c	(revision 35015)
+++ tools/firmware-utils/src/mktplinkfw.c	(working copy)
@@ -34,6 +34,7 @@
 #define HWID_TL_MR3220_V1	0x32200001
 #define HWID_TL_MR3220_V2	0x32200002
 #define HWID_TL_MR3420_V1	0x34200001
+#define HWID_TL_MR3420_V2	0x34200002
 #define HWID_TL_WA701N_V1	0x07010001
 #define HWID_TL_WA7510N_V1	0x75100001
 #define HWID_TL_WA801ND_V1	0x08010001
@@ -175,6 +176,18 @@
 		.kernel_ep	= 0x80060000,
 		.rootfs_ofs	= 0x100000,
 	}, {
+		.id		= "16M",
+		.fw_max_len	= 0xfc0000,
+		.kernel_la	= 0x80060000,
+		.kernel_ep	= 0x80060000,
+		.rootfs_ofs	= 0x140000,
+	}, {
+		.id		= "16Mlzma",
+		.fw_max_len	= 0xfc0000,
+		.kernel_la	= 0x80060000,
+		.kernel_ep	= 0x80060000,
+		.rootfs_ofs	= 0x100000,
+	}, {
 		/* terminating entry */
 	}
 };
@@ -184,7 +197,7 @@
 		.id		= "TL-MR3020v1",
 		.hw_id		= HWID_TL_MR3020_V1,
 		.hw_rev		= 1,
-		.layout_id	= "4Mlzma",
+		.layout_id	= "16Mlzma",
 	}, {
 		.id		= "TL-MR3220v1",
 		.hw_id		= HWID_TL_MR3220_V1,
@@ -201,6 +214,11 @@
 		.hw_rev		= 1,
 		.layout_id	= "4M",
 	}, {
+		.id		= "TL-MR3420v2",
+		.hw_id		= HWID_TL_MR3420_V2,
+		.hw_rev		= 1,
+		.layout_id	= "4Mlzma",
+	}, {
 		.id		= "TL-WA701Nv1",
 		.hw_id		= HWID_TL_WA701N_V1,
 		.hw_rev		= 1,

Attachments (3)

ar71xx_add_TL-LINK_TL-MR3420_v2.diff (8.6 KB) - added by Permadi Witjaksono <permaditw@…> 4 years ago.
Patches to support 3420v2 against revision 35015
mr3420v2_trunk.patch (11.2 KB) - added by permaditw@… 4 years ago.
3420v2 patch againts trunk revision 35287 by MeUphi
mr3420v2_aa.patch (13.7 KB) - added by permaditw@… 4 years ago.
3420v2 patch against AA revision 35243 by MeUphi

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by Permadi Witjaksono <permaditw@…>

Patches to support 3420v2 against revision 35015

comment:1 Changed 4 years ago by Permadi Witjaksono <permaditw@…>

Sorry fr the line 192 , it's not suppose to be there.

+               .layout_id      = "16Mlzma",

comment:2 follow-up: Changed 4 years ago by Dioptimizer <dioptimizer@…>

Hi,
Be so kind
It would be nice to add support MR3420V2 to the trunk, link to the forum.
Testing of this patch has been successfully for a long time.

Thank you!

comment:3 in reply to: ↑ 2 Changed 4 years ago by permaditw@…

Replying to Dioptimizer <dioptimizer@…>:

Hi,
Be so kind
It would be nice to add support MR3420V2 to the trunk, link to the forum.
Testing of this patch has been successfully for a long time.

Thank you!

This is patch from my MeUphi against trunk 35287

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c (revision 35287)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c (working copy)
@@ -1,5 +1,5 @@

/*

  • * TP-LINK TL-WR841N/ND v8 board support

+ * TP-LINK TL-WR841N/ND v8/TL-MR3420 v2 board support

*

  • Copyright (C) 2012 Gabor Juhos <juhosg@…> *

@@ -8,6 +8,7 @@

  • by the Free Software Foundation. */


+#include <linux/gpio.h>

#include <linux/platform_device.h>


#include <asm/mach-ath79/ath79.h>

@@ -18,6 +19,7 @@

#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
#include "dev-m25p80.h"

+#include "dev-usb.h"

#include "dev-wmac.h"
#include "machtypes.h"


@@ -31,7 +33,10 @@

#define TL_WR841NV8_GPIO_LED_SYSTEM 14


#define TL_WR841NV8_GPIO_BTN_RESET 17

-#define TL_WR841NV8_GPIO_SW_RFKILL 16
+#define TL_WR841NV8_GPIO_BTN_WPS 16
+
+#define TL_MR3420V2_GPIO_LED_3G 11
+#define TL_MR3420V2_GPIO_USB_POWER 4

#define TL_WR841NV8_KEYS_POLL_INTERVAL 20 /* msecs */
#define TL_WR841NV8_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR841NV8_KEYS_POLL_INTERVAL)

@@ -78,44 +83,44 @@

.name = "tp-link:green:wlan",
.gpio = TL_WR841NV8_GPIO_LED_WLAN,
.active_low = 1,

+ }, {
+ /* the 3G LED is only present on the MR3420 v2 */
+ .name = "tp-link:green:3g",
+ .gpio = TL_MR3420V2_GPIO_LED_3G,
+ .active_low = 1,

},

};


static struct gpio_keys_button tl_wr841n_v8_gpio_keys[] initdata = {

{

  • .desc = "Reset button",

+ .desc = "reset",

.type = EV_KEY,
.code = KEY_RESTART,
.debounce_interval = TL_WR841NV8_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_WR841NV8_GPIO_BTN_RESET,
.active_low = 1,

}, {

  • .desc = "RFKILL switch",
  • .type = EV_SW,
  • .code = KEY_RFKILL,

+ /* the WPS button is only present on the MR3420 v2 */
+ .desc = "WPS",
+ .type = EV_KEY,
+ .code = KEY_WPS_BUTTON,

.debounce_interval = TL_WR841NV8_KEYS_DEBOUNCE_INTERVAL,

  • .gpio = TL_WR841NV8_GPIO_SW_RFKILL,

+ .gpio = TL_WR841NV8_GPIO_BTN_WPS,

.active_low = 0,

}

};


-static void init tl_wr841n_v8_setup(void)
+static void
init tl_ap123_setup(void)

{

u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);


  • ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio),
  • tl_wr841n_v8_leds_gpio);

-

  • ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
  • ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
  • tl_wr841n_v8_gpio_keys);

-

ath79_register_m25p80(&tl_wr841n_v8_flash_data);


ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);


ath79_register_mdio(1, 0x0);

+ ath79_register_mdio(0, 0x0);

ath79_init_mac(ath79_eth0_data.mac_addr, mac, -1);
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0);

@@ -135,5 +140,37 @@

ath79_register_wmac(ee, mac);

}


-MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8", "TP-LINK TL-WR841N/ND v8",

  • tl_wr841n_v8_setup);

+static void init tl_wr841n_v8_setup(void)
+{
+ tl_ap123_setup();
+
+ ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio) - 1,
+ tl_wr841n_v8_leds_gpio);
+ ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
+ ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
+ tl_wr841n_v8_gpio_keys);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8",
+ "TP-LINK TL-WR841N/ND v8", tl_wr841n_v8_setup);
+
+static void init tl_mr3420v2_setup(void)
+{
+ tl_ap123_setup();
+
+ /* enable power for the USB port */
+ gpio_request(TL_MR3420V2_GPIO_USB_POWER, "USB power");
+ gpio_direction_input(TL_MR3420V2_GPIO_USB_POWER);
+
+ ath79_register_usb();
+ /* END for the USB port */
+
+ ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio),
+ tl_wr841n_v8_leds_gpio);
+ ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
+ ARRAY_SIZE(tl_wr841n_v8_gpio_keys) - 1,
+ tl_wr841n_v8_gpio_keys);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_MR3420_V2, "TL-MR3420-v2",
+ "TP-LINK TL-MR3420 v2", tl_mr3420v2_setup);
Index: target/linux/ar71xx/patches-3.7/610-MIPS-ath79-openwrt-machines.patch
===================================================================
--- target/linux/ar71xx/patches-3.7/610-MIPS-ath79-openwrt-machines.patch (revision 35287)
+++ target/linux/ar71xx/patches-3.7/610-MIPS-ath79-openwrt-machines.patch (working copy)
@@ -1,6 +1,6 @@

--- a/arch/mips/ath79/machtypes.h
+++ b/arch/mips/ath79/machtypes.h

-@@ -16,22 +16,112 @@
+@@ -16,22 +16,113 @@

enum ath79_mach_type {

ATH79_MACH_GENERIC = 0,

@@ -67,6 +67,7 @@

+ ATH79_MACH_TL_MR3220, /* TP-LINK TL-MR3220 */
+ ATH79_MACH_TL_MR3220_V2, /* TP-LINK TL-MR3220 v2 */
+ ATH79_MACH_TL_MR3420, /* TP-LINK TL-MR3420 */

++ ATH79_MACH_TL_MR3420_V2, /* TP-LINK TL-MR3420 v2 */

+ ATH79_MACH_TL_WA7510N_V1, /* TP-LINK TL-WA7510N v1*/
+ ATH79_MACH_TL_WA901ND, /* TP-LINK TL-WA901ND */
+ ATH79_MACH_TL_WA901ND_V2, /* TP-LINK TL-WA901ND v2 */

@@ -216,7 +217,7 @@

config ATH79_MACH_PB44

bool "Atheros PB44 reference board"
select SOC_AR71XX

-@@ -68,6 +148,488 @@ config ATH79_MACH_PB44
+@@ -68,6 +148,489 @@ config ATH79_MACH_PB44

Say 'Y' here if you want your kernel to support the
Atheros PB44 reference board.


@@ -613,12 +614,13 @@

+ select ATH79_DEV_M25P80
+
+config ATH79_MACH_TL_WR841N_V8

-+ bool "TP-LINK TL-WR841N/ND v8 support"
++ bool "TP-LINK TL-WR841N/ND v8/TL-MR3420 v2 support"

+ select SOC_AR934X
+ select ATH79_DEV_ETH
+ select ATH79_DEV_GPIO_BUTTONS
+ select ATH79_DEV_LEDS_GPIO
+ select ATH79_DEV_M25P80

++ select ATH79_DEV_USB

+ select ATH79_DEV_WMAC
+
+config ATH79_MACH_TL_WR941ND

Index: target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- target/linux/ar71xx/base-files/etc/diag.sh (revision 35287)
+++ target/linux/ar71xx/base-files/etc/diag.sh (working copy)
@@ -132,6 +132,7 @@

tl-mr3220 | \
tl-mr3220-v2 | \
tl-mr3420 | \

+ tl-mr3420-v2 | \

tl-wa901nd | \
tl-wa901nd-v2 | \
tl-wr1041n-v2 | \

Index: target/linux/ar71xx/base-files/etc/uci-defaults/leds
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision 35287)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working copy)
@@ -128,6 +128,16 @@

ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;


+tl-mr3420-v2)
+ ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
+ ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+ ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+ ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+ ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+ ;;
+

tl-wa901nd)

ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;

Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/02_network (revision 35287)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network (working copy)
@@ -143,6 +143,7 @@

ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
;;


+tl-mr3420-v2 |\

tl-wr841n-v8)

ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" "1" "1"

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 35287)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy)
@@ -357,6 +357,9 @@

*TL-MR3420)

name="tl-mr3420"
;;

+ *"TL-MR3420 v2")
+ name="tl-mr3420-v2"
+ ;;

*TL-WA7510N)

name="tl-wa7510n"
;;

Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 35287)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy)
@@ -155,6 +155,7 @@

tl-mr3220 | \
tl-mr3220-v2 | \
tl-mr3420 | \

+ tl-mr3420-v2 | \

tl-wa7510n | \
tl-wa901nd | \
tl-wa901nd-v2 | \

Index: target/linux/ar71xx/image/Makefile
===================================================================
--- target/linux/ar71xx/image/Makefile (revision 35287)
+++ target/linux/ar71xx/image/Makefile (working copy)
@@ -883,7 +883,7 @@

$(eval $(call SingleProfile,TPLINKOLD,$(fs_squash),TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M))


$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x32200001,1,4M))

-$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
+$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420V1,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))

$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA701,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M))
$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x75100001,1,4M))
$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA801NV1,tl-wa801nd-v1,TL-WA901ND,ttyS0,115200,0x08010001,1,4M))

@@ -907,6 +907,7 @@

$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x32200002,1,4Mlzma))

+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-MR3420-v2,ttyS0,115200,0x34200002,1,4Mlzma))

$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x07400004,1,4Mlzma))
$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))

@@ -956,6 +957,7 @@

$(eval $(call MultiProfile,OPENMESH,OM2P MR600))
$(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
$(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))

+$(eval $(call MultiProfile,TLMR3420,TLMR3420V1 TLMR3420V2))

$(eval $(call MultiProfile,TLWA801,TLWA801NV1))
$(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2))
$(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))

Index: tools/firmware-utils/src/mktplinkfw.c
===================================================================
--- tools/firmware-utils/src/mktplinkfw.c (revision 35287)
+++ tools/firmware-utils/src/mktplinkfw.c (working copy)
@@ -34,6 +34,7 @@

#define HWID_TL_MR3220_V1 0x32200001
#define HWID_TL_MR3220_V2 0x32200002
#define HWID_TL_MR3420_V1 0x34200001

+#define HWID_TL_MR3420_V2 0x34200002

#define HWID_TL_WA701N_V1 0x07010001
#define HWID_TL_WA7510N_V1 0x75100001
#define HWID_TL_WA801ND_V1 0x08010001

@@ -201,6 +202,11 @@

.hw_rev = 1,
.layout_id = "4M",

}, {

+ .id = "TL-MR3420v2",
+ .hw_id = HWID_TL_MR3420_V2,
+ .hw_rev = 1,
+ .layout_id = "4Mlzma",
+ }, {

.id = "TL-WA701Nv1",
.hw_id = HWID_TL_WA701N_V1,
.hw_rev = 1,

Changed 4 years ago by permaditw@…

3420v2 patch againts trunk revision 35287 by MeUphi

Changed 4 years ago by permaditw@…

3420v2 patch against AA revision 35243 by MeUphi

comment:4 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.