Nanostation M2 - supernode

1,497 views
Skip to first unread message

Joe

unread,
Jan 15, 2011, 2:28:26 AM1/15/11
to village-telco-dev
Hi, following the howto's guide in setting up a nanostation as a
supernode im unable to download the required firmware since the link
seam to be broken.

http://wiki.villagetelco.org/index.php?title=Mesh_Potato_HOWTOs#Setting_up_a_SuperNode_with_an_Ubiquiti_NS2

http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-vmlinux.lzma
http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-ubnt2-squashfs.bin

is there an updated link to these firmware files?
will flashing the nanostation overwrite the factory firmware of the
device? why not use the factory one (whats the difference)

cheers,

Steve Song

unread,
Jan 15, 2011, 10:00:50 AM1/15/11
to village-...@googlegroups.com
Hi Joe,

On 15 January 2011 09:28, Joe <romeo...@hotmail.com> wrote:
> Hi, following the howto's guide in setting up a nanostation as a
> supernode im unable to download the required firmware since the link
> seam to be broken.
>
> http://wiki.villagetelco.org/index.php?title=Mesh_Potato_HOWTOs#Setting_up_a_SuperNode_with_an_Ubiquiti_NS2

Apologies those links are indeed broken.

You can find the files at http://download.villagetelco.org/ns2/

I have corrected the wiki links.

> http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-vmlinux.lzma
> http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-ubnt2-squashfs.bin
>
> is there an updated link to these firmware files?
> will flashing the nanostation overwrite the factory firmware of the
> device? why not use the factory one (whats the difference)

The NS2 factory ships with AirOs (http://www.ubnt.com/airos) which has
some additional features for controlling the NS2 but which isn't a
completely open OS.

Cheers... steve

> cheers,
>
> --
> You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
> To post to this group, send email to village-...@googlegroups.com.
> To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/village-telco-dev?hl=en.
>
>

--
Steve Song
Telecommunications Fellow, Shuttleworth Foundation

email:   steve...@shuttleworthfoundation.org
mobile:  +27 83 482 2088
skype:   steve_l_song
blog:    http://manypossibilities.net
next:    http://villagetelco.org
twitter: stevesong

Joe

unread,
Jan 18, 2011, 2:48:46 AM1/18/11
to village-telco-dev
Thanks steve for the links. Im having some trouble connnecting to the
nanostation m2 for reflashing though. i have downloaded open-mesh-
flash using linux - but after i reset the device and run "open-mesh-
flash eth0" i get:

tftp server not responding
connection timeout..

How have people reflashed these devices successfully?

cheers,

Steve Song

unread,
Jan 18, 2011, 5:40:30 AM1/18/11
to village-...@googlegroups.com
Hi Joe,

That firmware was designed for the original Nanostation not the M2
version. In this case you will need to get a version of OpenWrt
compiled for the M2 then you can then install the batman package.

AFAIK, the stock OpenWRT for the Nanostation M2 is at

http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin

and the batman package is at

http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/batmand_r1439-1_ar71xx.ipk

I don't know whether the flash utility will work on the M2s but you
can install it via

tftp -m binary -v 192.168.1.20 -c put
openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin

The re-flashing on the Nanostations works a little differently from
the Mesh Potato. You need a small screwdriver or pen cap to hold down
the reset button as you power on the NS2. Hold it down until you see
the lights on the NS2 change to a kind of ping pong back and forth
flashing. Then you can either use open-mesh-flash or tftp.

HUGE DISCLAIMER: I haven't tried OpenWRT on an M2 so please don't
take this as gospel. Anyone out there used OpenWRT on a NS2 M2?

-Steve

wayne

unread,
Jan 18, 2011, 11:45:31 AM1/18/11
to village-...@googlegroups.com
Steve Song wrote:
> Hi Joe,
>
> That firmware was designed for the original Nanostation not the M2
> version. In this case you will need to get a version of OpenWrt
> compiled for the M2 then you can then install the batman package.
>
> AFAIK, the stock OpenWRT for the Nanostation M2 is at
>
> http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
>
> and the batman package is at
>
> http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/batmand_r1439-1_ar71xx.ipk
>
> I don't know whether the flash utility will work on the M2s but you
> can install it via
>
> tftp -m binary -v 192.168.1.20 -c put
> openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
>
> The re-flashing on the Nanostations works a little differently from
> the Mesh Potato. You need a small screwdriver or pen cap to hold down
> the reset button as you power on the NS2. Hold it down until you see
> the lights on the NS2 change to a kind of ping pong back and forth
> flashing. Then you can either use open-mesh-flash or tftp.
>
> HUGE DISCLAIMER: I haven't tried OpenWRT on an M2 so please don't
> take this as gospel. Anyone out there used OpenWRT on a NS2 M2?
>
> -Steve


Hi Joe

Steve is 100% correct, use the binary linked, Get the device into setup
mode, by holding down reset button for 20 secs while powering on, You
need three thumbs for this!

Log in with 'telnet 192.168.1.1'

Then do a 'passwd' to change pass and enable ssh.

setup 'vi /etc/config/network' to reflect your network with gateway and dns.

Then ' opkg update' when done " opkg install batmand'

setup batmand , network, wireless,

Then to enable: ' /etc/init.d/batmand enable
disable firewall ' /etc/init.d/firewall disable

reboot

Done!

Wayne A

Joe

unread,
Jan 20, 2011, 12:49:43 AM1/20/11
to village-telco-dev
hey guys,
i cant get the open-mesh-flash to work on the nanostation m2 i still
get:

tftp server not responding
connection timeout..

i tried the command you posted for tftp:

tftp -m binary -v 192.168.1.20 -c put
openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin

but i get "usage: tftp host-name [port]"

wayne i remember reading you have flashed these devices before. could
you give me a step procedure/commands on what you did (including any
tftp packages needed in ubuntu)?

cheers

Steve Song

unread,
Jan 20, 2011, 3:05:51 AM1/20/11
to village-...@googlegroups.com
Hi Joe,

On 20 January 2011 07:49, Joe <romeo...@hotmail.com> wrote:
> hey guys,
> i cant get the open-mesh-flash to work on the nanostation m2 i still
> get:
>
> tftp server not responding
> connection timeout..

just checking but did the blinking lights change on the m2 after
holding down the reset button while powering up?

> i tried the command you posted for tftp:
>
> tftp -m binary -v 192.168.1.20 -c put
> openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
>
> but i get "usage: tftp host-name [port]"

One thing I didn't mention with this approach is that you will need to
set the local IP address for the ethernet port on your PC to be on the
same subnet as the m2. i.e. 192.168.1.xx You can do this in Ubuntu's
NetworkManager by editing connections and adding a new connection
under the Wired tab that looks something like the attached image.
Then simply select the MP static option from the network-manager
dropdown. If you'd prefer not to use NetworkManager, you can stop the
command:

sudo service network-manager stop

and then configure the ethernet port with ifconfig

ifconfig eth0:1 192.168.1.99 netmask 255.255.255.0

However, I don't think that is the problem with the above error. I
think this is a problem with the version of tftp that ships with
Ubuntu. Once you have the m2 booted into tftpd mode, check that you
can ping 192.168.1.20. If that works, then

tftp 192.168.1.20

which will give you the tftp prompt which looks like

tftp>

then enter the following commands:

tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> trace
Packet tracing on.
tftp> put openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin

Make sure openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin is
in the same directory you launched tftp from.

Alternatively, you could install the advanced tftp client.

sudo apt-get install atftp

and then issue the following command:

atftp --trace --option "timeout 1" --option "mode octet" --put
--local-file openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
192.168.1.20

Cheers.... Steve

> wayne i remember reading you have flashed these devices before. could
> you give me a step procedure/commands on what you did (including any
> tftp packages needed in ubuntu)?
>
> cheers
>

> --
> You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
> To post to this group, send email to village-...@googlegroups.com.
> To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/village-telco-dev?hl=en.
>
>

--

mp_static.png

wayne

unread,
Jan 20, 2011, 3:08:49 AM1/20/11
to village-...@googlegroups.com
Hi joe

First , put nano into setup mode!
test with ping 192.168.1.20

In Ubuntu:

Do tftp manual

enter:

tftp
connect 192.168.1.20
binary
trace
rexmt 1 # just in case
put xxxxxxx ( bin file)


Oh, and remember to be in the folder where the .bin file resides when
you do this.

Wayne A

wayne

unread,
Jan 20, 2011, 3:16:21 AM1/20/11
to village-...@googlegroups.com
Sorry Steve,

Cross talk,,

Joe, another thing, when tftp shows succsesful, type quit and ping
192.168.1.1 which will be the new IP address of the nano.

On the IP address of your workstation, if network manager a mission,
just issue

sudo ifconfig eth0 192.168.1.99/24

clicking on the auto eth0 will restore.

Wayne

> ------------------------------------------------------------------------
>

Joe

unread,
Jan 21, 2011, 1:04:28 AM1/21/11
to village-telco-dev
my problem was that i did not stop the network-manager service. I have
got the nanostation m2 successfully flashed with the openwrt
firmware :)

