OpenWrt Forum Archive

Topic: TP-Link MR3220V2

The content of this topic has been archived between 7 Oct 2014 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

gpio8 - usb power
gpio26 - usb LED

Sorry, posts 77 to 75 are missing from our archive.

Hello guys, need help please....i am noob with all this....

Steps witch i did are:

1. Flashed router with build from post 19 (mr3220-v2-aabeta2). It went all ok...

2. Flashed router thru luci web interface with build r33720 from here http://wiki.openwrt.org/toh/tp-link/tl-ap121 and it didnt went well, seems it is bricked now sad

What can i do? Can you write me details how to bring it back in life again?

Thanks

(Last edited by drum on 12 Dec 2012, 21:10)

nebbia88 wrote:

Serial console is the only way.. :-(

tnx for help

I have more few questions....

1. Can someone confirm me that build from here http://wiki.openwrt.org/toh/tp-link/tl-ap121 is working? I have notice it have 3.4MB and other builds from this topic are 3.8MB

2. Where can i find some tiny build for this router? All builds from this topic dont have enough free space for my needs...

Thanks,
...sry for my bad english...

(Last edited by drum on 17 Dec 2012, 22:47)

Sorry, posts 78 to 76 are missing from our archive.

Have you tried failsafe mode? Also, if I may ask, why did you flash the second time?

when you connect serial, can you try my build? it has only luci included.. how many packages do you have to install?

Sorry, posts 79 to 77 are missing from our archive.

Fail safe do not help.....

This second flash i was trying at first place from TP-Link WebGUI via Firmware Upgrade but i had issue with error warning (Error code: 18005 Upgrade unsuccessfully because the version of the upgraded file was incorrect. Please check the file name.)

So than i tryed next build mentoined in step 1 and it was sucesfull but there was not enough space left to install required packages to run webcam on it.

To make it in easy way and save some time with uninstalling unnecessary packages i was hoping that with this second build there will be more empty space, so i tryed to flash it...

Now when i turn it on there is only powered power led and nothing else happens...

(Last edited by drum on 12 Dec 2012, 22:11)

yes i can try, but with luci installed there will not be enough free space to install support to run webcam on it. I allready have older 3220 (rev1.2) with basic build of openwrt and there is not posible to install luci and my packages.

Sorry, posts 80 to 78 are missing from our archive.

Serial console is the only way.. :-(

I am newbie in openwrt.

I have downloaded the trunk and complied the images for MR3220.

i have go the output images for both v1 and v2 boards.

is the images for v2 is correct? i have MR3220v2 board. I have earlier flashed Cyndy's image it works 3g connection and Ethernet connections.

is it safe to use this build?

Sorry, posts 81 to 79 are missing from our archive.

openwrt_user please post normal torrent link because I can't uncompres zip/uue file (CRC Errors)

(Last edited by johndoe on 14 Dec 2012, 21:40)

johndoe wrote:

openwrt_user please post normal torrent link because I can't uncompres zip/uue file (CRC Errors)

I modified my previous posts. I uuencoded the torrent file now.

Sorry, posts 82 to 80 are missing from our archive.

"trunk" is never safe. It is bleeding edge new stuff. At the moment Attitude Adjustment is the stable release.
If you want to test or develop go with Trunk, otherwise go with AA.

Dioptimizer wrote:

2 All
Could you create a new ticket and put it on https://dev.openwrt.org/ working patch for this device, confirming stable work and a fully bootlog for this device.
Patch should include the major changes over the last trunk source.
It would speed up official support OpenWRT firmware of the device.

I added the patches to the ticket

I did the similar thing - flashed the firmware from post #19, the WPA wifi encryption did not work. I tried to flash the link from the wiki (the r33720 trunk version) ending up with bricking the router.
Any suggestions with unbricking, please?

already tried to trigger failsafe mode? get the FAST SYS LED flashing?

Perhaps Trunks should be renamed "rotten core" or "YouAreFuBar". So many peops mistake it for something functional.

RalfFriedl wrote:

Update:
The serial signal is on the two small pads on the back side.
TP18 is TX.
TP23 is RX.

https://dev.openwrt.org/ticket/12026#comment:29

Beware however that it may not be a good idea to connect Rx directly to TP23 without the resistors of the voltage divider. I killed the X input of my device,

Could someone please elaborate what is safe to connect to TP23 and why?? Resistors??

robthebrew wrote:

Perhaps Trunks should be renamed "rotten core" or "YouAreFuBar". So many peops mistake it for something functional.

seems to me that everywhere in wiki it's written that trunk images are risky, unstable, and built for testing..

is there a (safe) release with working wpa?

Dear all,
can I use this router as a wlan radio (with usb sound card)?

Mighty Ohm link

Thank you for your replies!

viraga84 wrote:

Dear all,
can I use this router as a wlan radio (with usb sound card)?

Mighty Ohm link

Thank you for your replies!

Of course smile

Adding support to TP-LINK MR3220 V.2 + MR3420 V.2
OpenWrt Attitude Adjustment 12.09-rc1

diff

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 35052)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c    (working copy)
@@ -8,6 +8,9 @@
  *  by the Free Software Foundation.
  */
 
+#include "dev-usb.h" 
+#include <linux/gpio.h>
+
 #include <linux/platform_device.h>
 
 #include <asm/mach-ath79/ath79.h>
@@ -32,7 +35,7 @@
 
 #define TL_WR841NV8_GPIO_BTN_RESET    17
 #define TL_WR841NV8_GPIO_SW_RFKILL    16
-
+#define TL_WR841NV8_GPIO_USB_POWER    4
 #define TL_WR841NV8_KEYS_POLL_INTERVAL    20    /* msecs */
 #define TL_WR841NV8_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR841NV8_KEYS_POLL_INTERVAL)
 
@@ -111,6 +114,13 @@
                     ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
                     tl_wr841n_v8_gpio_keys);
 
