找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 16632|回复: 14

tl-mr13u openwrt固件

[复制链接]
本帖最后由 tkms 于 2013-7-3 08:15 编辑

固件+软件包下载地址(已编译了大部分软件包):
http://pan.baidu.com/share/link?shareid=879403506&uk=4046777419
注意:固件版本为36674,此固件只是按默认方式编译,即所大部分软件并没有编译进固件,而是以模组方式编译。

修改的文件一览:
  1. $ diff HEAD --stat
  2. package/libs/popt/Makefile                         |    2 +-
  3. target/linux/ar71xx/base-files/etc/diag.sh         |    1 +
  4. .../ar71xx/base-files/etc/uci-defaults/02_network  |    1 +
  5. target/linux/ar71xx/base-files/lib/ar71xx.sh       |    6 ++
  6. .../ar71xx/base-files/lib/upgrade/platform.sh      |    1 +
  7. target/linux/ar71xx/config-3.8                     |    1 +
  8. .../ar71xx/files/arch/mips/ath79/mach-tl-mr13u.c   |  108 ++++++++++++++++++++
  9. target/linux/ar71xx/generic/profiles/tp-link.mk    |   11 ++
  10. target/linux/ar71xx/image/Makefile                 |    1 +
  11. .../patches-3.8/920-add-tl-mr13u-support.patch     |   46 +++++++++
  12. tools/firmware-utils/src/mktplinkfw.c              |    8 ++
  13. 11 files changed, 185 insertions(+), 1 deletion(-)
复制代码
以下为基于36674版本固件修改后的,git diff 输出
文件下载地址:http://pan.baidu.com/share/link?shareid=968576279&uk=4046777419
  1. diff --git a/package/libs/popt/Makefile b/package/libs/popt/Makefile
  2. index 1cdcc40..f4c1ff2 100644
  3. --- a/package/libs/popt/Makefile
  4. +++ b/package/libs/popt/Makefile
  5. @@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
  7. PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9

  8. -PKG_FIXUP:=autoreconf
  9. +PKG_FIXUP:=autoreconf libtool
  10. PKG_REMOVE_FILES:=autogen.sh aclocal.m4

  11. PKG_INSTALL:=1
  12. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  13. index ed269b2..d6ad4c3 100755
  14. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  15. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  16. @@ -134,6 +134,7 @@ get_status_led() {
  17.                  ;;
  18.          tl-wdr4300 | \
  19.          tl-wr703n | \
  20. +        tl-mr13u | \
  21.          tl-wr720n-v3)
  22.                  status_led="tp-link:blue:system"
  23.                  ;;
  24. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  25. index a9a3ff2..ed830e4 100755
  26. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  27. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  28. @@ -200,6 +200,7 @@ tl-mr3040 |\
  29. tl-wa901nd |\
  30. tl-wa901nd-v2 |\
  31. tl-wr703n |\
  32. +tl-mr13u |\
  33. wndap360 |\
  34. wp543)
  35.          ucidef_set_interface_lan "eth0"
  36. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  37. index 194a40b..98ca034 100755
  38. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  39. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  40. @@ -132,6 +132,9 @@ tplink_board_detect() {
  41.          "254300"*)
  42.                  model="TP-Link TL-WR2543N/ND"
  43.                  ;;
  44. +        "001301"*)
  45. +                model="TP-Link TL-MR13U"
  46. +                ;;
  47.          "110101"*)
  48.                  model="TP-Link TL-MR11U"
  49.                  ;;
  50. @@ -441,6 +444,9 @@ ar71xx_board_detect() {
  51.          *"TL-WR720N v3")
  52.                  name="tl-wr720n-v3"
  53.                  ;;
  54. +        *"TL-MR13U v1")
  55. +                name="tl-mr13u"
  56. +                ;;
  57.          *"TL-MR11U")
  58.                  name="tl-mr11u"
  59.                  ;;
  60. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  61. index 817123b..32bf8f4 100755
  62. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  63. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  64. @@ -155,6 +155,7 @@ platform_check_image() {
  65.                  return 1
  66.                  ;;
  67.          tl-mr11u | \
  68. +        tl-mr13u | \
  69.          tl-mr3020 | \
  70.          tl-mr3040 | \
  71.          tl-mr3220 | \
  72. diff --git a/target/linux/ar71xx/config-3.8 b/target/linux/ar71xx/config-3.8
  73. index ea2be6b..44a85b2 100644
  74. --- a/target/linux/ar71xx/config-3.8
  75. +++ b/target/linux/ar71xx/config-3.8
  76. @@ -61,6 +61,7 @@ CONFIG_ATH79_MACH_RW2458N=y
  77. CONFIG_ATH79_MACH_TEW_632BRP=y
  78. CONFIG_ATH79_MACH_TEW_673GRU=y
  79. CONFIG_ATH79_MACH_TEW_712BR=y
  80. +CONFIG_ATH79_MACH_TL_MR13U=y
  81. CONFIG_ATH79_MACH_TL_MR11U=y
  82. CONFIG_ATH79_MACH_TL_MR3020=y
  83. CONFIG_ATH79_MACH_TL_MR3X20=y
  84. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr13u.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr13u.c
  85. new file mode 100644
  86. index 0000000..42e9fce
  87. --- /dev/null
  88. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr13u.c
  89. @@ -0,0 +1,108 @@
  90. +/*
  91. + *  TP-LINK TL-MR13U board support
  92. + *
  93. + *  Copyright (C) 2011 dongyuqi <729650915@qq.com>
  94. + *  Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
  95. + *
  96. + *  This program is free software; you can redistribute it and/or modify it
  97. + *  under the terms of the GNU General Public License version 2 as published
  98. + *  by the Free Software Foundation.
  99. + */
  100. +
  101. +#include <linux/gpio.h>
  102. +
  103. +#include <asm/mach-ath79/ath79.h>
  104. +
  105. +#include "dev-eth.h"
  106. +#include "dev-gpio-buttons.h"
  107. +#include "dev-leds-gpio.h"
  108. +#include "dev-m25p80.h"
  109. +#include "dev-usb.h"
  110. +#include "dev-wmac.h"
  111. +#include "machtypes.h"
  112. +
  113. +#define TL_MR13U_GPIO_LED_SYSTEM        27
  114. +
  115. +#define TL_MR13U_GPIO_BTN_RESET        11
  116. +#define TL_MR13U_GPIO_BTN_SW1        6
  117. +#define TL_MR13U_GPIO_BTN_SW2        7
  118. +
  119. +#define TL_MR13U_GPIO_USB_POWER        18
  120. +
  121. +#define TL_MR13U_KEYS_POLL_INTERVAL        20        /* msecs */
  122. +#define TL_MR13U_KEYS_DEBOUNCE_INTERVAL        (3 * TL_MR13U_KEYS_POLL_INTERVAL)
  123. +
  124. +static const char *tl_mr13u_part_probes[] = {
  125. +        "tp-link",
  126. +        NULL,
  127. +};
  128. +
  129. +static struct flash_platform_data tl_mr13u_flash_data = {
  130. +        .part_probes        = tl_mr13u_part_probes,
  131. +};
  132. +
  133. +static struct gpio_led tl_mr13u_leds_gpio[] __initdata = {
  134. +        {
  135. +                .name                = "tp-link:blue:system",
  136. +                .gpio                = TL_MR13U_GPIO_LED_SYSTEM,
  137. +                .active_low        = 1,
  138. +        },
  139. +};
  140. +
  141. +static struct gpio_keys_button tl_mr13u_gpio_keys[] __initdata = {
  142. +        {
  143. +                .desc                = "reset",
  144. +                .type                = EV_KEY,
  145. +                .code                = KEY_RESTART,
  146. +                .debounce_interval = TL_MR13U_KEYS_DEBOUNCE_INTERVAL,
  147. +                .gpio                = TL_MR13U_GPIO_BTN_RESET,
  148. +                .active_low        = 0,
  149. +        },
  150. +        {
  151. +                .desc                = "sw1",
  152. +                .type                = EV_KEY,
  153. +                .code                = BTN_0,
  154. +                .debounce_interval = TL_MR13U_KEYS_DEBOUNCE_INTERVAL,
  155. +                .gpio                = TL_MR13U_GPIO_BTN_SW1,
  156. +                .active_low        = 0,
  157. +        },
  158. +        {
  159. +                .desc                = "sw2",
  160. +                .type                = EV_KEY,
  161. +                .code                = BTN_1,
  162. +                .debounce_interval = TL_MR13U_KEYS_DEBOUNCE_INTERVAL,
  163. +                .gpio                = TL_MR13U_GPIO_BTN_SW2,
  164. +                .active_low        = 0,
  165. +        }
  166. +
  167. +};
  168. +
  169. +static void __init tl_mr13u_setup(void)
  170. +{
  171. +        u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
  172. +        u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
  173. +
  174. +        /* disable PHY_SWAP and PHY_ADDR_SWAP bits */
  175. +        ath79_setup_ar933x_phy4_switch(false, false);
  176. +
  177. +        ath79_register_m25p80(&tl_mr13u_flash_data);
  178. +        ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_mr13u_leds_gpio),
  179. +                                 tl_mr13u_leds_gpio);
  180. +        ath79_register_gpio_keys_polled(-1, TL_MR13U_KEYS_POLL_INTERVAL,
  181. +                                        ARRAY_SIZE(tl_mr13u_gpio_keys),
  182. +                                        tl_mr13u_gpio_keys);
  183. +
  184. +        gpio_request_one(TL_MR13U_GPIO_USB_POWER,
  185. +                         GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
  186. +                         "USB power");
  187. +        ath79_register_usb();
  188. +
  189. +        ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
  190. +
  191. +        ath79_register_mdio(0, 0x0);
  192. +        ath79_register_eth(0);
  193. +        ath79_register_wmac(ee, mac);
  194. +}
  195. +
  196. +MIPS_MACHINE(ATH79_MACH_TL_MR13U, "TL-MR13U", "TP-LINK TL-MR13U v1",
  197. +             tl_mr13u_setup);
  198. diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk
  199. index 4ac6ba9..9923d62 100644
  200. --- a/target/linux/ar71xx/generic/profiles/tp-link.mk
  201. +++ b/target/linux/ar71xx/generic/profiles/tp-link.mk
  202. @@ -16,6 +16,17 @@ endef
  203. $(eval $(call Profile,TLMR11U))


  204. +define Profile/TLMR13U
  205. +        NAME:=TP-LINK TL-MR13U
  206. +        PACKAGES:=kmod-usb-core kmod-usb2
  207. +endef
  208. +
  209. +define Profile/TLMR13U/Description
  210. +        Package set optimized for the TP-LINK TL-MR13U.
  211. +endef
  212. +$(eval $(call Profile,TLMR13U))
  213. +
  214. +
  215. define Profile/TLMR3020
  216.          NAME:=TP-LINK TL-MR3020
  217.          PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