ive got a few questions regarding the configuration so i have started
a new thread..

cheers for all the help on flashing,

joe

Song, Stephen

unread,
Aug 15, 2012, 10:57:45 AM8/15/12
to village-...@googlegroups.com
Hi Jerhone,

That is correct for layer 3 batman.  Is that what you are using on the rest of your network?

Regards... Steve

On 15 August 2012 11:32, Jerhone Samporna Valledor <jerhone....@gmail.com> wrote:
Hi Steve,


I have in hand the NanoStation M2 and am about to flash it but I am not able to download the link 

ra...@lissoos.com

unread,
Aug 15, 2012, 11:15:02 AM8/15/12
to village-...@googlegroups.com
Is there a note on what to do on nano or any open-wrt with batman once installed.  Ie what to set config so it sees other batman devices

Thanks

Sent from my mp

On 15 Aug 2012, at 4:32 PM, Jerhone Samporna Valledor <jerhone....@gmail.com> wrote:

Hi Steve,


I have in hand the NanoStation M2 and am about to flash it but I am not able to download the link 

Batman Package:


But I found 


I just wanna make sure if this is the new package?

Thank you in advance! ;)


On Tuesday, 18 January 2011 18:40:30 UTC+8, Steve Song wrote:

Song, Stephen

unread,
Aug 15, 2012, 12:16:57 PM8/15/12
to village-...@googlegroups.com
Hi Rael,

Elektra has an SECN firmware for the NS2 available at 


Cheers... Steve

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jorge Gomez

unread,
Aug 15, 2012, 11:19:48 PM8/15/12
to village-...@googlegroups.com
Hi Stephen :

The link you post from Elektra, is for use in NanoStation 2 with Atheros AR23XX chip; nanostation M2 use Atheros AR7240 chip.

I configure a Nanostation Loco M2 with openwrt backfire and install batman-adv and works fine in a network with 45 MP01.

In the link  http://wiki.openwrt.org/toh/ubiquiti/airmaxm there is the explanation about what image use (Nanostation Loco M2, Nanostation M2, etc)

After that, basicly I use next commands in order to download batman-adv and configure mesh:

uci set network.lan.ipaddr=192.168.2.252
uci set network.lan.gateway=192.168.2.254
uci set network.lan.dns=192.168.2.254
uci commit
/etc/init.d/network restart

opkg update
opkg install kmod-batman-adv
/etc/init.d/batman-adv enable 



uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null

uci import -m batman-adv </dev/null

