OpenWrt Forum Archive

Topic: TP-Link TL-MR3020 Support

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

omiez wrote:

In which position must the switch be to flash Openwrt, 3G/4G,WISP or AP?

Doesn't matter at all.

Hello,

I've installed last trunk firmware and everything's working fine. But I cannot install LUCI, because of lack of free space.
How can I free some space or, alternatively, how can I install LUCI?

TX

scottini wrote:

Hello,

I've installed last trunk firmware and everything's working fine. But I cannot install LUCI, because of lack of free space.
How can I free some space or, alternatively, how can I install LUCI?

TX

I attached a 4G USB flash drive to the router and use "ExRoot" method to enlarge the flash size. It works very well.

... or just go ahead and install the Barrier Breaker 14.07 release image. It comes with LuCI. At this point, the trunk images do not offer any significant advantages for well-supported models with a BB release like the MR3020 (CMIIW).

Hello everybody.
I'm planning to upgrade a MR3020 to OpenWRT and afterwards implement a SOHO PBX with LuCI pbx and voicemail.
It's a small PBX I have in mind, three extensions and some trunks. Very seldom 2 concurrent calls, more often calls between two extensions of the pbx.
I'm asking if someone has experience on it, particularly regarding performance.
I do hope this question is pertinent here.
Thanks!
MC

el_ric wrote:

Hi:

I just installed 12.09-RC1 as suggested in 3020 openwrt support page in my MR3020 v1.7 and is working good.
I want now to extroot, but in this same topic, there are posts that indicates that it is possible and there are posts that indicates that because it is a stable release that includes luci, there is not free space left to do an extroot.

¿Can anyone confirm me that it is possible to extroot? I asume I have to install  block-mount kmod-usb-storage kmod-fs-ext4, and format in other computer an USB with an ext3/4 partition and an swap partition

In 12.09-RC1 ¿does the sliding switch have any function?

I have been on openwrt for years and my recent experiments have led me to upgrade to the barrier stable 14.07 stable cause the ath9k-htc kmods I needed for my WN-702Ns to turn on didn't work for me. But maybe I was using insmod instead of modprobe to insert them.

I currently have 9 bmx6 mesh nodes, 6 with extroot on a sandisk cruzer fit and 3 mesh nodes using just /overlay with many other goodies.

I boot from /overlay by just removing the usb as a backup to correct errores in my configs on the usb extroot. I keep a working wifi setup on overlay boot on all nodes (8 virtual access points on some nodea just 4 fun, some with VAPs bridged, some not, and some with a combination of both. I like to experiment!

I've hacked openwrt to hell (but not as deeply as I'd like) and have used Imagebuilder and buildroot to optimize the free space on my firmwares, mix and match configs, banners, and binaries from other firmwares like borgbox, interceptor, qmp, minipwn3r, regdb, hostapd and other mods and a freeradius 2 seto on a wrt54gl.

Lately on 14.07 on a MR3040 I've managed to fit on internal flash (overlay filesystem) a lot of stuff.

1. extroot ready to migrate data of whole root onto extroot

2. a working bmx6 mesh node based on qmp- system and qmp-tiny-node packages but trimmed down alot removing autoconfiguration system and other useless garbage like AUTHOR , uci hooks, banner etc and stuff not needed for my qmp (er.. bmx6) node since I already modify my own configs.

3. karma'd hostapd binaries

4. hacked regdb and modules

5. multiple virtual ap interfaces.

6. ath9k-htc and rt2800usb wifi modules for my WN-702N
     dongle (ath9k-htc) and ralink usb panel antena (rt2800usb)

7. some iw scripts as a shortcut to writing long commands.

8. my own profile with ssh alias and environment variables, consolidated openwrt bb 14.07/qmp/borgbox banner (very cool!), node logon welcome
message, updated opkg.conf combining directories from openwrt and qmp repos

9. 140 K freespace left over after cleaning up opkg stuff (taring and backing it up on usb)

10. a few backup files in /config to quickly change to different non-mesh setup, as wifi client, wardriver or as gateway mesh node.

I would love to share my config collection that I spent long hours and many sleepless nights perfecting.

Currently I have the same problem mentioned here about device descriptor errors. I first noticed it when trying to setup 4 radios connected to a MR3020 using an externally powered io-gear usb 2.0 hub. I did a dmesg, cat /sys/class/net/wlanX/address and logread. My radios were being initialized in a different order on each boot or sometimes only 2 radios would power on, or 3 or just the internal radio and wouldn't setup adhoc interfaces for bmx6 consistantly. If I did a cold boot on the hub and router (kill power and plug back in) If I got all radios working but luck had to be on my side. I tried getting at least the 4 usb radios initialized, change the macs in the config then restarting services, it worked, but the manually configured setup didn't survive a reboot.

