51 (edited by snowyowlster 2012-01-18 23:17:09)

Re: TP-Link TL-MR3020 Support

First verify that minicom/Putty is set to N81 (No parity, 8 data bits, 1 stop bit).  If that is correct then  try different bit rates  - i.e. set minicom to a bit rate  - power-cycle router and see of you get valid text on the console. Repeat for different rates.
Try  9600, 19200, 38400, and 57600  bit rates.

Ashok

Re: TP-Link TL-MR3020 Support

Hey,

thanks for your replies so far. I tried to search for as much information as I could. And from the behavior of my router I'm assuming that my openwrt is working fine and that I only firewall-ed me out. (I configured one led for usb and it still lights up when i plug a usb device in). Reading on the wiki about the failsafe mode I was wondering if the mr3020 has a reset button. I tried out the WPS button, as its the only button. But I couldn't get in to the failsafe mode. So I wanted to ask if the only solution left is really opening the case and accesing through a serial console(as I have never done something like thatbefore).
I'm sorry that my questions might be stupid. I'm trying to get all the necessary information in the wiki and by searching on the internet, but sometimes I reach the end of my capabilities.

thanks a lot
patr-x

Re: TP-Link TL-MR3020 Support

It wasn't clear from your post (code that thinks) whether you are using a TTL level shifter or are just trying to access the serial header via direct connection to a COM port. I'm pretty sure that, like the WR703, the MR3020 serial header uses TTL signaling so needs to be connected to your PC COM port via a TTL level shifter. The level-shifter both adapts the signaling from 3.3V (typically) and inverts the signals. So without a shifter, I would expect to get garbage characters even though you are properly set for 115200,N,8,1.

I posted a "how-to" with lots of pictures showing how I added a serial port to the WR703 along with my choice for the level-shifter and how I hook it up. It should be a much easier process on the MR3020 because the serial header is MUCH larger (pins vs tiny pads). The how-to is here:

http://wiki.villagetelco.org/index.php?title=Building_a_Serial_Port_for_TL-WR703N

Cheers.

-Keith

Re: TP-Link TL-MR3020 Support

mrzaphodb wrote:

It wasn't clear from your post (code that thinks) whether you are using a TTL level shifter or are just trying to access the serial header via direct connection to a COM port. I'm pretty sure that, like the WR703, the MR3020 serial header uses TTL signaling so needs to be connected to your PC COM port via a TTL level shifter. The level-shifter both adapts the signaling from 3.3V (typically) and inverts the signals. So without a shifter, I would expect to get garbage characters even though you are properly set for 115200,N,8,1.

I posted a "how-to" with lots of pictures showing how I added a serial port to the WR703 along with my choice for the level-shifter and how I hook it up. It should be a much easier process on the MR3020 because the serial header is MUCH larger (pins vs tiny pads). The how-to is here:

http://wiki.villagetelco.org/index.php?title=Building_a_Serial_Port_for_TL-WR703N

Cheers.

-Keith

You are correct, I am using a direct connection to COM1 on my Linux box via pins 2 and 3 of a DE9 serial cable. I've been trying 115200,N,8,1 and I am getting just garbage characters. For me, there isn't a need to shift the voltage because I have only a 10k resistor between pins 3 and 4 of the serial header on the router.

I tried connecting to the router earlier via an Arduino, which has serial capability, and I'll try again with TTL shifting.
BTW, the link you sent me returns 'INTERNAL SERVER ERROR'.

Many thanks to everyone on this forum.

~Ian

Re: TP-Link TL-MR3020 Support

As I understand it, the TTL shifter ALSO inverts the signals. So, using a passive resistor to lower the voltage wouldn't seem to be sufficient.

You're correct..the villagetelco site is returning a server error to me currently although I tested the link right after posting it and it worked fine. That said, I see that the villagetelco site is honoring the SOPA protest blackout so will likely be down for the remainder of the day.

Cheers,

Keith

Re: TP-Link TL-MR3020 Support

Basically I need this: http://www.sparkfun.com/products/8745

I tried to make one, as the schematics are provided by Sparkfun, but it seems I don't have the proper mosfet on hand. Because of this, my Arduino doesn't see the serial connection.

~Ian

