Difference between revisions of "Mesh/WalkThrough"

188 bytes added ,  19:56, 16 April 2016
m
converted ubi-flasher commands to preformatted text. Added note about proper IP for configuring a new node.
m (modified to use preformatted for cmdline)
m (converted ubi-flasher commands to preformatted text. Added note about proper IP for configuring a new node.)
Line 65: Line 65:
*Click Install<br>
*Click Install<br>


=Configuring Your OpenWRT Router to Work on the Sudomesh Network=
= Configuring Your OpenWRT Router to Work on the Sudomesh Network =
 
These are the steps for configuring your newly flashed router. It will retrieve hardware information about the node, prompt you for a few config settings, and then query the meshnode database to get an available IP address and subnet.
These are the steps for configuring your newly flashed router. It will retrieve hardware information about the node, prompt you for a few config settings, and then query the meshnode database to get an available IP address and subnet.


Open your terminal in Linux and type:<br>
Open your terminal in Linux and type:<br>


<code>git clone https://github.com/sudomesh/makenode.git</code>
<pre>
git clone https://github.com/sudomesh/makenode.git
cd makenode
npm install
cp settings.js.example settings.js
</pre>


<code>cd makenode</code>
The default settings in `settings.js` should suffice in most cases, but if you need to make changes, do them in 'settings.js'.
 
<code>npm install</code>
 
<code>cp settings.js.example settings.js</code>


The default settings in `settings.js` should suffice in most cases, but if you need to make changes, do them in 'settings.js'.  
A freshly flashed node will be setup on 172.22.0.1, so you will need to configure your machine to use IP address 172.22.0.9 (subnet 255.255.255.0, gateway: 0.0.0.0). Once your network configuration is refreshed, use the following command to run the script and configure your node:


<code>./makenode.js</code>
<code>./makenode.js</code>


If you get the error "no such file or directory":<br>
open a new terminal<br>


if you get the error "no such file or directory":<br>
open a new terminal<br>
<code>sudo ln -s nodejs node</code>
<code>sudo ln -s nodejs node</code>
(this will point node to nodejs)<br>
(this will point node to nodejs)<br>
Line 155: Line 157:


In your linux terminal, type:<br>
In your linux terminal, type:<br>
<code>git clone https://github.com/sudomesh/ubi-flasher</code><br>
<pre>
<code>cd ubi-flasher</code><br>
git clone https://github.com/sudomesh/ubi-flasher
<code>npm install</code><br>
cd ubi-flasher
<code>./flasher.js '<path to firmware>'</code><br>
npm install
./flasher.js '<path to firmware>'
</pre>


The terminal will tell you "The firmware has been successfully sent to the router. In a few seconds, the router should begin flashing its four status LEDs sweeping from left to right, then right to left (or up down, down up). This means that the router is flashing itself with the new firmware. Once the router goes back to having only the power LED lit, the router has been successfully flashed."<br>
The terminal will tell you "The firmware has been successfully sent to the router. In a few seconds, the router should begin flashing its four status LEDs sweeping from left to right, then right to left (or up down, down up). This means that the router is flashing itself with the new firmware. Once the router goes back to having only the power LED lit, the router has been successfully flashed."<br>
Wait until the antenna has only the power LED lit and you're done.
Wait until the antenna has only the power LED lit and you're done.
128

edits