→ Install OpenWrt (generic explanation)
First, download (or otherwise obtain) the current release routerstation_pro “factory” OpenWrt firmware .bin file from the ar71xx/generic directory. Save the file to your PC's disk.
NOTE: The firmware image for the routerstation and the one for the routerstation_pro are NOT INTERCHANGEABLE. If you install the wrong one, your system will NOT boot.
After that, boot the device into recovery mode by:
In recovery mode the router has an IP address of 192.168.1.20. Set your PC to have a static IP address in the 192.168.1.0/24 range, for example 192.168.1.10 with a netmask of 255.255.255.0.
A ping will check that the router is active (optional):
ping 192.168.1.20
In recovery mode, the Routerstation Pro is a TFTP server waiting for a file to be sent from a TFTP (not FTP) client on your PC. In the examples below, use the actual name of the firmware file you downloaded. Again be sure it is the ubnt-rspro factory version.
tftp 192.168.1.20 -m binary -c put openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin
atftp (better?): atftp --option "timeout 1" --option "mode octet" --put --local-file openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin 192.168.1.20
tftp -i 192.168.1.20 PUT openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin
If this results in an unknown command error, “TFTP Client” needs to be enabled using Control Panel: “Programs”-→“Turn Windows Features On and Off”
Once the upload starts, don't reset it nor power it off. Just wait; the routerstation_pro will reboot by itself when it has finished. That may take several minutes. Once it has rebooted, move the Ethernet cable to one of the LAN ports and access OpenWrt at 192.168.1.1
If the upload fails with the following message in the TFTP client:
error received from server <Invalid firmware file>
and/or the following message on the console:
Invalid image format (error: -2)
your image might simply be too large. This error has been encountered with a factory image of 14548996 bytes. Reducing the image to 12648860 made the problem go away.
If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the sysupgrade command line tool. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
An upgrade can also be accomplished by repeating the original tftp install process above with the new version. In that case, no settings will be saved and it will start with a default configuration like a fresh install.
ssh root@192.168.1.1
If the router is properly configured in a network that has a connection to the Internet, you can download the file directly from the OpenWrt server to the RAM disk (/tmp directory). Copy the URL for the latest “sysupgrade” version from above and paste it in to the terminal window after typing wget.
If the router is not connected to the Internet, first download the file to your PC then use scp to “push” it to the router's tmp directory before logging in with ssh. Log in, then cd to /tmp and execute the sysupgrade command on the file which is already there. The router shell allows you to type the first few letters of the file name (“open”) then press the tab key to autocomplete the name.
cd /tmp/ wget [COPY URL HERE] sysupgrade [FILENAME]
or upgrade via the webinterface: luci
Since this part is identical for all devices, see Basic configuration.
The default network configuration is:
| Interface Name | Description | Default configuration |
|---|---|---|
| br-lan | LAN & WiFi | 192.168.1.1/24 |
| eth1 | LAN ports (1 to 3) | |
| eth0 | WAN port | DHCP |
LAN and WiFi is bridged to br-lan. WiFi is disabled by default for security reasons (to prevent an open access point).
Numbers 4,3,2 are Ports 1,2,3 as labeled on the unit, number 5 is the Internet (WAN) port on the unit, but seperated from the rest of the switch, 0 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 4 when configuring VLANs. vlan0 = eth1.0, vlan1 = eth1.1 and so on.
| Port | Switch port | Notes |
|---|---|---|
| WAN | 5 | physically* separated and connected to eth0 |
| LAN 1 | 4 | |
| LAN 2 | 3 | |
| LAN 3 | 2 | |
| n/a | 1 | No external connector, unusable |
| CPU | 0 |
*it might be re-attachable to the switch, as the RB450G is able to do that with RouterOS.
In case you really want a VLAN that attaches all the ports (effectively making it a switch), you will need a configuration similar to below.
config 'interface' 'lan'
option 'ifname' 'eth1'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '10.11.12.13'
option 'type' 'sta'
config 'switch'
option 'name' 'eth1'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '1'
option 'vid' '1'
option 'ports' '0 1 2 3 4'
config 'switch_port'
option 'pvid' '1'
option 'port' '0'
config 'switch_port'
option 'pvid' '1'
option 'port' '1'
config 'switch_port'
option 'pvid' '1'
option 'port' '2'
config 'switch_port'
option 'pvid' '1'
option 'port' '3'
config 'switch_port'
option 'pvid' '1'
option 'port' '4'
config 'switch_port'
option 'pvid' '1'
option 'port' '5'
The network configuration above did not work for me. I wanted all four wired ports to be on the same bridge and to get their address over DHCP. After begging for some help on the OpenWrt forums, I got the following recipe to work:
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option ifname 'eth0 eth1'
option proto dhcp
option type bridge
#option 'netmask' '255.255.255.0'
#option 'ipaddr' '10.11.12.13'
#option 'type' 'sta'
config interface wan
option ifname eth0
option proto dhcp
config 'switch'
option name eth1
option reset 1
option enable_vlan 1
config switch_vlan
option device eth1
option vlan 1
option ports "0 1 2 3 4"
UNTESTED
Install
kmod-mmc kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage
and dependencies
Don't forget to install Modules for the filesystem you are using.
| Architecture | MIPS |
|---|---|
| Vendor | Atheros |
| Bootloader | RedBoot |
| System-on-Chip | Atheros (AR7161) MIPS 24K |
| CPU Speed | 680 MHz |
| Flash-Chip | |
| Flash size | 16 MiB |
| RAM | 128 MiB DDR |
| Wireless | 3x 32-bit Mini-PCI slots (None included) |
| Switch | Atheros AR8316 |
| Ethernet ports | 1+3 |
| USB | Yes v2.0 |
| Serial | Yes |
| JTAG | Yes |
Official Specification for Ubiquiti RouterStation Pro
1. Overall System Configuration
2. Power Supply Range 40VDC to 56VDC
3. Ethernet Interface
4. Real Time Clock “RTC” Interface
5. Supported IO UART J3 6 pin Header Terminal Settings 115200 baud, 8 bits, nor parity, 1 stop bit.
| Pin Out | |
|---|---|
| Pin1 | 3.3VDC |
| Pin2 | S_in |
| Pin3 | NC |
| Pin4 | NC |
| Pin5 | S_out |
| Pin6 | GND |
JTAG Port “J4” 14 Pin header
| Pin Out | |||
|---|---|---|---|
| Pin1 | TRST | Pin2 | GND |
| Pin3 | TDI | Pin4 | GND |
| Pin5 | TDO | Pin6 | GND |
| Pin7 | TMS | Pin8 | GND |
| Pin9 | TCK | Pin10 | GND |
| Pin11 | RST | Pin12 | NC |
| Pin13 | NC | Pin14 | 3.3VDC |
USER GPIO Header “J33” Single Row 7 Pin Header Also next to it J5 dual row header to enable pull-up or pull-down for each GPIO user selectable in case User needs Active Low or Active High GPIO
J33 Pin out and Strapping option “place shunt to enable strapping option”
| Pin Out | NAME | J5 STRAPPING |
|---|---|---|
| Pin1 | GPIO_0 | PULL LOW |
| Pin2 | GPIO_1 | PULL LOW |
| Pin3 | GPIO_3 | PULL LOW |
| Pin4 | GPIO_4 | PULL LOW |
| Pin5 | GPIO_5 | PULL HIGH |
| Pin6 | GPIO_6 | PULL HIGH |
| Pin7 | GPIO_7 | PULL HIGH |
5. RESET BUTTON “SW4”
Uses GPIO_8 with weak pull-up, Active Low, for Resting back to factory defaults or multiple functions software dependent.
6. LED INDICATORS
Link/Act signals are connected to the Ethernet Phy Switch
| LED | NAME | FUNCTION | GPIO |
|---|---|---|---|
| D29 | POWER | 3.3VDC | NA |
| D24 | RF | RADIO Act | GPIO_2 |
| DS4 | WAN | Link/Act | NA |
| DS14 | LAN1 | Link/Act | NA |
| DS12 | LAN2 | Link/Act | NA |
| DS13 | LAN3 | 'Link/Act | NA |
The RS Pro has a standard RS-232 connector. Note that the official photos, including the ones above, are wrong - the board, while wired as a DCE, has a male connector. To connect it to a PC, you will need a standard (not null-modem) serial cable (female to male) and a female/female gender changer.
That's different than, for example, MikroTik Routerboards, which are wired as a male DTE and require a null-modem cable.
How to connect to JTAG interface, and how to reflash the device with JTAG tools
See port.jtag for more JTAG details.
Ar7161 processor can work at several frequency from 200MHz to 680MHz. Is also possible set CPU overclock frequency like 720MHz or 800MHz. In this case is recommended to use more powerfull heatsink. Package
How to use
root@OpenWrt:~# clock-ubiquiti-rs Usage: clock-ubiquiti-rs mhz Allowed values for mhz are 200,300,333,400,600,680,720,800
TODO