Difference between revisions of "OLSR - di UBNT"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
Sumber: https://wiki.graz.funkfeuer.at/UbntStations
 +
 +
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.
 +
 +
{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 xs5
 +
 +
You can build a image for 2.4GHz Hardware by replacing the xs5 with xs2.
 +
 +
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==
 
==Referensi==
  

Revision as of 11:16, 17 July 2012

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

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.

{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.

  1. mkdir ubnt-4.x
  2. cd ubnt-4.x
  3. wget http://www.ubnt.com/downloads/sdk/toolchain-mips-ls_0.1-1.deb
  4. 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 xs5

You can build a image for 2.4GHz Hardware by replacing the xs5 with xs2.

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