User Tools

Site Tools


hardware:routerstationpro

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:routerstationpro [2011/02/03 18:35] Michele Porellihardware:routerstationpro [2012/09/04 16:18] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== RouterStation Pro ====== ====== RouterStation Pro ======
-===== Build OpenWRT =====+===== 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/]]   * svn co [[svn://svn.openwrt.org/openwrt/trunk/]]
   * cd trunk   * cd trunk
Line 11: Line 40:
   * make   * make
  
-===== Flash firmware =====+==== Flash firmware ====
   * Connect your computer to the WAN port   * 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)   * Configure your network like this: 192.168.1.1/255.255.255.0 (anything but 192.168.1.20)
Line 18: Line 47:
   * You should be able to ping 192.168.1.20 now   * You should be able to ping 192.168.1.20 now
   * Send the firmware image with tftp in binary mode:   * Send the firmware image with tftp in binary mode:
-  * $ tftp 192.168.1.20 +<code>$ tftp 192.168.1.20 
-  tftp> binary +tftp> binary 
-  tftp> put openwrt-...-factory.bin+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]] [[http://wiki.openwrt.org/toh/ubiquiti/routerstation.pro|page]]   * [[software:openwrt|OpenWRT]] [[http://wiki.openwrt.org/toh/ubiquiti/routerstation.pro|page]]
hardware/routerstationpro.1296754519.txt · Last modified: 2012/09/04 16:08 (external edit)