复制代码
 楼主| | 显示全部楼层
  1. diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
  2. index c6b4dc4..058c570 100644
  3. --- a/target/linux/ar71xx/image/Makefile
  4. +++ b/target/linux/ar71xx/image/Makefile
  5. @@ -929,6 +929,7 @@ $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR104

  6. $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
  7. $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))
  8. +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR13U,tl-mr13u-v1,TL-MR13U,ttyATH0,115200,0x00130101,1,4Mlzma))
  9. $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
  10. $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
  11. $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x32200002,1,4Mlzma))
  12. diff --git a/target/linux/ar71xx/patches-3.8/920-add-tl-mr13u-support.patch b/target/linux/ar71xx/patches-3.8/920-add-tl-mr13u-support.patch
  13. new file mode 100644
  14. index 0000000..3cca7ac
  15. --- /dev/null
  16. +++ b/target/linux/ar71xx/patches-3.8/920-add-tl-mr13u-support.patch
  17. @@ -0,0 +1,46 @@
  18. +Index: linux-3.8.12/arch/mips/ath79/Kconfig
  19. +===================================================================
  20. +--- linux-3.8.12.orig/arch/mips/ath79/Kconfig        2013-06-30 19:30:23.355712506 +0000
  21. ++++ linux-3.8.12/arch/mips/ath79/Kconfig        2013-06-30 19:34:17.719718265 +0000
  22. +@@ -575,6 +575,17 @@
  23. +         select ATH79_DEV_USB
  24. +         select ATH79_DEV_WMAC
  25. +
  26. ++config ATH79_MACH_TL_MR13U
  27. ++        bool "TP-LINK TL-MR13U support"
  28. ++        select SOC_AR933X
  29. ++        select ATH79_DEV_ETH
  30. ++        select ATH79_DEV_GPIO_BUTTONS
  31. ++        select ATH79_DEV_LEDS_GPIO
  32. ++        select ATH79_DEV_M25P80
  33. ++        select ATH79_DEV_USB
  34. ++        select ATH79_DEV_WMAC
  35. ++
  36. ++
  37. + config ATH79_MACH_TL_WR720N_V3
  38. +         bool "TP-LINK TL-WR720N v3 support"
  39. +         select SOC_AR933X
  40. +Index: linux-3.8.12/arch/mips/ath79/Makefile
  41. +===================================================================
  42. +--- linux-3.8.12.orig/arch/mips/ath79/Makefile        2013-06-30 19:30:23.355712506 +0000
  43. ++++ linux-3.8.12/arch/mips/ath79/Makefile        2013-06-30 19:35:54.835720651 +0000
  44. +@@ -93,6 +93,7 @@
  45. + obj-$(CONFIG_ATH79_MACH_TL_WR1043ND)        += mach-tl-wr1043nd.o
  46. + obj-$(CONFIG_ATH79_MACH_TL_WR2543N)        += mach-tl-wr2543n.o
  47. + obj-$(CONFIG_ATH79_MACH_TL_WR703N)        += mach-tl-wr703n.o
  48. ++obj-$(CONFIG_ATH79_MACH_TL_MR13U)        += mach-tl-mr13u.o
  49. + obj-$(CONFIG_ATH79_MACH_TL_WR720N_V3)        += mach-tl-wr720n-v3.o
  50. + obj-$(CONFIG_ATH79_MACH_UBNT)                += mach-ubnt.o
  51. + obj-$(CONFIG_ATH79_MACH_UBNT_XM)        += mach-ubnt-xm.o
  52. +Index: linux-3.8.12/arch/mips/ath79/machtypes.h
  53. +===================================================================
  54. +--- linux-3.8.12.orig/arch/mips/ath79/machtypes.h        2013-06-30 19:30:23.355712506 +0000
  55. ++++ linux-3.8.12/arch/mips/ath79/machtypes.h        2013-06-30 19:37:00.523722265 +0000
  56. +@@ -94,6 +94,7 @@
  57. +         ATH79_MACH_TL_WR1043ND,                /* TP-LINK TL-WR1043ND */
  58. +         ATH79_MACH_TL_WR2543N,                /* TP-LINK TL-WR2543N/ND */
  59. +         ATH79_MACH_TL_WR703N,                /* TP-LINK TL-WR703N */
  60. ++        ATH79_MACH_TL_MR13U,                /* TP-LINK TL-MR13U */
  61. +         ATH79_MACH_TL_WR720N_V3,        /* TP-LINK TL-WR720N v3 */
  62. +         ATH79_MACH_TL_WR741ND,                /* TP-LINK TL-WR741ND */
  63. +         ATH79_MACH_TL_WR741ND_V4,        /* TP-LINK TL-WR741ND  v4*/
  64. diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c
  65. index 74a55fd..d27a238 100644
  66. --- a/tools/firmware-utils/src/mktplinkfw.c
  67. +++ b/tools/firmware-utils/src/mktplinkfw.c
  68. @@ -43,6 +43,7 @@
  69. #define HWID_TL_WA901ND_V1        0x09010001
  70. #define HWID_TL_WA901ND_V2        0x09010002
  71. #define HWID_TL_WDR4900_V1        0x49000001
  72. +#define HWID_TL_MR13U_V1        0x00130101
  73. #define HWID_TL_WR703N_V1        0x07030101
  74. #define HWID_TL_WR720N_V3        0x07200103
  75. #define HWID_TL_WR741ND_V1        0x07410001
  76. @@ -343,6 +344,13 @@ static struct board_info boards[] = {
  77.                 .hw_rev                = 1,
  78.                 .layout_id        = "4Mlzma",
  79.         }, {
  80. +                .id                = "TL-MR13Uv1",
  81. +                .hw_id                = HWID_TL_MR13U_V1,
  82. +                .hw_rev                = 1,
  83. +                .layout_id        = "4Mlzma",
  84. +
  85. +        }, {
  86. +
  87.                 /* terminating entry */
  88.         }
  89. };
