Dimensione: 4587
Commento: modifiche alla pagina e inserimento 5.2.1 + olsr
|
Dimensione: 6262
Commento: istruzioni per usare la SDK 5.3.3 hacked
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 1: | Linea 1: |
=== Ubiquiti Nanostation M5 con firmware AirOS e OLSR === | === Ubiquiti Nanostation M5 with AirOS firmware and OLSR === Ubiquiti Networks provides developers with a SDK to build their factory firmware, AirOS. Both the SDK and the cross-compiler toolchain can be found in the support section of their homepage [0]. |
Linea 3: | Linea 4: |
By default AirOS uses no dynamic routing protocol, while Ninux.org uses OLSR. The only way to use OLSR with AirOS to make a Ninux node speak OLSR is to patch the firmware and the web interface to include OLSR support. | |
Linea 4: | Linea 6: |
Ubiquiti Networks provides developers with a SDK to build their factory firmware, AirOS. Both the SDK and the cross-compiler toolchain can be found in the support section of their homepage [0]. The default routing protocol used by AirOS firmware is OSPF, while Ninux.org uses OLSR. The only way to use OLSR with AirOS to make a Ninux node speak OLSR is to patch the firmware and the web interface to include OLSR support. {{https://wiki.graz.funkfeuer.at/moin_static171/mandarin/img/icon-info.png|{i}|height="16",width="16"}} This patch does not modify the existing kernel configuration nor the wifi driver in order to preserve the stability and functionality of the original firmware. So please note that this patched firmware, like the original one, has '''no adhoc mode'''. |
{{https://wiki.graz.funkfeuer.at/moin_static171/mandarin/img/icon-info.png|{i}|height="16",width="16"}} This patch does not modify the existing kernel configuration nor the wifi driver in order to preserve the stability and functionality of the original firmware. So please note that this patched firmware, like the original one, has '''no adhoc mode'''. |
Linea 14: | Linea 10: |
==== SDK 3.5 with Debian/Ubuntu==== | ==== SDK 3.5 with Debian/Ubuntu ==== |
Linea 22: | Linea 18: |
# wget http://www.stefanopilla.it/Ninux/ubnt/AirOS3.x/XS2.ar2316.v3.5.with-olsr-0.6.0/patches/UBNT_SDK3.5_files-02.tar.gz # wget http://www.stefanopilla.it/Ninux/ubnt/AirOS3.x/XS2.ar2316.v3.5.with-olsr-0.6.0/patches/UBNT_SDK3.5_with_olsrd-01.patch |
# wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS3.x/patches.tar.gz # tar -xzvf patches.tar.gz |
Linea 42: | Linea 38: |
==== SDK 5.2 with OLSR 0.6.0==== | ==== SDK 5.2 with OLSR 0.6.0 ==== |
Linea 48: | Linea 44: |
# wget http://www.stefanopilla.it/Ninux/ubnt/AirOS5.x/XM.v5.2.sdk.5090.with-olsr-0.6.0/patches/additional-files.tar.gz # wget http://www.stefanopilla.it/Ninux/ubnt/AirOS5.x/XM.v5.2.sdk.5090.with-olsr-0.6.0/patches/olsrd-package.patch # wget http://www.stefanopilla.it/Ninux/ubnt/AirOS5.x/XM.v5.2.sdk.5090.with-olsr-0.6.0/patches/ubnt-web-with-olsrd.patch # wget http://www.stefanopilla.it/Ninux/ubnt/AirOS5.x/XM.v5.2.sdk.5090.with-olsr-0.6.0/patches/fffversion.patch # wget http://www.stefanopilla.it/Ninux/ubnt/AirOS5.x/XM.v5.2.sdk.5090.with-olsr-0.6.0/patches/optional-default-gw.patch |
# wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS5.x/patches.tar.gz # tar -xzvf patches.tar.gz |
Linea 62: | Linea 55: |
Linea 64: | Linea 56: |
{{{ | |
Linea 68: | Linea 61: |
# wget http://www.maruscia.it/ninux-files/ninux-airos_olsr0.6.1_final.patch # wget http://www.maruscia.it/ninux-files/additional-content.tar.gz |
# wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS5.x/patches.tar.gz # tar -xzvf patches.tar.gz |
Linea 75: | Linea 68: |
After building the Image it can be installed via the AirOS Webinterface. |
}}} After building the binary file can be found in openwrt/bin and can be installed via the AirOS Webinterface. |
Linea 87: | Linea 78: |
# /bin/cfgmtd -p /etc/ -w | # cfgmtd -w -p /etc/ |
Linea 90: | Linea 81: |
==== Hacked SDK 5.3.3 from GPL release with olsrd (stable git) ==== Download this SDK: http://stud.netgroup.uniroma2.it/~saverio/GPL.UBNT.v5.3.3-withSDK-hack-clean.tar.bz2 Go in the {{{openwrt}}} folder and change the {{{feeds.conf}}} as follows: {{{ src-link zninux /somepath/packagesninux src-link zopenwrtpackages /somepath/packages }}} I like to use the src-link feed because usually I have already the Ninux packages and the OpenWRT packages on my machine but you can also use src-svn feeds style Update the feeds: {{{ ./script/feeds update }}} Install necessary package in the toolchain. Note that for some packages like radvd, that are present in more feeds, we need to specify which feed where to pick the package from. {{{ ./scripts/feeds install olsrd-ninux ./scripts/feeds install -p zopenwrtpackages radvd }}} Now apply this patch to the ubnt-base-files package: http://stud.netgroup.uniroma2.it/~saverio/ubnt-base-files.patch run {{{make menuconfig}}} and select packages you need, like olsrd-ninux, ipv6, radvd and so on. al boot viene controllato se esiste /etc/persistent/ninux, se esiste viene lanciato, altrimenti viene lanciato il file /ninux che è un default il /ninux di default fa lo stesso giochetto, controlla se esiste un /etc/persistent/olsrd.conf, altrimenti usa /olsrd.conf questo significa che quando parte il device appena flashato olsrd già gira con una config di default, praticamente manca solo l'hna. ==== Binary Firmware Images ==== AirOS version 5.2.1 + OLSR 0.6.0 (stable) + tinc: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.2.1.sdk-olsr0.6.0-tinc.bin md5: cd28bfcd173c9e019ed8e781526deb6b AirOS version 5.2.1 + OLSR 0.6.1 (git) + tinc: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.2.1.sdk-olsr0.6.1-tinc.bin md5: e7bd9bc254639aec389876326b3ff3b6 AirOS version 5.3 + OLSR 0.6.1 + tinc + IPv6: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.3.sdk-olsr0.6.1-tinc-ipv6.bin md5: f4590559755e99c8c1afaefb53d35121 |
|
Linea 95: | Linea 144: |
https://wiki.graz.funkfeuer.at/UbntStations === persistent configurations === http://www.ubnt.com/wiki/Manual_Routes |
Ubiquiti Nanostation M5 with AirOS firmware and OLSR
Ubiquiti Networks provides developers with a SDK to build their factory firmware, AirOS. Both the SDK and the cross-compiler toolchain can be found in the support section of their homepage [0].
By default AirOS uses no dynamic routing protocol, while Ninux.org uses OLSR. The only way to use OLSR with AirOS to make a Ninux node speak OLSR is to patch the firmware and the web interface to include OLSR support.
This patch does not modify the existing kernel configuration nor the wifi driver in order to preserve the stability and functionality of the original firmware. So please note that this patched firmware, like the original one, has no adhoc mode.
You can build your own Image on your preferred linux distribution by invoking the following commands:
SDK 3.5 with Debian/Ubuntu
# mkdir ubnt-3.x # cd ubnt-3.x # wget http://www.ubnt.com/downloads/sdk/toolchain-mips-ls_0.1-1.deb # dpkg -i toolchain-mips-ls_0.1-1.deb # wget http://www.ubnt.com/downloads/firmwares/XS-fw/v3.5/SDK.UBNT.v3.5.4499.tar.bz2 # tar xjf SDK.UBNT.v3.5.4499.tar.bz2 # wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS3.x/patches.tar.gz # tar -xzvf patches.tar.gz # cd SDK.UBNT.v3.5.4499 # patch -p1 < ../UBNT_SDK3.5_with_olsrd-01.patch # tar xzf ../UBNT_SDK3.5_files-02.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.
SDK 5.2 with OLSR 0.6.0
# mkdir ubnt-5.x # cd ubnt-5.x # wget http://www.ubnt.com/downloads/firmwares/XN-fw/v5.2/SDK.UBNT.v5.2.tar.bz2 # tar xjf SDK.UBNT.v5.2.tar.bz2 # wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS5.x/patches.tar.gz # tar -xzvf patches.tar.gz # cd SDK.UBNT.v5.2 # patch -p1 < ../olsrd-package.patch # patch -p1 < ../ubnt-web-with-olsrd.patch # patch -p1 < ../optional-default-gw.patch # patch -p1 < ../fffversion.patch # tar xzf ../additional-files.tar.gz # cd openwrt # make
SDK 5.2.1 with OLSR 0.6.1
# mkdir ubnt-5.x # cd ubnt-5.x # wget http://www.ubnt.com/downloads/firmwares/XN-fw/v5.2.1/SDK.UBNT.v5.2.1.tar.bz2 # tar jxf SDK.UBNT.v5.2.1.tar.bz2 # wget http://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/patches/AirOS5.x/patches.tar.gz # tar -xzvf patches.tar.gz # cd SDK.UBNT.v5.2.1 # patch -p1 < ../ninux-airos_olsr0.6.1_final.patch # tar -zxvf ../additional-content.tar.gz # cd openwrt # make
After building the binary file can be found in openwrt/bin and can be installed via the AirOS Webinterface.
If you have successfully installed the image you can turn on olsrd using the enable button at the services section of the Web Interface.
You can also download your own olsrd.conf via the Webinterface. If you download an own configuration file be sure it includes the configuration lines for the txtinfo plugin as this plugin is needed by the Web Inteface to show the OLSR Info.
If you want to edit the olsrd.conf via ssh or telnet you have to make sure that it gets stored inside the persistent storage area of the flash. Create the Configuration file inside the /etc/persistent/ directory and invoke the following command:
# cfgmtd -w -p /etc/
After that you have to reboot.
Hacked SDK 5.3.3 from GPL release with olsrd (stable git)
Download this SDK: http://stud.netgroup.uniroma2.it/~saverio/GPL.UBNT.v5.3.3-withSDK-hack-clean.tar.bz2
Go in the openwrt folder and change the feeds.conf as follows:
src-link zninux /somepath/packagesninux src-link zopenwrtpackages /somepath/packages
I like to use the src-link feed because usually I have already the Ninux packages and the OpenWRT packages on my machine but you can also use src-svn feeds style
Update the feeds:
./script/feeds update
Install necessary package in the toolchain. Note that for some packages like radvd, that are present in more feeds, we need to specify which feed where to pick the package from.
./scripts/feeds install olsrd-ninux ./scripts/feeds install -p zopenwrtpackages radvd
Now apply this patch to the ubnt-base-files package: http://stud.netgroup.uniroma2.it/~saverio/ubnt-base-files.patch
run make menuconfig and select packages you need, like olsrd-ninux, ipv6, radvd and so on.
al boot viene controllato se esiste /etc/persistent/ninux, se esiste viene lanciato, altrimenti viene lanciato il file /ninux che è un default
il /ninux di default fa lo stesso giochetto, controlla se esiste un /etc/persistent/olsrd.conf, altrimenti usa /olsrd.conf
questo significa che quando parte il device appena flashato olsrd già gira con una config di default, praticamente manca solo l'hna.
Binary Firmware Images
AirOS version 5.2.1 + OLSR 0.6.0 (stable) + tinc: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.2.1.sdk-olsr0.6.0-tinc.bin
md5: cd28bfcd173c9e019ed8e781526deb6b
AirOS version 5.2.1 + OLSR 0.6.1 (git) + tinc: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.2.1.sdk-olsr0.6.1-tinc.bin
md5: e7bd9bc254639aec389876326b3ff3b6
AirOS version 5.3 + OLSR 0.6.1 + tinc + IPv6: https://svn.ninux.org/ninuxdeveloping/browser/UbntM5AirOsOLSR/fw-binaries/XM.v5.3.sdk-olsr0.6.1-tinc-ipv6.bin
md5: f4590559755e99c8c1afaefb53d35121
Links
http://www.ubnt.com/support/downloads
https://wiki.graz.funkfeuer.at/UbntStations