* [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5
@ 2012-07-31 16:41 Esteban Municio
2012-07-31 18:47 ` gtolon
2012-08-01 10:19 ` Sven Eckelmann
0 siblings, 2 replies; 5+ messages in thread
From: Esteban Municio @ 2012-07-31 16:41 UTC (permalink / raw)
To: b.a.t.m.a.n
Hi all
I`m working on a academic develop project for improve the networks in
rural areas in Peru. We are doing some test with 6 Nanostation M5 for
create a mesh network.
I tried Commotion software with OLSR and all was Ok. Now, we are
testing BATMAN, with OpenWRT and batman-adv module, but I have some
problems.
I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
installed batman-adv with opkg following this
http://wiki.openwrt.org/inbox/mesh.batman
When I put:
lsmod | grep batman
I get
batman_adv 67936 0
and seems to be load in the kernel
But when I try to add the interface wlan0 for activate batman in it,
the Nanostation remains locked and i need to reboot.
I have tried this with:
echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
and
batctl if add wlan0
with the same bad result.
What am i doing wrong?
That are my configuration files:
root@OpenWrt:~# 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 ifname eth0
option type bridge
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
#config interface wan
# option ifname eth1
# option proto dhcp
config interface wan
option ifname eth1
option proto static
option ipaddr "my ip public for internet access"
option netmask 255.255.255.192
option gateway "my ip public gateway"
option dns 8.8.8.8
----------------------------------------
root@OpenWrt:~# cat /etc/config/wireless
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'macaddr' '00:27:22:52:71:a7'
option 'hwmode' '11na'
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' '161'
option 'txpower' '0'
option 'country' 'US'
config 'wifi-iface'
option 'device' 'radio0'
option 'network' 'lan'
option 'ssid' 'OpenWrt'
option 'encryption' 'none'
option 'mode' 'adhoc'
option 'bssid' '00:27:22:52:71:A7'
---------------------------------------------------
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11an ESSID:"OpenWrt"
Mode:Ad-Hoc Frequency:5.805 GHz Cell: 00:27:22:52:71:A7
Tx-Power=3 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
-----------------------------------------------------
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:27:22:53:71:A7
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9489 errors:0 dropped:0 overruns:0 frame:0
TX packets:9584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:989861 (966.6 KiB) TX bytes:3510637 (3.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:27:22:53:71:A7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9511 errors:0 dropped:0 overruns:0 frame:0
TX packets:9597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1124441 (1.0 MiB) TX bytes:3512820 (3.3 MiB)
Interrupt:4
eth1 Link encap:Ethernet HWaddr 00:27:22:53:71:A8
inet addr:"my ip public" Bcast:"my ip broadcast broadcast"
Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13086 errors:0 dropped:0 overruns:0 frame:0
TX packets:4552 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4041054 (3.8 MiB) TX bytes:797392 (778.7 KiB)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1556 (1.5 KiB) TX bytes:1556 (1.5 KiB)
wlan0 Link encap:Ethernet HWaddr 00:27:22:52:71:A7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:1526 (1.4 KiB)
------------------------
I have noticed that i have not the bat0 interface created,is it normal?
Do i need create another aditional interface like ath0?
I have been following that manuals:
http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenWrt+How-To
http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
Any help o comment?
Do you recomend me to change to batmand instead?
Do you know if there is any BATMAN implementation for a mesh network
of Nanostation M5, easier to install and manipulate?
Thanks
--
Esteban
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5
2012-07-31 16:41 [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5 Esteban Municio
@ 2012-07-31 18:47 ` gtolon
2012-08-01 10:19 ` Sven Eckelmann
1 sibling, 0 replies; 5+ messages in thread
From: gtolon @ 2012-07-31 18:47 UTC (permalink / raw)
To: b.a.t.m.a.n
Hi Esteban,
I don't see in the link that you pasted that they use opkg. I think they
compile batman-adv before installing the image to the router, right?.
Maybe this thread could be useful to you:
http://www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg07566.html
After installing batman-adv you can use the file /etc/config/batman to
configure it.
Regards
Gabriel
El 31/07/2012 01:41 p.m., Esteban Municio escribió:
> Hi all
>
> I`m working on a academic develop project for improve the networks in
> rural areas in Peru. We are doing some test with 6 Nanostation M5 for
> create a mesh network.
>
> I tried Commotion software with OLSR and all was Ok. Now, we are
> testing BATMAN, with OpenWRT and batman-adv module, but I have some
> problems.
>
> I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
> installed batman-adv with opkg following this
> http://wiki.openwrt.org/inbox/mesh.batman
>
> When I put:
> lsmod | grep batman
> I get
> batman_adv 67936 0
>
> and seems to be load in the kernel
>
> But when I try to add the interface wlan0 for activate batman in it,
> the Nanostation remains locked and i need to reboot.
> I have tried this with:
>
> echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
>
> and
>
> batctl if add wlan0
>
> with the same bad result.
> What am i doing wrong?
>
> That are my configuration files:
>
> root@OpenWrt:~# 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 ifname eth0
> option type bridge
> option proto static
> option ipaddr 192.168.1.1
> option netmask 255.255.255.0
>
> #config interface wan
> # option ifname eth1
> # option proto dhcp
>
>
> config interface wan
> option ifname eth1
> option proto static
> option ipaddr "my ip public for internet access"
> option netmask 255.255.255.192
> option gateway "my ip public gateway"
> option dns 8.8.8.8
> ----------------------------------------
>
> root@OpenWrt:~# cat /etc/config/wireless
>
> config 'wifi-device' 'radio0'
> option 'type' 'mac80211'
> option 'macaddr' '00:27:22:52:71:a7'
> option 'hwmode' '11na'
> 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' '161'
> option 'txpower' '0'
> option 'country' 'US'
>
> config 'wifi-iface'
> option 'device' 'radio0'
> option 'network' 'lan'
> option 'ssid' 'OpenWrt'
> option 'encryption' 'none'
> option 'mode' 'adhoc'
> option 'bssid' '00:27:22:52:71:A7'
>
> ---------------------------------------------------
> root@OpenWrt:~# iwconfig
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> eth1 no wireless extensions.
>
> br-lan no wireless extensions.
>
> wlan0 IEEE 802.11an ESSID:"OpenWrt"
> Mode:Ad-Hoc Frequency:5.805 GHz Cell: 00:27:22:52:71:A7
> Tx-Power=3 dBm
> RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:on
>
> -----------------------------------------------------
> root@OpenWrt:~# ifconfig
> br-lan Link encap:Ethernet HWaddr 00:27:22:53:71:A7
> inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:9489 errors:0 dropped:0 overruns:0 frame:0
> TX packets:9584 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:989861 (966.6 KiB) TX bytes:3510637 (3.3 MiB)
>
> eth0 Link encap:Ethernet HWaddr 00:27:22:53:71:A7
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:9511 errors:0 dropped:0 overruns:0 frame:0
> TX packets:9597 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1124441 (1.0 MiB) TX bytes:3512820 (3.3 MiB)
> Interrupt:4
>
> eth1 Link encap:Ethernet HWaddr 00:27:22:53:71:A8
> inet addr:"my ip public" Bcast:"my ip broadcast broadcast"
> Mask:255.255.255.192
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:13086 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4552 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:4041054 (3.8 MiB) TX bytes:797392 (778.7 KiB)
> Interrupt:5
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:16 errors:0 dropped:0 overruns:0 frame:0
> TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1556 (1.5 KiB) TX bytes:1556 (1.5 KiB)
>
> wlan0 Link encap:Ethernet HWaddr 00:27:22:52:71:A7
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:32
> RX bytes:0 (0.0 B) TX bytes:1526 (1.4 KiB)
>
> ------------------------
>
> I have noticed that i have not the bat0 interface created,is it normal?
> Do i need create another aditional interface like ath0?
>
> I have been following that manuals:
> http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenWrt+How-To
>
> http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
>
> Any help o comment?
> Do you recomend me to change to batmand instead?
> Do you know if there is any BATMAN implementation for a mesh network
> of Nanostation M5, easier to install and manipulate?
>
> Thanks
>
> --
> Esteban
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5
2012-07-31 16:41 [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5 Esteban Municio
2012-07-31 18:47 ` gtolon
@ 2012-08-01 10:19 ` Sven Eckelmann
2012-08-01 11:39 ` Wayne Abroue
1 sibling, 1 reply; 5+ messages in thread
From: Sven Eckelmann @ 2012-08-01 10:19 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]
On Tuesday 31 July 2012 11:41:15 Esteban Municio wrote:
> Hi all
>
> I`m working on a academic develop project for improve the networks in
> rural areas in Peru. We are doing some test with 6 Nanostation M5 for
> create a mesh network.
>
> I tried Commotion software with OLSR and all was Ok. Now, we are
> testing BATMAN, with OpenWRT and batman-adv module, but I have some
> problems.
>
> I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
> installed batman-adv with opkg following this
> http://wiki.openwrt.org/inbox/mesh.batman
Why are you installing it with opkg? This sounds a little bit like you try to
load a kernel module that wasn't compiled for the kernel that is running on
the machine (which would be extreme bad when there are ABI differences). Also
this "pizza" link you showed at the bottom of the mail gives the impression
that you may have done something like that.
The best way is to include it in your image.
> When I put:
> lsmod | grep batman
> I get
> batman_adv 67936 0
>
> and seems to be load in the kernel
>
> But when I try to add the interface wlan0 for activate batman in it,
> the Nanostation remains locked and i need to reboot.
> I have tried this with:
>
> echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
>
> and
>
> batctl if add wlan0
>
> with the same bad result.
> What am i doing wrong?
Hard to tell with the information we got here. Are you using the serial console
on your device? Does it print a backtrace (can you create a backtrace with
symbol tables enabled)? Are you sure that the kernel and batman-adv module are
100% binary compatible? What version of batman-adv is it? Did you try the
newest openwrt devel package from
http://downloads.open-mesh.org/svn/openwrt-feed/ (i think the package is
called kmod-batman-adv-devel)?
batctl: acd06db051419d3b323675ab2d7c897f2a5efc2a
batman-adv: 3fdeaa6bfb404311b73a689e984672161403a0c2
[...]
> I have noticed that i have not the bat0 interface created,is it normal?
> Do i need create another aditional interface like ath0?
bat0 (or any other name you choose for your batman-adv device(s)) are created
after you attach an interface to it (this is what you are doing when you say
that your node "freezes").
> I have been following that manuals:
> http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenW
> rt+How-To
Uh, please don't use this one. It is outdated as hell and has nearly nothing
to do with the stuff you are using (or at least should use).
> Do you recomend me to change to batmand instead?
Just to give an impression:
Latest release of batmand:
http://git.open-mesh.org/batmand.git/commit/3aeebaf87974a069278a3feee31345da664fc090
Latest release of batman-adv
http://git.open-mesh.org/batman-adv.git/commit/b82d11e243ec144c515e7d04e8e8c31b111a060d
Commits in batmand in the last 6 months (master branch): 0
Commits in batman-adv in the last 6 months (master branch): ~250 (and this does
not include all the stuff that happens before a change is accepted)
Of course, this can also be a sign of perfection. But I can say for sure that
the most development in the last two years happened in batman-adv and not in
batmand.
> Do you know if there is any BATMAN implementation for a mesh network
> of Nanostation M5, easier to install and manipulate?
Um, even easier? At least I find it extreme easy to get it running:
$ modprobe batman-adv
$ batctl -m bat4 interface add eth0
$ ip addr add 192.168.3.11/24 dev bat4
$ ip link set dev bat4 up
$ batctl -m bat4 originators
And only step 1 and 2 are batman-adv relevant. The rest is just to configure the
usual stuff and step 5 to check for detected originators. And "-m bat4" is
optional. I just wanted to call my device bat4. Please let me know how this can
be made easier without restricting users.
And why are you refering to a specific product? I thought that you just use
OpenWRT.
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5
2012-08-01 10:19 ` Sven Eckelmann
@ 2012-08-01 11:39 ` Wayne Abroue
2012-08-01 16:28 ` Esteban Municio
0 siblings, 1 reply; 5+ messages in thread
From: Wayne Abroue @ 2012-08-01 11:39 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Wed, Aug 1, 2012 at 12:19 PM, Sven Eckelmann <sven@narfation.org> wrote:
> On Tuesday 31 July 2012 11:41:15 Esteban Municio wrote:
>> Hi all
>>
>> I`m working on a academic develop project for improve the networks in
>> rural areas in Peru. We are doing some test with 6 Nanostation M5 for
>> create a mesh network.
>>
>> I tried Commotion software with OLSR and all was Ok. Now, we are
>> testing BATMAN, with OpenWRT and batman-adv module, but I have some
>> problems.
>>
>> I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
>> installed batman-adv with opkg following this
>> http://wiki.openwrt.org/inbox/mesh.batman
>
> Why are you installing it with opkg? This sounds a little bit like you try to
> load a kernel module that wasn't compiled for the kernel that is running on
> the machine (which would be extreme bad when there are ABI differences). Also
> this "pizza" link you showed at the bottom of the mail gives the impression
> that you may have done something like that.
>
> The best way is to include it in your image.
>
>> When I put:
>> lsmod | grep batman
>> I get
>> batman_adv 67936 0
>>
>> and seems to be load in the kernel
>>
>> But when I try to add the interface wlan0 for activate batman in it,
>> the Nanostation remains locked and i need to reboot.
>> I have tried this with:
>>
>> echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
>>
>> and
>>
>> batctl if add wlan0
>>
>> with the same bad result.
>> What am i doing wrong?
>
> Hard to tell with the information we got here. Are you using the serial console
> on your device? Does it print a backtrace (can you create a backtrace with
> symbol tables enabled)? Are you sure that the kernel and batman-adv module are
> 100% binary compatible? What version of batman-adv is it? Did you try the
> newest openwrt devel package from
> http://downloads.open-mesh.org/svn/openwrt-feed/ (i think the package is
> called kmod-batman-adv-devel)?
>
> batctl: acd06db051419d3b323675ab2d7c897f2a5efc2a
> batman-adv: 3fdeaa6bfb404311b73a689e984672161403a0c2
>
> [...]
>> I have noticed that i have not the bat0 interface created,is it normal?
>> Do i need create another aditional interface like ath0?
>
> bat0 (or any other name you choose for your batman-adv device(s)) are created
> after you attach an interface to it (this is what you are doing when you say
> that your node "freezes").
>
>> I have been following that manuals:
>> http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenW
>> rt+How-To
>
> Uh, please don't use this one. It is outdated as hell and has nearly nothing
> to do with the stuff you are using (or at least should use).
>
>> Do you recomend me to change to batmand instead?
>
> Just to give an impression:
>
> Latest release of batmand:
> http://git.open-mesh.org/batmand.git/commit/3aeebaf87974a069278a3feee31345da664fc090
>
> Latest release of batman-adv
> http://git.open-mesh.org/batman-adv.git/commit/b82d11e243ec144c515e7d04e8e8c31b111a060d
>
> Commits in batmand in the last 6 months (master branch): 0
> Commits in batman-adv in the last 6 months (master branch): ~250 (and this does
> not include all the stuff that happens before a change is accepted)
>
> Of course, this can also be a sign of perfection. But I can say for sure that
> the most development in the last two years happened in batman-adv and not in
> batmand.
>
>> Do you know if there is any BATMAN implementation for a mesh network
>> of Nanostation M5, easier to install and manipulate?
>
> Um, even easier? At least I find it extreme easy to get it running:
>
> $ modprobe batman-adv
> $ batctl -m bat4 interface add eth0
> $ ip addr add 192.168.3.11/24 dev bat4
> $ ip link set dev bat4 up
> $ batctl -m bat4 originators
>
> And only step 1 and 2 are batman-adv relevant. The rest is just to configure the
> usual stuff and step 5 to check for detected originators. And "-m bat4" is
> optional. I just wanted to call my device bat4. Please let me know how this can
> be made easier without restricting users.
>
> And why are you refering to a specific product? I thought that you just use
> OpenWRT.
Yep, now that everybody has confused the hell out of you,,, try
flashing the unit with
http://downloads.openwrt.org/snapshots/trunk/atheros/openwrt-atheros-ubnt5-squashfs.bin
setup to get internet access. and correct wireless settings
opkg update | opkg install kmod-batman-adv | enable with
/etc/init.d/batman-adv enable
edit /config/batman-adv to reflect wlan0
reboot Done | check with batctl o
Couldn't be simpler, no need to compile anything.
Wayne A
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5
2012-08-01 11:39 ` Wayne Abroue
@ 2012-08-01 16:28 ` Esteban Municio
0 siblings, 0 replies; 5+ messages in thread
From: Esteban Municio @ 2012-08-01 16:28 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
Thanks you very much.
I got run batman-adv and and I can see 2 nodes between them:
root@OpenWrt:/# batctl o
[B.A.T.M.A.N. adv 2012.0.0, MainIF/MAC: wlan0/00:27:22:52:74:e2 (bat0)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
00:27:22:52:71:a7 0.170s (213) 00:27:22:52:71:a7 [ wlan0]:
00:27:22:52:71:a7 (213)
I transfer with scp and installed manually the packages
kmod-crc16_2.6.32.27-1_ar71xx.ipk and
kmod-batman-adv_2.6.32.27+2012.0.0-1_ar71xx.ipk that i had created
when compiled the image, and now all work OK
Thanks for your help! Now batman-adv seems really easy! ;-)
2012/8/1 Wayne Abroue <plettpc@gmail.com>:
> On Wed, Aug 1, 2012 at 12:19 PM, Sven Eckelmann <sven@narfation.org> wrote:
>> On Tuesday 31 July 2012 11:41:15 Esteban Municio wrote:
>>> Hi all
>>>
>>> I`m working on a academic develop project for improve the networks in
>>> rural areas in Peru. We are doing some test with 6 Nanostation M5 for
>>> create a mesh network.
>>>
>>> I tried Commotion software with OLSR and all was Ok. Now, we are
>>> testing BATMAN, with OpenWRT and batman-adv module, but I have some
>>> problems.
>>>
>>> I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
>>> installed batman-adv with opkg following this
>>> http://wiki.openwrt.org/inbox/mesh.batman
>>
>> Why are you installing it with opkg? This sounds a little bit like you try to
>> load a kernel module that wasn't compiled for the kernel that is running on
>> the machine (which would be extreme bad when there are ABI differences). Also
>> this "pizza" link you showed at the bottom of the mail gives the impression
>> that you may have done something like that.
>>
>> The best way is to include it in your image.
>>
>>> When I put:
>>> lsmod | grep batman
>>> I get
>>> batman_adv 67936 0
>>>
>>> and seems to be load in the kernel
>>>
>>> But when I try to add the interface wlan0 for activate batman in it,
>>> the Nanostation remains locked and i need to reboot.
>>> I have tried this with:
>>>
>>> echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
>>>
>>> and
>>>
>>> batctl if add wlan0
>>>
>>> with the same bad result.
>>> What am i doing wrong?
>>
>> Hard to tell with the information we got here. Are you using the serial console
>> on your device? Does it print a backtrace (can you create a backtrace with
>> symbol tables enabled)? Are you sure that the kernel and batman-adv module are
>> 100% binary compatible? What version of batman-adv is it? Did you try the
>> newest openwrt devel package from
>> http://downloads.open-mesh.org/svn/openwrt-feed/ (i think the package is
>> called kmod-batman-adv-devel)?
>>
>> batctl: acd06db051419d3b323675ab2d7c897f2a5efc2a
>> batman-adv: 3fdeaa6bfb404311b73a689e984672161403a0c2
>>
>> [...]
>>> I have noticed that i have not the bat0 interface created,is it normal?
>>> Do i need create another aditional interface like ath0?
>>
>> bat0 (or any other name you choose for your batman-adv device(s)) are created
>> after you attach an interface to it (this is what you are doing when you say
>> that your node "freezes").
>>
>>> I have been following that manuals:
>>> http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenW
>>> rt+How-To
>>
>> Uh, please don't use this one. It is outdated as hell and has nearly nothing
>> to do with the stuff you are using (or at least should use).
>>
>>> Do you recomend me to change to batmand instead?
>>
>> Just to give an impression:
>>
>> Latest release of batmand:
>> http://git.open-mesh.org/batmand.git/commit/3aeebaf87974a069278a3feee31345da664fc090
>>
>> Latest release of batman-adv
>> http://git.open-mesh.org/batman-adv.git/commit/b82d11e243ec144c515e7d04e8e8c31b111a060d
>>
>> Commits in batmand in the last 6 months (master branch): 0
>> Commits in batman-adv in the last 6 months (master branch): ~250 (and this does
>> not include all the stuff that happens before a change is accepted)
>>
>> Of course, this can also be a sign of perfection. But I can say for sure that
>> the most development in the last two years happened in batman-adv and not in
>> batmand.
>>
>>> Do you know if there is any BATMAN implementation for a mesh network
>>> of Nanostation M5, easier to install and manipulate?
>>
>> Um, even easier? At least I find it extreme easy to get it running:
>>
>> $ modprobe batman-adv
>> $ batctl -m bat4 interface add eth0
>> $ ip addr add 192.168.3.11/24 dev bat4
>> $ ip link set dev bat4 up
>> $ batctl -m bat4 originators
>>
>> And only step 1 and 2 are batman-adv relevant. The rest is just to configure the
>> usual stuff and step 5 to check for detected originators. And "-m bat4" is
>> optional. I just wanted to call my device bat4. Please let me know how this can
>> be made easier without restricting users.
>>
>> And why are you refering to a specific product? I thought that you just use
>> OpenWRT.
>
> Yep, now that everybody has confused the hell out of you,,, try
> flashing the unit with
> http://downloads.openwrt.org/snapshots/trunk/atheros/openwrt-atheros-ubnt5-squashfs.bin
>
> setup to get internet access. and correct wireless settings
> opkg update | opkg install kmod-batman-adv | enable with
> /etc/init.d/batman-adv enable
>
> edit /config/batman-adv to reflect wlan0
>
> reboot Done | check with batctl o
>
> Couldn't be simpler, no need to compile anything.
>
> Wayne A
--
Esteban
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-01 16:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 16:41 [B.A.T.M.A.N.] Problems to add Batman-adv in wlan0 Nanostation M5 Esteban Municio
2012-07-31 18:47 ` gtolon
2012-08-01 10:19 ` Sven Eckelmann
2012-08-01 11:39 ` Wayne Abroue
2012-08-01 16:28 ` Esteban Municio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox