Difference between revisions of "OLSR - di UBNT"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
Hardware description: http://www.ubnt.com
 
Hardware description: http://www.ubnt.com
  
Ubiquiti Networks provide a SDK for their Firmware (AirOS). The SDK and the cross-compiler Toolchain can be found at the support section of their homepage. I created patches for the SDK 4.0.1 and 5.3.3 which support most of their products. It got tested on NanoStation5 and PowerStation5 as well with Airgrids but it should work on any Ubiquiti product (as long as it is supported by AirOS 3.x/4.x or 5.x images). My Testimages can be found on our build server http://build.ffgraz.net/ubnt/. The Images contain olsrd and some modfifications in order to build and install it. It also contains a modification of the webinterface which allows the use of no gateway at the network configuration because a static default route destroys dynamic routing.
+
Ubiquiti Networks memberikan SDK untuk firmware (AirOS). SDK dan cross compiler Toolchain dapat di temukan di bagian support dari homepage ubnt.com.
 +
 
 +
I created patches for the SDK 4.0.1 and 5.3.3 which support most of their products. It got tested on NanoStation5 and PowerStation5 as well with Airgrids but it should work on any Ubiquiti product (as long as it is supported by AirOS 3.x/4.x or 5.x images). My Testimages can be found on our build server http://build.ffgraz.net/ubnt/. The Images contain olsrd and some modfifications in order to build and install it. It also contains a modification of the webinterface which allows the use of no gateway at the network configuration because a static default route destroys dynamic routing.
  
 
{i} This patch doesn't change anything at the kernel config or the wifi driver in order to preserve the stability and functionality of the original firmware. This means that my patched firmware has no adhoc mode.
 
{i} This patch doesn't change anything at the kernel config or the wifi driver in order to preserve the stability and functionality of the original firmware. This means that my patched firmware has no adhoc mode.
Line 15: Line 17:
 
/!\ Due to size restrictions of the rootfs of 4.0.1 SDK i had to disable all olsrd plugins except for dyn_gw and txt_info. If you want to build images with another selection of plugins you have to edit apps/gpl/olsrd.mk.
 
/!\ Due to size restrictions of the rootfs of 4.0.1 SDK i had to disable all olsrd plugins except for dyn_gw and txt_info. If you want to build images with another selection of plugins you have to edit apps/gpl/olsrd.mk.
  
# mkdir ubnt-4.x
+
mkdir ubnt-4.x
# cd ubnt-4.x
+
cd ubnt-4.x
# wget http://www.ubnt.com/downloads/sdk/toolchain-mips-ls_0.1-1.deb
+
wget http://www.ubnt.com/downloads/sdk/toolchain-mips-ls_0.1-1.deb
# dpkg -i toolchain-mips-ls_0.1-1.deb
+
dpkg -i toolchain-mips-ls_0.1-1.deb
  
 
Download SDK.UBNT.v4.0.1.4978.tar.bz2 from ubnt.com
 
Download SDK.UBNT.v4.0.1.4978.tar.bz2 from ubnt.com
  
  # tar xjf SDK.UBNT.v4.0.1.4978.tar.bz2
+
  tar xjf SDK.UBNT.v4.0.1.4978.tar.bz2
  # wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_files-03.tar.gz
+
  wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_files-03.tar.gz
  # wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_with_olsrd-01.patch
+
  wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_with_olsrd-01.patch
  # cd SDK.UBNT.v4.0.1.4978
+
  cd SDK.UBNT.v4.0.1.4978
  # patch -p1 < ../UBNT_SDK4.0.1_with_olsrd-01.patch
+
  patch -p1 < ../UBNT_SDK4.0.1_with_olsrd-01.patch
  # tar xzf ../UBNT_SDK4.0.1_files-03.tar.gz
+
  tar xzf ../UBNT_SDK4.0.1_files-03.tar.gz
  
 
now we have to download and copy the olsrd source
 
now we have to download and copy the olsrd source
  
  # cd apps/gpl/olsrd