复制代码
回复

使用道具 举报

晕。你比我早发了几分钟。。。。。。我咋删掉我的?
回复

使用道具 举报

奇怪,论坛搜mr13u搜不到这个帖子,京东上看到的,支持一下!
回复

使用道具 举报

求教怎么刷写上去啊= =
回复

使用道具 举报

 楼主| | 显示全部楼层
直接在tplink网页的升级界面就可以了,但是这个固件没有网页登陆界面,你可以使用telnet或者ssh登陆。
回复

使用道具 举报

有人能幫忙編譯個帶Huntsman的MR13u OpenWRT嗎?
http://ofmodemsandmen.com/download/customHMscriptsipv4.zip
These are the custom scripts used to create the ROOter firmware.
回复

使用道具 举报

选错了文件。现在变砖了。。怎么办。。。
回复

使用道具 举报

安装楼主的固件后发现 挂载点-Mount 没有 设置为根文件系统 设置挂载为extroot  选项?~ 只能手动修改fstab文件~修改后挂载点页面就进不去了~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

奇怪,论坛搜mr13u搜不到这个帖子.我是用google搜索到的。
回复

使用道具 举报

8884361 发表于 2013-7-21 21:43
有人能幫忙編譯個帶Huntsman的MR13u OpenWRT嗎?
http://ofmodemsandmen.com/download/customHMscriptsipv4 ...

官网不是有了吗??
http://www.ofmodemsandmen.com/downloads.html
回复

使用道具 举报

cappie 发表于 2013-11-10 00:56
官网不是有了吗??
http://www.ofmodemsandmen.com/downloads.html

後來才有的......
回复

使用道具 举报

请问初始的用户名和密码是什么- - 刷进去了试了几个用户名密码都没用
回复

使用道具 举报

tkms 发表于 2013-7-3 08:13
**** 作者被禁止或删除 内容自动屏蔽 ****

挺给力的 有截图么?
回复

使用道具 举报

skysonic 发表于 2013-9-13 16:13
安装楼主的固件后发现 挂载点-Mount 没有 设置为根文件系统 设置挂载为extroot  选项?~ 只能手动修改fsta ...

你现在用这款的啥固件?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-24 11:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表