uci set batman-adv.bat0=mesh
uci set batman-adv.bat0.interfaces="mesh0 mesh1 mesh2"
uci set batman-adv.bat0.gw_mode=client

uci set network.lan.ifname="eth0 wlan0 wlan0-1 bat0"
uci set network.lan.macaddr=
uci set network.bat0=interface
uci set network.bat0.ifname=bat0
uci set network.bat0.proto=none
uci set network.bat0.mtu=1500
uci set network.mesh0=interface
uci set network.mesh0.ifname=wlan0-2
uci set network.mesh0.proto=none
uci set network.mesh0.mtu=1528

uci set wireless.radio0=wifi-device
uci set wireless.radio0.channel=3
uci set wireless.radio0.disabled=0
uci set wireless.radio0.phy=phy0
uci set wireless.radio0.macaddr=

uci set wireless.radio1=wifi-device
uci set wireless.radio1.type=mac80211
uci set wireless.radio1.hwmode=11ng
uci set wireless.radio1.htmode=HT20
uci set wireless.radio1.beacon_int=58594
uci set wireless.radio1.channel=11
uci set wireless.radio1.disabled=0
uci set wireless.radio1.phy=phy1
uci set wireless.radio1.macaddr=

uci set wireless.radio2=wifi-device
uci set wireless.radio2.type=mac80211
uci set wireless.radio2.hwmode=11ng
uci set wireless.radio2.htmode=HT20
uci set wireless.radio2.beacon_int=58594
uci set wireless.radio2.channel=6
uci set wireless.radio2.disabled=0
uci set wireless.radio2.phy=phy2
uci set wireless.radio2.macaddr=

uci set wireless.@wifi-iface[0].device=radio0
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@wifi-iface[0].network=lan
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=Encanto_EtapaIX

uci set wireless.@wifi-iface[1].device=radio0
uci set wireless.@wifi-iface[1].encryption=psk2
uci set wireless.@wifi-iface[1].key="24PGJb0eYPdfE"
uci set wireless.@wifi-iface[1].mode=ap
uci set wireless.@wifi-iface[1].macaddr=FA:D1:11:3B:6D:C7
uci set wireless.@wifi-iface[1].ssid=mr-c6.dl

uci set wireless.@wifi-iface[2].device=radio0 
uci set wireless.@wifi-iface[2].encryption=none
uci set wireless.@wifi-iface[2].network=mesh0
uci set wireless.@wifi-iface[2].mode=adhoc 
uci set wireless.@wifi-iface[2].macaddr=FA:D1:11:3B:6D:C8
uci set wireless.@wifi-iface[2].bssid=02:CA:FF:EE:BA:BE
uci set wireless.@wifi-iface[2].ssid=vt-mesh

uci commit

passwd

reboot && exit


2012/8/15 Song, Stephen <stephe...@gmail.com>



--
Jorge Armando Gomez
Cel (57) 313 328 2242

Song, Stephen

unread,
Aug 16, 2012, 7:51:14 AM8/16/12
to village-...@googlegroups.com
Thanks for clarifying Jorge.  And thanks in particular for posting the configuration for the M2.  I've taken the liberty of adding it to the wiki at http://wiki.villagetelco.org/index.php?title=Nanostation_Loco_M_as_node_on_SECN_(batman-adv)_network

Cheers.... Steve

Bob Hunt

unread,
Aug 18, 2012, 11:13:26 AM8/18/12
to village-...@googlegroups.com
Hi All,

Thanks so much for the Ubiquiti M info Jorge!

It enabled  me to get my PicostationM2 devices up and running on my SECN mesh

However after loading Backfire and installing/enabling batman-adv, the uci network settings you posted didn't result in a working mesh for me on my PicoM2s and for the life of me II couldn't get it worked out.

Eventually I remembered that one of my SECN nodes is on a tp-link 703n, which runs Attitude Adjustment, so I copied the output of "uci show" on the 703n to get the network configuration for the PicoM2s and it worked!

Once the node is up and running you can of course use the Luci gui to tweak settings like encryption etc..

For others who might need the info I've copied  below the SECN network uci config from the 703n;

Cheers,

Bob

batman-adv.bat0=mesh
batman-adv.bat0.interfaces=wlan1
batman-adv.bat0.gw_mode=off
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.gateway=10.130.1.1     YOUR GATEWAY
network.lan.dns=8.8.8.8
network.lan.type=bridge
network.lan.ifname=eth0 bat0 wlan0
network.lan.ipaddr=10.130.1.26     YOUR NODE ADDRESS
network.wan=interface
network.wan.ifname=eth1
network.wan.proto=dhcp
network.wifi0=interface
network.wifi0.ifname=wlan0
network.wifi0.ipaddr=10.10.1.20
network.wifi0.netmask=255.255.255.0
network.wifi1=interface
network.wifi1.ifname=wlan1
network.wifi1.proto=static
network.wifi1.ipaddr=10.10.1.20
network.wifi1.netmask=255.255.255.0
network.wifi1.mtu=1527
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.macaddr=14:e6:e4:ef:9b:58
wireless.radio0.hwmode=11ng
wireless.radio0.htmode=HT20
wireless.radio0.ht_capab=SHORT-GI-20 SHORT-GI-40 RX-STBC1 DSSS_CCK-40
wireless.radio0.disabled=0
wireless.radio0.txpower=17
wireless.radio0.country=YOUR COUNTRY
wireless.radio0.channel=YOUR WIRELESS CHANNEL
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].encryption=none
wireless.@wifi-iface[0].network=wifi1
wireless.@wifi-iface[0].bssid=02:CA:FF:EE:BA:BE
wireless.@wifi-iface[0].mode=adhoc
wireless.@wifi-iface[0].sw_merge=1
wireless.@wifi-iface[0].ssid=potato
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device=radio0
wireless.@wifi-iface[1].network=wifi0
wireless.@wifi-iface[1].mode=ap
wireless.@wifi-iface[1].key=potato-potato
wireless.@wifi-iface[1].sw_merge=1
wireless.@wifi-iface[1].hidden=0
wireless.@wifi-iface[1].disabled=0
wireless.@wifi-iface[1].encryption=none
wireless.@wifi-iface[1].ssid=YOUR SSID

