]> pere.pagekite.me Git - homepage.git/blobdiff - blog/tags/mesh network/mesh network.rss
Generated.
[homepage.git] / blog / tags / mesh network / mesh network.rss
index 8cdf38bf7e283f3808b94ca6f8c7523f436008af..92c84131985763ee3b5a1428ee7ec0273d431665 100644 (file)
@@ -6,6 +6,335 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
+       <item>
+               <title>Dugnadsnett for alle stiller på Oslo Maker Faire i januar 2014</title>
+               <link>http://people.skolelinux.org/pere/blog/Dugnadsnett_for_alle_stiller_p__Oslo_Maker_Faire_i_januar_2014.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Dugnadsnett_for_alle_stiller_p__Oslo_Maker_Faire_i_januar_2014.html</guid>
+                <pubDate>Tue, 10 Dec 2013 19:20:00 +0100</pubDate>
+               <description>&lt;p&gt;Helga 18. og 19. januar 2014 arrangeres
+&lt;a href=&quot;http://makerfaireoslo.no/no/program/dugnadsnett&quot;&gt;Oslo Maker
+Faire&lt;/a&gt;, og &lt;a href=&quot;http://www.dugnadsnett.no/&quot;&gt;Dugnadsnett for
+alle&lt;/a&gt; har fått plass!  Planen er å ha et bord med en plakat der vi
+forteller om hva Dugnadsnett for alle er for noe, og et lite verksted
+der vi hjelper folk som er interessert i å få opp sin egen mesh-node.
+Jeg gleder meg til å se hvordan prosjektet blir mottatt der.&lt;/p&gt;
+
+&lt;p&gt;Målet med dugnadsnett for alle i Oslo er å få på plass et datanett
+for kommunikasjon ved hjelp av radio-repeaterstasjoner (kalt
+mesh-noder) som gjør at en kan direkte kommunisere med slekt, venner
+og bekjente i Oslo via andre som deltar i dugnadsnettet, samt gjøre
+det mulig komme ut på internett via dugnadsnettet.  Første delmål er å
+kunne sende SMS-meldinger vha. IP-telefoni løsningen
+&lt;a href=&quot;http://www.servalproject.org/&quot;&gt;Serval project&lt;/a&gt; mellom
+deltagerne i Dugnadsnett for alle i Oslo.  Formålet er å ta tilbake
+kontrollen over egen nett-infrastruktur og gjøre det dyrere å bedrive
+massiv innsamling av informasjon om borgernes bruk av datanett.&lt;/p&gt;
+
+&lt;p&gt;Høres dette interessant ut?  Bli med på prosjektet, fortell oss
+hvor du kunne tenke deg å sette opp en radio-repeater (slik at folk i
+nærheten kan finne hverandre ved hjelp av
+&lt;a href=&quot;http://flynor.net/mesh/mesh.php&quot;&gt;kartet over planlagte og
+eksisterende radio-repeatere&lt;/A&gt;), bli med på epostlisten
+&lt;a href=&quot;http://lists.nuug.no/mailman/listinfo/dugnadsnett&quot;&gt;dugnadsnett
+(at) nuug.no&lt;/a&gt; og stikk innom
+&lt;a href=&quot;irc://irc.freenode.net/#dugnadsnett.no&quot;&gt;IRC-kanalen
+#dugnadsnett.no&lt;/a&gt;.  Så langt er det planlagt over 40
+radio-repeatere, med VPN-forbindelser via Internet for å la de delene
+av nettet som ikke når hverandre via radio kunne snakke med hverandre
+likevel.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Dugnadsnett for alle, a wireless community network in Oslo, take shape</title>
+               <link>http://people.skolelinux.org/pere/blog/Dugnadsnett_for_alle__a_wireless_community_network_in_Oslo__take_shape.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Dugnadsnett_for_alle__a_wireless_community_network_in_Oslo__take_shape.html</guid>
+                <pubDate>Sat, 30 Nov 2013 10:10:00 +0100</pubDate>
+               <description>&lt;p&gt;If you want the ability to electronically communicate directly with
+your neighbors and friends using a network controlled by your peers in
+stead of centrally controlled by a few corporations, or would like to
+experiment with interesting network technology, the
+&lt;a href=&quot;http://www.dugnadsnett.no/&quot;&gt;Dugnasnett for alle i Oslo&lt;/a&gt;
+might be project for you.  39 mesh nodes are currently being planned,
+in the freshly started initiative from NUUG and Hackeriet to create a
+wireless community network.  The work is inspired by
+&lt;a href=&quot;http://freifunk.net/&quot;&gt;Freifunk&lt;/a&gt;,
+&lt;a href=&quot;http://www.awmn.net/&quot;&gt;Athens Wireless Metropolitan
+Network&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Roofnet&quot;&gt;Roofnet&lt;/a&gt;
+and other successful mesh networks around the globe.  Two days ago we
+held a workshop to try to get people started on setting up their own
+mesh node, and there we decided to create a new mailing list
+&lt;a href=&quot;http://lists.nuug.no/mailman/listinfo/dugnadsnett&quot;&gt;dugnadsnett
+(at) nuug.no&lt;/a&gt; and IRC channel
+&lt;a href=&quot;irc://irc.freenode.net/#dugnadsnett.no&quot;&gt;#dugnadsnett.no&lt;/a&gt; to
+coordinate the work.  See also the NUUG blog post
+&lt;a href=&quot;http://www.nuug.no/news/E_postliste_og_IRC_kanal_for_Dugnadsnett_for_alle_i_Oslo.shtml&quot;&gt;announcing
+the mailing list and IRC channel&lt;/a&gt;.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Lets make a wireless community network in Oslo!</title>
+               <link>http://people.skolelinux.org/pere/blog/Lets_make_a_wireless_community_network_in_Oslo_.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lets_make_a_wireless_community_network_in_Oslo_.html</guid>
+                <pubDate>Wed, 13 Nov 2013 21:00:00 +0100</pubDate>
+               <description>&lt;p&gt;Today NUUG and Hackeriet announced
+&lt;a href=&quot;http://www.nuug.no/news/Bli_med___bygge_dugnadsnett_for_alle_i_Oslo.shtml&quot;&gt;our
+plans to join forces and create a wireless community network in
+Oslo&lt;/a&gt;.  The workshop to help people get started will take place
+Thursday 2013-11-28, but we already are collecting the geolocation of
+people joining forces to make this happen.  We have
+&lt;a href=&quot;https://github.com/petterreinholdtsen/meshfx-node/blob/master/oslo-nodes.geojson&quot;&gt;9
+locations plotted on the map&lt;/a&gt;, but we will need more before we have
+a connected mesh spread across Oslo.  If this sound interesting to
+you, please join us at the workshop.  If you are too impatient to wait
+15 days, please join us on the IRC channel
+&lt;a href=&quot;irc://irc.freenode.net/%23nuug&quot;&gt;#nuug on irc.freenode.net&lt;/a&gt;
+right away. :)&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Running TP-Link MR3040 as a batman-adv mesh node using openwrt</title>
+               <link>http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</guid>
+                <pubDate>Sun, 10 Nov 2013 23:00:00 +0100</pubDate>
+               <description>&lt;p&gt;Continuing my research into mesh networking, I was recommended to
+use TP-Link 3040 and 3600 access points as mesh nodes, and the pair I
+bought arrived on Friday.  Here are my notes on how to set up the
+MR3040 as a mesh node using
+&lt;a href=&quot;http://www.openwrt.org/&quot;&gt;OpenWrt&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;I started by following the instructions on the OpenWRT wiki for
+&lt;a href=&quot;http://wiki.openwrt.org/toh/tp-link/tl-mr3040&quot;&gt;TL-MR3040&lt;/a&gt;,
+and downloaded
+&lt;a href=&quot;http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin&quot;&gt;the
+recommended firmware image&lt;/a&gt;
+(openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin) and
+uploaded it into the original web interface.  The flashing went fine,
+and the machine was available via telnet on the ethernet port.  After
+logging in and setting the root password, ssh was available and I
+could start to set it up as a batman-adv mesh node.&lt;/p&gt;
+
+&lt;p&gt;I started off by reading the instructions from
+&lt;a href=&quot;http://wirelessafrica.meraka.org.za/wiki/index.php?title=Antoine&#39;s_Research&quot;&gt;Wireless
+Africa&lt;/a&gt;, which had quite a lot of useful information, but
+eventually I followed the recipe from the Open Mesh wiki for
+&lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config&quot;&gt;using
+batman-adv on OpenWrt&lt;/a&gt;.  A small snag was the fact that the
+&lt;tt&gt;opkg install kmod-batman-adv&lt;/tt&gt; command did not work as it
+should.  The batman-adv kernel module would fail to load because its
+dependency crc16 was not already loaded.  I
+&lt;a href=&quot;https://dev.openwrt.org/ticket/14452&quot;&gt;reported the bug&lt;/a&gt; to
+the openwrt project and hope it will be fixed soon.  But the problem
+only seem to affect initial testing of batman-adv, as configuration
+seem to work when booting from scratch.&lt;/p&gt;
+
+&lt;p&gt;The setup is done using files in /etc/config/.  I did not bridge
+the Ethernet and mesh interfaces this time, to be able to hook up the
+box on my local network and log into it for configuration updates.
+The following files were changed and look like this after modifying
+them:&lt;/p&gt;
+
+&lt;p&gt;&lt;tt&gt;/etc/config/network&lt;/tt&gt;&lt;/p&gt;
+
+&lt;pre&gt;
+
+config interface &#39;loopback&#39;
+        option ifname &#39;lo&#39;
+        option proto &#39;static&#39;
+        option ipaddr &#39;127.0.0.1&#39;
+        option netmask &#39;255.0.0.0&#39;
+
+config globals &#39;globals&#39;
+        option ula_prefix &#39;fdbf:4c12:3fed::/48&#39;
+
+config interface &#39;lan&#39;
+        option ifname &#39;eth0&#39;
+        option type &#39;bridge&#39;
+        option proto &#39;dhcp&#39;
+        option ipaddr &#39;192.168.1.1&#39;
+        option netmask &#39;255.255.255.0&#39;
+        option hostname &#39;tl-mr3040&#39;
+        option ip6assign &#39;60&#39;
+
+config interface &#39;mesh&#39;
+        option ifname &#39;adhoc0&#39;
+        option mtu &#39;1528&#39;
+        option proto &#39;batadv&#39;
+        option mesh &#39;bat0&#39;
+&lt;/pre&gt;
+
+&lt;p&gt;&lt;tt&gt;/etc/config/wireless&lt;/tt&gt;&lt;/p&gt;
+&lt;pre&gt;
+
+config wifi-device &#39;radio0&#39;
+        option type &#39;mac80211&#39;
+        option channel &#39;11&#39;
+        option hwmode &#39;11ng&#39;
+        option path &#39;platform/ar933x_wmac&#39;
+        option htmode &#39;HT20&#39;
+        list ht_capab &#39;SHORT-GI-20&#39;
+        list ht_capab &#39;SHORT-GI-40&#39;
+        list ht_capab &#39;RX-STBC1&#39;
+        list ht_capab &#39;DSSS_CCK-40&#39;
+        option disabled &#39;0&#39;
+
+config wifi-iface &#39;wmesh&#39;
+        option device &#39;radio0&#39;
+        option ifname &#39;adhoc0&#39;
+        option network &#39;mesh&#39;
+        option encryption &#39;none&#39;
+        option mode &#39;adhoc&#39;
+        option bssid &#39;02:BA:00:00:00:01&#39;
+        option ssid &#39;meshfx@hackeriet&#39;
+&lt;/pre&gt;
+&lt;p&gt;&lt;tt&gt;/etc/config/batman-adv&lt;/tt&gt;&lt;/p&gt;
+&lt;pre&gt;
+
+config &#39;mesh&#39; &#39;bat0&#39;
+        option interfaces &#39;adhoc0&#39;
+        option &#39;aggregated_ogms&#39;
+        option &#39;ap_isolation&#39;
+        option &#39;bonding&#39;
+        option &#39;fragmentation&#39;
+        option &#39;gw_bandwidth&#39;
+        option &#39;gw_mode&#39;
+        option &#39;gw_sel_class&#39;
+        option &#39;log_level&#39;
+        option &#39;orig_interval&#39;
+        option &#39;vis_mode&#39;
+        option &#39;bridge_loop_avoidance&#39;
+        option &#39;distributed_arp_table&#39;
+        option &#39;network_coding&#39;
+        option &#39;hop_penalty&#39;
+
+# yet another batX instance
+# config &#39;mesh&#39; &#39;bat5&#39;
+#       option &#39;interfaces&#39; &#39;second_mesh&#39;
+&lt;/pre&gt;
+
+&lt;p&gt;The mesh node is now operational.  I have yet to test its range,
+but I hope it is good.  I have not yet tested the TP-Link 3600 box
+still wrapped up in plastic.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Teaching vmdebootstrap to create Raspberry Pi SD card images</title>
+               <link>http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html</guid>
+                <pubDate>Sun, 27 Oct 2013 17:00:00 +0100</pubDate>
+               <description>&lt;p&gt;The
+&lt;a href=&quot;http://packages.qa.debian.org/v/vmdebootstrap.html&quot;&gt;vmdebootstrap&lt;/a&gt;
+program is a a very nice system to create virtual machine images.  It
+create a image file, add a partition table, mount it and run
+debootstrap in the mounted directory to create a Debian system on a
+stick.  Yesterday, I decided to try to teach it how to make images for
+&lt;a href=&quot;https://wiki.debian.org/RaspberryPi&quot;&gt;Raspberry Pi&lt;/a&gt;, as part
+of a plan to simplify the build system for
+&lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the FreedomBox
+project&lt;/a&gt;.  The FreedomBox project already uses vmdebootstrap for
+the virtualbox images, but its current build system made multistrap
+based system for Dreamplug images, and it is lacking support for
+Raspberry Pi.&lt;/p&gt;
+
+&lt;p&gt;Armed with the knowledge on how to build &quot;foreign&quot; (aka non-native
+architecture) chroots for Raspberry Pi, I dived into the vmdebootstrap
+code and adjusted it to be able to build armel images on my amd64
+Debian laptop.  I ended up giving vmdebootstrap five new options,
+allowing me to replicate the image creation process I use to make
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html&quot;&gt;Debian
+Jessie based mesh node images for the Raspberry Pi&lt;/a&gt;.  First, the
+&lt;tt&gt;--foreign /path/to/binfm_handler&lt;/tt&gt; option tell vmdebootstrap to
+call debootstrap with --foreign and to copy the handler into the
+generated chroot before running the second stage.  This allow
+vmdebootstrap to create armel images on an amd64 host.  Next I added
+two new options &lt;tt&gt;--bootsize size&lt;/tt&gt; and &lt;tt&gt;--boottype
+fstype&lt;/tt&gt; to teach it to create a separate /boot/ partition with the
+given file system type, allowing me to create an image with a vfat
+partition for the /boot/ stuff.  I also added a &lt;tt&gt;--variant
+variant&lt;/tt&gt; option to allow me to create smaller images without the
+Debian base system packages installed.  Finally, I added an option
+&lt;tt&gt;--no-extlinux&lt;/tt&gt; to tell vmdebootstrap to not install extlinux
+as a boot loader.  It is not needed on the Raspberry Pi and probably
+most other non-x86 architectures.  The changes were accepted by the
+upstream author of vmdebootstrap yesterday and today, and is now
+available from
+&lt;a href=&quot;http://git.liw.fi/cgi-bin/cgit/cgit.cgi/vmdebootstrap/&quot;&gt;the
+upstream project page&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;To use it to build a Raspberry Pi image using Debian Jessie, first
+create a small script (the customize script) to add the non-free
+binary blob needed to boot the Raspberry Pi and the APT source
+list:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+#!/bin/sh
+set -e # Exit on first error
+rootdir=&quot;$1&quot;
+cd &quot;$rootdir&quot;
+cat &amp;lt;&amp;lt;EOF &gt; etc/apt/sources.list
+deb http://http.debian.net/debian/ jessie main contrib non-free
+EOF
+# Install non-free binary blob needed to boot Raspberry Pi.  This
+# install a kernel somewhere too.
+wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \
+    -O $rootdir/usr/bin/rpi-update
+chmod a+x $rootdir/usr/bin/rpi-update
+mkdir -p $rootdir/lib/modules
+touch $rootdir/boot/start.elf
+chroot $rootdir rpi-update
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;Next, fetch the latest vmdebootstrap script and call it like this
+to build the image:&lt;/p&gt;
+
+&lt;pre&gt;
+sudo ./vmdebootstrap \
+    --variant minbase \
+    --arch armel \
+    --distribution jessie \
+    --mirror http://http.debian.net/debian \
+    --image test.img \
+    --size 600M \
+    --bootsize 64M \
+    --boottype vfat \
+    --log-level debug \
+    --verbose \
+    --no-kernel \
+    --no-extlinux \
+    --root-password raspberry \
+    --hostname raspberrypi \
+    --foreign /usr/bin/qemu-arm-static \
+    --customize `pwd`/customize \
+    --package netbase \
+    --package git-core \
+    --package binutils \
+    --package ca-certificates \
+    --package wget \
+    --package kmod
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;The list of packages being installed are the ones needed by
+rpi-update to make the image bootable on the Raspberry Pi, with the
+exception of netbase, which is needed by debootstrap to find
+/etc/hosts with the minbase variant.  I really wish there was a way to
+set up an Raspberry Pi using only packages in the Debian archive, but
+that is not possible as far as I know, because it boots from the GPU
+using a non-free binary blob.&lt;/p&gt;
+
+&lt;p&gt;The build host need debootstrap, kpartx and qemu-user-static and
+probably a few others installed.  I have not checked the complete
+build dependency list.&lt;/p&gt;
+
+&lt;p&gt;The resulting image will not use the hardware floating point unit
+on the Raspberry PI, because the armel architecture in Debian is not
+optimized for that use.  So the images created will be a bit slower
+than &lt;a href=&quot;http://www.raspbian.org/&quot;&gt;Raspbian&lt;/a&gt; based images.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>A Raspberry Pi based batman-adv Mesh network node</title>
                <link>http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html</link>
        <item>
                <title>A Raspberry Pi based batman-adv Mesh network node</title>
                <link>http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html</link>
                 <pubDate>Mon, 21 Oct 2013 11:40:00 +0200</pubDate>
                <description>&lt;p&gt;The last few days I have been experimenting with
 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki&quot;&gt;the
                 <pubDate>Mon, 21 Oct 2013 11:40:00 +0200</pubDate>
                <description>&lt;p&gt;The last few days I have been experimenting with
 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki&quot;&gt;the
-batman-adv mech technology&lt;/a&gt;.  I want to gain some experience to see
+batman-adv mesh technology&lt;/a&gt;.  I want to gain some experience to see
 if it will fit &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the
 Freedombox project&lt;/a&gt;, and together with my neighbors try to build a
 mesh network around the park where I live.  Batman-adv is a layer 2
 if it will fit &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the
 Freedombox project&lt;/a&gt;, and together with my neighbors try to build a
 mesh network around the park where I live.  Batman-adv is a layer 2