All diagnostics were done on top of a 15m tower just before a thunderstorm, all for not thinking ahead while I had the gear in the research lab.

So I will try to get more power to two of my four WN-702N individually using 2 pairs of Y cables in a daisy chain by separating power (2 x 1A) from two 12V-5V converters and forcing the hub to not use the MR3020's usb port for power. I'm looking into doing the internal usb hub hack too so as yet I haven't found a reiable solution.

TODO (on some or all MR-3020/MR-3040 routers):

AA1, AA2, AA3, AA4
BB5 (update old trunk to stable and reinstall everything and move over relevant files.
BB6 (Attitude adustment (latest qmp build) works perfectly as a bmx6 mesh node booting from internal overlay root file system and is extroot ready.
BB7 / BB8 - newest mesh nodes using newly bought MR-3020 based on openwrt barrier breaker stable 14.07 and latest qmp packages plus all the mods.

*** fw modding ***

1)    Integrate regulatory.bin/ crda, hacked ath.ko/cfg80211.ko
2)    rt2800usb, ath9k-htc
3)    minimum files needed for meshing (ip,bmx6,
    bmx6-uci-config, bmx6-json, bmx6-sms, bmx6-mdns, gwck-qmp (fping)
    bmx6health.sh, cronfiles)
Add to files/ to add using ImageBuilder) to be
    included in generated firmware
Not necesary:
qmp-small-node depends
    luci-app-bmx6, iwinfo, luci-mod-admin-full,
    luci-theme-bootstrap, luci-i18n-english, uhttpd,
    uhttpd-mod-ubus
also many files from qmp-system are unneeded and
take up too much space thst can be better used to
install radio modules.

Already included in fw image:
ip, iw

4)    Set up compile env. (buildroot) for Chaos Calmer
5)    Set up compile env. for BB, AA
5)    compile latest airdrop, lorcon, aircrack-ng packages on trunk
    or extract packages from NSM5
6)    integrate hostapd, hostap-cli (karma) binaries

All must fit on /overlay (jffs2 file system on nand flash)

Stuff to get

3 coples usb A
2 extensiones USB (si es tplink WN702N)
2 cables USB tipo A a microUSB de 1.8m (si ea alfa)

1 cable "Y" de 1 Macho a 2 Hembras y 1 "Y" de 1 M a 2 M
(si usas cople H)
o simplemente 2 cables "Y" de 1 Macho a 2 Hembras

Setup for getting enough power to two WiFi radios with 1Watt  transmitter power output:
M=Male USB type A
F=Female USB type A

  R1      R2    Radios 1 & 2
   H      H
   |      | <--  cableext. usb (M-H) (2) o microUSB
   M     M
   H     H   cople Hembra (2) Female usb coupler
   M    M
   |       |
--=--  --=--
|     ||     |<---    cable "Y" igriega  (2) 1M a 2H
|     ||     |
|     ||     |__ 5V, 1A o "Y" a Convertidor
M  MM    M
|      Hub            =    12V-5V de 2A
|                =                   |
5V, 1A o "Y" 2H a 1M=======  5V, 2A   <-
     "Y" 2H a 1M=======  5V, 2A   <-
charger        One 2 amp charger conected to
            single end of Y cable leading to
            one of the 2 ends of Y cable powering
            Radio One  and the other end to one of
            the 2 ends of Y cable powering the 2nd
            radio. Confusibg as hell!


1)    radios ath9k-htc 5GHz (adaptadores usb)

2) extensión áctiva usb para recortar a 3 metros max.

3)     conectores sma chassis

4) cruzer fit 8GB

5) TP-MR3020

6) cables usb "Y"

7)     cargadores usb p/ encendedor de carro
    convertidores de 12V-5V
    marca Acteck y Radox

8)     hub usb 2.0 iogear

9) conmutador eléctrico en línea (internet-enabled watchdog, power switch)
    arranque/reinicio en frio de cualquier dispositivo
    (ej. Torres WiFi o suministro DC)  por medio de la red o internet
    IoT (spark, etc) research internet-enabled power switch

10)    3 X AWUS036H, AWUS036N, AWUS036NHA

11)    TP link router with fastest CPU, gigabit eth,
    USB 3.0


