Topic: OpenWRT on TP-LINK TL-WA5210G

Hi!

Please tell me your opinion about support of TP-LINK TL-WA5210G.

Hardware:
CPU Atheros AR2315A
Amplifier SE2576L http://www.sige.com/files/PB_DST_SE2576L.pdf
Flash 4MB  S25FL032A http://www.spansion.com/Support/Datasheets/S25FL032A_00_C3_e.pdf
RAM 16 MB M12L128168A http://www.esmt.com.tw/DB/manager/upload/M12L128168A.pdf
Ethernet RTL8201CP realtek.info/pdf/rtl8201cp.pdf

Images:
http://proline.biz.ua/files/external_link/wa5210g/img_0002.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0003.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0005.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0006.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0007.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0008.jpg
http://proline.biz.ua/files/external_link/wa5210g/img_0009.jpg

Let me know if you'll need additional info.

Re: OpenWRT on TP-LINK TL-WA5210G

What OS is preinstalled?

Re: OpenWRT on TP-LINK TL-WA5210G

Standard tp-link firmware.

Re: OpenWRT on TP-LINK TL-WA5210G

It is possible to run openwrt on ar2315/4/16 but need actual hardware for testing. Do you have a original flash dump?

5 (edited by jkimmel 2010-09-03 15:59:42)

Re: OpenWRT on TP-LINK TL-WA5210G

Any idea how to flash those units?

I tried with AP51, fonflash and open-mesh-flash. exe, could not bypass redboot.

6 (edited by xssa 2010-09-05 08:36:06)

Re: OpenWRT on TP-LINK TL-WA5210G

AFAIK original FW does not have redboot and any other bootloader in sense you can access their debug console and flash your custom images.
So there are only complex way - you can do this by JTAG, program flash chip directly, or... prepare your images so they will fit into TpLink custom WEB update format.
There no easy way, guys.

Re: OpenWRT on TP-LINK TL-WA5210G

Hello! Someone has already flash tp-link tl-wa5210g?

Re: OpenWRT on TP-LINK TL-WA5210G

is it possible that the hardware is the same of ubiquiti picostation? Do you think it's possible use picostation's openwrt firmware??

Re: OpenWRT on TP-LINK TL-WA5210G

Any update? Is it possible to use openwrt with WA5210G ?

Re: OpenWRT on TP-LINK TL-WA5210G

Any updates for WA5210G???

Re: OpenWRT on TP-LINK TL-WA5210G

This would be a perfect outdoor openwrt router, hopefully it gets some traction soon...

Re: OpenWRT on TP-LINK TL-WA5210G

xssa build openwrt for ar5317
if you're daring enough (and you have serial ttl console connected) you can try these builds http://wiki.openwrt.org/toh/tp-link/tl-wr542g

Re: OpenWRT on TP-LINK TL-WA5210G

Has anybody tried? I have no hardware so I can't try sad
If anybody sends me one I have cables and expertise to test and troubelshoot if this router will work with openwrt

Re: OpenWRT on TP-LINK TL-WA5210G

A friend and I started hacking on the WA5210G yesterday. We've made some progress and were able to start a kernel (well, until it panics because it doesn't know the hardware).

Some facts we discovered:

* it is running vxworks
* there is no "bootloader", just a decompressor
* RAM is at 0x80000000, FLASH at 0xBFC00000
* the firmware update has a 20 byte header, after that's the data is written straight to the flash

We gained access to the raw flash (8 pin SPI flash near the UART header) using a Buspirate and assembled a tiny "Hello world"-firmware in order to test the flashing procedure and our assumptions about the memory mappings. They turned out to be correct and we concluded the platform to be very close to AP51 so we wrote redboot from http://www.dd-wrt.com/dd-wrtv2/download … 0/ap51.rom to the flash.

Next up was initializing redboot (fis init, fconfig, ...) and flashing a kernel using TFTP. Unfortunately, it had a kernel panic so the next step will be getting the kernel to run. We also need to figure out how to craft a firmware upgrade that will install and setup redboot without a buspirate.

Hello-World-Firmware:
Source: https://gist.github.com/3793343
Compile: as -o hello.o hello.S; objcopy hello.o -O binary hello.bin -j .text

Kernel bootlog: http://pastebin.com/raw.php?i=H5MV0xBn
Original firmware bootlog: http://pastebin.com/raw.php?i=H5QEL6Cz
Redboot log: http://pastebin.com/raw.php?i=zDxm1Q2x

Re: OpenWRT on TP-LINK TL-WA5210G

