User Tools

Site Tools


toh:tp-link:tl-mr3020

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
toh:tp-link:tl-mr3020 [2013/11/02 21:58]
sancho Warning for V1.8 and original firmware restoration.
toh:tp-link:tl-mr3020 [2014/10/30 03:23] (current)
alromh87 Update for 1.9 fw
Line 13: Line 13:
 | v1.7 | 2012-05 | 12.09-RC1, Trunk  ([[https://​dev.openwrt.org/​changeset/​32786|r32786]]) | AR9331 chipset | | v1.7 | 2012-05 | 12.09-RC1, Trunk  ([[https://​dev.openwrt.org/​changeset/​32786|r32786]]) | AR9331 chipset |
 | v1.8 | ??      | 12.09-RC1 (tested), Trunk (tested) | AR9331-AL1A;​ internal serial port has no pins, only solder-pads (P1 clearly visible) | | v1.8 | ??      | 12.09-RC1 (tested), Trunk (tested) | AR9331-AL1A;​ internal serial port has no pins, only solder-pads (P1 clearly visible) |
 +| v1.9 | ??      | 12.09 (tested) ​     | AR9331-AL1A |
  
 The current release The current release
Line 28: Line 29:
     * 6.7 cm x 7.4 cm x 2.2 cm case      * 6.7 cm x 7.4 cm x 2.2 cm case 
  
-Input voltage: ​the router will function correctly when powered with voltages as low as 3.3 Volts (determined experimentally) instead of 5 V USB-Power. Thus, it can be powered directly from one single Li-Ion battery (which usually starts fully charged at 4.2 V and has a nominal voltage of 3.7) without the need for an external ​5 V adapter.+=== Power consumption === 
 + 
 +Input voltage: ​The router will function correctly when powered with voltages as low as 3.3 Volts (determined experimentally) instead of 5V USB-Power. Thus, it can be powered directly from one single Li-Ion battery (which usually starts fully charged at 4.2V and has a nominal voltage of 3.7) without the need for an external ​5V adapter. 
 + 
 +This router is standardly powered via USB at 5V. The voltage regulators'​ input voltage should be at least between 3.7V - 5.5V, but not over 5.5V. The device will get damaged at too high voltages*. Maximum current draw at 5V is 255mA (Active Download + LAN + WLAN + USBboot), average current draw with WiFi is 125mA, idle is 68mA. Hence the average router power consumption is 0.6W, which is incredibly low. 
 + 
 +Power consumption will be higher if a USB device is attached to its USB port!  
 +More information and a rough diagram here [[https://​apollo.open-resource.org/​lab:​argus|Interesting webpage with more data about power consumption and so on]]
  
 ===== Installation ===== ===== Installation =====
Line 47: Line 55:
 Wait for the progress bar to finish twice (the device will reset itself in the process), and [[toh:​tp-link:​tl-mr3020#​basic configuration|proceed with basic configuration]] as with any fresh OpenWRT install. Wait for the progress bar to finish twice (the device will reset itself in the process), and [[toh:​tp-link:​tl-mr3020#​basic configuration|proceed with basic configuration]] as with any fresh OpenWRT install.
  
-Web GUI upload has been confirmed to work with v1.0, v1.4, v1.6, v1.7 and 1.hardware revisions and requires no serial access unless something goes wrong.+Web GUI upload has been confirmed to work with v1.0, v1.4, v1.6, v1.7, v1.8 and 1.hardware revisions and requires no serial access unless something goes wrong.
  
 See [[https://​forum.openwrt.org/​viewtopic.php?​pid=154203#​p154203|forum]] if you encounter problems. See [[https://​forum.openwrt.org/​viewtopic.php?​pid=154203#​p154203|forum]] if you encounter problems.
Line 141: Line 149:
   --referer '​http://​192.168.0.254/​userRpm/​SoftwareUpgradeRpm.htm'​ \   --referer '​http://​192.168.0.254/​userRpm/​SoftwareUpgradeRpm.htm'​ \
   --form "​Filename=@$1"​ -F '​Upgrade=Upgrade'​ \   --form "​Filename=@$1"​ -F '​Upgrade=Upgrade'​ \
-  http://​192.168.0.254/​incoming/​Firmware.htm > /dev/null+  http://​192.168.0.254/​incoming/​Firmware.htm ​ > ans.html 
 +> /dev/null
  
 sleep 1 sleep 1
 +
 +session_id=$(sed -n 's/var session_id = \"​\(.*\)\"​.*/​\1/​p'​ ans.html)
  
 curl \ curl \
Line 150: Line 161:
   --user-agent '​Mozilla/​5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/​20100101 Firefox/​12.0'​ \   --user-agent '​Mozilla/​5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/​20100101 Firefox/​12.0'​ \
   --referer '​http://​192.168.0.254/​incoming/​Firmware.htm'​ \   --referer '​http://​192.168.0.254/​incoming/​Firmware.htm'​ \
-  http://​192.168.0.254/​userRpm/​FirmwareUpdateTemp.htm >  /dev/null+  http://​192.168.0.254/​userRpm/​FirmwareUpdateTemp.htm?​session_id=$session_id  ​>  /dev/null
 </​code>​ </​code>​
  
 ==== Install Snapshot Image ==== ==== Install Snapshot Image ====
  
-If you install openwrt from trunk, ​it isn't include LuCi. You need configure wireless network from telnet ​for install Luci. You will need already working ​wireless ​internet. ​ +If you install openwrt from trunk, ​the firmware image doesn't include LuCi. You need configure wireless network from telnet ​to install Luci. You will need already working internet ​access.
- - For beginners need to learn basic control of vi editor+
  
  
Line 243: Line 253:
 </​code>​ </​code>​
  
-Your terminal ​season ​will be closed. ​you need reconnect to router.+Your terminal ​session ​will be closed. ​You need reconnect to router.
  
-test your router ​if your router properly connected internet you should something like below lines:+Test your router: If your router ​is properly connected ​to the internet you should ​get something like the below lines:
  
 <​code>​ <​code>​
Line 268: Line 278:
 </​code>​ </​code>​
  
-Reboot your router one last time +Now you can access ​LuCi interface by 192.168.1.1 with your browser.
- +
-<​code>​ +
-reboot +
-</​code>​ +
- +
-Now you can access ​luci interface by 192.168.1.1 with your browser +
- +
-=== VI editor basic using ( for beginners ) === +
- +
-<​code>​ +
-arrow keys: move cursor +
-a:          enter write mode +
-DEL:        delete character +
-ESC:        exit write mode +
-</​code>​ +
- +
-even exit write mode it wont exit vi editor or write your changing for these you need when you out of write mode you have to give these command to vi: +
- +
-<​code>​ +
-:w    write changing to router +
-:q    exit vi editor and return to command shell +
-:wq   write & exit +
-:q!   you cant exit vi when you made some changes. If you want exit vi without write changes you have to use these to exit vi editor. +
-</​code>​ +
- +
-this should enough for set this router+
  
 ===== Failsafe Mode ===== ===== Failsafe Mode =====
Line 300: Line 284:
   * Connect the TL-MR3020 to your computer via ethernet   * Connect the TL-MR3020 to your computer via ethernet
   * Power on the TL-MR3020   * Power on the TL-MR3020
-  * When the WPS Button ​starts to blink push it until it blinks ​faster+  * When the WPS button ​starts to blink
 +    * on AA (Attitude Adjustment / 12.09) ​push the WPS button; 
 +    * on BB (Breaking Barrier / trunk) move the sliding switch quickly from one side to the other. 
 +  * Do this until the WPS button starts blinking ​faster.
   * The device is now in Failsafe-Mode   * The device is now in Failsafe-Mode
   * You may access it by using **telnet 192.168.1.1**   * You may access it by using **telnet 192.168.1.1**
    
-Info on resetting to open wrt defaults can be found at: [[http://​wiki.openwrt.org/​doc/​howto/​generic.failsafe#​in.failsafe.mode|generic.failsafe]]+Info on resetting to OpenWrt ​defaults can be found at: [[http://​wiki.openwrt.org/​doc/​howto/​generic.failsafe#​in.failsafe.mode|generic.failsafe]]
  
 ==== Downgrade Attitute Adjustment from Trunk ==== ==== Downgrade Attitute Adjustment from Trunk ====
Line 325: Line 312:
  
 ===== Restoring Original Firmware ===== ===== Restoring Original Firmware =====
 +-> [[doc:​howto:​generic.uninstall]]
  
-Restoring the original firmware follows the usual procedure:+{{page>​meta:infobox:​dangerous&​noheader&​nofooter&​noeditbtn}}
  
-  * Get original ​firmware ​image into /tmp +With the TL-WR842ND router, there is a catch: the stock firmware ​is obtained from the OEM: http://​www.tplink.com/en/support/download/?​model=TL-MR3020
-  * Make sure it's in the correct format +
-  * Flash with //mtd// +
-  * Factory reset+
  
-{{:​meta:​icons:​tango:​dialog-warning.png?​nolink |Warning!}}**WARNING:** The following steps were tested successfully on an **MR-3020 V1.4**. Make sure that the firmware ​link used in the instructions below **matches your hardware revision** by following the firmware link in the link section below.+  ​in case the file name of this firmware file does not contain the word **//"​boot"//​** in it, you can simply revert back to original firmware 
 +  ​in case the file name of this firmware ​file does contain ​the word **//"​boot"//​** in it, you need to cut off parts of the image file //before// flashing it:
  
-{{:​meta:​icons:​tango:​dialog-warning.png?​nolink |Warning!}}**WARNING:​** Don't use the newest firmware on an **MR-3020 V1.8** (and maybe on other hardware revisions too) for restoring the original firmware! With the firmware file "​mr3020nv1_en_3_15_2_up_boot(130326).bin"​ it will fail with the error message "​Failed to erase block"​. Always use the recommended commands below. 
  
-{{:​meta:​icons:​tango:​dialog-warning.png?​nolink |Warning!}}**WARNING:​** On V1.8 even if you succeed ​with firmware upload, after the router reboot the web interface will not work and you will not be able to return either to OpenWRT, nor to working original flashWhat's even worse is, that the HW revision is only visible on the inside of the router - on the Ethernet port sticker, so you have to open the device up+An example of an image file with the word "​boot"​ in it is ''​mr3020nv1_en_3_17_2_up_boot(140408).bin''.
  
-First, set the mode switch to //WISP//. Without ityou might have trouble connecting after the rebootConnect via ssh/telnet/​serial and use the following commands:+Cut the first 0x20200 (that is 131,584 = 257*512) Bytes from original firmware: 
 +<​code>​ 
 +dd if=orig.bin of=tplink.bin skip=257 bs=512 
 +</code>
  
-<​code>​# opkg update && opkg install unzip +You should transfer the firmeware image to the /tmp folder and revert back to original firmware (if availlable you can flash the firmware via the webinterface as well): 
-# cd /tmp + 
-# wget http://​www.tp-link.com/​Resources/​software/​TL-MR3020_V1_120320.zip +Via the safer method using sysupgrade:​ 
-# unzip TL-MR3020*.zip +<​code>​ 
-# mtd -r write mr3020*up*.bin firmware+sysupgrade ​/tmp/tplink.bin
 </​code>​ </​code>​
  
-After a couple of seconds, ​the router reboots automatically. Reconnect, open [[http://192.168.0.254/|http://192.168.0.254]], log in with //admin// / //admin//, and do a factory reset with //System Tools// / //Factory Defaults//.+Or you use the mtd method: 
 +<​code>​ 
 +mtd -r write /tmp/tplink.bin firmware 
 +</code> 
 + 
 +It is also possible to revert to the stock firmware using the method with tftp described in "​Manual Method Using Serial Console and TFTP (Experts)"​(you still need the firmware images without the boot part). 
 + 
 +OEM TP-Link firmware for the TL-MR3020 ​with the **//boot part removed//** to revert to the original OEM firmware: 
 +  * TL-MR3020 **//V1//** [[http://q.gs/6giYF|TL-MR3020-V1-stripped.zip]]
  
 ===== Basic Configuration ===== ===== Basic Configuration =====
Line 397: Line 393:
 To get a reliable serial connection, **you might have to connect a 10k pullup resistor** between TX and VCC. This is because the TX pin is connected to a voltage divider (2x5.6k) and a capacitor is put between the real pin and the TX connector. Some serial adaptors might work without the pullup resistor (confirmed for one ST3232-based adaptor), but others definitely require it (confirmed for a FTDI FT232RL-based model). ​ To get a reliable serial connection, **you might have to connect a 10k pullup resistor** between TX and VCC. This is because the TX pin is connected to a voltage divider (2x5.6k) and a capacitor is put between the real pin and the TX connector. Some serial adaptors might work without the pullup resistor (confirmed for one ST3232-based adaptor), but others definitely require it (confirmed for a FTDI FT232RL-based model). ​
  
-If you need a serial adaptor, you can build a [[http://​buffalo.nas-central.org/​index.php/​Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation#​Preparing_the_Cable|serial hack adapter]] (DKU-5, CA-42). Relatively cheap, off-the-shelf and known-to-work alternatives would be SparkFun'​s [[http://​www.sparkfun.com/​products/​9873|FTDI Basic Breakout 3.3V]] and [[http://​www.sparkfun.com/​products/​9717|FTDI Serial Cable 3.3V]].+If you need a serial adaptor, you can build a [[http://​buffalo.nas-central.org/​index.php/​Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation#​Preparing_the_Cable|serial hack adapter]] (DKU-5, CA-42). Relatively cheap, off-the-shelf and known-to-work alternatives would be SparkFun'​s [[http://​www.sparkfun.com/​products/​9873|FTDI Basic Breakout 3.3V]] and [[http://​www.sparkfun.com/​products/​9717|FTDI Serial Cable 3.3V]] ​(the resistor is not needed with this specific cable).
  
 The right settings for accessing the serial console are as follows: The right settings for accessing the serial console are as follows:
Line 518: Line 514:
  
 The WPS button is located at the top (illuminated by the WPS LED) and can be easily pressed with a finger. The sliding switch is located at the side and has three positions: 3G, WISP, AP. The WPS button is located at the top (illuminated by the WPS LED) and can be easily pressed with a finger. The sliding switch is located at the side and has three positions: 3G, WISP, AP.
 +
 +Sample scripts to read the sliding switch: [[https://​forum.openwrt.org/​viewtopic.php?​pid=172111#​p172111|on boot]], [[https://​forum.openwrt.org/​viewtopic.php?​pid=172110#​p172110|on switch change]], [[https://​gist.github.com/​jefferyto/​8010733|to change network configurations]]
 +
 +===== Bootloader Mods =====
 +Information about [[doc:​techref:​bootloader]] in general and [[doc:​techref:​bootloader:​uboot|Das U-Boot]] in particular.
 +
 +==== U-Boot 1.1.4 modification for routers ====
 +Forum member [[https://​forum.openwrt.org/​profile.php?​id=72549|pepe2k]] made a modification of **U-Boot 1.1.4** for **Qualcomm Atheros** SoCs based devices (the project is still being developed, so new devices and SoCs will be supported in the future).
 +
 +This modification started from [[http://​code.google.com/​p/​wr703n-uboot-with-web-failsafe/​|wr703n-uboot-with-web-failsafe]] project, but supports more devices, all modern web browsers, has a lot of improvements and other modifications (like U-Boot NetConsole, custom commands, overclocking possibilities etc.).
 +
 +More information:​
 +
 +  * Official repository on GitHub: [[https://​github.com/​pepe2k/​u-boot_mod|U-Boot 1.1.4 modification for routers]]
 +  * Discussion about this project on [[https://​forum.openwrt.org/​viewtopic.php?​id=43237|OpenWrt forum]]
 +  * An article (in Polish) about one of the first version of this project on [[http://​www.tech-blog.pl/​2013/​03/​29/​zmodyfikowany-u-boot-dla-routerow-tp-link-z-atheros-ar9331-z-trybem-aktualizacji-oprogramowania-przez-www-i-konsola-sieciowa-netconsole/​|www.tech-blog.pl]]
  
 ===== Hardware Hacks ===== ===== Hardware Hacks =====
Line 523: Line 535:
 ==== External Antenna Hack ==== ==== External Antenna Hack ====
  
-{{:toh:tp-link:tl-mr3020-wlan-antenna-hack2.jpg?​450}} +{{:media:​mr3020-antenna-rpsmamod.jpg?​450}} 
-{{:toh:tp-link:tl-mr3020-wlan-antenna-hack4.jpg?450}}+{{:media:​mr3020-antenna-pigtailmod.jpg?450}}
  
 If you want to add an external antenna connector or would like to know more about the MR3020 power consumption in different op-states you can find more info [[https://​apollo.open-resource.org/​lab:​argus#​modifications|Apollo-NG MR3020 External Antenna Hack]] If you want to add an external antenna connector or would like to know more about the MR3020 power consumption in different op-states you can find more info [[https://​apollo.open-resource.org/​lab:​argus#​modifications|Apollo-NG MR3020 External Antenna Hack]]
Line 563: Line 575:
 ===== USB port and monitoring Serial Console via USB-Serial ===== ===== USB port and monitoring Serial Console via USB-Serial =====
  
-The USB port on the TL-MR3020 is not compatible with USB1 devices (aka full speed) and only works properly with USB2 (aka high speed) devices. You can however plug a USB-Serial adapter as long as you plug that through a <​$10 ​USB2. While you're at it, use another ​USB port to plug in a USB key and write data there (like serial console logs) so as not to wear out the built in flash.+The USB port on the TL-MR3020 is not compatible with USB1 devices (aka full speed) and only works properly with USB2 (aka high speed) devices. You can however plug a USB-Serial adapter as long as you plug that through a <​$10 ​USB 2.0 hub. While you're at it, use another port of the USB hub to plug in a USB thumb drive and write data there (like serial console logs) so as not to wear out the built-in flash.
  
 See this page for more tips and how to create a serial console server out of your TL-MR3020: See this page for more tips and how to create a serial console server out of your TL-MR3020:
-http://​marc.merlins.org/​perso/​linux/​post_2012-12-05_Serial-Console-With-WR703N.html+[[http://​marc.merlins.org/​perso/​linux/​post_2012-12-05_Serial-Console-With-WR703N.html]]
  
 ===== Boot log ===== ===== Boot log =====
Line 805: Line 817:
 [[https://​forum.openwrt.org/​viewtopic.php?​id=33429|TP-Link TL-MR3020 Support]] ​ [[https://​forum.openwrt.org/​viewtopic.php?​id=33429|TP-Link TL-MR3020 Support]] ​
  
-===== Custom ​IPv6 image for mr3020 (v1.7) ​===== +===== Custom ​OpenWrt ​image with LuCi integrated ​=====
- +
-A custom image with ipv6 support: radvd, wide-dhcpv6,​ 3g stick support, made for RCS-RDS Fiberlink dual stack PPPoE service, +
-but should be okay for static wan settings on other ISPs: +
-http://​www.ip6.ro/​firmware/​mr3020/​+
  
 +http://​www.superwrt.eu/​en/​firmware/​tp-link-mr3020/​
  
 ===== Tags ===== ===== Tags =====
 ---- ----
 {{tag>​2011Dec FastEthernet 1NIC 1WNIC no_switch 1Ant USB2.0 1USB Serial integrated 802.11bgn AR9331 ath9k 32RAM 4Flash MIPS MIPS32 24Kc AR7241 AP121 portable_router}} {{tag>​2011Dec FastEthernet 1NIC 1WNIC no_switch 1Ant USB2.0 1USB Serial integrated 802.11bgn AR9331 ath9k 32RAM 4Flash MIPS MIPS32 24Kc AR7241 AP121 portable_router}}
toh/tp-link/tl-mr3020.1383425896.txt.bz2 · Last modified: 2013/11/02 21:58 by sancho