T Gillett

unread,
Aug 18, 2012, 5:08:34 PM8/18/12
to village-...@googlegroups.com

Hi Bob

Just one thing I noticed in your listing is the macaddr setting for radio0.

You will need to ensure that this value is not duplicated across devices or you will have network issues.

Also the TP Link devices will not run the radio at all if this value does not match the hardware. I do not know if this is the case with the Ubiquity device you are using.

Regards
Terry

To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/IR9BIFv6SVcJ.

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 1:48:49 AM8/20/12
to village-...@googlegroups.com
Hi Steve,


Yes. We will be using NanoStation M2 in Philippines since the Ubiquiti reseller in our area just sells this.
Is there anything we need to know when using this Nanostation M2?

Cheers!

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 10:53:42 AM8/20/12
to village-...@googlegroups.com
Hi Steve,

Need help!;p

I have flashed my NanoStation M2 with OpenWrt as per below and can already connect to the internet. However, the command posted in wiki /etc/init.d/batman-adv enable is having error: see below

usyBox v1.19.4 (2012-08-19 15:43:58 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Bleeding Edge, r33210)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:~# ping google.com
PING google.com (173.194.38.160): 56 data bytes
64 bytes from 173.194.38.160: seq=0 ttl=55 time=16.214 ms
64 bytes from 173.194.38.160: seq=1 ttl=55 time=15.153 ms
64 bytes from 173.194.38.160: seq=2 ttl=55 time=15.607 ms

root@OpenWrt:~# opkg update
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
root@OpenWrt:~# opkg install kmod-batman-adv
Installing kmod-batman-adv (3.3.8+2012.2.0-4) to root...
Installing kmod-lib-crc16 (3.3.8-1) to root...
Configuring kmod-lib-crc16.
Configuring kmod-batman-adv.
root@OpenWrt:~# /etc/init.d/batman-adv enable
-ash: /etc/init.d/batman-adv: not found

I need your help on this. Is there something that I missed?


Thanks in advance!

Elektra

unread,
Aug 20, 2012, 10:58:06 AM8/20/12
to village-...@googlegroups.com
Hi -

the package appears to be broken.

Please perform:

ls -l /etc/init.d/

and post the output to this list.

Cheers,
Elektra

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 11:15:07 AM8/20/12
to village-...@googlegroups.com
Hi Electra,

Here it is.

root@OpenWrt:~# ls -l /etc/init.d/ 
-rwxr-xr-x    1 root     root          2887 Jun 17 19:39 boot
-rwxr-xr-x    1 root     root           385 Aug 19 15:44 cron
-rwxr-xr-x    1 root     root           318 Jun 17 19:39 defconfig
-rwxr-xr-x    1 root     root         12468 Aug 19 15:47 dnsmasq
-rwxr-xr-x    1 root     root           318 Jun 17 19:39 done
-rwxr-xr-x    1 root     root          4367 Aug 19 15:47 dropbear
-rwxr-xr-x    1 root     root           233 Aug 19 15:49 firewall
-rwxr-xr-x    1 root     root          1740 Jun 17 19:39 led
-rwxr-xr-x    1 root     root           559 Aug 11 19:19 network
-rwxr-xr-x    1 root     root           454 Jun 17 19:39 rcS
-rwxr-xr-x    1 root     root           126 Jun 17 19:39 sysctl
-rwxr-xr-x    1 root     root           586 Jun 17 19:39 sysntpd
-rwxr-xr-x    1 root     root           878 Aug 19 15:44 telnet
-rwxr-xr-x    1 root     root           154 Aug 19 15:39 ubus
-rwxr-xr-x    1 root     root            99 Jun 17 19:39 umount
-rwxr-xr-x    1 root     root           154 Jun 17 19:39 usb
-rwxr-xr-x    1 root     root           244 Jun 17 19:39 watchdog


Cheers!

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 12:54:15 PM8/20/12
to village-...@googlegroups.com
In Addition,

Found these:

root@OpenWrt:~# find / -name batman*
/etc/config/batman-adv
/lib/modules/3.3.8/batman-adv.ko
/lib/batman-adv
/overlay/etc/config/batman-adv
/overlay/lib/batman-adv
/overlay/lib/modules/3.3.8/batman-adv.ko
/overlay/usr/sbin/batman-adv
/sys/devices/platform/ag71xx.0/net/eth0/batman_adv
/sys/devices/platform/ag71xx.1/net/eth1/batman_adv
/sys/devices/virtual/net/br-lan/batman_adv
/sys/kernel/debug/batman_adv
/sys/module/crc16/holders/batman_adv
/sys/module/batman_adv
/usr/sbin/batman-adv


Is there a way to re flash the nanostation m2? Or can you give me the md5 checksum of the file openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin?


Cheers!
On Monday, 20 August 2012 22:58:06 UTC+8, Elektra wrote:

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 1:18:55 PM8/20/12
to village-...@googlegroups.com
Hi Steve/Elektra,


and it seems batmand is installed already.

What is the difference between:?

root@OpenWrt:~# /etc/init.d/batmand enable

and 

root@OpenWrt:~# /etc/init.d/batman-adv enable

Thanks!

Song, Stephen

unread,
Aug 20, 2012, 2:06:05 PM8/20/12
to village-...@googlegroups.com
Hi Jerhone,

There is a big difference between the two.  Batmand refers to the version of the batman mesh protocol that operates at layer 3 of the network i.e. at the IP layer.  All devices have IP addresses and mesh protocol dynamically routes traffic across the network.  This is like a regular routing daemon except it is smart and updates itself dynamically based on an analysis of its connections.

