https://www.open-mesh.org/https://www.open-mesh.org/favicon.ico?16699090422016-03-24T23:16:49ZOpen Meshbatman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7552016-03-24T23:16:49ZAlvaro Anteloalvaro.antelo@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/632">Compiling_Openwrt_CC_Batman-adv.sh</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/632/Compiling_Openwrt_CC_Batman-adv.sh">Compiling_Openwrt_CC_Batman-adv.sh</a> added</li></ul> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7562016-03-24T23:21:01ZAlvaro Anteloalvaro.antelo@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/633">mesh_node_with_batman_V.sh</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/633/mesh_node_with_batman_V.sh">mesh_node_with_batman_V.sh</a> added</li><li><strong>File</strong> <a href="/attachments/634">openwrt_gateway_with_batman_V.sh</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/634/openwrt_gateway_with_batman_V.sh">openwrt_gateway_with_batman_V.sh</a> added</li></ul> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7572016-03-25T06:16:44ZSven Eckelmann
<ul><li><strong>Assignee</strong> set to <i>Marek Lindner</i></li></ul><p>It is currently not allowed to compile batman-adv with BATMAN_V using the compat layer from batman-adv when you are using compat-wireless/backports. Instead you have to compile it using the backport/compat-layer of mac80211/compat-wireless. The kernel in 3.18 (ar71xx CC kernel) uses an incompatible structure definition (compared to compat-wireless/mac80211) for the station information. Your mac80211 (as result) will just overwrite parts of your stack (which causes a crash).</p>
<p><a class="external" href="https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/message/OKZSPP3SKHYZ3I7K553UFWTLRO6WSFG5/">https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/message/OKZSPP3SKHYZ3I7K553UFWTLRO6WSFG5/</a><br /><a class="external" href="https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/1674394.xTpvsLY2Zu@sven-edge/">https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/1674394.xTpvsLY2Zu@sven-edge/</a><br /><a class="external" href="https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/2360276.GhZ0sleNGR@sven-edge/">https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/2360276.GhZ0sleNGR@sven-edge/</a></p>
<p>The <a class="external" href="https://git.open-mesh.org/openwrt-feed-batman-adv.git">https://git.open-mesh.org/openwrt-feed-batman-adv.git</a> cannot (and most likely will not) support this. Please use instead <a class="external" href="https://github.com/openwrt-routing/packages">https://github.com/openwrt-routing/packages</a> after the next release (should be 2016.1).</p>
<p><a class="user active user-mention" href="https://www.open-mesh.org/users/6">@Marek Lindner</a>: Do you want to change the devel feed of batman-adv to also drop the batadv compat layer in favor of the compat-wireless stuff or do you want to drop BATMAN_V support in it?</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7582016-03-25T08:57:31ZSven Eckelmann
<ul></ul><p>Btw. you can try my test routing feed when you want to try batman-adv v2016.1 (unreleased) with BATMAN_V.</p>
<pre>
src-git routing https://github.com/ecsv/packages.git;batadv-2016.1preview
</pre>
<p>It is based on 05fa82f8789fce820f540d30e635dd24fb72cd1f (master) in case you want to port the patches to a specific CC version.</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7642016-03-27T19:21:11ZAlvaro Anteloalvaro.antelo@gmail.com
<ul></ul><p>Thank you Mr. Eckelmann,</p>
<p>I will compile your v2016.1 preview packages tomorrow and post the results here.</p>
<p>Happy Easter to all Open-Mesh developers!</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7692016-03-28T22:42:05ZAlvaro Anteloalvaro.antelo@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/636">Compiling_Openwrt_CC_Batman-adv.sh</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/636/Compiling_Openwrt_CC_Batman-adv.sh">Compiling_Openwrt_CC_Batman-adv.sh</a> added</li></ul><p>Mr. Eckelmann, I understood that I could use v2016.1preview packages with Chaos Calmer, please correct me if I'm wrong.</p>
<p>OpenWRT was compiled using the attached instructions. When applied to my two test nodes (gateway and mesh) there are no crashes, adhoc interfaces and bat0 go up, batman OGM and ELP messages appears to be exchanged normally, I saw for the first time wireless link throughput measurements but I am unable to establish connectivity between both nodes at the IP level.</p>
<p>Here is the output of some commands (on the gateway):</p>
<pre>
root@gateway:~# batctl if
adhoc1: active
root@gateway:~# batctl gw
server (announced bw: 10.0/2.0 MBit)
root@gateway:~# batctl o
[B.A.T.M.A.N. adv 2016.1, MainIF/MAC: adhoc1/c4:e9:84:f9:d9:c7 (bat0 BATMAN_V)]
Originator last-seen ( throughput) Nexthop [outgoingIF]: Potential nexthops ...
c4:e9:84:f9:d7:a5 0.520s ( 59.9) c4:e9:84:f9:d7:a5 [ adhoc1]: c4:e9:84:f9:d7:a5 ( 59.9)
root@gateway:~# batctl p c4:e9:84:f9:d7:a5
PING c4:e9:84:f9:d7:a5 (c4:e9:84:f9:d7:a5) 20(48) bytes of data
20 bytes from c4:e9:84:f9:d7:a5 icmp_seq=1 ttl=50 time=0.86 ms
20 bytes from c4:e9:84:f9:d7:a5 icmp_seq=2 ttl=50 time=0.84 ms
20 bytes from c4:e9:84:f9:d7:a5 icmp_seq=3 ttl=50 time=0.85 ms
root@gateway:~# batctl tr c4:e9:84:f9:d7:a5
traceroute to c4:e9:84:f9:d7:a5 (c4:e9:84:f9:d7:a5), 50 hops max, 20 byte packets
1: c4:e9:84:f9:d7:a5 1.517 ms 0.829 ms 0.800 ms
(this is weird...)
root@gateway:~# batctl td adhoc1
Warning - packet contains unknown batman packet type: 0x04
Warning - packet contains unknown batman packet type: 0x04
Warning - packet contains unknown batman packet type: 0x03
Warning - packet contains unknown batman packet type: 0x03
root@gateway:~# batctl -v
batctl 2016.0 [batman-adv: 2016.1]
batctl 2016.0 [batman-adv: 2016.1]
root@gateway:~# modinfo batman_adv
module: /lib/modules/3.18.27/batman-adv.ko
version: 2016.1
description: B.A.T.M.A.N. advanced
author: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de>
license: GPL
depends: libcrc32c,crc16
root@gateway:~# batctl ll
[ ] all debug output disabled (none)
[x] messages related to routing / flooding / broadcasting (batman)
[ ] messages related to route added / changed / deleted (routes)
[ ] messages related to translation table operations (tt)
[ ] messages related to bridge loop avoidance (bla)
[ ] messages related to arp snooping and distributed arp table (dat)
[ ] messages related to network coding (nc)
root@gateway:~# batctl l
oc1 [c4:e9:84:f9:d9:c7] (from OG: c4:e9:84:f9:d7:a5, seqno 1791251129, troughput 4294967295, TTL 50, V 15, tvlv_len 36)
[ 633530] Searching and updating originator entry of received packet
[ 633530] Searching and updating originator entry of received packet
[ 633530] Forwarding OGM2 packet on adhoc1: throughput 299, ttl 49, received via adhoc1
[ 633580] Received ELP packet from c4:e9:84:f9:d7:a5 seqno 1763544464 ORIG: c4:e9:84:f9:d7:a5
[ 633810] Sending own OGM2 packet (originator gateway_adhoc1, seqno 3035952103, throughput 4294967295, TTL 50) on interface adhoc1 [c4:e9:84:f9:d9:c7]
[ 634050] Sending broadcast ELP packet on interface adhoc1, seqno 1547039850
[ 634050] Sending unicast (probe) ELP packet on interface adhoc1 to c4:e9:84:f9:d7:a5
[ 634050] Sending unicast (probe) ELP packet on interface adhoc1 to c4:e9:84:f9:d7:a5
[ 634070] Received ELP packet from c4:e9:84:f9:d7:a5 seqno 1763544465 ORIG: c4:e9:84:f9:d7:a5
[ 634530] Received OGM2 packet via NB: c4:e9:84:f9:d7:a5, IF: adhoc1 [c4:e9:84:f9:d9:c7] (from OG: c4:e9:84:f9:d7:a5, seqno 1791251130, troughput 4294967295, TTL 50, V 15, tvlv_len 36)
[ 634530] Searching and updating originator entry of received packet
[ 634530] Searching and updating originator entry of received packet
[ 634530] Forwarding OGM2 packet on adhoc1: throughput 299, ttl 49, received via adhoc1
[ 634560] Sending broadcast ELP packet on interface adhoc1, seqno 1547039851
[ 634560] Sending unicast (probe) ELP packet on interface adhoc1 to c4:e9:84:f9:d7:a5
[ 634560] Sending unicast (probe) ELP packet on interface adhoc1 to c4:e9:84:f9:d7:a5
[ 634560] Received ELP packet from c4:e9:84:f9:d7:a5 seqno 1763544466 ORIG: c4:e9:84:f9:d7:a5
[ 634830] Sending own OGM2 packet (originator gateway_adhoc1, seqno 3035952104, throughput 4294967295, TTL 50) on interface adhoc1 [c4:e9:84:f9:d9:c7]
[ 635060] Received ELP packet from c4:e9:84:f9:d7:a5 seqno 1763544467 ORIG: c4:e9:84:f9:d7:a5
</pre> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7702016-03-29T12:46:42ZSven Eckelmann
<ul></ul><p>No, v2016.1preview was for the current trunk. I just told you that you can backport the patches to CC when you want to.</p>
<p>And batctl is still 2016.0 (not 2016.2 which will feature the packet parser for OGMv2 and ELP).</p>
<p>But the thing you see now is not related to this topic. Can you please keep discuss it somewhere else (mailing list, irc) with node configuration information. It doesn't seem to be yet ready for a bug report because it could also be a problem in your setup (<code>batctl p</code> already seems to work fine and the the packet forwarding wasn't touched by BATMAN_V; there is only one known problem which may be related but only happens when you add a non-active device to batman-adv with BATMAN_V: <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: BATMAN V: interfaces can get stuck in "enabling" state (Closed)" href="https://www.open-mesh.org/issues/248#note-4">#248#note-4</a>).</p>
<p><a class="user active user-mention" href="https://www.open-mesh.org/users/6">@Marek Lindner</a>: can you please decide how we want to move forward with the build against the mac80211 package (especially the <a class="external" href="https://git.open-mesh.org/openwrt-feed-batman-adv.git">https://git.open-mesh.org/openwrt-feed-batman-adv.git</a> part which already supports BATMAN_V <strong>without</strong> mac80211 driver support)</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=7932016-04-21T14:12:33ZSven Eckelmann
<ul></ul><p>The upstream pull request was closed and instead a new one was opened to also integrate the v2016.1 support: <a class="external" href="https://github.com/openwrt-routing/packages/pull/177">https://github.com/openwrt-routing/packages/pull/177</a></p>
<p>The branch is now called</p>
<pre>
src-git routing https://github.com/ecsv/packages.git;batadv_2016.1
</pre>
<p>It should be possible to copy the folder batman-adv/ folder to the CC openwrt-routing folder to get it working. I personally use it right now with an even older version than CC and it seems to work for me (tm).</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=8112016-05-02T19:20:25ZSven Eckelmann
<ul></ul><p><a class="user active user-mention" href="https://www.open-mesh.org/users/6">@Marek Lindner</a>: Maybe the future of this feed could be discussed together with the future of the alfred feed (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Disable the openwrt-feed-alfred.git feed (Closed)" href="https://www.open-mesh.org/issues/250">#250</a>) at the battlemesh.</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=8212016-05-05T15:21:42ZMarek Lindnermareklindner@neomailbox.ch
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Sven Eckelmann wrote:</p>
<blockquote>
<p>It should be possible to copy the folder batman-adv/ folder to the CC openwrt-routing folder to get it working. I personally use it right now with an even older version than CC and it seems to work for me (tm).</p>
</blockquote>
<p>These changes have been merged into the -devel package. Thanks!</p> batman-adv - Bug #249: Kernel oops on batman-adv Vhttps://www.open-mesh.org/issues/249?journal_id=10672017-02-11T07:36:12ZSven Eckelmann
<ul><li><strong>Target version</strong> set to <i>2016.1</i></li></ul>