TP-Link TL-WA5210G

This device is NOT RECOMMENDED for future use with OpenWrt due to low flash/ram.
DO NOT BUY DEVICES WITH 4MB FLASH / 32MB RAM if you intend to flash an up-to-date and secure OpenWrt version onto it! See 4/32 warning for details.

1) This device does not have sufficient resources (flash and/or RAM) to provide secure and reliable operation.
This means that even setting a password or changing simple network settings might not be possible any more, rendering the device effectively useless. See OpenWrt on 4/32 devices what you can do now.

2) OpenWrt support for this device has ended in 2022.
19.07.10 was the last official build for 4/32 devices.

Ubiquiti NanoStation 2 hardware compatible, TL-WA5210G need hardware reflash in RedBoot for OpenWrt

Install OpenWrt (generic explanation)

FIXME Please add the installation procedure here.

  • Bootloader: vxWorks
  • CPU: Atheros AR2315
  • CPU Speed: 180 Mhz
  • Flash size: 4 MB (TP-Link firmware use only 2MB)
  • RAM: 16 MB
  • Wireless: Atheros 802.11b/g (in CPU, 400mW)
  • Ethernet: 1 port connected to the CPU
  • Power: passive POE (pairs 4,5+; 7,8 return) 12 to 18 VDC (POE injector included in the package)
  • The TL-WA5210G comes with a 12V power supply, the internal DC-Converter seems to be realized with a PWM Control Step-Down Converter. This can handle up to 18V. (tested)
  • Serial: internal (HE-10 connector, 3.3V)

This device is an integrated wifi spot designed to be used outdoor. With TP-Link Firmware, actually, it can act as station, station WDS, client, client wds, bridge wds... There is a dual patch antenna system able to work in vertical or horizontal polarity, or to send RF to an external RP-SMA female or SMA female connector (depending of date of manufacturing) - This feature is software selectable.

Also, hardware partically compatibility with Ubiquiti NanoStation 2, diff in Ext_antenna GPIO=1 and LEDS GPIO=2,3,4,7 (NS2 ext_ant=7 and leds=0,1,3,4) in Ubiquiti classification, for 5210G make unused C0A2 hardware code for support hardware differences from march 2014.

Less than average performance.

There is a hidden menu: http://192.168.1.254/userRpm/NatDebugRpm26525557.htm

pin 1 - TX
pin 2 - RX
pin 3 - gnd
pin 4 - vcc

(38400 8n1 - TP-Link VxWorks, 9600 8n1 OpenWrt)
Do note that the 4 pin header used for Serial have a hart-to-hart pin distance, 'pitch', of 2 mm.
Not the common 1/10" / 2.54 mm.

TP-Link vxWorks bootloader and firmware - taking up only 2MB space in 4MB SPI flash. For use OpenWrt, need reflash SPI chip on RedBoot, compatibly from OpenWrt, and use all 4MB ROM.

Link to easy SPI programmer software and hardware

link to dump of SPI flash RedBoot for OpenWrt

TP-Link WA5210G are supported by the OpenWrt AtherosPort. It is available as a pre-built image and can be built through buildroot.

The OpenWrt buildroot generates images that can be directly flashed to the NanoStation, usually with a name like openwrt-atheros-ubnt2-squashfs.bin (for the NS2 and Loco2).

When flashing those images, the Ubiquiti web interface will show a warning about unsupported third-party firmware. This warning can be ignored.

Note: Anyone who can't understand how to install ( like me :) ) just watch http://www.youtube.com/watch?v=fpKYM292TLI and google that zip file. It seems imposible without install airOS firmware first :(

In order to upgrade from OpenWrt to a newer version, both the kernel mtd and filesystem mtd must be reflashed. The kernel is likely lzma compressed. If either mtd block isn't big enough, reflashing can not be completed through OpenWrt, but must be done through the RedBoot bootloader.

Recent versions of OpenWrt (8.09.2 and newer) support sysupgrade on this platform. To upgrade, put a combined firmware image into /tmp on the device and flash it using the sysupgrade command as outlined below.

cd /tmp
wget http://example.org/openwrt-atheros-combined.img
sysupgrade openwrt-atheros-combined.img

This can also be used to upgrade a device if you don't mind loosing your old config.

Requirements

  • Ethernet cable connection between PC and WA5210G. A switched connection or a bridged connection seems to work fine.
  • Network settings of PC: 192.168.1.254/255.255.255.0
  • TFTP client on PC
  • NanoStation firmware file from Ubiquiti (not an OpenWrt image)

Procedure

  1. Turn off the device
  2. Press the reset button
  3. Turn on the device
  4. Release the reset button ~10 seconds (but not longer) after turning the device on. You will know it's ready when the LEDs change.
  5. Ping 192.168.1.20. If it works, you're ready to upload an image, if not, go back to step 1.
  6. tftp the image in binary mode to 192.168.1.20 as 'flash_update'.
tftp 192.168.1.20
tftp> bin
tftp> put openwrt-atheros-ubnt2-squashfs.bin flash_update
Sent 1965199 bytes in 28.8 seconds
tftp> quit

or in Windows Dos prompt

tftp -i 192.168.1.20 put openwrt-atheros-ubnt2-squashfs.bin flash_update

7. Signal LEDs might be blinking during the upgrade. 7. Wait ~7 minutes before restarting or until the power lights stop their back and forth blinking. 7. Restart. The device should be back to its old configuration (OpenWrt doesn't overwrite or modify the NVRAM settings).

8. telnet to 192.168.1.1 and set a password with

passwd

The two internal antennas work more or less automatically, using the driver's “diversity” setting to choose the correct one. Using an external antenna requires manually setting a few things:

For NanoStation2

sysctl set dev.wifi0.softled 0
gpioctl 7 0

For TopolStation 5210G diff hardware gpio 1 external antenna from NS2

sysctl set dev.wifi0.softled 0
gpioctl 1 0

These can be added to an init file in /etc/rc.d and /etc/init.d

svn co svn://svn.openwrt.org/openwrt/branches/backfire

cd backfire

nano ./feeds.conf.default # not needed

./scripts/feeds update -a

./scripts/feeds install -a -p luci # also ./scripts/feeds search search_word or ./scripts/feeds install name_package

make menuconfig

Target AR2315

* Luci

make prereq # show required

# place for patch, if need

make

package/madwifi/patches/384-hwdetect.patch - patch file:

229c229
< @@ -181,12 +182,33 @@ exit_ath_wmac(u_int16_t wlanNum, struct 
---
> @@ -181,12 +182,32 @@ exit_ath_wmac(u_int16_t wlanNum, struct 
245d244
< + { ubnt, "TopolStation 5210G", PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0xc0a2 }, /* TOPOL M peaceful launcher for nuclear rocket SS-27 */

package/madwifi/files/lib/wifi/madwifi.sh - patch file:

107d106
< "TopolStation 5210G") antgpio=1; invert=1;;
410,415d408
< option antenna auto # (auto|horizontal|vertical|external)
< "
< ;;
< "TopolStation 5210G")
< EXTRA_DEV="
< # Ubiquiti TopolStation 5210G features

In recent OpenWrt versions (8.09.1+) the antenna setting is covered by the wireless configuration. The corresponding option is called antenna and should be set within the wifi-iface section.

uci set wireless.@wifi-iface[0].antenna=mode
uci commit wireless
wifi
Value (mode) Description
vertical Use internal antenna with vertical polarization
horizontal Use internal antenna with horizontal polarization
external Use external antenna port
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1