Re: TP-Link TL-MR3020 Support

Today the other router I ordered came. I think the reason I bricked it last time was because I just downloaded the newest development snapshot rather than a build that was proven to work on this router.

So, this time, I going to try not to brick this router. After looking at the wiki it seems that I should install build r29651? Also, I don't really want to have to compile from source, so is there anyone who is willing to send me a binary that I can just use with WebGUI?

Thanks,

~Ian

Re: TP-Link TL-MR3020 Support

Hi,

just got mine tl-mr3020 and it is some handy guy for travelling... one last thing to make it perfect would be a pair of larger antennas. Because I have no knowledge of antennas I would like to ask - would it make sense to cut the circuit links near the end of onboard antenna (to disconnect on-board antenna) and soldier the wire to external one? Is this complete nonsense or would this simple connection be all that's needed? Would such small device be able to power larger antenna?

I've searched for similar modifications and found some guys who did such thing to usb wifi sticks, but I failed to find if there were any benefit at all.

You are doing a great job, many thanks

jyrki

Re: TP-Link TL-MR3020 Support

Just a couple of questions:

- Is being able to connect via serial required to be able to set up OpenWrt on the MR3020?

- Should I connect this router to ethernet, flash OpenWrt on it, and then do first login over SSH or Telnet?

- How did you do it successfully?

Thanks,
~Ian

Re: TP-Link TL-MR3020 Support

Hello ! I got my 3020 few days ago. I have flashed it with trunk downloaded from http://downloads.openwrt.org/snapshots/trunk/ar71xx/. I have bricked it setting a wrong networ configuration but debricked it connecting a CA-42 cable to internal serial port. Now it's ok and work great. I need to connect an external USB stick because I have to install Luci lighttpd and python as on my  TL WR1043ND
So i tried to put rootfs on external storage following  http://wiki.openwrt.org/doc/howto/extroot and the guide in http://h-wrt.com/. But i got an error installing package block-extroot.  Someone can help me about how can get rid of this error? Thank you.
Gianni

Re: TP-Link TL-MR3020 Support

gianni.cand wrote:

But i got an error installing package block-extroot.  Someone can help me about how can get rid of this error? Thank you.
Gianni

The image you have flashed is based on the current SVN trunk called "Attitude Adjustment".

So please read the instructions for this release.
http://wiki.openwrt.org/doc/howto/extroot#openwrt.attitude.adjustment.trunk

This is NOT Backfire!

TP-LINK TL-MR3020 v1.0, TP-LINK TL-WR1043ND (DE)v1.0

Re: TP-Link TL-MR3020 Support

Fado84 wrote:

Last question: installed openwrt, how does it function the switch? is the function equal in any position ?

Thanks!!

The switch is supported by the kernel gpio driver, but at the moment the events "BTN_0"and "BTN_1" are not mapped to any function.
So nothing will happen. If you want to do something useful with the switch read the wiki about buttons and input events. You can write a shell script for example that reacts to your different switch positions.

The WPS button is currently also not mapped to anything. I am planning to map it to the "reset" behaviour for factory defaults.

TP-LINK TL-MR3020 v1.0, TP-LINK TL-WR1043ND (DE)v1.0

63 (edited by gianni.cand 2012-01-25 20:12:45)

Re: TP-Link TL-MR3020 Support

@cille75
Thank you so  much. I will try it as soon as possible.
Gianni.

I have tried it ... working great. I have setup swap too. I have installed httpd, luci and python ... working perfectly.

Thank you so much
Gianni

64 (edited by ender 2012-01-26 13:53:11)

Re: TP-Link TL-MR3020 Support

codeThatThinks wrote:

Just a couple of questions:

- Is being able to connect via serial required to be able to set up OpenWrt on the MR3020?

- Should I connect this router to ethernet, flash OpenWrt on it, and then do first login over SSH or Telnet?

- How did you do it successfully?

Thanks,
~Ian

Got mine last night.

1. Downloaded the latest trunk snapshot from the 3020 wiki

2. Firmare upgrade... While the router was rebooting, I kept it connected to the wired Ethernet of my laptop, with a Wireshark running, to be sure I get the address right or to see if it asks for dhcp servers.

