Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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))
- @@ -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-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: 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,8 +176,7 @@
- .kernel_ep = 0x80060000,
- .rootfs_ofs = 0x100000,
- }, {
- - /* terminating entry */
- - }
- + }
- };
- static struct board_info boards[] = {
- @@ -201,6 +201,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,
Advertisement
Add Comment
Please, Sign In to add comment