Batman-adv operates at Layer 2 of the network.  So, instead of talking to IP addresses the mesh talks to the MAC addresses of the Mesh Potato interfaces.  This is hard to wrap your head around at first but the easiest way to think of it is that once your Mesh Potatoes are connected, your wireless network behaves exactly as if it were a single solid state switch.  Thus anything connecting to a Mesh Potato behaves as if it were directly connected to any other device on the wireless network.  Thus if you have one Mesh Potato plugged into say an adsl router with a DHCP server, then any device that connects to a Mesh Potato whether through an ethernet port or via WiFi behaves exactly as if it had been plugged directly into the adsl router.   This means that for Mesh Potatoes, there is zero configuration required for data use.  They work out of the box.  VoIP still requires a little configuration and we're working on making that even simpler.

There is an explanation of batman and batman-adv here.  http://www.open-mesh.org/projects/open-mesh/wiki/BranchesExplained

The important thing to know is that the SECN firmware that ships as standard on the Mesh Potato uses batman-adv and if you want your Ubiquiti M2 to be compatible with it, then you need to install batman-adv.  Further it matters which version of batman-adv you use.  To be compatible with version 1 and 1.1 of the SECN firmware, you need to use batman-adv 2011.2.0   It is possible we may need to compile a version to work with the AA version of OpenWRT.

Wayne?  Which OpenWRT firmware are you using on your network?

Cheers... Steve

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/6PKN5kuae_oJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jerhone Samporna Valledor

unread,
Aug 20, 2012, 2:36:12 PM8/20/12
to village-...@googlegroups.com
Thanks Steve for sorting this out for me. I appreciate it. I will be reading more to further understand how these stuffs work.

Steve, one more thing: can you help me out with my previous post where 
root@OpenWrt:~# /etc/init.d/batman-adv enable
-ash: /etc/init.d/batman-adv: not found

seem not workin? Sent Elektra the output she wanted as well. Anyway since it's already late in the morning here, I will re-flash my NanoStation M2 tomorrow and see if I can enable batman-adv already.


Thanks again!

Wayne Abroue

unread,
Aug 20, 2012, 3:15:05 PM8/20/12
to village-...@googlegroups.com
On Mon, Aug 20, 2012 at 8:36 PM, Jerhone Samporna Valledor
<jerhone....@gmail.com> wrote:
> Thanks Steve for sorting this out for me. I appreciate it. I will be reading
> more to further understand how these stuffs work.
>
> Steve, one more thing: can you help me out with my previous post where
> root@OpenWrt:~# /etc/init.d/batman-adv enable
> -ash: /etc/init.d/batman-adv: not found
>
> seem not workin? Sent Elektra the output she wanted as well. Anyway since
> it's already late in the morning here, I will re-flash my NanoStation M2
> tomorrow and see if I can enable batman-adv already.
>


Hi

This is one of the reasons I have decided to stick with Batman-adv
2012.2 for now, I just don't have the time to debug and patch all the
time.
Also using trunk is bound to ruin your day in the future . repository
changes etc, etc.
However, if you are using SECN 1 /1.1 great, On the nano -M use backfire RC6


cd /tmp
wget -c http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin
sysupgrade openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin

device will reboot!

opkg update
opkg install kmod-batman-adv
/etc/init.d/batman-adv enaable
setup as desired.


Wayne

Song, Stephen

unread,
Aug 20, 2012, 3:45:53 PM8/20/12
to village-...@googlegroups.com
/etc/init.d/batman-adv enable
setup as desired.

Thanks Wayne!

 


Wayne

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.

Jerhone Samporna Valledor

unread,
Aug 21, 2012, 1:03:28 AM8/21/12
to village-...@googlegroups.com
Thanks so much Steve and Wayne!

Jerhone Samporna Valledor

unread,
Aug 25, 2012, 11:37:34 AM8/25/12
to village-...@googlegroups.com

Hi Steve / Wayne,

Just a quick query, I found in this link http://wiki.villagetelco.org/index.php?title=Nanostation_Loco_M_as_node_on_SECN_(batman-adv)_network that the mesh0 adhoc mode with ssid vt-mesh don't have ip address for the mesh network. can you please enlighten me on how to be able to make or connect the MPs to the Nanostation M2 in adhoc?

Thanks in advanced! 


To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/9NLNKFUp9HMJ.

Wayne Abroue

unread,
Aug 25, 2012, 11:57:39 AM8/25/12
to village-...@googlegroups.com
On Sat, Aug 25, 2012 at 5:37 PM, Jerhone Samporna Valledor
<jerhone....@gmail.com> wrote:
>
> Hi Steve / Wayne,
>
> Just a quick query, I found in this link
> http://wiki.villagetelco.org/index.php?title=Nanostation_Loco_M_as_node_on_SECN_(batman-adv)_network
> that the mesh0 adhoc mode with ssid vt-mesh don't have ip address for the
> mesh network. can you please enlighten me on how to be able to make or
> connect the MPs to the Nanostation M2 in adhoc?
>
> Thanks in advanced!
>

Hi Jerhone

You'll notice that all the interfaces are bridged, thus they will all
use the same IP address.
To check the bridging status:
brctl show


Wayne

Jerhone Samporna Valledor

unread,
Aug 26, 2012, 12:58:31 PM8/26/12
to village-...@googlegroups.com
Hi Steve,


Thanks a lot.





Wayne

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.

Jerhone Samporna Valledor

unread,
Aug 27, 2012, 11:00:56 AM8/27/12
to village-...@googlegroups.com
Hi Elektra / Wayne,

I have happily flashed my other nanostation m2 with openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin from http://downloads.openwrt.org/backfire/10.03.1/ar71xx/ and nanostation m2 has been already updated and I have installed batman-adv (enabled).

