HSMM-PI
(Posted 2014-08-23 15:23:08 by corey_reichle)

Below is your shopping list, and hardware required (Well, at least that I
know of) to build an HSMM-Pi node.
Shopping List (Amazon Links included):



       * Raspberry Pi Kit - Pi board, case, and power supply
(http://www.amazon.com/CanaKit-Raspberry-Basic-Premium-Supply/dp/B00DG9D63A/ref=sr_1_1?s=electronics&ie=UTF8&qid=1408664587&sr=1-1&keywords=CanaKit+Raspberry+Pi+%28512+MB%29+Basic+Kit+%28Raspberry+Pi+512+MB+%2B+Premium+Black+Case+%2B+Micro+USB+Power+Supply%29
[
http://www.amazon.com/CanaKit-Raspberry-Basic-Premium-Supply/dp/B00DG9D63A/ref=sr_1_1?s=electronics&ie=UTF8&qid=1408664587&sr=1-1&keywords=CanaKit+Raspberry+Pi+%28512+MB%29+Basic+Kit+%28Raspberry+Pi+512+MB+%2B+Premium+Black+Case+%2B+Micro+USB+Power+Supply%29
])

       * MediaTek 7160
(http://www.amazon.com/150Mbps-Wireless-Adapter-802-11n-Antenna/dp/B008BZ40HA/ref=sr_1_1?s=electronics&ie=UTF8&qid=undefined&sr=1-1&keywords=qibox+ralink
[
http://www.amazon.com/150Mbps-Wireless-Adapter-802-11n-Antenna/dp/B008BZ40HA/ref=sr_1_1?s=electronics&ie=UTF8&qid=undefined&sr=1-1&keywords=qibox+ralink
])

       * 8GB SD Card
(http://www.amazon.com/PNY-Optima-Class-Memory-P-SDHC8G4H-GE/dp/B000P5XLOW/ref=sr_1_11?s=electronics&ie=UTF8&qid=1408664684&sr=1-11&keywords=8GB+SD+Card
[
http://www.amazon.com/PNY-Optima-Class-Memory-P-SDHC8G4H-GE/dp/B000P5XLOW/ref=sr_1_11?s=electronics&ie=UTF8&qid=1408664684&sr=1-11&keywords=8GB+SD+Card
])


Shortcut: Use Win32DiskImager (https://wiki.ubuntu.com/Win32DiskImager [
https://wiki.ubuntu.com/Win32DiskImager ]) to burn the above image to your
SD card. It'll work out of the box: Connect it to your router, connect to
it with a web browser, configure, and reboot. The image can be found here:
http://bit.ly/1kZa6id [ http://bit.ly/1kZa6id ]
The below has shamelessly cribbed from the following:
http://va3paw.com/2014/03/16/hsmm-mesh-on-raspberry-pi/ [
http://va3paw.com/2014/03/16/hsmm-mesh-on-raspberry-pi/ ]
https://github.com/urlgrey/hsmm-pi [ https://github.com/urlgrey/hsmm-pi ]
Long steps: - For ralink USB cards (mediatek 7601):


       * Execute the following:




sudo bash
apt-get update
apt-get upgrade
reboot




rpi-update
reboot




cd /usr/src
git clone https://github.com/raspberrypi/linux.git
sudo ln -s /usr/src/linux /lib/modules/`uname -r`/build
cd linux
make mrproper
zcat /proc/config.gz > .config
cp .config .config.org
sed -i 's/^CONFIG_CROSS_COMPILE.*/CONFIG_CROSS_COMPILE=""/' .config
make modules_prepare
wget
https://raw.github.com/raspberrypi/firmware/master/extra/Module.symvers
cd /usr/src
wget
"http://www.mediatek.com/AmazonS3/Downloads/linux/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2"
tar -xvjpf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
cd /usr/src/DPO*
sed -i "s/ULONG RTDebugLevel = RT_DEBUG_TRACE\;/ULONG RTDebugLevel = 0\;/"
os/linux/rt_linux.c
make
make install
exit




       * This part is needed for any wireless card, even if it already works for
the Pi out of the box. This installs the HSMM Pi software.




cd ~
git clone https://github.com/urlgrey/hsmm-pi.git
cd hsmm-pi
git checkout tags/v0.4.0
sh install.sh


Now, go and configure your node by connecting to it via port 80.
IMPORTANT!!! Do not reboot the pi until you've configured the node.
Otherwise, it will not bring up any of it's interfaces, and you'll need
console mode to bring up an IP.
If this node will be connected to your router, in order to supply internet
access to the mesh, leave it as a WAN device. If you will have clients
connected (Via it's eth interface) configure it as a "LAN" node. The pi has
a neat feature where the ethernet connection doesn't require a crossover
cable, it will autonegotiate the connection even with a straight cable. So,
connect it to your laptop

--------

There are no comments on this post.


To submit a comment on this post, email [email protected] or visit us
on the web [ https://www.coreyreichle.com ].