Bureaucrats, oversight, Administrators
1,196
edits
Tunabananas (talk | contribs) (Bit of cleanup; Moved OpenWRT image build instructions to a separate page.) |
|||
Line 1: | Line 1: | ||
The following | The following walkthrough assumes you're using linux and you have [https://help.ubuntu.com/community/UsingTheTerminal knowledge of the terminal]. The basic idea of getting a node (router) on the mesh consists of flashing (copying files to [https://en.wikipedia.org/wiki/Flash_memory flash memory]) an operating system to the node and installing additional drivers and packages. We use [https://openwrt.org/ OpenWRT] as the operating system on our embedded devices (routers), then connect to the node (via [https://en.wikipedia.org/wiki/Secure_Shell SSH]), install the related software and configure it. This operating system is meant to fit on a small amount (4MB) of flash memory. | ||
To build an OpenWRT image from scratch, visit this How To: [[Mesh/Build An OpenWRT Image]] | |||
=Installing OpenWRT= | =Installing OpenWRT= | ||
Line 104: | Line 62: | ||
curl -F 'nil=nil' http://ubnt:ubnt@192.168.1.20/fwflash.cgi | curl -F 'nil=nil' http://ubnt:ubnt@192.168.1.20/fwflash.cgi | ||
echo "FLASHING IN PROGRESS - It will be complete when the system displays two solid green lights for ten seconds." | echo "FLASHING IN PROGRESS - It will be complete when the system displays two solid green lights for ten seconds." | ||
Note, that if you're flashing AirOS instead, at least the Bullet M5 series will remember setting between firmware upgrades and others may do so too. To reset username / password / ip address and other settings to factory default, first let the router boot, then press and hold the reset button until more lights come on and release. Wait for the factory reset to complete (a minute or two) and try to access 192.168.1.1 in a browser (ensure that your own IP is in the 192.168.1.x range). Note: This procedure seems to have no effect on the Bullet 2 HP, but works on the Bullet M5. It could be that the Bullet 2 HP does not persist settings across firmware upgrades, and so doesn't have the factory reset procedure. When flashing AirOS on the PicoStation, only one green light will be on when the flash is complete. | Note, that if you're flashing AirOS instead, at least the Bullet M5 series will remember setting between firmware upgrades and others may do so too. To reset username / password / ip address and other settings to factory default, first let the router boot, then press and hold the reset button until more lights come on and release. Wait for the factory reset to complete (a minute or two) and try to access 192.168.1.1 in a browser (ensure that your own IP is in the 192.168.1.x range). Note: This procedure seems to have no effect on the Bullet 2 HP, but works on the Bullet M5. It could be that the Bullet 2 HP does not persist settings across firmware upgrades, and so doesn't have the factory reset procedure. When flashing AirOS on the PicoStation, only one green light will be on when the flash is complete. | ||
Line 194: | Line 151: | ||
option ssid 'sudomesh-backchannel' # You should change the ssid to be unique for development purposes, but for meshing this should be the same for all routers on the mesh | option ssid 'sudomesh-backchannel' # You should change the ssid to be unique for development purposes, but for meshing this should be the same for all routers on the mesh | ||
</pre> | </pre> | ||
==Step Two: Network Configuration == | ==Step Two: Network Configuration == | ||
Line 240: | Line 195: | ||
==Step Four: System Configuration == | ==Step Four: System Configuration == | ||
In /etc/config/system you can set hostname and timezone. This is not strictly necessary for BATMAN to work, but it should be set correctly. The below timezone is correct for the | In /etc/config/system you can set hostname and timezone. This is not strictly necessary for BATMAN to work, but it should be set correctly. The below timezone is correct for the Pacific U.S. timezone (PST). The naming convention for hostnames is: <router-model-name>-<some-unique-name-you-choose> | ||
<pre> | <pre> |