however, I am quit confused on how to connect my MP with Firmware: SECN Version 1.1-RC2 rv295 to my adhoc mode with ssid sotelco.

Frankly speaking I am now also confused on how to do a mesh with this NanoStation M2 as SuperNode.

Is there a way to verify if the MP has connected to my sotelco adhoc (I saw it in GUI of M2 that MP has connected to my adhoc) but MP can't go out the internet.

Please shed some light or document that I may read.


Thank you!


See below:

root@sotelco-sn2:~# cat /etc/config/network 

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '10.250.255.253'
        option 'netmask' '255.255.0.0'
        option 'dns' '8.8.8.8'
        option 'ifname' 'eth0 bat0'

config 'interface' 'wan'
        option 'ifname' 'eth1'
        option '_orig_ifname' 'eth1'
        option '_orig_bridge' 'false'
        option 'proto' 'static'
        option 'ipaddr' '10.3.126.132'
        option 'netmask' '255.255.0.0'
        option 'gateway' '10.3.1.1'
        option 'dns' '8.8.8.8'

config 'interface' 'bat0'
        option 'ifname' 'bat0'
        option 'proto' 'none'
        option 'mtu' '1500'

config 'interface' 'mesh0'
        option 'proto' 'none'
        option 'mtu' '1528'

config 'interface' 'mesh1'
        option 'proto' 'none'
        option 'mtu' '1528'

config 'interface' 'mesh2'
        option 'proto' 'none'
        option 'mtu' '1528'

root@sotelco-sn2:~# cat /etc/config/wireless 

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'hwmode' '11ng'
        option 'htmode' 'HT20'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'TX-STBC'
        list 'ht_capab' 'RX-STBC1'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'channel' '1'
        option 'disabled' '0'
        option 'phy' 'phy0'
        option 'txpower' '27'
        option 'country' 'US'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'encryption' 'none'
        option 'network' 'mesh0'
        option 'mode' 'adhoc'
        option 'mcast_rate' '11000'
        option 'ssid' 'sotelco'
        option 'bssid' '02:CA:FF:EE:BA:BE'

Elektra

unread,
Aug 27, 2012, 11:18:20 AM8/27/12
to village-...@googlegroups.com, Jerhone Samporna Valledor
Hi -

just checking:

Did you set up routing from the 10.3.0.0/16 network into the 10.250.0.0/16 and vice versa?

1./ The NS M2 LAN IP must be set as the gateway to 0.0.0.0/0 for the MPs.
2./ In 10.3.1.1 the NS M2 WAN IP must be set up as gateway to the 10.250.0.0/16 network.

IP forwarding must be enabled.
A firewall is not required, until you have a special reason. If you have set up a firewall, make sure it allows the traffic to pass in both directions.


Cheers,
Elektra

> I have happily flashed my other nanostation m2
> with openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin
> from http://downloads.openwrt.org/backfire/10.03.1/ar71xx/ and nanostation
> m2 has been already updated and I have installed batman-adv (enabled).
>
> however, I am quit confused on how to connect my MP with Firmware: SECN
> Version 1.1-RC2 rv295 to my adhoc mode with ssid sotelco.
>
> Frankly speaking I am now also confused on how to do a mesh with this
> NanoStation M2 as SuperNode.
>
> Is there a way to verify if the MP has connected to my sotelco adhoc (I saw
> it in GUI of M2 that MP has connected to my adhoc) but MP can't go out the
> internet.
>
> Please shed some light or document that I may read.
>
>
> Thank you!
>
>
> See below:
>
> *root@sotelco-sn2:~# cat /etc/config/network *
> *root@sotelco-sn2:~# cat /etc/config/wireless *
> --
> You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
> To post to this group, send email to village-...@googlegroups.com.
> To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/86lDDfirw0wJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--
Elektra <onel...@gmx.net>

Jerhone Samporna Valledor

unread,
Aug 27, 2012, 12:15:43 PM8/27/12
to village-...@googlegroups.com, Jerhone Samporna Valledor
Internet is working fine on the Nanostation M2, so yes routing is good there. We're able to connect to the Internet on the 10.250.0.0/16 network out through 10.3.0.0/16. So that's good.
The issue is in the mesh. We can see that the MP's associate with the Nanostation, but it isn't able to route through. Are we supposed to assign a 10.250.x.x IP on the "Network" (br-lan) interface of the MP or it's Mesh Wireless (ath0) interface?
root@sotelco-sn2:~# cat /proc/sys/net/ipv4/ip_forward 
1

Firewall has been disabled on the NS M2

Cheers!

Elektra

unread,
Aug 27, 2012, 1:04:50 PM8/27/12
to village-...@googlegroups.com
Hi -

the br-lan bridge in the MPs needs a 10.250.0.0/16 IP and a gateway.

> Internet is working fine on the Nanostation M2,
> so yes routing is good
> there.

Not necessarily, in case you only tested successfully Internet access from the M2, since the M2 has an IP from the 10.3.0.0 network. The point is: Does the 10.3.1.1 gateway know how to route to the 10.250.0.0 network? And vice versa: Do the MPs know how to route to 0.0.0.0?

I guess you are setting up static routing on the MPs br-lan interface. Did you add a gateway setting via the Nanostation M2 mesh IP?

What is the output of

ip r

on the MPs?

Cheers,
Elektra

> We're able to connect to the Internet on the 10.250.0.0/16 network
> out through 10.3.0.0/16. So that's good.
> The issue is in the mesh. We can see that the MP's associate with the
> Nanostation, but it isn't able to route through. Are we supposed to assign
> a 10.250.x.x IP on the "Network" (br-lan) interface of the MP or it's Mesh
> Wireless (ath0) interface?
> root@sotelco-sn2:~# cat /proc/sys/net/ipv4/ip_forward
> 1
>
> Firewall has been disabled on the NS M2
>
> Cheers!
>
> On Monday, August 27, 2012 11:18:20 PM UTC+8, Elektra wrote:
> >
> > Hi -
> >
> > just checking:
> >
> > Did you set up routing from the 10.3.0.0/16 network into the 10.250.0.0/16and vice versa?
> > > To post to this group, send email to village-...@googlegroups.com<javascript:>.
> >
> > > To unsubscribe from this group, send email to
> > village-telco-...@googlegroups.com <javascript:>.
> > > To view this discussion on the web visit
> > https://groups.google.com/d/msg/village-telco-dev/-/86lDDfirw0wJ.
> > > For more options, visit https://groups.google.com/groups/opt_out.
> > >
> > >
> >
> >
> > --
> > Elektra <onel...@gmx.net <javascript:>>
> >
>
> --
> You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
> To post to this group, send email to village-...@googlegroups.com.
> To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/fC6A4XXSM60J.

Jerhone Samporna Valledor

unread,
Aug 27, 2012, 3:28:00 PM8/27/12
to village-...@googlegroups.com
Hi -

Should we leave MP Wifi Access Point to default channel 1? I noticed that it is the default channel.
Our NS M2 was channel 1 before and we had problems and was resolved upon changing it to channel 11.
Please shed some light to us about basic channel stuff in terms of mesh networks.


Thank you.

Roberto odaye

unread,
Aug 27, 2012, 6:27:37 PM8/27/12
to village-...@googlegroups.com
Hi Jerhone,
you need to scan the area of the wifi zone. so you must be sure that you respected this rules:
CH 1 - 3 - 5 - 7 - 9 - 11 - 13 or
CH 2 - 4 - 6 - 8 - 10 - 12

between CH 1 and CH2, you have 4Mhz.

according to the use of Channel in your area, you can leave 2 Channels like.

thks. i hope this can help you. 

Kwami from TOGO (West Africa)

2012/8/27 Jerhone Samporna Valledor <jerhone....@gmail.com>



--

ODAYE K. Robert
 
Certifié ICDL, ICT & EUCIP: (International Computer Driving Licence)
Ingénieur Réseaux & Télécoms,
EXPERT ITC de l'UNION EUROPEENNE,
Gestionnaire de Projets

(00228)    90 18 07 92   -    99 46 07 92
http://odaye.ifrance.com


Elektra

unread,
Aug 27, 2012, 9:47:21 PM8/27/12
to village-...@googlegroups.com
Hi -

the default modulation bandwidth of 802.11 is 22 MHz wide. Channel spacing is 5 MHz. Hence, channels 1, 6, 11 do not overlap. Since basically everywhere in the world we have 13 channels we can use: 1, 7, 13. Unfortunately we do not have four non-overlapping channels.

Take a look at this drawing:

http://upload.wikimedia.org/wikipedia/commons/8/8c/2.4_GHz_Wi-Fi_channels_%28802.11b%2Cg_WLAN%29.svg

Cheers,
Elektra

Elektra

unread,
Aug 27, 2012, 9:48:48 PM8/27/12
to village-...@googlegroups.com
On Tue, 28 Aug 2012 03:47:21 +0200
Elektra <onel...@gmx.net> wrote:

> Hi -
>
> the default modulation bandwidth of 802.11 is 22 MHz wide. Channel spacing is 5 MHz. Hence, channels 1, 6, 11 do not overlap. Since basically everywhere in the world (outside the USA and Canada with 11 channels and Japan with 14) we have 13 channels we can use: 1, 7, 13. Unfortunately we do not have four non-overlapping channels.
--
Elektra <onel...@gmx.net>

Roberto odaye

unread,
Aug 28, 2012, 2:20:07 AM8/28/12
to village-...@googlegroups.com
Hi,
i agree with Elektra. this bandwidth 22 MHz is the maximum to be sure that you are avoiding the interference.
the choice of the channels depend on the result of your area scan.

good work,
kwami

2012/8/28 Elektra <onel...@gmx.net>
--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Bob Hunt

unread,
Aug 31, 2012, 11:09:11 PM8/31/12
to village-...@googlegroups.com
Thanks for that Terry.

Yes, I left the radio1 macaddr as set up by the Backfire flash

However I celebrated too soon re using the wr703n settings to getting SECN running on the PicoM2,  so I looked again at Jorge's howto which Steve has put up on the wiki.

I think I've got it worked out now I put it together into into a bash script to copy to the router. I'm working offline so I also copy kmod-batman-adv_2.6.32.27+2011.2.0-1_ar71xx.ipk to the router before running the script. I've attached the script for anyone who's interested.

To get it working made these chances to Jorge's instructions ;
  • Get the gateway / dns working with:
        uci set dhcp.lan.dhcp_option='3,10.130.1.1 6,10.130.1.1,8.8.8.8'
  • Remove the set wifi-iface macaddr  lines:
        uci set wireless.@wifi-iface[1].macaddr=
        uci set wireless.@wifi-iface[2].macaddr=
  • Get the secure VAP working  by adding:
        uci set wireless.@wifi-iface[1].network=lan
  • Remove radio1/radio2 & mesh1/mesh2 settings as PicoM2 is single radio

Do you think that there any issues with what I've done?

Thanks for your help.
 
Best regards,

Bob
picoM2.sh

T Gillett

unread,
Sep 1, 2012, 2:59:31 AM9/1/12
to village-...@googlegroups.com
Hi Bob

I can't vouch for the details, but that looks like a good approach and similar to what I have used previously for setting up new devices, and also for the "run-on-first-boot" scripts we use for setting up the TP Link devices in the firmware images.

It's on my ToDo list to build an image for some of the popular Ubuquity devices, so this is quite helpful.

I would be interested to know some details of the installation you are setting up if you are able to post something on it.

Regards
Terry

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/z8VZYpEPy2sJ.

