User Tools

Site Tools


toh:ubiquiti:routerstation.pro

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:ubiquiti:routerstation.pro [2013/02/11 01:56]
hcc23 Added PoE tag
toh:ubiquiti:routerstation.pro [2016/02/02 20:30] (current)
danitool [Tags]
Line 1: Line 1:
 +====== Ubiquiti RouterStation Pro ======
  
 +^ CPU ^ Ram ^ Flash ^ Network ^ Gigabit ^ USB ^ Serial ^ JTag ^
 +| Atheros AR7161 | 128MB | 16MB | 3x1 | Yes | Yes | Yes | Yes |
 +
 +
 +===== Installing a new Firmware Image =====
 +Before starting this procedure, download (or otherwise obtain) a [[toh:​ubiquiti:​routerstation.pro]] firmware, for example: <​code>​
 +wget http://​downloads.openwrt.org/​attitude_adjustment/​12.09/​ar71xx/​generic/​openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin </​code>​
 +
 +**''​NOTE:''​** The firmware image for the [[toh:​ubiquiti:​routerstation]] and the one for the [[toh:​ubiquiti:​routerstation.pro]] are <color red>NOT INTERCHANGEABLE</​color>​. ​ If you install the wrong one, your system will NOT boot.
 +
 +After that, boot the device into recovery mode by:
 +  * connecting an ethernet cable to the WAN port
 +  * holding the reset button for a few seconds while powering on the device
 +
 +You can check that everything is OK (optional): ​ <​code>​
 +ping 192.168.1.20 </​code>​
 +
 +Finally, upload the new firmware to the device through its WAN port using TFTP (and NOT FTP) on the default IP address, 192.168.1.20:​ <code bash>
 +tftp 192.168.1.20 -m binary -c put openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin </​code> ​
 +
 +  * alternatively with ''​atftp''​ (better?): <code bash>
 +atftp --option "​timeout 1" --option "mode octet" --put --local-file openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin 192.168.1.20 </​code>​
 +
 +  * or, if using M$ Windows, with ''​tftp''​ (which is not installed by default): <​code>​
 +tftp -i 192.168.1.20 PUT openwrt-ar71xx-generic-ubnt-rspro-squashfs-factory.bin </​code>​
 +
 +Once the upload starts, don't reset it nor power it off. Just wait; the [[toh:​ubiquiti:​routerstation.pro]] will reboot by itself when it has finished.
 +
 +===== Upgrading OpenWrt =====
 +->​[[doc:​howto:​generic.sysupgrade]]
 +
 +
 +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.
 +
 +
 +== LuCI Web Upgrade Process ==
 +
 +  *Browse to http://​192.168.1.1/​cgi-bin/​luci/​mini/​system/​upgrade/​ LuCI Upgrade URL
 +  *Upload "​openwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin"​ file to LuCI
 +  *Wait for reboot
 +
 +
 +== Terminal Upgrade Process ==
 +  *Login as root via SSH on 192.168.1.1<​code bash>
 +ssh root@192.168.1.1</​code>​
 +  *Use the following commands to upgrade:<​code>​
 +cd /tmp/
 +wget http://​downloads.openwrt.org/​backfire/​10.03.1/​ar71xx/​openwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin
 +sysupgrade -i /​tmp/​openwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin</​code>​
 +
 +or upgrade via the webinterface:​ [[doc:​howto:​luci]]
 +
 +
 +===== Basic configuration =====
 +Since this part is identical for all devices, see [[doc:​howto:​basic.config|Basic configuration]].
 +
 +
 +===== Specific Configuration =====
 +==== Interfaces ====
 +
 +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).
 +
 +==== Switch Ports (for VLANs) ====
 +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.
 +
 +===== Configure VLAN to be a normal switch =====
 +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.
 +
 +<​code>​
 +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'​
 +</​code>​
 +
 +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:
 +<​code>​
 +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"
 +</​code>​
 +===== SD card reader =====
 +
 +UNTESTED :?:
 +Install ​
 +<​code>​
 +kmod-mmc kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage ​
 +</​code>​
 +and dependencies
 +
 +Don't forget to install Modules for the filesystem you are using.
 +
 +
 +===== Failsafe mode =====
 +->​[[doc:​howto:​generic.failsafe]]
 +
 +==== Boot into failsafe mode ====
 +
 +  * Unplug the router'​s power cord.
 +  * Connect the router'​s LAN1 port directly to your PC.
 +  * Configure your PC with a static IP address between 192.168.1.2 and 192.168.1.254. E. g. 192.168.1.2 (gateway and DNS is not required).
 +  * Plug the power on and wait for the DMZ LED to light up.
 +  * While the DMZ LED is on immediately press any button (Reset and Secure Easy Setup will work) a few times .
 +  * If done right the DMZ LED will quickly flash 3 times every second.
 +  * You should be able to telnet to the router at 192.168.1.1 now (no username and password)
 +
 +
 +===== Hardware =====
 +===== Info =====
 +| **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:** [[#​Serial|Yes]] | 
 +| **JTAG:** [[#​JTAG|Yes]] |
 +
 +[[http://​www.ubnt.com/​wiki/​index.php?​title=RouterStation_Pro| Official Specification for Ubiquiti RouterStation Pro]]
 +
 +1. Overall System Configuration
 +    * CPU Atheros AR7161 MIPS 24Kc running @ 680MHz
 +    * MEMORY DDR 128MB
 +    * FLASH SPI 16MB
 +    * 4-Port Gigabit Ethernet Switch
 +    * Three MINI-PCI Slots supports Type IIIA
 +    * USB 2.0 Host
 +    * Built in RS232/dB9 Connector
 +    * SDIO
 +    * On board Real Time Clock "​RTC"​
 +    * DC Power Jack
 +    * 802.3af 48V compatible ​
 +
 +2. Power Supply Range 40VDC to 56VDC
 +    * Using Higher voltage is recommended since it will use lower current
 +    * Typical Power Consumption is 3W idle no radios present
 +    * 5W idle One Radio present
 +    * 7W while passing 1000Mbps traffic
 +    * Single RJ45 "​J1"​ is for WAN and 802.3af compatible Power Over Ethernet
 +    * Supports high power POE up to 25W 
 +
 +
 +3. Ethernet Interface
 +    * J1 Single WAN port 10/100/1000
 +    * J2 Tripple LAN Port 10/100/1000
 +    * 2 RGMII Ethernet Logical Ports to Ethernet Phy Switch -
 +      * 1 RGMII port for WAN Port
 +      * 1 RGMII port for LAN Ports
 +    * Ethernet Phy switch, Atheros AR8316 ​
 +
 +
 +4. Real Time Clock "​RTC"​ Interface
 +    * RTC Interface shares the SPI bus with the on board FLASH
 +    * Active high signal on SPI CS enables RTC, active low signal on SPI CS enables FLASH
 +    * Manufacture Part# PCF2123TS Download Datasheet
 +
 +
 +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|
 +
 +
 +==== Photos ====
 +{{media:​ubiquiti:​routerstation-pro.jpg?​400}}
 +{{media:​ubiquiti:​routerstation-pro_interface.jpg?​200}}
 +
 +
 +==== Serial ====
 +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.
 +
 +
 +==== JTAG ====
 +How to connect to JTAG interface, and how to reflash the device with [[http://​downloads.openwrt.org/​tools/​oem/​jtag/​tools.zip|JTAG tools]]
 +
 +See [[doc:​hardware:​port.jtag]] for more JTAG details.
 +
 +==== Cpu frequency control ====
 +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. ​
 +{{:​media:​ubiquiti:​pakage.zip|Package}}
 +
 +//How to use// 
 +<​code>​root@OpenWrt:​~#​ clock-ubiquiti-rs ​
 +Usage: clock-ubiquiti-rs mhz
 +Allowed values for mhz are 200,​300,​333,​400,​600,​680,​720,​800</​code>​
 +[[https://​dev.openwrt.org/​ticket/​9365|Ticket on openwrt]], [[http://​www.ubnt.com/​forum/​showthread.php?​p=183178#​post183178|Topic on Forum]]
 +
 +==== Buttons ====
 +TODO
 +
 +
 +
 +
 +
 +
 +===== Tags =====
 +[[meta:​tags|How to add tags]]
 +
 +{{tag>​AR7161 GigabitEthernet 2NIC 0WNIC 5Port PoE USB MiniPCI 3MiniPCI 128RAM 16Flash MIPS MIPS32 24Kc}}