User Tools

Site Tools


hardware:routerstationpro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
hardware:routerstationpro [2010/11/10 15:33] – created Michele Porellihardware:routerstationpro [2012/09/04 16:18] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== RouterStation Pro ====== ====== RouterStation Pro ======
 +===== DebWRT =====
 +==== Build image ====
 +  * svn checkout https://svn.debwrt.net/debwrt/trunk debwrt
 +  * cd debwrt
 +  * make menuconfig
 +  * Target system is: Atheros AR71xx/AR7240/AR913x
 +  * Subtarget is: Generic
 +  * Target Profile is: Ubiquiti RouterStation Pro
 +  * (if you are using usb drive instead of sd card) Enter in "Kernel Configuration" and edit the device in "Default kernel command line" from sda1 to sdb1
 +  * (optional) make openwrt/menuconfig
 +  * (optional) make openwrt/kernel_menuconfig
 +  * make
 +==== Prepare external rootfs (SD card or USB disk) ====
 +  * Partition the USB Disk/Stick/Compact? Flash Card/SD Card:
 +<code>/dev/sdb1 - DEBWRT_ROOT - Linux - ext3 - Rest of available size
 +/dev/sdb2 - DEBWRT_SWAP - Linux Swap - 128MB</code>
 +  * Create filesystems
 +<code>mkfs.ext3 -L DEBWRT_ROOT /dev/sdb1
 +tune2fs -c 0 -i 0 /dev/sdb1
 +mkswap /dev/sdb2</code>
 +==== Copy rootfs on your SD card or USB disk ====
 +  * (if you have not automount) mkdir -p /media/DEBWRT_ROOT ; mount /dev/sdb1 /media/DEBWRT_ROOT
 +  * make debian/rootfs/install (Be careful! An rm -Rf on /media/DEBWRT_ROOT is done first!)
 +==== Flash firmware (kernel) ====
 +  * Follow [[hardware:routerstationpro#Flash firmware|Router Station Pro OpenWRT flash instruction]] using bin/ar71xx-*-*-default/debwrt-firmware-ar71xx-generic-ubnt-rspro-squashfs-factory.bin
 +==== Kernel upgrade ====
 +Using "make openwrt/kernel_menuconfig" you can tune your kernel configuration, after your customization you can compile running "make" (NOTE: if you don't have an older enviroment you must follow the instruction to [[hardware:routerstationpro#Build image|build a DebWRT image]])\\
 +To use the newer kernel you must unpack bin/ar71xx-*-*-default/debwrt-modules-ar71xx-generic_UBNTRSPRO-*-*.tar.gz in /media/DEBWRT_ROOT/ (assuming that you have mounted DebWRT rootfs on /media/DEBWRT_ROOT/) and follow the instruction to [[hardware:routerstationpro#Flash firmware (kernel)|flash DebWRT kernel]]
 +===== OpenWRT =====
 +==== Build image ====
 +  * svn co [[svn://svn.openwrt.org/openwrt/trunk/]]
 +  * cd trunk
 +  * ./scripts/feeds update -a
 +  * ./scripts/feeds install -a
 +  * make menuconfig
 +  * Target system is: Atheros AR71xx/AR7240/AR913x
 +  * Subtarget is: Generic
 +  * Target Profile is: Ubiquiti RouterStation Pro
 +  * make
 +
 +==== Flash firmware ====
 +  * Connect your computer to the WAN port
 +  * Configure your network like this: 192.168.1.1/255.255.255.0 (anything but 192.168.1.20)
 +  * Plug in your RouterStation Pro
 +  * Press the reset button and hold it for about 10 seconds (you should see the third led flash a bit and the second on come up)
 +  * You should be able to ping 192.168.1.20 now
 +  * Send the firmware image with tftp in binary mode:
 +<code>$ tftp 192.168.1.20
 +tftp> binary
 +tftp> put openwrt-...-factory.bin</code>
 +
 +==== Re-enable LAN ports ====
 +  * Install swconfig then:
 +<code>swconfig dev eth1 set reset 1
 +swconfig dev eth1 set enable_vlan 1
 +swconfig dev eth1 vlan 0 set ports '0 1 2 3 4'
 +swconfig dev eth1 set apply 1</code>
 +
 +==== Install wireless cards ====
 +  * [[https://forum.openwrt.org/viewtopic.php?id=24682|How-To]]
 +
 +
 ===== Links ===== ===== Links =====
   * [[http://www.ubnt.com/rspro|Ubiquiti official page]]   * [[http://www.ubnt.com/rspro|Ubiquiti official page]]
   * [[http://www.ubnt.com/wiki/RouterStation_Pro|Ubiquiti wiki page]]   * [[http://www.ubnt.com/wiki/RouterStation_Pro|Ubiquiti wiki page]]
 +
 ===== Operating system ===== ===== Operating system =====
-  * [[software:openwrt|OpenWRT]]+  * [[software:openwrt|OpenWRT]] [[http://wiki.openwrt.org/toh/ubiquiti/routerstation.pro|page]]
   * [[http://www.debwrt.net/|DebWRT]] - Debian on embedded device!   * [[http://www.debwrt.net/|DebWRT]] - Debian on embedded device!
   * [[http://wiki.freebsd.org/FreeBSD/mips/UBNT-RouterStation|FreeBSD]]   * [[http://wiki.freebsd.org/FreeBSD/mips/UBNT-RouterStation|FreeBSD]]
   * [[http://devwiki.pfsense.org/RouterStationPRO|pfSense]]   * [[http://devwiki.pfsense.org/RouterStationPRO|pfSense]]
hardware/routerstationpro.1289399596.txt · Last modified: 2012/09/04 16:08 (external edit)