I hope you can find a way guys i am verry interesed cuz i have one
If evrything go ok with this what wee win? Sorry for my english

Re: OpenWRT on TP-LINK TL-WA5210G

20 byte header -
[0x00000000-0x00000004] - The length of the firmware without a title
[0x00000004-0x00000014] - checksum md5

Re: OpenWRT on TP-LINK TL-WA5210G

I got a root shell by moving the boardconfig from 0x1f0000 to 0x3f0000: http://pastebin.com/raw.php?i=AMxwdGV1

Re: OpenWRT on TP-LINK TL-WA5210G

OMG that's GREAT!

how far are we from having an image flashable from stock GUI?

Re: OpenWRT on TP-LINK TL-WA5210G

any updates?

Re: OpenWRT on TP-LINK TL-WA5210G

please help,
my 5210g broke down,
diode circuit D16 burnt and no way to read out marking.
any user of wa5210g to read marking/sign from D16?
D16 is located by HST1025(big black component by lan connector)
thanks in advance...

21 (edited by Sash 2012-11-12 22:49:59)

Re: OpenWRT on TP-LINK TL-WA5210G

its a 1.5ke protection diode model. cant see the exact model. just remove it. the unit should work then. if not its burned completely


@tcatm
we should try to get the jtag pinout on this model. so redboot flashing and debugging gets easier

22 (edited by ukraine_russia_friends 2013-01-08 06:55:54)

Re: OpenWRT on TP-LINK TL-WA5210G

tcatm wrote:

* there is no "bootloader", just a decompressor
* RAM is at 0x80000000, FLASH at 0xBFC00000
* the firmware update has a 20 byte header, after that's the data is written straight to the flash

Always reflash 5210G to Ubiquti Nanostation 2 free (one activation per day or email request)

http://wa5210g.blogspot.com

discussion in russian
http://www.lan23.ru/forum/showthread.php?t=8581

please help revers-ingenering horizontal/vertical antenna gpio..

23 (edited by unicorp99 2013-03-20 02:20:51)

Re: OpenWRT on TP-LINK TL-WA5210G

After re-flash TL-WA5210G in Ubiqiuiti Nanostation 2, easily load to AP openwrt.
But can not work horizontal antenna.

-------------------------------------------------------------------------------

the fact is, what TP-Link use 2MB of SPI Flash 4MB, and EEPROM place in end of 2MB address space from 4MB in all, that is EEPROM in the middle of SPI Flash, and divide one half address space. (in Ubiquiti EEPROM in end of SPI Flash, normally in end of 4 MB)

If anybody can make open source redboot to convert TP-Link 5210G 2MB virtually model memory to 4MB real SPI Flash, it is all right, and we can sign redboot. Send redboot to us, and we do it. (after that need also non-standard steps to return back to TP-Link, if need be)

After that, it is suitable to openwrt in TP-Link.

-------------------------------------------------------------------------------


Who is undestanding EEPROM 800b Atheros field by field and can explain:

which byte in EEPROM of Nanos 2 or other 2.4MHz device corresponding to which data?

If you can explain, or may help in this question, please do it.

I find on address in 800b EEPROM Atheros, staring from 3f00f8h of full dump:
02h manufacturer 168ch
0eh Ubiquiti model c002h
10h manufacturer 0777h (non-Ubiquiti) - 168ch (Ubiquiti)
3ah MAC address backwards swap twice byte 34 56 6d 12 00 15
7ah 5aa5 valid (3dh adress in open software atheros c file)
14ah MAC address backwards 56 34 12 6d 15 00

MAC addr of device: 00 15 6d 12 34 56 for example

Where byte of antenna switch?

Re: OpenWRT on TP-LINK TL-WA5210G

How can I try this re-flashing program? It seems to require "activation"?


ukraine_russia_friends wrote:
tcatm wrote:

* there is no "bootloader", just a decompressor
* RAM is at 0x80000000, FLASH at 0xBFC00000
* the firmware update has a 20 byte header, after that's the data is written straight to the flash

Always reflash 5210G to Ubiquti Nanostation 2 free (one activation per day or email request)

http://wa5210g.blogspot.com

discussion in russian
http://www.lan23.ru/forum/showthread.php?t=8581

please help revers-ingenering horizontal/vertical antenna gpio..

Re: OpenWRT on TP-LINK TL-WA5210G

Sorry, but payment question may be banned on this forum, and best idea: go to http://wa5210g.blogspot.ru/2013/01/mac.html

yehat wrote:

How can I try this re-flashing program? It seems to require "activation"?