Guest User

3420v2 openwrt patch

a guest
Jan 5th, 2013
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
  2. ===================================================================
  3. --- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c   (revision 35015)
  4. +++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c   (working copy)
  5. @@ -18,6 +18,7 @@
  6.  #include "dev-gpio-buttons.h"
  7.  #include "dev-leds-gpio.h"
  8.  #include "dev-m25p80.h"
  9. +#include "dev-usb.h"
  10.  #include "dev-wmac.h"
  11.  #include "machtypes.h"
  12.  
  13. @@ -110,6 +111,7 @@
  14.     ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
  15.                     ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
  16.                     tl_wr841n_v8_gpio_keys);
  17. +   ath79_register_usb();
  18.  
  19.     ath79_register_m25p80(&tl_wr841n_v8_flash_data);
  20.  
  21. Index: target/linux/ar71xx/image/Makefile
  22. ===================================================================
  23. --- target/linux/ar71xx/image/Makefile  (revision 35015)
  24. +++ target/linux/ar71xx/image/Makefile  (working copy)
  25. @@ -883,7 +883,7 @@
  26.  $(eval $(call SingleProfile,TPLINKOLD,$(fs_squash),TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M))
  27.  
  28.  $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x32200001,1,4M))
  29. -$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
  30. +$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420V1,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
  31.  $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA701,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M))
  32.  $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x75100001,1,4M))
  33.  $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA801NV1,tl-wa801nd-v1,TL-WA901ND,ttyS0,115200,0x08010001,1,4M))
  34. @@ -907,6 +907,7 @@
  35.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
  36.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
  37.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x32200002,1,4Mlzma))
  38. +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-WR841N-v8,ttyS0,115200,0x34200002,1,4Mlzma))
  39.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
  40.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x07400004,1,4Mlzma))
  41.  $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
  42. @@ -956,6 +957,7 @@
  43.  $(eval $(call MultiProfile,OPENMESH,OM2P MR600))
  44.  $(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
  45.  $(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))
  46. +$(eval $(call MultiProfile,TLMR3420,TLMR3420V1 TLMR3420V2))
  47.  $(eval $(call MultiProfile,TLWA801,TLWA801NV1))
  48.  $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2))
  49.  $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
  50. Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
  51. ===================================================================
  52. --- target/linux/ar71xx/base-files/lib/ar71xx.sh    (revision 35015)
  53. +++ target/linux/ar71xx/base-files/lib/ar71xx.sh    (working copy)
  54. @@ -357,6 +357,9 @@
  55.     *TL-MR3420)
  56.         name="tl-mr3420"
  57.         ;;
  58. +   *"TL-MR3420 v2")
  59. +       name="tl-mr3420-v2"
  60. +       ;;
  61.     *TL-WA7510N)
  62.         name="tl-wa7510n"
  63.         ;;
  64. Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  65. ===================================================================
  66. --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (revision 35015)
  67. +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (working copy)
  68. @@ -155,6 +155,7 @@
  69.     tl-mr3220 | \
  70.     tl-mr3220-v2 | \
  71.     tl-mr3420 | \
  72. +   tl-mr3420-v2 | \
  73.     tl-wa7510n | \
  74.     tl-wa901nd | \
  75.     tl-wa901nd-v2 | \
  76. Index: target/linux/ar71xx/base-files/etc/uci-defaults/leds
  77. ===================================================================
  78. --- target/linux/ar71xx/base-files/etc/uci-defaults/leds    (revision 35015)
  79. +++ target/linux/ar71xx/base-files/etc/uci-defaults/leds    (working copy)
  80. @@ -128,6 +128,16 @@
  81.     ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  82.     ;;
  83.  
  84. +tl-mr3420-v2)
  85. +   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  86. +   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
  87. +   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
  88. +   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
  89. +   ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
  90. +   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  91. +   ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
  92. +   ;;
  93. +
  94.  tl-wa901nd)
  95.     ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
  96.     ;;
  97. Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
  98. ===================================================================
  99. --- target/linux/ar71xx/base-files/etc/uci-defaults/network (revision 35015)
  100. +++ target/linux/ar71xx/base-files/etc/uci-defaults/network (working copy)
  101. @@ -217,6 +217,7 @@
  102.  tl-mr3220 |\
  103.  tl-mr3220-v2 |\
  104.  tl-mr3420 |\
  105. +tl-mr3420-v2 |\
  106.  tl-wr741nd |\
  107.  tl-wr741nd-v4 |\
  108.  tl-wr841n-v7 |\
  109. Index: target/linux/ar71xx/base-files/etc/diag.sh
  110. ===================================================================
  111. --- target/linux/ar71xx/base-files/etc/diag.sh  (revision 35015)
  112. +++ target/linux/ar71xx/base-files/etc/diag.sh  (working copy)
  113. @@ -132,6 +132,7 @@
  114.     tl-mr3220 | \
  115.     tl-mr3220-v2 | \
  116.     tl-mr3420 | \
  117. +   tl-mr3420-v2 | \
  118.     tl-wa901nd | \
  119.     tl-wa901nd-v2 | \
  120.     tl-wr1041n-v2 | \
  121. Index: target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch
  122. ===================================================================
  123. --- target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch   (revision 35015)
  124. +++ target/linux/ar71xx/patches-3.6/610-MIPS-ath79-openwrt-machines.patch   (working copy)
  125. @@ -1,6 +1,6 @@
  126.  --- a/arch/mips/ath79/machtypes.h
  127.  +++ b/arch/mips/ath79/machtypes.h
  128. -@@ -16,22 +16,112 @@
  129. +@@ -16,22 +16,113 @@
  130.  
  131.   enum ath79_mach_type {
  132.     ATH79_MACH_GENERIC = 0,
  133. @@ -67,6 +67,7 @@
  134.  +  ATH79_MACH_TL_MR3220,       /* TP-LINK TL-MR3220 */
  135.  +  ATH79_MACH_TL_MR3220_V2,    /* TP-LINK TL-MR3220 v2 */
  136.  +  ATH79_MACH_TL_MR3420,       /* TP-LINK TL-MR3420 */
  137. ++  ATH79_MACH_TL_MR3420_V2,    /* TP-LINK TL-MR3420 v2 */
  138.  +  ATH79_MACH_TL_WA7510N_V1,   /* TP-LINK TL-WA7510N v1*/
  139.  +  ATH79_MACH_TL_WA901ND,      /* TP-LINK TL-WA901ND */
  140.  +  ATH79_MACH_TL_WA901ND_V2,   /* TP-LINK TL-WA901ND v2 */
  141. Index: tools/firmware-utils/src/mktplinkfw.c
  142. ===================================================================
  143. --- tools/firmware-utils/src/mktplinkfw.c   (revision 35015)
  144. +++ tools/firmware-utils/src/mktplinkfw.c   (working copy)
  145. @@ -34,6 +34,7 @@
  146.  #define HWID_TL_MR3220_V1  0x32200001
  147.  #define HWID_TL_MR3220_V2  0x32200002
  148.  #define HWID_TL_MR3420_V1  0x34200001
  149. +#define HWID_TL_MR3420_V2  0x34200002
  150.  #define HWID_TL_WA701N_V1  0x07010001
  151.  #define HWID_TL_WA7510N_V1 0x75100001
  152.  #define HWID_TL_WA801ND_V1 0x08010001
  153. @@ -175,8 +176,7 @@
  154.         .kernel_ep  = 0x80060000,
  155.         .rootfs_ofs = 0x100000,
  156.     }, {
  157. -       /* terminating entry */
  158. -   }
  159. +       }
  160.  };
  161.  
  162.  static struct board_info boards[] = {
  163. @@ -201,6 +201,11 @@
  164.         .hw_rev     = 1,
  165.         .layout_id  = "4M",
  166.     }, {
  167. +       .id     = "TL-MR3420v2",
  168. +       .hw_id      = HWID_TL_MR3420_V2,
  169. +       .hw_rev     = 1,
  170. +       .layout_id  = "4Mlzma",
  171. +   }, {
  172.         .id     = "TL-WA701Nv1",
  173.         .hw_id      = HWID_TL_WA701N_V1,
  174.         .hw_rev     = 1,
RAW Paste Data