+
  cd apps/gpl/olsrd
  # wget http://www.olsr.org/releases/0.6/olsrd-<version>.tar.bz2
+
  wget http://www.olsr.org/releases/0.6/olsrd-<version>.tar.bz2
  # tar --strip 1 -xjf olsrd-<version>.tar.bz2
+
  tar --strip 1 -xjf olsrd-<version>.tar.bz2
  # rm olsrd-<version>.tar.bz2
+
  rm olsrd-<version>.tar.bz2
  # cd ../../../
+
  cd ../../../
  # make xs5
+
  make xs2
  
You can build a image for 2.4GHz Hardware by replacing the xs5 with xs2.
+
Untuk membuat image 5.8GHz ganti xs2 menjadi xs5
  
 
After building the Image it can be installed via the AirOS Webinterface. If the interface complaints about a wrong image file you have to upgrade AirOS to a newer version which allows the use of third party firmware images (AirOS 3.1.1 worked for me).  
 
After building the Image it can be installed via the AirOS Webinterface. If the interface complaints about a wrong image file you have to upgrade AirOS to a newer version which allows the use of third party firmware images (AirOS 3.1.1 worked for me).  

Revision as of 13:52, 20 July 2012

Sumber: https://wiki.graz.funkfeuer.at/UbntStations

Hardware description: http://www.ubnt.com

Ubiquiti Networks memberikan SDK untuk firmware (AirOS). SDK dan cross compiler Toolchain dapat di temukan di bagian support dari homepage ubnt.com.

I created patches for the SDK 4.0.1 and 5.3.3 which support most of their products. It got tested on NanoStation5 and PowerStation5 as well with Airgrids but it should work on any Ubiquiti product (as long as it is supported by AirOS 3.x/4.x or 5.x images). My Testimages can be found on our build server http://build.ffgraz.net/ubnt/. The Images contain olsrd and some modfifications in order to build and install it. It also contains a modification of the webinterface which allows the use of no gateway at the network configuration because a static default route destroys dynamic routing.

{i} This patch doesn't change anything at the kernel config or the wifi driver in order to preserve the stability and functionality of the original firmware. This means that my patched firmware has no adhoc mode.

Some screenshots of the Webinterface Modifications: UbntStationsScreens

You can build your own Image on Debian/Ubuntu by invoking the following commands:

SDK 4.0.1

/!\ Due to size restrictions of the rootfs of 4.0.1 SDK i had to disable all olsrd plugins except for dyn_gw and txt_info. If you want to build images with another selection of plugins you have to edit apps/gpl/olsrd.mk.

mkdir ubnt-4.x
cd ubnt-4.x
wget http://www.ubnt.com/downloads/sdk/toolchain-mips-ls_0.1-1.deb
dpkg -i toolchain-mips-ls_0.1-1.deb

Download SDK.UBNT.v4.0.1.4978.tar.bz2 from ubnt.com

tar xjf SDK.UBNT.v4.0.1.4978.tar.bz2
wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_files-03.tar.gz
wget http://build.ffgraz.net/ubnt/AirOS%20v4.x/XS2.ar2316.v4.0.1.with-olsr-0.6.2/patches/UBNT_SDK4.0.1_with_olsrd-01.patch
cd SDK.UBNT.v4.0.1.4978
patch -p1 < ../UBNT_SDK4.0.1_with_olsrd-01.patch
tar xzf ../UBNT_SDK4.0.1_files-03.tar.gz

now we have to download and copy the olsrd source

cd apps/gpl/olsrd
wget http://www.olsr.org/releases/0.6/olsrd-<version>.tar.bz2
tar --strip 1 -xjf olsrd-<version>.tar.bz2
rm olsrd-<version>.tar.bz2
cd ../../../
make xs2

Untuk membuat image 5.8GHz ganti xs2 menjadi xs5

After building the Image it can be installed via the AirOS Webinterface. If the interface complaints about a wrong image file you have to upgrade AirOS to a newer version which allows the use of third party firmware images (AirOS 3.1.1 worked for me).


Referensi


Pranala Menarik