3. Telneted into the router using command prompt, changed password... then putty/ssh.

4. inserted usb hub (as I could use it for multiple usb devices, I had to do it via usb hub), inserted a 2gb SanDisk cruser (previously formatted ext3)

5. configured wifi as wan client

Here I had some trouble with the wifi as it was not associating with my EdiMax 3g-6200nl... eventually it was because of my WPA passphrase as it contained # - this always gets me into trouble, this time I started wpa_supplicant manually and the debug clearly pointed the issues...

6. downloaded storage & fs related modules

7. extroot

Rebooted couple of times (and some other times between steps just to make sure when I would have bricked it so I would know what too look for when connecting via serial console - seems I wasn't that lucky, though couple of times I was that close - Wireshark is a must when doing stuff like this, it got me out of trouble at some point)

8. install luci

9. open wine, light up cigar, enjoy ;-)

?. I actually intend to use this little wonder as a car PC (gps tracking mainly) with a 3g USB dongle (ZTE MF190), 2gb microSD inserted into the 3g stick and extroot on this external disk, and a Globalsat MR-350 on the serial port (this is what I've got so far, this is what I use, later on I want to 'downsize' things replacing eventually the GSM/GPS stuff with things like: http://www.sparkfun.com/products/10919). The previous car PC was based on an Alix3d3, doing openvpn to a VPS server to dump the GPS serial strings, viewable with AJAX via web, having a subsecond tracking delay on the client cool, using nothing else on the client side than a browser (USB-BT was also part of the thing, me and my wife having BT active on invisible all the time, so if the car was moving with no known BT MAC address possible to scan, then a SMS would have been sent to us). The same will happen to the poor 3020 (openvpn, 3g tested already on the 3420)...

0. Before this 3020 I just bought few days ago the bigger brother, 3420 and it was a delight to install Backfire on it as well. You could say that was the training for the 3020... smile

You guys have fun, like I said before, I think this device is a wonder considering what can it do, just take it easy and have control and you won't brick it ;-)

65 (edited by cille75 2012-01-26 14:30:19)

Re: TP-Link TL-MR3020 Support

ender wrote:

You guys have fun, like I said before, I think this device is a wonder considering what can it do, just take it easy and have control and you won't brick it ;-)

big_smile

That's what I also thought when I saw the press release on this device and later on the info that it very similar to the WR703N which had already been running with OpenWRT at that time.

I paid 27EUR for it. Where do you get such a powerful emedded platform with USB, Wireless LAN and LAN for homebrew stuff which has a low power consumption as well? smile

TP-LINK TL-MR3020 v1.0, TP-LINK TL-WR1043ND (DE)v1.0

Re: TP-Link TL-MR3020 Support

Howto install luci? (newbie)

If I follow the installation guide, I have to use the command:
opkg update
than I receive following message:

-----------------------------------------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz, wget returned 1.
-----------------------------------------------------

there is no Packages.gz available!

Thanks for your support!

Re: TP-Link TL-MR3020 Support

panama1 wrote:

Howto install luci? (newbie)

If I follow the installation guide, I have to use the command:
opkg update
than I receive following message:

-----------------------------------------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz, wget returned 1.
-----------------------------------------------------

there is no Packages.gz available!

Thanks for your support!

Please look in the wiki for basic configuration stuff. Your network setup does not seem to work.
Make sure that the IP address, netmask, gateway and DNS server are setup correctly.

Please keep also in mind that luci can only be installed if you go the "extroot" way and attach external USB storage to the device.
4MB flash inside the device does not offer enough space for a luci installation.

TP-LINK TL-MR3020 v1.0, TP-LINK TL-WR1043ND (DE)v1.0

Re: TP-Link TL-MR3020 Support

Is it possible to increase "txpower" ?

Thanks!

69 (edited by carlberg 2012-02-10 19:22:55)

Re: TP-Link TL-MR3020 Support

Hi,

I just flashed my MR3020 with an image I created with Image Builder and now when it boots up I get:
I did of cause select the right target etc....

openwrt Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

in the serial console and it hangs.
Did I brick my router? or can I bring it back to life some how? neutral

Cheers
-Anders

EDIT: Found a solution..
I need to type 'tpl' and then i get into the bootloader ... smile

Re: TP-Link TL-MR3020 Support

codeThatThinks wrote:

You are correct, I am using a direct connection to COM1 on my Linux box via pins 2 and 3 of a DE9 serial cable. I've been trying 115200,N,8,1 and I am getting just garbage characters.

omg!!

you are lucky if you did not damage the board...

NEVER connect a serial port (can have 12V!!) directly on a board that uses 3.3V..

Re: TP-Link TL-MR3020 Support

Hi!

It's my first post on this forum so I want to say hello.

I got my MR3020 yesterday and it's version 1.6 (revision on PCB is 1.1). I don't think that something was changed on PCB compared to version 1.4.
In my case, the top was glued on every edge, so it was really hard to get inside...

Here are PCB photos:
http://www.tech-blog.pl/pliki/tp-link_mr3020_mb_1.jpg (top)
http://www.tech-blog.pl/pliki/tp-link_mr3020_mb_2.jpg (bottom)

I had no problems installing OpenWRT using original TP-Link GUI.

I'm going to make an internet radio/audio player with this model.

U-Boot modification for routers: github.com/pepe2k/u-boot_mod
My blog: www.tech-blog.pl
My photo gallery: galeria.tech-blog.pl

72 (edited by Poduy 2012-02-11 21:54:58)

Re: TP-Link TL-MR3020 Support

hi,

welcome to everybody, I'm happy MR3020 owner. Bought it just few days ago, being stupid to poweroff during flash (honestly, I cannot find any excuse to do not think that I just need to wait till whole process ends) but serial trick got it back to life. Yeah, that was the story, but now comes the real problem:

root@OpenWrt:/proc/bus/usb# opkg install kmod-usb-serial kmod-usb-serial-option
Installing kmod-usb-serial (2.6.39.4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/kmod-usb-serial_2.6.39.4-1_ar71xx.ipk.
Installing kmod-usb-serial-option (2.6.39.4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/kmod-usb-serial-option_2.6.39.4-1_ar71xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-serial:
 *      kernel (= 2.6.39.4-1-b589cbd61bd8226af58758bd51f35f55) *
 * opkg_install_cmd: Cannot install package kmod-usb-serial.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-serial-option:
 *      kernel (= 2.6.39.4-1-b589cbd61bd8226af58758bd51f35f55) *        kernel (= 2.6.39.4-1-b589cbd61bd8226af58758bd51f35f55) *
 * opkg_install_cmd: Cannot install package kmod-usb-serial-option.

and kernel stuff:

root@OpenWrt:/proc/bus/usb# uname -a
Linux OpenWrt 2.6.39.4 #1 Sun Feb 5 22:39:29 MST 2012 mips GNU/Linux

and it looks like it's kernel related issue. What's strange - many other kernel packages just popped up with no problem so, despite my linux knowledge and experience, I feel stuck... Some kmods are ok but some are wrong? I miss my ttyUSB0...

EDIT:
ok, not getting used to opkg idea. opkg list-upgradable didn't give kernel as a result, it was just easy as

opkg upgrade kernel

Re: TP-Link TL-MR3020 Support

first do a simple

opkg update

then install your packages

Re: TP-Link TL-MR3020 Support

that's what I did first. I have MR3420 too, for over a year, so I'm (I think) quite familiar with OpenWRT. It's only some inconsistence with kernel modules and kernel update does not pop up after 'opkg list-upgradable' so I got a little confused. It's just I read 'opkg list'  output carrefully that gave me idea of kernel upgrade available.

Re: TP-Link TL-MR3020 Support

Hello,

first, thanks for the great support in this forum!

I bought a MR3020, made a serial connection, flashed firmware - anything worked well.

On the wiki page of this device I read that the CPU runs at 400MHz. But mine seems to run at only 265.

root@debwrt:~# uname -a
Linux debwrt 3.2.5 #1 Wed Feb 22 20:09:20 CET 2012 mips GNU/Linux
root@debwrt:~# cat /proc/cpuinfo 
system type             : Atheros AR9330 rev 1
machine                 : TP-LINK TL-MR3020
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0780, 0x0aa8, 0x0218]
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@debwrt:~#

Does anybody know something about this?

Thanks and best regards,
Robert