+    /* enable power for the USB port */
+    gpio_request(TL_WR841NV8_GPIO_USB_POWER, "USB power");
+    gpio_direction_input(TL_WR841NV8_GPIO_USB_POWER);
+
+    ath79_register_usb();
+    /* END for the USB port */
+
     ath79_register_m25p80(&tl_wr841n_v8_flash_data);
 
     ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
@@ -135,5 +145,5 @@
     ath79_register_wmac(ee, mac);
 }
 
-MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8", "TP-LINK TL-WR841N/ND v8",
+MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8", "TP-LINK TL-MR3420 v2 | TP-LINK TL-WR841N/ND v8 (3G)",
          tl_wr841n_v8_setup);
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr741nd-v4.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr741nd-v4.c    (revision 35052)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr741nd-v4.c    (working copy)
@@ -13,6 +13,7 @@
 #include <asm/mach-ath79/ath79.h>
 #include <asm/mach-ath79/ar71xx_regs.h>
 
+#include "dev-usb.h"
 #include "common.h"
 #include "dev-eth.h"
 #include "dev-gpio-buttons.h"
@@ -120,6 +121,7 @@
                     ARRAY_SIZE(tl_wr741ndv4_gpio_keys),
                     tl_wr741ndv4_gpio_keys);
 
+    ath79_register_usb();
     ath79_register_m25p80(&tl_wr741ndv4_flash_data);
     ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);
     ath79_init_mac(ath79_eth1_data.mac_addr, mac, -1);
@@ -132,4 +134,4 @@
 }
 
 MIPS_MACHINE(ATH79_MACH_TL_WR741ND_V4, "TL-WR741ND-v4",
-         "TP-LINK TL-WR741ND v4", tl_wr741ndv4_setup);
+         "TP-LINK TL-MR3220 v2 | TP-LINK TL-WR741ND v4 (3G)", tl_wr741ndv4_setup);
Index: target/linux/ar71xx/image/Makefile
===================================================================
--- target/linux/ar71xx/image/Makefile    (revision 35052)
+++ target/linux/ar71xx/image/Makefile    (working copy)
@@ -848,8 +848,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),TLMR3220,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),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),TLWA901NV1,tl-wa901nd-v1,TL-WA901ND,ttyS0,115200,0x09010001,1,4M))
@@ -869,11 +868,12 @@
 $(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),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,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))
+########### referensi mr3220 v.2
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
+########### 
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v 3.13.99))
@@ -912,6 +912,19 @@
 
 $(eval $(call SingleProfile,ZyXEL,$(fs_64k),NBG_460N_550N_550NH,nbg460n_550n_550nh,NBG460N,ttyS0,115200,NBG-460N))
 
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020V1,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040V1,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x32200001,1,4M))
+$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420V1,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M))
+############ MR3220 V.2
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-WR741ND-v4,ttyATH0,115200,0x32200002,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-WR841N-v8,ttyS0,115200,0x34200002,1,4Mlzma))
+############ 
+#----------------------tambahan
+$(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))
+$(eval $(call MultiProfile,TLMR3420,TLMR3420V1 TLMR3420V2))
+$(eval $(call MultiProfile,TLMR3020,TLMR3020V1 TLMR3020V2))
+#----------------------
 $(eval $(call MultiProfile,AP121,AP121_2M AP121_4M))
 $(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT))
 $(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
Index: target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch
===================================================================
--- target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch    (revision 35052)
+++ target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch    (working copy)
@@ -555,6 +555,7 @@
 +config ATH79_MACH_TL_WR741ND_V4
 +    bool "TP-LINK TL-WR741ND v4 support"
 +    select SOC_AR933X
++    select ATH79_DEV_USB
 +    select ATH79_DEV_ETH
 +    select ATH79_DEV_GPIO_BUTTONS
 +    select ATH79_DEV_LEDS_GPIO
@@ -573,6 +574,7 @@
 +config ATH79_MACH_TL_WR841N_V8
 +    bool "TP-LINK TL-WR841N/ND v8 support"
 +    select SOC_AR934X
++    select ATH79_DEV_USB
 +    select ATH79_DEV_ETH
 +    select ATH79_DEV_GPIO_BUTTONS
 +    select ATH79_DEV_LEDS_GPIO
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/network    (revision 35052)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network    (working copy)
@@ -134,6 +134,12 @@
     ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
     ;;
 
+tl-mr3420-v2)
+    ucidef_set_interfaces_lan_wan "eth1" "eth0"
+    ucidef_add_switch "switch0" "1" "1"
+    ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
+    ;;
+
 wrt160nl)
     ucidef_set_interfaces_lan_wan "eth0" "eth1"
     ucidef_add_switch "eth0" "1" "1"
@@ -187,6 +193,7 @@
 tew-632brp |\
 tew-712br |\
 tl-mr3220 |\
+tl-mr3220-v2 |\
 tl-mr3420 |\
 tl-wr741nd |\
 tl-wr741nd-v4 |\
Index: tools/firmware-utils/src/mktplinkfw.c
===================================================================
--- tools/firmware-utils/src/mktplinkfw.c    (revision 35052)
+++ tools/firmware-utils/src/mktplinkfw.c    (working copy)
@@ -32,7 +32,9 @@
 #define HEADER_VERSION_V1    0x01000000
 #define HWID_TL_MR3020_V1    0x30200001
 #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_WA901ND_V1    0x09010001
@@ -173,6 +175,12 @@
         .kernel_ep    = 0x80060000,
         .rootfs_ofs    = 0x100000,
     }, {
+        .id             = "16Mlzma",
+        .fw_max_len     = 0xfc0000,
+        .kernel_la      = 0x80060000,
+        .kernel_ep      = 0x80060000,
+        .rootfs_ofs     = 0x100000,
+    }, {
         /* terminating entry */
     }
 };
@@ -189,11 +197,21 @@
         .hw_rev        = 1,
         .layout_id    = "4M",
     }, {
+        .id        = "TL-MR3220v2",
+        .hw_id        = HWID_TL_MR3220_V2,
+        .hw_rev        = 1,
+        .layout_id    = "4Mlzma",
+    }, {
         .id        = "TL-MR3420v1",
         .hw_id        = HWID_TL_MR3420_V1,
         .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,

pastebin-diff

Download (iix)
http://openwrt.agromapia.com/firmware/aarc1/

Download (int)
https://www.box.com/s/qebaprwq0798dyu19h1c

folder contains:

md5sums
openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-mr3220-v2-squashfs-factory.bin
openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-mr3420-v2-squashfs-factory.bin

Previous firmware:
https://www.box.com/s/cqk23ztqlux1zs034896[/spoiler]

Registered just to say thanks to you, cindy, you did the great work here with the patches!
I was trying to install fresh AA recently, everything went well except WAN (didn't tried USB though), and there you go with the new ones.

(Last edited by evo on 10 Jan 2013, 11:32)

Works like a Charm now... Thanks

Hello all,

I have checket out aa svn revision 35052, applied patch from cindy but still getting the error on compile:
AP: TPLINK MR3220v2
Command used to checkout svn:
svn co -r 35052 svn://svn.openwrt.org/openwrt/branches/attitude_adjustment/

Applied patch

@server:~/openwrt/$ cd attitude_adjustment/
@server:~/openwrt/attitude_adjustment$ patch -p0 < cindy_patch_usb

Error details:

@server:~/openwrt/attitude_adjustment$ make V=s
make[1]: Entering directory `/home/retrolc/openwrt/attitude_adjustment'
make[2]: Entering directory `/home/retrolc/openwrt/attitude_adjustment'
make[3]: Entering directory `/home/retrolc/openwrt/attitude_adjustment/target/linux'
make[4]: Entering directory `/home/retrolc/openwrt/attitude_adjustment/target/linux/ar71xx'
if [ -s "/home/retrolc/openwrt/attitude_adjustment/build_dir/linux-ar71xx_generic/linux-3.3.8/patches/series" ]; then (cd "/home/retrolc/openwrt/attitude_adjustment/build_dir/linux-ar71xx_generic/linux-3.3.8"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
Applying patch platform/610-MIPS-ath79-openwrt-machines.patch
patching file arch/mips/ath79/machtypes.h
patching file arch/mips/ath79/Kconfig
patch: **** malformed patch at line 666:      bool "Ubiquiti Networks XM (rev 1.0) board"

Patch platform/610-MIPS-ath79-openwrt-machines.patch does not apply (enforce with -f)
make[4]: *** [/home/retrolc/openwrt/attitude_adjustment/build_dir/linux-ar71xx_generic/linux-3.3.8/.quilt_checked] Error 1
make[4]: Leaving directory `/home/retrolc/openwrt/attitude_adjustment/target/linux/ar71xx'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/retrolc/openwrt/attitude_adjustment/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/retrolc/openwrt/attitude_adjustment'
make[1]: *** [/home/retrolc/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/retrolc/openwrt/attitude_adjustment'
make: *** [world] Error 2

Can you help me please?

Thanks.

Peter

(Last edited by PVi1 on 11 Jan 2013, 10:25)

yep, there is an error in this patchfile.
Open it and replace line 209 with

@@ -67,6 +147,458 @@ config ATH79_MACH_PB44

This should do the trick.

Also, after compilation with that new cindy patch wifi wont turn on automatically anymore for some reason (i'm aware of mac80211.sh), and LEDs aren't working anymore, except the power one...

(Last edited by evo on 11 Jan 2013, 11:03)

Could it be that the gpios of the LEDs have changed?
I would edit out the LED assignments from mach-tl-wr841n-v8.c and then try manually switching them via gpio calls

It seemed that I've used newer revision, and that could have been a problem for all that stuff. Would try with r35052 (as patch says) soon. Also almost bricked my modem using cindy's sysupgrade on my build, but luckily failsafe worked out for me!

evo wrote:

yep, there is an error in this patchfile.
Open it and replace line 209 with

@@ -67,6 +147,458 @@ config ATH79_MACH_PB44

This should do the trick.

Also, after compilation with that new cindy patch wifi wont turn on automatically anymore for some reason (i'm aware of mac80211.sh), and LEDs aren't working anymore, except the power one...

Hi evo,

are you sure with the line number?
when i open the patch from the pastebin http://pastebin.com/gzf2VNhK i can see this on line 209:
   .layout_id      = "4Mlzma",

Can you post the original text that have to be replaced?

Thanks,

Peter

PVi1 wrote:

Hi evo,

are you sure with the line number?
when i open the patch from the pastebin http://pastebin.com/gzf2VNhK i can see this on line 209:
   .layout_id      = "4Mlzma",

Can you post the original text that have to be replaced?

Thanks,

Peter

I was talking about the patch file:

<...>/OpenWRT/aptitude_adjustment/build_dir/linux-ar71xx_generic/linux-3.3.8/patches/platform/610-MIPS-ath79-openwrt-machines.patch

P.S. I forgot that I've used newer revision. Generally you just search

@@ -67,6 +147,456 @@ config ATH79_MACH_PB44

And replace with

@@ -67,6 +147,458 @@ config ATH79_MACH_PB44

I had the same problem as you, I guess something went wrong with line numbers when they wrote it.

@nebbia88: didn't knew that, thanks!

(Last edited by evo on 11 Jan 2013, 15:46)