My last 8th mesh node (MR-3020) died on me. I had cloned it from BB6 and just changed a few files to make it a unique node (/etc/config/wireless system network bmx6, /etc/banner, mac addresses to detect radios, unique mac part of ip6 addesses, brlan, etc.

I hope I can share my extensive configs (most error-free, some commented, some not).

I've been dormant for some time but just looking to give back to the openwrt community. Since 2007, it's been so much fun working with openwrt stuff which is the basis for everthing that has been developed since. Thanks to main dev, we owe him all for this wireless freedom. cry.

(Last edited by cihuafreenet on 26 Jun 2015, 03:26)

Good morning everyone!,well by mistake, I bricked my MR3020 Rev: 1.2 by flashing my backup mtd2.bin, failsafe mode do not working and even tpl command after autoboot doesnt work with serial, once I keep pressing wps button while plugging in power it ends up inside the TFTP auto update firmware, but I got always the same error with all firmwares i'd tried [product id verify fail!], so any help will be greatly appreciated, thank you in advance!


Boot Log:

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup 
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup 
eth1 up
eth0, eth1
auto update firmware: is_auto_upload_firmware = 0!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET 

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

Boot Log: while pressing wps button

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup 
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup 
eth1 up
eth0, eth1
auto update firmware: is_auto_upload_firmware = 1!
eth1 link down
eth0 link down
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'mr3020v1_tp_recovery.bin'.
Load address: 0x80800000
Loading: *#################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     ###############################
done
Bytes transferred = 2818052 (2b0004 hex)
auto update firmware: product id verify fail!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET 

Hi,
does anyone have a minimalist sysupgrade image for TL-MR3020 (without the graphical interface maybe)?

I installed the one in the downloads sections but I have only 404 kB of free space now and I think I cannot install all the required packages to extroot.

I don't understand why but the first time I had 416 kB free, now only 404 kB.

Thanks in advance.

(Last edited by reiwi on 23 Jul 2015, 14:17)

reiwi wrote:

Hi,
does anyone have a minimalist sysupgrade image for TL-MR3020 (without the graphical interface maybe)?

I installed the one in the downloads sections but I have only 404 kB of free space now and I think I cannot install all the required packages to extroot.

I don't understand why but the first time I had 416 kB free, now only 404 kB.

Thanks in advance.

hi, try this one

https://downloads.openwrt.org/attitude_ … pgrade.bin

illuzionniste wrote:
reiwi wrote:

Hi,
does anyone have a minimalist sysupgrade image for TL-MR3020 (without the graphical interface maybe)?

I installed the one in the downloads sections but I have only 404 kB of free space now and I think I cannot install all the required packages to extroot.

I don't understand why but the first time I had 416 kB free, now only 404 kB.

Thanks in advance.

hi, try this one

https://downloads.openwrt.org/attitude_ … pgrade.bin

Thank you. I forgot to mention I'd need a ligthweight BB image, I already had AA.

reiwi wrote:
illuzionniste wrote:
reiwi wrote:

Hi,
does anyone have a minimalist sysupgrade image for TL-MR3020 (without the graphical interface maybe)?

I installed the one in the downloads sections but I have only 404 kB of free space now and I think I cannot install all the required packages to extroot.

I don't understand why but the first time I had 416 kB free, now only 404 kB.

Thanks in advance.

hi, try this one

https://downloads.openwrt.org/attitude_ … pgrade.bin

Thank you. I forgot to mention I'd need a ligthweight BB image, I already had AA.

https://downloads.openwrt.org/barrier_b … pgrade.bin

@reiwi had the same problem, you can try to find an image somewhere, maybe without IPv6 or something. But you can do it by yourself too with the ImageBuilder, can build you one when you tell me what you need. btw you can also add stuff you need anyway, the image will get bigger but you less than installing it afterwards.

@illuzionniste still need help? do you remember what you did or what happen? did you erased config and art? looks like. you should be able to enter u-boot, maybe your serial TX is broken, check it. I have the moded u-boot which looks a bit different. bit i can see this on mine:
uboot> printmodel
Router model stored in flash at offset 0x9F01FD00: 3020000100000001

After hours and hours of trying, I finally solved the problem, after having tested jumpers one by one I figured out that indeed the TX  jumper was broken, I changed it and now i can get easly into uboot with tpl command after "Autobooting in 1 second" line, so I hope this will help people!

@Wingman2k: I just saw your response after having resolved the problem but you were quite right! thank you so much for your response and your help!

(Last edited by illuzionniste on 25 Jul 2015, 01:21)

Wingman2k wrote:

@reiwi had the same problem, you can try to find an image somewhere, maybe without IPv6 or something. But you can do it by yourself too with the ImageBuilder, can build you one when you tell me what you need. btw you can also add stuff you need anyway, the image will get bigger but you less than installing it afterwards.

Well I'd just need to be able to rootfs (extroot) again like I did previuosly with AA, so:
- kmod-usb-core
- kmod-usb2

which are already in the downloadable image, plus:
- kmod-usb-storage
- kmod-fs-ext4
- kmod-fs-vfat
- block-mount

Then I can extroot with my USB and install everything else I want.

I was thinking of removing the graphical interface LuCI and install it after doing rootfs. But anything that is not strictly necessary to set it up works I guess.

I just didn't want to risk to brick my router. I'm quite new to OpenWrt and afraid I could do something wrong. Also I don't have a x64 Linux installed now to be able to use ImageBuilder. So, if you would do that, appreciated smile

@reiwi, wonder why you need vfat, you can install it later on extroot, BTW if you know (somebody) you can mod your flash to 32Mb which takes most of the fun stuff. Anyway i also prefer a image that comes ready and usable. when loosing the configuration on the router and everything is ready but missing the necessary packages to bring it back.
here is your requested image. openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Wingman2k wrote:

@reiwi, wonder why you need vfat, you can install it later on extroot, BTW if you know (somebody) you can mod your flash to 32Mb which takes most of the fun stuff. Anyway i also prefer a image that comes ready and usable. when loosing the configuration on the router and everything is ready but missing the necessary packages to bring it back.
here is your requested image. openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Thank you man, appreciated but I asked for a sysupgrade image as I wanted to use the sysupgrade procedure:

reiwi wrote:

does anyone have a minimalist sysupgrade image for TL-MR3020

I already have OpenWrt on now, but withouth enough free space to install the packages needed to rootfs. Or is there any safe method to upgrade using the standard 'factory.bin'?

And yes I don't need vfat to extroot you're right I need it after. You can leave it.

Thank you.

(Last edited by reiwi on 28 Jul 2015, 12:02)

trying to install r46421, but I cannot get

kmod-fs-ext4 (and dependencies)
kmod-usb-storage (and dependencies)
block-mount

installed without running out of space. I can install 2 of the 3, but that damn ext4 package is huge.


Currently, I cannot do extroot without all three of these packages and their deps...  Anyone have any ideas other than 'custom image'? Can I upgrade from BB to CC and keep my extroot?  Anyone been successful using fat32 as the drive instead of ext4? fs-msdos is a fraction of the size of fs-ext4...

could not tftpboot - how to do it

cisco tftp server is up and running, but could not connect through putty.

Environmental details as below:
=========================================
hornet> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0xba:0xbe:0xfa:0xce:0x07:0x41
stdin=serial
stdout=serial
stderr=serial
ipaddr=192.168.1.115
serverip=192.168.1.111
ethact=eth0

Environment size: 362/65532 bytes


Got into this loop
======================

hornet> tftpboot 0x80000000 factory.bin
eth1 link down
eth0 link down
Using eth1 device
TFTP from server 192.168.1.111; our IP address is 192.168.1.115
Filename 'factory.bin'.
Load address: 0x80000000
Loading: T T
Retry count exceeded; starting again

=======================

what to be done?

(Last edited by saravanan_g on 29 Jul 2015, 23:52)

Wingman2k wrote:

openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin

Backup and restore should work too.

Thank you again. Tested the other day.

However the /etc/opkg.conf has the repo links for Chaos Calmer 15.05 RC3 not for Barrier Breaker 14.07. Installing/removing packages from from the Internet will cause some '127' errors when configuring the packages.

The fix is obviously to change the repo links to 14.07.

@reiwi, sorry for that, already testing CC, seems I edited the wrong file. but have no physical access to that machine, so I did not check everything, do you want a fixed image? Will check the /etc/opkg.conf tomorrow, but can't remember to edit this one. Do you want an fixed image? CC hopefully will be out soon ;-)

Wingman2k wrote:

@reiwi, sorry for that, already testing CC, seems I edited the wrong file. but have no physical access to that machine, so I did not check everything, do you want a fixed image? Will check the /etc/opkg.conf tomorrow, but can't remember to edit this one. Do you want an fixed image? CC hopefully will be out soon ;-)

Sorry for the late response. I have BB installed now but... maybe we should wait for CC as you suggested smile

If you'll manage to build a minimalistic image ready for extroot let me know smile

Hello If Any One Have Dump For Mr3020 v1 Please Share