Bob Hunt

unread,
Sep 2, 2012, 8:06:19 AM9/2/12
to village-...@googlegroups.com
Hi Terry,

No worries. Info sent to your email.

Meanwhile, to get back on topic, as I see that others are having trouble with M2s (Jerhone, in a different thread), so here's a summary based on Jorge's howto, of how I got the PicostationM2 meshing with my SECN network. It may well work for other M2 devices.

I've also attached a script to run on the device which does the job (the one I attached the other day had an error where the 1st line should have been "#!/bin/sh" not "#!/bin/bash".

Here are the steps which worked for me, using a linux terminal

>Flash correct Openwrt Backfire version onto M2 device (PicoM2 uses BulletM2 firmware)

>set device password
 telnet 192.169.1.1
 passwd && exit

>Download and copy kmod-batman-adv_2.6.32.27+2011.2.0-1_ar71xx.ipk to device and login.
wget http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages/kmod-batman-adv_2.6.32.27+2011.2.0-1_ar71xx.ipk
sudo scp kmod-batman-adv_2.6.32.27+2011.2.0-1_ar71xx.ipk ro...@192.168.1.1:/tmp
ssh ro...@192.168.1.1
cd /tmp

>install batman-adv
opkg install /tmp/kmod-batman-adv_2.6.32.27+2011.2.0-1_ar71xx.ipk
/etc/init.d/batman-adv enable

>run uci commands
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]                   #only 2 seem to be set up by Openwrt
uci delete wireless.@wifi-iface[]
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null        #3 wireless interfaces to be set up??
uci add wireless wifi-iface >/dev/null

uci import -m batman-adv </dev/null

uci set batman-adv.bat0=mesh
uci set batman-adv.bat0.interfaces=mesh0
uci set batman-adv.bat0.gw_mode=client

uci set network.lan.ipaddr=10.130.1.XX         ##unique to device
uci set network.lan.gateway=10.130.1.1        ##your gateway
uci set network.lan.dns=10.130.1.1                ##your DNS

uci set dhcp.lan.dhcp_option='3,10.130.1.1 6,10.130.1.1,8.8.8.8' #3, is gateway 6, is DNS
uci set network.lan.ifname="eth0 wlan0 wlan0-1 bat0"
uci set network.lan.macaddr=
uci set network.bat0=interface
uci set network.bat0.ifname=bat0
uci set network.bat0.proto=none
uci set network.bat0.mtu=1500
uci set network.mesh0=interface
uci set network.mesh0.ifname=wlan0-2
uci set network.mesh0.proto=none
uci set network.mesh0.mtu=1528

uci set wireless.radio0=wifi-device
uci set wireless.radio0.channel=WIRELESS_CHANNEL  ##must be consistent across mesh
uci set wireless.radio0.disabled=0
uci set wireless.radio0.phy=phy0

uci set wireless.@wifi-iface[0].device=radio0
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@wifi-iface[0].network=lan
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=PUBLIC_SSID           ##your public ssid

uci set wireless.@wifi-iface[1].device=radio0
uci set wireless.@wifi-iface[1].encryption=psk2
uci set wireless.@wifi-iface[1].key=PRIVATE_KEY          ##your private encryption key
uci set wireless.@wifi-iface[1].mode=ap
uci set wireless.@wifi-iface[1].ssid=PRIVATE_SSID       ##your private ssid

uci set wireless.@wifi-iface[1].network=lan

uci set wireless.@wifi-iface[2].device=radio0
uci set wireless.@wifi-iface[2].encryption=none
uci set wireless.@wifi-iface[2].network=mesh0
uci set wireless.@wifi-iface[2].mode=adhoc
uci set wireless.@wifi-iface[2].bssid=02:CA:FF:EE:BA:BE  ##must be consistent across mesh
uci set wireless.@wifi-iface[2].ssid=MESH_SSID                 ##must be consistent across mesh

uci commit

reboot && exit

=================================================================



Bob





On Saturday, September 1, 2012 4:59:34 PM UTC+10, tlg wrote:
Hi Bob

secnM2.sh

Song, Stephen

unread,
Sep 2, 2012, 11:43:57 AM9/2/12
to village-...@googlegroups.com
Thanks Bob!  Especially for the elegant script to automate the process!  I've taken the liberty of putting it up on the wiki


It would be great to hear from others about how this works for you.

Cheers... Steve

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/EmpAtOgGZbAJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bob Hunt

unread,
Sep 4, 2012, 7:43:27 PM9/4/12
to village-...@googlegroups.com
Hi Steve,

No worries. My pleasure.

I just noticed an error in the script though.

At line 91,  within the Gw_mode case statement, case 2) should set Gw_mode to "server", not "gateway".

Could you please amend it?

Cheers,

Bob

On Saturday, January 15, 2011 5:28:26 PM UTC+10, Joe wrote:
Hi, following the howto's guide in setting up a nanostation as a
supernode im unable to download the required firmware since the link
seam to be broken.

http://wiki.villagetelco.org/index.php?title=Mesh_Potato_HOWTOs#Setting_up_a_SuperNode_with_an_Ubiquiti_NS2

http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-vmlinux.lzma
http://downloads.afrimesh.org/stable.villagetelco/openwrt-atheros-ubnt2-squashfs.bin

is there an updated link to these firmware files?
will flashing the nanostation overwrite the factory firmware of the
device? why not use the factory one (whats the difference)

cheers,

Song, Stephen

unread,
Sep 4, 2012, 7:51:12 PM9/4/12
to village-...@googlegroups.com
Fixed now. Thanks again!

-S

--
You received this message because you are subscribed to the Google Groups "village-telco-dev" group.
To post to this group, send email to village-...@googlegroups.com.
To unsubscribe from this group, send email to village-telco-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/village-telco-dev/-/2GXmWJR1OjIJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages