<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sudoroom.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aetilley</id>
	<title>Sudo Room - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://sudoroom.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aetilley"/>
	<link rel="alternate" type="text/html" href="https://sudoroom.org/wiki/Special:Contributions/Aetilley"/>
	<updated>2026-04-27T04:48:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/Flashing_extender_nodes&amp;diff=11041</id>
		<title>Mesh/Flashing extender nodes</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/Flashing_extender_nodes&amp;diff=11041"/>
		<updated>2018-02-22T03:40:33Z</updated>

		<summary type="html">&lt;p&gt;Aetilley: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Download the Image File For a Extender Node ==&lt;br /&gt;
&lt;br /&gt;
The extender nodes that we currently support are:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Notes !! OpenWRT Doc !! Firmware Image&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanostation M2 and M5 || Newer models need [[#Downgrading_to_earlier_AirOS|AirOS downgrade]] before flashing!  Note that this will almost certainly require a USB to Serial connection (see below).|| [https://wiki.openwrt.org/toh/ubiquiti/nanostationm5 OpenWRT Docs] || firmware: [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin pre 2015 M5 versions and all M2 versions] or [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin 2015-2016 M5 versions]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Picostation 2 || Previous generation 802.11g (not the same as M2) || [https://wiki.openwrt.org/toh/ubiquiti/picostation2 OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ath25.extender-node/openwrt-ath25-ubnt2-pico2-squashfs.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Picostation M2 || || [https://wiki.openwrt.org/toh/ubiquiti/picostationm2 OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanobeam M2 and M5 || NBEâ€‘M2â€‘13 and NBEâ€‘M5â€‘16 work but some (earlier?) NBEâ€‘M5â€‘19 have ethernet port issues. Newer models need [[#Downgrading_to_earlier_AirOS|AirOS downgrade]] before flashing! || [https://wiki.openwrt.org/toh/ubiquiti/nanobeam OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-loco-m-xw-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanobridge M2 and M5 || || Same as pre-2015 Nanostation M || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Bullet M2 and M5 || || [https://wiki.openwrt.org/toh/ubiquiti/bullet OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Downgrading to earlier AirOS ==&lt;br /&gt;
&lt;br /&gt;
Anything with version 5.6 of AirOS and above needs to be downgraded to an earlier AirOS version before you can flash it with OpenWRT. If you don't know if you need to do this then proceed to the next section (Flash the Extender Node) and come back here if you get an error saying &amp;quot;Firmware check failed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you get this error DO NOT try to flash sudowrt/openwrt through the AirOS web interface. It will succeed and you will be stuck with a partially working system (all changes lost on every reboot) and no easy way to get it fully working.&lt;br /&gt;
&lt;br /&gt;
The solution is to use the built-in AirOS web UI to upload a version 5.5 of AirOS. This will downgrade the bootloader to a point where it's compatible with sudowrt/openwrt. Here's how:&lt;br /&gt;
&lt;br /&gt;
XM.v6.0.4 (v6.0.4) firmware version does not appear to be downgradable via the following method, use command-line method.&lt;br /&gt;
&lt;br /&gt;
* Download the v5.5 AirOS firmware&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XW-fw/v5.5.10/XW.v5.5.10-u2.28005.150723.1358.bin&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XN-fw/v5.5.11/XM.v5.5.11.28002.150723.1344.bin&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XN-fw/v5.5.11/TI.v5.5.11.28002.150723.1518.bin&lt;br /&gt;
&lt;br /&gt;
* Configure your wired ethernet interface to use IP: 192.168.1.10, subnet: 255.255.255.0&lt;br /&gt;
* Plug one Ethernet cable into your laptop on one end and into the &amp;quot;LAN&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Plug another Ethernet cable into your node/router on one end and into the &amp;quot;POE&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Power on the router.&lt;br /&gt;
* Wait for a couple of minutes.&lt;br /&gt;
* Ensure you're not connected to a wifi network that has an 192.168.1.x IP range. Disconnect/disable your wifi if you're unsure.&lt;br /&gt;
* In your browser go to http://192.168.1.20&lt;br /&gt;
* Log in using the credentials username: ubnt and password: ubnt&lt;br /&gt;
* Click the &amp;quot;System&amp;quot; tab.&lt;br /&gt;
* Click the &amp;quot;Browse&amp;quot; button next to the &amp;quot;Upload Firmware&amp;quot; box &lt;br /&gt;
* Select the XW.v5.5.10.bin file that you downloaded earlier.&lt;br /&gt;
* Click &amp;quot;Upload&amp;quot;.&lt;br /&gt;
* After uploading you will be asked if you want to upgrade/install the firmware. Click yes/accept.&lt;br /&gt;
* Let the router finish flashing and wait for it to fully reboot before proceeding to flash sudowrt as described in the next section.&lt;br /&gt;
&lt;br /&gt;
command-line method:&lt;br /&gt;
&lt;br /&gt;
$ ssh-keygen -f &amp;quot;/home/yourusername/.ssh/known_hosts&amp;quot; -R 192.168.1.20&lt;br /&gt;
&lt;br /&gt;
$ scp /''path''/''to''/''firmware''/XM.v5.5.11.28002.150723.1344.bin  ubnt@192.168.1.20:/tmp/fwupdate.bin&lt;br /&gt;
&lt;br /&gt;
$ ssh ubnt@192.168.1.20 (password is ubnt)&lt;br /&gt;
&lt;br /&gt;
$ /sbin/fwupdate -m&lt;br /&gt;
&lt;br /&gt;
$ :)&lt;br /&gt;
&lt;br /&gt;
== Flash the Extender Node ==&lt;br /&gt;
&lt;br /&gt;
* Configure your wired ethernet interface to use IP: 192.168.1.10, subnet: 255.255.255.0&lt;br /&gt;
* Plug one Ethernet cable into your laptop on one end and into the &amp;quot;LAN&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Plug another Ethernet cable into your node/router on one end and into the &amp;quot;POE&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Push a pin into the reset hole and hold it.&lt;br /&gt;
* With the pin held down, plug in the power to the power-over-ethernet power supply.&lt;br /&gt;
* Watch the lights on the antenna - they will all flash together a few times, then they will flash up and down.&lt;br /&gt;
* Once the lights on the antenna are flashing up and down, you can let go of the pin.&lt;br /&gt;
&lt;br /&gt;
You should be able to ping the extender at 192.168.1.20.&lt;br /&gt;
&lt;br /&gt;
  $ ping 192.168.1.20&lt;br /&gt;
  PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data.&lt;br /&gt;
  64 bytes from 192.168.1.20: icmp_seq=1 ttl=64 time=1.54 ms&lt;br /&gt;
  64 bytes from 192.168.1.20: icmp_seq=2 ttl=64 time=0.826 ms&lt;br /&gt;
&lt;br /&gt;
In your Linux terminal, type:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/sudomesh/ubi-flasher&lt;br /&gt;
  cd ubi-flasher&lt;br /&gt;
  npm install&lt;br /&gt;
  ./flasher.js '&amp;lt;path to firmware&amp;gt;'&lt;br /&gt;
&lt;br /&gt;
The terminal will tell you &amp;quot;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.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Wait until the antenna has only the power LED lit and you're done.&lt;br /&gt;
&lt;br /&gt;
Reconfigure your machine with the following static network configuration.&lt;br /&gt;
&lt;br /&gt;
* IP Address: 172.22.0.10&lt;br /&gt;
* Subnet mask:  255.255.255.0&lt;br /&gt;
* Gateway: 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
See Network Configuration Guides: [https://sudoroom.org/wiki/Mesh/Network%20Configuration%20for%20Linux Linux] [https://sudoroom.org/wiki/Mesh/Network%20Configuration%20for%20MacOS%20X Mac]&lt;br /&gt;
&lt;br /&gt;
If you ping the extender node on 172.22.0.2 and it responds, it should be ready to connect to your home node on the appropriate wired Ethernet port.&lt;br /&gt;
&lt;br /&gt;
  $ ping 172.22.0.2&lt;br /&gt;
  PING 172.22.0.2 (172.22.0.2) 56(84) bytes of data.&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=1 ttl=64 time=0.617 ms&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=2 ttl=64 time=0.316 ms&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=3 ttl=64 time=0.398 ms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extender Detection ==&lt;br /&gt;
&lt;br /&gt;
Log into your home node via SSH, and tail &amp;lt;tt&amp;gt;/var/log/messages&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver: eth0.3: Physical disconnect detected&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver: Listening on interface eth0.3:&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver:   client IP: 100.64.37.3&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver:   client netmask 26&lt;br /&gt;
  Sun May  8 00:51:12 2016 daemon.debug notdhcpserver: eth0.3: Recieved HEARTBEAT for interface that hadn't been ACKed.&lt;br /&gt;
  ...&lt;br /&gt;
  Sun May  8 00:54:00 2016 daemon.debug notdhcpserver: eth0.3: Recieved HEARTBEAT for interface that hadn't been ACKed.&lt;br /&gt;
  Sun May  8 00:54:00 2016 daemon.info hostapd: priv5: STA 80:e6:50:0e:fe:6e WPA: group key handshake completed (RSN)&lt;br /&gt;
  Sun May  8 00:54:04 2016 daemon.debug notdhcpserver: eth0.2: Received lease request&lt;br /&gt;
  Sun May  8 00:54:04 2016 daemon.debug notdhcpserver: eth0.3: sending response (with ssl certificate)&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received ACK&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Running up hook script&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received redundant ACK&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received redundant ACK&lt;br /&gt;
&lt;br /&gt;
There should be a debug message in the log from notdhcpserver concerning the extender node.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== USB to Serial Connection ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you experience trouble flashing your device via the web interface, or via the TFTP image upload method, you'll want to establish a serial connection to troubleshoot further. Methods for flashing your device involving a serial connection may become more common as devices adopt configurations to lock down [http://www.networkworld.com/article/3038722/mobile-wireless/manufacturers-start-to-lock-down-wi-fi-router-firmware-thanks-fcc.html wi-fi router firmware] to prevent flashing.&lt;br /&gt;
&lt;br /&gt;
The following notes describe steps to interface with a Nanostation M5 (NSM5) via the serial interface. &lt;br /&gt;
&lt;br /&gt;
==== Order a USB to Serial Converter ====&lt;br /&gt;
&lt;br /&gt;
USB to serial converter devices exist at a cost of $4 - $8 online, with much lower pricing and longer delivery times if ordered from China. Search for &amp;quot;USB to UART TTL&amp;quot;, including &amp;quot;5 pin&amp;quot; in the search. Make sure the specifications do not mention anything other than 3.3 volts.&lt;br /&gt;
&lt;br /&gt;
Mac OS X users may need to install a device driver for their device. For example, for devices using the CP210X chip, you can download the [https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx#mac CP210x USB to UART Bridge VCP Driver], which is made available as &amp;lt;tt&amp;gt;/dev/tty.SLAB_USBtoUART&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Connecting to Serial ====&lt;br /&gt;
&lt;br /&gt;
You will need to connect the following pins from the converter to the pins on the device.&lt;br /&gt;
&lt;br /&gt;
* Ground (GND)&lt;br /&gt;
* Serial Out (Transmit / TX)&lt;br /&gt;
* Serial In (Receive / RX)&lt;br /&gt;
&lt;br /&gt;
Begin by connecting the Ground of the converter to the Ground of the device. Next connect the Transmit/TX of the converter to the Receive/RX of the device, then connect the Receive/RX of the converter to the Transmit/TX of the device.&lt;br /&gt;
&lt;br /&gt;
Nanostation M5 (NSM5) Example:&lt;br /&gt;
&lt;br /&gt;
[[File:CP2102-usb-to-serial-converter.jpg|400px|KEDSUMÂ® CP2102 Module STC Download Cable USB 2.0 to TTL 6PIN Serial Converter For STC]]&lt;br /&gt;
&lt;br /&gt;
[[File:Ubiquity-NSM5-serial-connectors.jpg|400px|Ubiquiti Nanostation NSM5 - Serial pins with connections]]&lt;br /&gt;
&lt;br /&gt;
==== Serial Communications Program ====&lt;br /&gt;
&lt;br /&gt;
You need to install a serial communication program. Linux users can use Minicom.&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install minicom&lt;br /&gt;
&lt;br /&gt;
Mac OS X users can as well&lt;br /&gt;
&lt;br /&gt;
  brew install minicom&lt;br /&gt;
&lt;br /&gt;
By default the Minicom program will attempt to use /dev/tty8, and will also attempt to initialize the device (expecting a modem) by default.&lt;br /&gt;
&lt;br /&gt;
  $ minicom&lt;br /&gt;
  minicom: cannot open /dev/tty8: Permission denied&lt;br /&gt;
&lt;br /&gt;
Run the program so that it starts the program on the USB converter that is connected by adding &amp;lt;tt&amp;gt;-D /dev/ttyUSB0&amp;lt;/tt&amp;gt;, and specify that it should skip initialization by adding &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt;. Mac users may need to reference a different device (such as &amp;lt;tt&amp;gt;/dev/tty.SLAB_USBtoUART&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
You can also specify from the command line that it use the baud rate and '8N1' settings specified below by including &amp;lt;tt&amp;gt;-b 115200 -8&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  sudo minicom -D /dev/ttyUSB0 -o -b 115200 -8&lt;br /&gt;
&lt;br /&gt;
In Minicom, CTRL-A to get settings, then Press O, to access settings. Mac users will need to discover the proper META key to use with their Terminal program. iTerm uses the 'ESC' key.&lt;br /&gt;
&lt;br /&gt;
Go to Serial Port Setup, use these settings:&lt;br /&gt;
&lt;br /&gt;
* Set the serial device (should be /dev/tty/USB0)&lt;br /&gt;
* Baud Rate (Bits Per Second): 115200&lt;br /&gt;
* Settings '8N1' (short hand for 8 bits, no parity, 1 stop bit)&lt;br /&gt;
* Turn off hardware and software flow control&lt;br /&gt;
&lt;br /&gt;
Reboot the device, and it will let you drop into a command line. You will then have to figure out how to enable the network from the boot loader (Uboot or Redboot) and transfer the firmware to the device to flash it.&lt;br /&gt;
&lt;br /&gt;
==== Interupting Boot ====&lt;br /&gt;
&lt;br /&gt;
The device will not detect the key you press unless Minicom is configured properly.&lt;br /&gt;
&lt;br /&gt;
* To access the Help screen, Press CTRL-A, then press Z.&lt;br /&gt;
* To access the configuration/settings, press CTRL-A, then press O.&lt;br /&gt;
&lt;br /&gt;
From the configuration window, select to view the 'Serial port setup'&lt;br /&gt;
&lt;br /&gt;
  $ sudo minicom -D /dev/ttyUSB0 -o -b 115200 -8&lt;br /&gt;
  Welcome to minicom 2.7&lt;br /&gt;
  &lt;br /&gt;
  OPTIONS: I18n &lt;br /&gt;
  Compiled on Jan  1 2014, 17:13:19.&lt;br /&gt;
  Port /dev/ttyUSB0, 21:47:56&lt;br /&gt;
  &lt;br /&gt;
  Press CTRL-A Z for help on special keys&lt;br /&gt;
  &lt;br /&gt;
              +-----[configuration]------+&lt;br /&gt;
              | Filenames and paths      |&lt;br /&gt;
              | File transfer protocols  |&lt;br /&gt;
              | Serial port setup        |&lt;br /&gt;
              | Modem and dialing        |&lt;br /&gt;
              | Screen and keyboard      |&lt;br /&gt;
              | Save setup as dfl        |&lt;br /&gt;
              | Save setup as..          |&lt;br /&gt;
              | Exit                     |&lt;br /&gt;
              +--------------------------+&lt;br /&gt;
  &lt;br /&gt;
  +-----------------------------------------------------------------------+&lt;br /&gt;
  | A -    Serial Device      : /dev/ttyUSB0                              |&lt;br /&gt;
  | B - Lockfile Location     : /var/lock                                 |&lt;br /&gt;
  | C -   Callin Program      :                                           |&lt;br /&gt;
  | D -  Callout Program      :                                           |&lt;br /&gt;
  | E -    Bps/Par/Bits       : 115200 8N1                                |&lt;br /&gt;
  | F - Hardware Flow Control : Yes                                       |&lt;br /&gt;
  | G - Software Flow Control : No                                        |&lt;br /&gt;
  |                                                                       |&lt;br /&gt;
  |    Change which setting?                                              |&lt;br /&gt;
  +-----------------------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
By default the Hardware Flow Control will be enabled. Press 'F' to disable Hardware Flow Control. Press ENTER to exit the Serial port setup window, and then select EXIT to go back to the program.&lt;br /&gt;
&lt;br /&gt;
At this point plug in the Ethernet cable to the 'Main' Ethernet port, with the other end connected to the 'POE' port on the Power Over Ethernet adapter that came with the device. As the device boots up, you'll see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
You'll need to make sure to press a key before it boots the default image.&lt;br /&gt;
&lt;br /&gt;
=== Picostation M2HP ===&lt;br /&gt;
&lt;br /&gt;
Insightful post on [https://www.strugglingcoder.info/index.php/tag/ubnt/ loading FreeBSD image] with help from serial communications. Could be useful with troubleshooting other models.&lt;br /&gt;
=== Nanostation M2 ===&lt;br /&gt;
==== Firmware check failure ====&lt;br /&gt;
&lt;br /&gt;
The following are simply notes. A solution to this issue is still pending.&lt;br /&gt;
&lt;br /&gt;
Flashing the Nanostation M2 (FCC ID: SWX-M2N) using the TFTP rescue mode will result in a Firmware check failure error.&lt;br /&gt;
&lt;br /&gt;
  $ tftp 192.168.1.20&lt;br /&gt;
  tftp&amp;gt; bin&lt;br /&gt;
  tftp&amp;gt; put openwrt-ar71xx-generic-om2p-squashfs-factory.bin&lt;br /&gt;
  Error code 2: Firmware check failed&lt;br /&gt;
  Sent 4609024 bytes in 12.6 seconds&lt;br /&gt;
&lt;br /&gt;
You can boot up the M2 with a serial connection similar to the instructions below concerning the Nanostation M5.&lt;br /&gt;
&lt;br /&gt;
  Board: Ubiquiti Networks XM board (rev 1.0 e012)&lt;br /&gt;
  DRAM:  32 MB&lt;br /&gt;
  Flash:  8 MB&lt;br /&gt;
  PCIe WLAN Module found (#1).&lt;br /&gt;
  Net:   eth0, eth1&lt;br /&gt;
  Hit any key to stop autoboot:  0 &lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: |&lt;br /&gt;
  Receiving file from 192.168.1.10:35456&lt;br /&gt;
  Received 4609501 bytes&lt;br /&gt;
  Firmware check failed! (-2)&lt;br /&gt;
&lt;br /&gt;
The method outlined for the Nanostation M5 below doesn't work with the M2.&lt;br /&gt;
&lt;br /&gt;
Update the firmware to [http://dl.ubnt.com/firmwares/XN-fw/v5.6.4/XM.v5.6.4.28924.160331.1253.bin airOS for XM board firmware v5.6.4].&lt;br /&gt;
&lt;br /&gt;
Serial Connection:&lt;br /&gt;
&lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
&lt;br /&gt;
Terminal:&lt;br /&gt;
&lt;br /&gt;
  $ tftp 192.168.1.20&lt;br /&gt;
  tftp&amp;gt; bin&lt;br /&gt;
  tftp&amp;gt; put XM.v5.6.4.28924.160331.1253.bin&lt;br /&gt;
  Sent 7537129 bytes in 20.8 seconds&lt;br /&gt;
&lt;br /&gt;
Serial Connection:&lt;br /&gt;
&lt;br /&gt;
  Receiving file from 192.168.1.10:55113&lt;br /&gt;
  Received 7537129 bytes&lt;br /&gt;
  Firmware Version: XM.ar7240.v5.6.4.28924.160331.1253&lt;br /&gt;
  Setting U-Boot environment variables&lt;br /&gt;
  Un-Protected 1 sectors&lt;br /&gt;
  Erasing Flash.... done&lt;br /&gt;
  Erased 1 sectors&lt;br /&gt;
  Writing to Flash... done&lt;br /&gt;
  Protected 1 sectors&lt;br /&gt;
  Will not overwrite u-boot partition! Skipped.&lt;br /&gt;
  Copying partition 'kernel' to flash memory:&lt;br /&gt;
          erasing range 0x9F050000..0x9F14FFFF: ................ done&lt;br /&gt;
  Erased 16 sectors&lt;br /&gt;
          writing to address 0x9f050000, length 0x00100000 ...&lt;br /&gt;
  Copying partition 'rootfs' to flash memory:&lt;br /&gt;
          erasing range 0x9F150000..0x9F74FFFF: .............................................................................................e&lt;br /&gt;
  Erased 96 sectors&lt;br /&gt;
          writing to address 0x9f150000, length 0x00600000 ...&lt;br /&gt;
  &lt;br /&gt;
  Firmware update complete.&lt;br /&gt;
  &lt;br /&gt;
  Resetting...&lt;br /&gt;
  &lt;br /&gt;
  U-Boot 1.1.4.2-s594 (Dec  5 2012 - 15:23:07)&lt;br /&gt;
  &lt;br /&gt;
  Board: Ubiquiti Networks XM board (rev 1.0 e012)&lt;br /&gt;
&lt;br /&gt;
Attempting to run the same process after performing an official firmware update doesn't resolve the issue.&lt;br /&gt;
&lt;br /&gt;
=== Nanostation M5 ===&lt;br /&gt;
&lt;br /&gt;
Official firmware from Ubiquity Nanostation M5 (NSM5)&lt;br /&gt;
&lt;br /&gt;
* [https://www.ubnt.com/download/airmax-m/nanostationm/default/airos-xw-board-firmware-v564 airOS for XW board firmware v5.6.4]&lt;br /&gt;
&lt;br /&gt;
==== Firmware check failure ====&lt;br /&gt;
&lt;br /&gt;
Flashing the Nanostation M5 (FCC ID: SWX-NSM5D) using the TFTP rescue mode will result in a Firmware check failure error.&lt;br /&gt;
&lt;br /&gt;
If you attempt to flash the extender and receive a 'Firmware check failed' error, then you have a version of the NSM5 that is protected from being flashed via the default TFTP method. You will need to obtain a serial to USB interface (USB to UART TTL Module Serial Converter, 5 pin) and use it to flash the firmware.&lt;br /&gt;
&lt;br /&gt;
   $ ./flasher.js openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin&lt;br /&gt;
   Accessing http://192.168.1.20/login.cgi&lt;br /&gt;
   Connection timed out&lt;br /&gt;
   Sending openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin to 192.168.1.20 using tftp put&lt;br /&gt;
   [Error: (Server) Firmware check failed]&lt;br /&gt;
&lt;br /&gt;
When connected to the NSM5 via a serial connection, a similar error is displayed when attempting to load the SudoWRT firmware image.&lt;br /&gt;
&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Will reset device configuration (Reset button active after 10 seconds).&lt;br /&gt;
  Erasing sector 123..126&lt;br /&gt;
  &lt;br /&gt;
  First 0x7b last 0x7e sector size 0x10000&lt;br /&gt;
  .... done&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
  Receiving file from 192.168.1.10:49763&lt;br /&gt;
  Received 4325788 bytes&lt;br /&gt;
  Firmware check failed! (1)&lt;br /&gt;
&lt;br /&gt;
===== Drop into U-Boot Command Prompt =====&lt;br /&gt;
&lt;br /&gt;
Connect a USB to Serial adapter to the correct pins of the NSM5, as shown above. Unplug the Ethernet cable from the device, and then plug it back in to provide Power Over Ethernet once again, resulting in a reboot of the device.&lt;br /&gt;
&lt;br /&gt;
During the boot process, press a key to during the boot process to make the [https://wiki.openwrt.org/doc/techref/bootloader/uboot U-Boot] bootloader to drop into a command line prompt.&lt;br /&gt;
&lt;br /&gt;
  U-Boot 1.1.4-s958 (Jun 10 2015 - 10:56:20)&lt;br /&gt;
  &lt;br /&gt;
  DRAM:  64 MB&lt;br /&gt;
  Flash:  8 MB (0xc2, 0x20, 0x17)&lt;br /&gt;
  Net:   AR8236&lt;br /&gt;
  eth0, eth1&lt;br /&gt;
  Board: Ubiquiti Networks AR9342 board (e855-22585.1122.0030)&lt;br /&gt;
  Radio: 0777:e855&lt;br /&gt;
  Reset: Normal&lt;br /&gt;
  Hit any key to stop autoboot:  0&lt;br /&gt;
  ar7240&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Running TFTPd =====&lt;br /&gt;
&lt;br /&gt;
Although U-Boot can support two protocols for transfering files, kermit or y-modem, the bootloader does not support the &amp;lt;tt&amp;gt;loadb&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;loady&amp;lt;/tt&amp;gt;. Minicom only supports y-modem protocol.&lt;br /&gt;
&lt;br /&gt;
We do not have to resort to a direct serial file transfer however. The 'mtdparts' command that is used to define flash memory partitions can be used to reset the partition table to the defaults before running 'urescue' to start the TFTP server.&lt;br /&gt;
&lt;br /&gt;
  ar7240&amp;gt; help mtdparts&lt;br /&gt;
  mtdparts &lt;br /&gt;
      - list partition table&lt;br /&gt;
  mtdparts delall&lt;br /&gt;
      - delete all partitions&lt;br /&gt;
  mtdparts del part-id&lt;br /&gt;
      - delete partition (e.g. part-id = nand0,1)&lt;br /&gt;
  mtdparts add &amp;lt;mtd-dev&amp;gt; &amp;lt;size&amp;gt;[@&amp;lt;offset&amp;gt;] [&amp;lt;name&amp;gt;] [ro]&lt;br /&gt;
      - add partition&lt;br /&gt;
  mtdparts default&lt;br /&gt;
      - reset partition table to defaults&lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
&lt;br /&gt;
In your other terminal window, run the ubi-flasher script.&lt;br /&gt;
&lt;br /&gt;
  $ ./flasher.js /home/redconfetti/Projects/mesh/openwrt-images/nanostation-m5/2015-2016/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin&lt;br /&gt;
  Accessing http://192.168.1.20/login.cgi&lt;br /&gt;
  Connection timed out&lt;br /&gt;
  Sending /home/redconfetti/Projects/mesh/openwrt-images/nanostation-m5/2015-2016/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin to 192.168.1.20 using tftp put&lt;br /&gt;
  Firmware flashing begun!&lt;br /&gt;
  The firmware has been successfully sent to the router.&lt;br /&gt;
  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).&lt;br /&gt;
  This means that the router is flashing itself with the new firmware.&lt;br /&gt;
  Once the router goes back to having only the power LED lit, the router has been successfully flashed.&lt;br /&gt;
&lt;br /&gt;
In the terminal running Minicom you should see the firmware successfully flashing.&lt;br /&gt;
&lt;br /&gt;
  Receiving file from 192.168.1.10:52289&lt;br /&gt;
  Received 4325788 bytes&lt;br /&gt;
  Firmware Version: XW.ar934x.v6.0.0-OpenWrt-r47662&lt;br /&gt;
  Setting U-Boot environment variables&lt;br /&gt;
  Un-Protected 1 sectors&lt;br /&gt;
  Erasing Flash.... done&lt;br /&gt;
  Erased 1 sectors&lt;br /&gt;
  Writing to Flash... write addr: 9f040000&lt;br /&gt;
  done&lt;br /&gt;
  Protected 1 sectors&lt;br /&gt;
  Copying partition 'kernel' to flash memory:&lt;br /&gt;
  &lt;br /&gt;
  First 0x5 last 0x14 sector size 0x10000&lt;br /&gt;
  ................ done&lt;br /&gt;
  write addr: 9f050000&lt;br /&gt;
  Copying partition 'rootfs' to flash memory:&lt;br /&gt;
  &lt;br /&gt;
  First 0x15 last 0x6e sector size 0x10000&lt;br /&gt;
  .......................................................................................... done&lt;br /&gt;
  write addr: 9f150000&lt;br /&gt;
  &lt;br /&gt;
  Firmware update complete.&lt;br /&gt;
  &lt;br /&gt;
  Resetting...&lt;br /&gt;
  &lt;br /&gt;
  U-Boot 1.1.4-s958 (Jun 10 2015 - 10:56:20)&lt;br /&gt;
  &lt;br /&gt;
  DRAM:  64 MB&lt;br /&gt;
  Flash:  8 MB (0xc2, 0x20, 0x17)&lt;br /&gt;
  Net:   AR8236&lt;br /&gt;
  eth0, eth1&lt;br /&gt;
  Board: Ubiquiti Networks AR9342 board (e855-22585.1122.0030)&lt;br /&gt;
  Radio: 0777:e855&lt;br /&gt;
  Reset: Normal&lt;br /&gt;
  Hit any key to stop autoboot:  0 &lt;br /&gt;
  ## Booting image at 9f050000 ...&lt;br /&gt;
     Image Name:   MIPS OpenWrt Linux-3.18.23&lt;br /&gt;
     Created:      2015-12-01   0:03:51 UTC&lt;br /&gt;
     Image Type:   MIPS Linux Kernel Image (lzma compressed)&lt;br /&gt;
     Data Size:    1135619 Bytes =  1.1 MB&lt;br /&gt;
     Load Address: 80060000&lt;br /&gt;
     Entry Point:  80060000&lt;br /&gt;
     Verifying Checksum at 0x9f050040 ...OK&lt;br /&gt;
     Uncompressing Kernel Image ... OK&lt;br /&gt;
  &lt;br /&gt;
  Starting kernel ...&lt;br /&gt;
  &lt;br /&gt;
  [    0.000000] Linux version 3.18.23 (sudowrt-builder@build-test2) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47662) ) #2 Mon Nov 5&lt;br /&gt;
&lt;br /&gt;
After it reboots if you see the first line mention 'sudowrt-builder', the device is booting the SudoWRT firmware build.&lt;br /&gt;
&lt;br /&gt;
You can press ENTER once it is finished, and it should drop into the command line for the SudoWRT system.&lt;br /&gt;
&lt;br /&gt;
  [   25.650000] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x00000000&lt;br /&gt;
  [   25.660000] done.&lt;br /&gt;
  [   25.660000] jffs2: notice: (993) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and.&lt;br /&gt;
  &lt;br /&gt;
  BusyBox v1.23.2 (2015-11-30 18:48:50 EST) built-in shell (ash)&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
    ._______.___    ._______.______  ._____  .___    .___ .______  ._____  &lt;br /&gt;
    :_ ____/|   |   : .____/:_ _   \ :_ ___\ |   |   : __|:      \ :_ ___\ &lt;br /&gt;
    |   _/  |   |   | : _/\ |   |   ||   |___|   |   | : ||       ||   |___&lt;br /&gt;
    |   |   |   |/\ |   /  \| . |   ||   /  ||   |/\ |   ||   |   ||   /  |&lt;br /&gt;
    |_. |   |   /  \|_.: __/|. ____/ |. __  ||   /  \|   ||___|   ||. __  |&lt;br /&gt;
      :/    |______/   :/    :/       :/ |. ||______/|___|    |___| :/ |. |&lt;br /&gt;
      :                      :        :   :/                        :   :/ &lt;br /&gt;
                                          :                             : &lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
   sudo mesh v0.2 (fledgling.extender)&lt;br /&gt;
                                based on OpenWRT 15.05 (Chaos Calmer)&lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
   &amp;quot;When your rage is choking you, it is best to say nothing.&amp;quot; &lt;br /&gt;
                                              - Octavia E. Butler, Fledgling&lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
  &lt;br /&gt;
  root@sudomesh-node:/#&lt;br /&gt;
&lt;br /&gt;
== Extender Node Installation ==&lt;br /&gt;
=== Installation Order ===&lt;br /&gt;
#Flash home nodes and extender nodes&lt;br /&gt;
#Get on roof and determine which direction to face the extender nodes&lt;br /&gt;
#Install J-Pole&lt;br /&gt;
#Crimp end onto Ethernet cable&lt;br /&gt;
#Run Ethernet cable from j-pole down to location of home node (either through a soffit indoors or to an outdoor enclosure)&lt;br /&gt;
#Crimp other end of Ethernet cable and connect to home node via a POE adaptor&lt;br /&gt;
#Install extender node on J-Pole using zip-ties - check lights to make sure unit is powered up&lt;br /&gt;
#Walk around the neighborhood to check the signal&lt;br /&gt;
&lt;br /&gt;
=== Gear Checklist ===&lt;br /&gt;
	&lt;br /&gt;
Protective and personal gear&lt;br /&gt;
*Wear clothes you can get dirty and sturdy boots for roof walking&lt;br /&gt;
*Sunscreen&lt;br /&gt;
*Sunglasses&lt;br /&gt;
*Pocketknife (for cutting zip ties etc)&lt;br /&gt;
*Ladder&lt;br /&gt;
*Safety harness &amp;amp; rope in a bucket&lt;br /&gt;
*Smart phone (to check signal and take pictures)&lt;br /&gt;
Home node gear&lt;br /&gt;
*2 flashed Western Digital Mynet N600 Home Nodes&lt;br /&gt;
*paperclip (to reset equipment)&lt;br /&gt;
*Laptop (to configure equipment)&lt;br /&gt;
*Plastic outdoor enclosure for router (optional)&lt;br /&gt;
*Power Strip&lt;br /&gt;
J-Pole gear&lt;br /&gt;
*J-Pole&lt;br /&gt;
*Latex gloves (for dealing with roofing sealant)&lt;br /&gt;
*Roofing sealant&lt;br /&gt;
*Ratchet set - 10mm for small bolts, 13mm for large bolts&lt;br /&gt;
*Corldless Drill&lt;br /&gt;
*3/16&amp;quot; drill bit for J-pole bolts&lt;br /&gt;
*Steel One-Hole Conduit Straps (for holding Ethernet cable along eves)&lt;br /&gt;
*Screws for the Steel one-hole straps&lt;br /&gt;
Ethernet cable gear&lt;br /&gt;
*Ethernet Spool&lt;br /&gt;
*Ethernet Ends&lt;br /&gt;
*Ethernet Crimper&lt;br /&gt;
*Laminated card showing the Ethernet cable order&lt;br /&gt;
*Label Maker - so you can know which cable is which&lt;br /&gt;
Extender node gear&lt;br /&gt;
*Flashed Ubiquiti Nanostation M2 or M5 extender Node(s)&lt;br /&gt;
*Power over Ethernet (POE) adapters&lt;br /&gt;
*Zip Ties&lt;/div&gt;</summary>
		<author><name>Aetilley</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/Flashing_extender_nodes&amp;diff=11040</id>
		<title>Mesh/Flashing extender nodes</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/Flashing_extender_nodes&amp;diff=11040"/>
		<updated>2018-02-22T03:11:01Z</updated>

		<summary type="html">&lt;p&gt;Aetilley: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Download the Image File For a Extender Node ==&lt;br /&gt;
&lt;br /&gt;
The extender nodes that we currently support are:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Notes !! OpenWRT Doc !! Firmware Image&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanostation M2 and M5 || Newer models need [[#Downgrading_to_earlier_AirOS|AirOS downgrade]] before flashing!  Note that this will almost certainly require a USB to Serial connection (see below).|| [https://wiki.openwrt.org/toh/ubiquiti/nanostationm5 OpenWRT Docs] || firmware: [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin pre 2015 M5 versions and all M2 versions] or [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin 2015-2016 M5 versions]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Picostation 2 || Previous generation 802.11g (not the same as M2) || [https://wiki.openwrt.org/toh/ubiquiti/picostation2 OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ath25.extender-node/openwrt-ath25-ubnt2-pico2-squashfs.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Picostation M2 || || [https://wiki.openwrt.org/toh/ubiquiti/picostationm2 OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanobeam M2 and M5 || NBEâ€‘M2â€‘13 and NBEâ€‘M5â€‘16 work but some (earlier?) NBEâ€‘M5â€‘19 have ethernet port issues. Newer models need [[#Downgrading_to_earlier_AirOS|AirOS downgrade]] before flashing! || [https://wiki.openwrt.org/toh/ubiquiti/nanobeam OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-loco-m-xw-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Nanobridge M2 and M5 || || Same as pre-2015 Nanostation M || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|-&lt;br /&gt;
| Ubiquiti Bullet M2 and M5 || || [https://wiki.openwrt.org/toh/ubiquiti/bullet OpenWRT Docs] || [https://builds.sudomesh.org/builds/sudowrt/fledgling/0.2.0/ar71xx.extender-node/openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-factory.bin firmware image]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Downgrading to earlier AirOS ==&lt;br /&gt;
&lt;br /&gt;
Anything with version 5.6 of AirOS and above needs to be downgraded to an earlier AirOS version before you can flash it with OpenWRT. If you don't know if you need to do this then proceed to the next section (Flash the Extender Node) and come back here if you get an error saying &amp;quot;Firmware check failed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you get this error DO NOT try to flash sudowrt/openwrt through the AirOS web interface. It will succeed and you will be stuck with a partially working system (all changes lost on every reboot) and no easy way to get it fully working.&lt;br /&gt;
&lt;br /&gt;
The solution is to use the built-in AirOS web UI to upload a version 5.5 of AirOS. This will downgrade the bootloader to a point where it's compatible with sudowrt/openwrt. Here's how:&lt;br /&gt;
&lt;br /&gt;
XM.v6.0.4 (v6.0.4) firmware version does not appear to be downgradable via the following method, use command-line method.&lt;br /&gt;
&lt;br /&gt;
* Download the v5.5 AirOS firmware&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XW-fw/v5.5.10/XW.v5.5.10-u2.28005.150723.1358.bin&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XN-fw/v5.5.11/XM.v5.5.11.28002.150723.1344.bin&lt;br /&gt;
&lt;br /&gt;
http://dl.ubnt.com/firmwares/XN-fw/v5.5.11/TI.v5.5.11.28002.150723.1518.bin&lt;br /&gt;
&lt;br /&gt;
* Configure your wired ethernet interface to use IP: 192.168.1.10, subnet: 255.255.255.0&lt;br /&gt;
* Plug one Ethernet cable into your laptop on one end and into the &amp;quot;LAN&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Plug another Ethernet cable into your node/router on one end and into the &amp;quot;POE&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Power on the router.&lt;br /&gt;
* Wait for a couple of minutes.&lt;br /&gt;
* Ensure you're not connected to a wifi network that has an 192.168.1.x IP range. Disconnect/disable your wifi if you're unsure.&lt;br /&gt;
* In your browser go to http://192.168.1.20&lt;br /&gt;
* Log in using the credentials username: ubnt and password: ubnt&lt;br /&gt;
* Click the &amp;quot;System&amp;quot; tab.&lt;br /&gt;
* Click the &amp;quot;Browse&amp;quot; button next to the &amp;quot;Upload Firmware&amp;quot; box &lt;br /&gt;
* Select the XW.v5.5.10.bin file that you downloaded earlier.&lt;br /&gt;
* Click &amp;quot;Upload&amp;quot;.&lt;br /&gt;
* After uploading you will be asked if you want to upgrade/install the firmware. Click yes/accept.&lt;br /&gt;
* Let the router finish flashing and wait for it to fully reboot before proceeding to flash sudowrt as described in the next section.&lt;br /&gt;
&lt;br /&gt;
command-line method:&lt;br /&gt;
&lt;br /&gt;
$ ssh-keygen -f &amp;quot;/home/yourusername/.ssh/known_hosts&amp;quot; -R 192.168.1.20&lt;br /&gt;
&lt;br /&gt;
$ scp /''path''/''to''/''firmware''/XM.v5.5.11.28002.150723.1344.bin  ubnt@192.168.1.20:/tmp/fwupdate.bin&lt;br /&gt;
&lt;br /&gt;
$ ssh ubnt@192.168.1.20 (password is ubnt)&lt;br /&gt;
&lt;br /&gt;
$ /sbin/fwupdate -m&lt;br /&gt;
&lt;br /&gt;
$ :)&lt;br /&gt;
&lt;br /&gt;
== Flash the Extender Node ==&lt;br /&gt;
&lt;br /&gt;
* Configure your wired ethernet interface to use IP: 192.168.1.10, subnet: 255.255.255.0&lt;br /&gt;
* Plug one Ethernet cable into your laptop on one end and into the &amp;quot;LAN&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Plug another Ethernet cable into your node/router on one end and into the &amp;quot;POE&amp;quot; port of the power-over-ethernet power supply on the other end.&lt;br /&gt;
* Push a pin into the reset hole and hold it.&lt;br /&gt;
* With the pin held down, plug in the power to the power-over-ethernet power supply.&lt;br /&gt;
* Watch the lights on the antenna - they will all flash together a few times, then they will flash up and down.&lt;br /&gt;
* Once the lights on the antenna are flashing up and down, you can let go of the pin.&lt;br /&gt;
&lt;br /&gt;
You should be able to ping the extender at 192.168.1.20.&lt;br /&gt;
&lt;br /&gt;
  $ ping 192.168.1.20&lt;br /&gt;
  PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data.&lt;br /&gt;
  64 bytes from 192.168.1.20: icmp_seq=1 ttl=64 time=1.54 ms&lt;br /&gt;
  64 bytes from 192.168.1.20: icmp_seq=2 ttl=64 time=0.826 ms&lt;br /&gt;
&lt;br /&gt;
In your Linux terminal, type:&lt;br /&gt;
&lt;br /&gt;
  git clone https://github.com/sudomesh/ubi-flasher&lt;br /&gt;
  cd ubi-flasher&lt;br /&gt;
  npm install&lt;br /&gt;
  ./flasher.js '&amp;lt;path to firmware&amp;gt;'&lt;br /&gt;
&lt;br /&gt;
The terminal will tell you &amp;quot;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.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Wait until the antenna has only the power LED lit and you're done.&lt;br /&gt;
&lt;br /&gt;
Reconfigure your machine with the following static network configuration.&lt;br /&gt;
&lt;br /&gt;
* IP Address: 172.22.0.10&lt;br /&gt;
* Subnet mask:  255.255.255.0&lt;br /&gt;
* Gateway: 0.0.0.0&lt;br /&gt;
&lt;br /&gt;
See Network Configuration Guides: [https://sudoroom.org/wiki/Mesh/Network%20Configuration%20for%20Linux Linux] [https://sudoroom.org/wiki/Mesh/Network%20Configuration%20for%20MacOS%20X Mac]&lt;br /&gt;
&lt;br /&gt;
If you ping the extender node on 172.22.0.2 and it responds, it should be ready to connect to your home node on the appropriate wired Ethernet port.&lt;br /&gt;
&lt;br /&gt;
  $ ping 172.22.0.2&lt;br /&gt;
  PING 172.22.0.2 (172.22.0.2) 56(84) bytes of data.&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=1 ttl=64 time=0.617 ms&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=2 ttl=64 time=0.316 ms&lt;br /&gt;
  64 bytes from 172.22.0.2: icmp_seq=3 ttl=64 time=0.398 ms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extender Detection ==&lt;br /&gt;
&lt;br /&gt;
Log into your home node via SSH, and tail &amp;lt;tt&amp;gt;/var/log/messages&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver: eth0.3: Physical disconnect detected&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver: Listening on interface eth0.3:&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver:   client IP: 100.64.37.3&lt;br /&gt;
  Sun May  8 00:51:08 2016 daemon.debug notdhcpserver:   client netmask 26&lt;br /&gt;
  Sun May  8 00:51:12 2016 daemon.debug notdhcpserver: eth0.3: Recieved HEARTBEAT for interface that hadn't been ACKed.&lt;br /&gt;
  ...&lt;br /&gt;
  Sun May  8 00:54:00 2016 daemon.debug notdhcpserver: eth0.3: Recieved HEARTBEAT for interface that hadn't been ACKed.&lt;br /&gt;
  Sun May  8 00:54:00 2016 daemon.info hostapd: priv5: STA 80:e6:50:0e:fe:6e WPA: group key handshake completed (RSN)&lt;br /&gt;
  Sun May  8 00:54:04 2016 daemon.debug notdhcpserver: eth0.2: Received lease request&lt;br /&gt;
  Sun May  8 00:54:04 2016 daemon.debug notdhcpserver: eth0.3: sending response (with ssl certificate)&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received ACK&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Running up hook script&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received redundant ACK&lt;br /&gt;
  Sun May  8 00:54:32 2016 daemon.debug notdhcpserver: eth0.3: Received redundant ACK&lt;br /&gt;
&lt;br /&gt;
There should be a debug message in the log from notdhcpserver concerning the extender node.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&amp;lt;div id=&amp;quot;serial_id&amp;quot;&amp;gt;&lt;br /&gt;
=== USB to Serial Connection ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you experience trouble flashing your device via the web interface, or via the TFTP image upload method, you'll want to establish a serial connection to troubleshoot further. Methods for flashing your device involving a serial connection may become more common as devices adopt configurations to lock down [http://www.networkworld.com/article/3038722/mobile-wireless/manufacturers-start-to-lock-down-wi-fi-router-firmware-thanks-fcc.html wi-fi router firmware] to prevent flashing.&lt;br /&gt;
&lt;br /&gt;
The following notes describe steps to interface with a Nanostation M5 (NSM5) via the serial interface. &lt;br /&gt;
&lt;br /&gt;
==== Order a USB to Serial Converter ====&lt;br /&gt;
&lt;br /&gt;
USB to serial converter devices exist at a cost of $4 - $8 online, with much lower pricing and longer delivery times if ordered from China. Search for &amp;quot;USB to UART TTL&amp;quot;, including &amp;quot;5 pin&amp;quot; in the search. Make sure the specifications do not mention anything other than 3.3 volts.&lt;br /&gt;
&lt;br /&gt;
Mac OS X users may need to install a device driver for their device. For example, for devices using the CP210X chip, you can download the [https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx#mac CP210x USB to UART Bridge VCP Driver], which is made available as &amp;lt;tt&amp;gt;/dev/tty.SLAB_USBtoUART&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Connecting to Serial ====&lt;br /&gt;
&lt;br /&gt;
You will need to connect the following pins from the converter to the pins on the device.&lt;br /&gt;
&lt;br /&gt;
* Ground (GND)&lt;br /&gt;
* Serial Out (Transmit / TX)&lt;br /&gt;
* Serial In (Receive / RX)&lt;br /&gt;
&lt;br /&gt;
Begin by connecting the Ground of the converter to the Ground of the device. Next connect the Transmit/TX of the converter to the Receive/RX of the device, then connect the Receive/RX of the converter to the Transmit/TX of the device.&lt;br /&gt;
&lt;br /&gt;
Nanostation M5 (NSM5) Example:&lt;br /&gt;
&lt;br /&gt;
[[File:CP2102-usb-to-serial-converter.jpg|400px|KEDSUMÂ® CP2102 Module STC Download Cable USB 2.0 to TTL 6PIN Serial Converter For STC]]&lt;br /&gt;
&lt;br /&gt;
[[File:Ubiquity-NSM5-serial-connectors.jpg|400px|Ubiquiti Nanostation NSM5 - Serial pins with connections]]&lt;br /&gt;
&lt;br /&gt;
==== Serial Communications Program ====&lt;br /&gt;
&lt;br /&gt;
You need to install a serial communication program. Linux users can use Minicom.&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install minicom&lt;br /&gt;
&lt;br /&gt;
Mac OS X users can as well&lt;br /&gt;
&lt;br /&gt;
  brew install minicom&lt;br /&gt;
&lt;br /&gt;
By default the Minicom program will attempt to use /dev/tty8, and will also attempt to initialize the device (expecting a modem) by default.&lt;br /&gt;
&lt;br /&gt;
  $ minicom&lt;br /&gt;
  minicom: cannot open /dev/tty8: Permission denied&lt;br /&gt;
&lt;br /&gt;
Run the program so that it starts the program on the USB converter that is connected by adding &amp;lt;tt&amp;gt;-D /dev/ttyUSB0&amp;lt;/tt&amp;gt;, and specify that it should skip initialization by adding &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt;. Mac users may need to reference a different device (such as &amp;lt;tt&amp;gt;/dev/tty.SLAB_USBtoUART&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
You can also specify from the command line that it use the baud rate and '8N1' settings specified below by including &amp;lt;tt&amp;gt;-b 115200 -8&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  sudo minicom -D /dev/ttyUSB0 -o -b 115200 -8&lt;br /&gt;
&lt;br /&gt;
In Minicom, CTRL-A to get settings, then Press O, to access settings. Mac users will need to discover the proper META key to use with their Terminal program. iTerm uses the 'ESC' key.&lt;br /&gt;
&lt;br /&gt;
Go to Serial Port Setup, use these settings:&lt;br /&gt;
&lt;br /&gt;
* Set the serial device (should be /dev/tty/USB0)&lt;br /&gt;
* Baud Rate (Bits Per Second): 115200&lt;br /&gt;
* Settings '8N1' (short hand for 8 bits, no parity, 1 stop bit)&lt;br /&gt;
* Turn off hardware and software flow control&lt;br /&gt;
&lt;br /&gt;
Reboot the device, and it will let you drop into a command line. You will then have to figure out how to enable the network from the boot loader (Uboot or Redboot) and transfer the firmware to the device to flash it.&lt;br /&gt;
&lt;br /&gt;
==== Interupting Boot ====&lt;br /&gt;
&lt;br /&gt;
The device will not detect the key you press unless Minicom is configured properly.&lt;br /&gt;
&lt;br /&gt;
* To access the Help screen, Press CTRL-A, then press Z.&lt;br /&gt;
* To access the configuration/settings, press CTRL-A, then press O.&lt;br /&gt;
&lt;br /&gt;
From the configuration window, select to view the 'Serial port setup'&lt;br /&gt;
&lt;br /&gt;
  $ sudo minicom -D /dev/ttyUSB0 -o -b 115200 -8&lt;br /&gt;
  Welcome to minicom 2.7&lt;br /&gt;
  &lt;br /&gt;
  OPTIONS: I18n &lt;br /&gt;
  Compiled on Jan  1 2014, 17:13:19.&lt;br /&gt;
  Port /dev/ttyUSB0, 21:47:56&lt;br /&gt;
  &lt;br /&gt;
  Press CTRL-A Z for help on special keys&lt;br /&gt;
  &lt;br /&gt;
              +-----[configuration]------+&lt;br /&gt;
              | Filenames and paths      |&lt;br /&gt;
              | File transfer protocols  |&lt;br /&gt;
              | Serial port setup        |&lt;br /&gt;
              | Modem and dialing        |&lt;br /&gt;
              | Screen and keyboard      |&lt;br /&gt;
              | Save setup as dfl        |&lt;br /&gt;
              | Save setup as..          |&lt;br /&gt;
              | Exit                     |&lt;br /&gt;
              +--------------------------+&lt;br /&gt;
  &lt;br /&gt;
  +-----------------------------------------------------------------------+&lt;br /&gt;
  | A -    Serial Device      : /dev/ttyUSB0                              |&lt;br /&gt;
  | B - Lockfile Location     : /var/lock                                 |&lt;br /&gt;
  | C -   Callin Program      :                                           |&lt;br /&gt;
  | D -  Callout Program      :                                           |&lt;br /&gt;
  | E -    Bps/Par/Bits       : 115200 8N1                                |&lt;br /&gt;
  | F - Hardware Flow Control : Yes                                       |&lt;br /&gt;
  | G - Software Flow Control : No                                        |&lt;br /&gt;
  |                                                                       |&lt;br /&gt;
  |    Change which setting?                                              |&lt;br /&gt;
  +-----------------------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
By default the Hardware Flow Control will be enabled. Press 'F' to disable Hardware Flow Control. Press ENTER to exit the Serial port setup window, and then select EXIT to go back to the program.&lt;br /&gt;
&lt;br /&gt;
At this point plug in the Ethernet cable to the 'Main' Ethernet port, with the other end connected to the 'POE' port on the Power Over Ethernet adapter that came with the device. As the device boots up, you'll see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
You'll need to make sure to press a key before it boots the default image.&lt;br /&gt;
&lt;br /&gt;
=== Picostation M2HP ===&lt;br /&gt;
&lt;br /&gt;
Insightful post on [https://www.strugglingcoder.info/index.php/tag/ubnt/ loading FreeBSD image] with help from serial communications. Could be useful with troubleshooting other models.&lt;br /&gt;
=== Nanostation M2 ===&lt;br /&gt;
==== Firmware check failure ====&lt;br /&gt;
&lt;br /&gt;
The following are simply notes. A solution to this issue is still pending.&lt;br /&gt;
&lt;br /&gt;
Flashing the Nanostation M2 (FCC ID: SWX-M2N) using the TFTP rescue mode will result in a Firmware check failure error.&lt;br /&gt;
&lt;br /&gt;
  $ tftp 192.168.1.20&lt;br /&gt;
  tftp&amp;gt; bin&lt;br /&gt;
  tftp&amp;gt; put openwrt-ar71xx-generic-om2p-squashfs-factory.bin&lt;br /&gt;
  Error code 2: Firmware check failed&lt;br /&gt;
  Sent 4609024 bytes in 12.6 seconds&lt;br /&gt;
&lt;br /&gt;
You can boot up the M2 with a serial connection similar to the instructions below concerning the Nanostation M5.&lt;br /&gt;
&lt;br /&gt;
  Board: Ubiquiti Networks XM board (rev 1.0 e012)&lt;br /&gt;
  DRAM:  32 MB&lt;br /&gt;
  Flash:  8 MB&lt;br /&gt;
  PCIe WLAN Module found (#1).&lt;br /&gt;
  Net:   eth0, eth1&lt;br /&gt;
  Hit any key to stop autoboot:  0 &lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: |&lt;br /&gt;
  Receiving file from 192.168.1.10:35456&lt;br /&gt;
  Received 4609501 bytes&lt;br /&gt;
  Firmware check failed! (-2)&lt;br /&gt;
&lt;br /&gt;
The method outlined for the Nanostation M5 below doesn't work with the M2.&lt;br /&gt;
&lt;br /&gt;
Update the firmware to [http://dl.ubnt.com/firmwares/XN-fw/v5.6.4/XM.v5.6.4.28924.160331.1253.bin airOS for XM board firmware v5.6.4].&lt;br /&gt;
&lt;br /&gt;
Serial Connection:&lt;br /&gt;
&lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
&lt;br /&gt;
Terminal:&lt;br /&gt;
&lt;br /&gt;
  $ tftp 192.168.1.20&lt;br /&gt;
  tftp&amp;gt; bin&lt;br /&gt;
  tftp&amp;gt; put XM.v5.6.4.28924.160331.1253.bin&lt;br /&gt;
  Sent 7537129 bytes in 20.8 seconds&lt;br /&gt;
&lt;br /&gt;
Serial Connection:&lt;br /&gt;
&lt;br /&gt;
  Receiving file from 192.168.1.10:55113&lt;br /&gt;
  Received 7537129 bytes&lt;br /&gt;
  Firmware Version: XM.ar7240.v5.6.4.28924.160331.1253&lt;br /&gt;
  Setting U-Boot environment variables&lt;br /&gt;
  Un-Protected 1 sectors&lt;br /&gt;
  Erasing Flash.... done&lt;br /&gt;
  Erased 1 sectors&lt;br /&gt;
  Writing to Flash... done&lt;br /&gt;
  Protected 1 sectors&lt;br /&gt;
  Will not overwrite u-boot partition! Skipped.&lt;br /&gt;
  Copying partition 'kernel' to flash memory:&lt;br /&gt;
          erasing range 0x9F050000..0x9F14FFFF: ................ done&lt;br /&gt;
  Erased 16 sectors&lt;br /&gt;
          writing to address 0x9f050000, length 0x00100000 ...&lt;br /&gt;
  Copying partition 'rootfs' to flash memory:&lt;br /&gt;
          erasing range 0x9F150000..0x9F74FFFF: .............................................................................................e&lt;br /&gt;
  Erased 96 sectors&lt;br /&gt;
          writing to address 0x9f150000, length 0x00600000 ...&lt;br /&gt;
  &lt;br /&gt;
  Firmware update complete.&lt;br /&gt;
  &lt;br /&gt;
  Resetting...&lt;br /&gt;
  &lt;br /&gt;
  U-Boot 1.1.4.2-s594 (Dec  5 2012 - 15:23:07)&lt;br /&gt;
  &lt;br /&gt;
  Board: Ubiquiti Networks XM board (rev 1.0 e012)&lt;br /&gt;
&lt;br /&gt;
Attempting to run the same process after performing an official firmware update doesn't resolve the issue.&lt;br /&gt;
&lt;br /&gt;
=== Nanostation M5 ===&lt;br /&gt;
&lt;br /&gt;
Official firmware from Ubiquity Nanostation M5 (NSM5)&lt;br /&gt;
&lt;br /&gt;
* [https://www.ubnt.com/download/airmax-m/nanostationm/default/airos-xw-board-firmware-v564 airOS for XW board firmware v5.6.4]&lt;br /&gt;
&lt;br /&gt;
==== Firmware check failure ====&lt;br /&gt;
&lt;br /&gt;
Flashing the Nanostation M5 (FCC ID: SWX-NSM5D) using the TFTP rescue mode will result in a Firmware check failure error.&lt;br /&gt;
&lt;br /&gt;
If you attempt to flash the extender and receive a 'Firmware check failed' error, then you have a version of the NSM5 that is protected from being flashed via the default TFTP method. You will need to obtain a serial to USB interface (USB to UART TTL Module Serial Converter, 5 pin) and use it to flash the firmware.&lt;br /&gt;
&lt;br /&gt;
   $ ./flasher.js openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin&lt;br /&gt;
   Accessing http://192.168.1.20/login.cgi&lt;br /&gt;
   Connection timed out&lt;br /&gt;
   Sending openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin to 192.168.1.20 using tftp put&lt;br /&gt;
   [Error: (Server) Firmware check failed]&lt;br /&gt;
&lt;br /&gt;
When connected to the NSM5 via a serial connection, a similar error is displayed when attempting to load the SudoWRT firmware image.&lt;br /&gt;
&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Will reset device configuration (Reset button active after 10 seconds).&lt;br /&gt;
  Erasing sector 123..126&lt;br /&gt;
  &lt;br /&gt;
  First 0x7b last 0x7e sector size 0x10000&lt;br /&gt;
  .... done&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
  Receiving file from 192.168.1.10:49763&lt;br /&gt;
  Received 4325788 bytes&lt;br /&gt;
  Firmware check failed! (1)&lt;br /&gt;
&lt;br /&gt;
===== Drop into U-Boot Command Prompt =====&lt;br /&gt;
&lt;br /&gt;
Connect a USB to Serial adapter to the correct pins of the NSM5, as shown above. Unplug the Ethernet cable from the device, and then plug it back in to provide Power Over Ethernet once again, resulting in a reboot of the device.&lt;br /&gt;
&lt;br /&gt;
During the boot process, press a key to during the boot process to make the [https://wiki.openwrt.org/doc/techref/bootloader/uboot U-Boot] bootloader to drop into a command line prompt.&lt;br /&gt;
&lt;br /&gt;
  U-Boot 1.1.4-s958 (Jun 10 2015 - 10:56:20)&lt;br /&gt;
  &lt;br /&gt;
  DRAM:  64 MB&lt;br /&gt;
  Flash:  8 MB (0xc2, 0x20, 0x17)&lt;br /&gt;
  Net:   AR8236&lt;br /&gt;
  eth0, eth1&lt;br /&gt;
  Board: Ubiquiti Networks AR9342 board (e855-22585.1122.0030)&lt;br /&gt;
  Radio: 0777:e855&lt;br /&gt;
  Reset: Normal&lt;br /&gt;
  Hit any key to stop autoboot:  0&lt;br /&gt;
  ar7240&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Running TFTPd =====&lt;br /&gt;
&lt;br /&gt;
Although U-Boot can support two protocols for transfering files, kermit or y-modem, the bootloader does not support the &amp;lt;tt&amp;gt;loadb&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;loady&amp;lt;/tt&amp;gt;. Minicom only supports y-modem protocol.&lt;br /&gt;
&lt;br /&gt;
We do not have to resort to a direct serial file transfer however. The 'mtdparts' command that is used to define flash memory partitions can be used to reset the partition table to the defaults before running 'urescue' to start the TFTP server.&lt;br /&gt;
&lt;br /&gt;
  ar7240&amp;gt; help mtdparts&lt;br /&gt;
  mtdparts &lt;br /&gt;
      - list partition table&lt;br /&gt;
  mtdparts delall&lt;br /&gt;
      - delete all partitions&lt;br /&gt;
  mtdparts del part-id&lt;br /&gt;
      - delete partition (e.g. part-id = nand0,1)&lt;br /&gt;
  mtdparts add &amp;lt;mtd-dev&amp;gt; &amp;lt;size&amp;gt;[@&amp;lt;offset&amp;gt;] [&amp;lt;name&amp;gt;] [ro]&lt;br /&gt;
      - add partition&lt;br /&gt;
  mtdparts default&lt;br /&gt;
      - reset partition table to defaults&lt;br /&gt;
  ar7240&amp;gt; mtdparts default&lt;br /&gt;
  ar7240&amp;gt; urescue&lt;br /&gt;
  Setting default IP 192.168.1.20&lt;br /&gt;
  Starting TFTP server...&lt;br /&gt;
  Using eth0 (192.168.1.20), address: 0x81000000&lt;br /&gt;
  Waiting for connection: \&lt;br /&gt;
&lt;br /&gt;
In your other terminal window, run the ubi-flasher script.&lt;br /&gt;
&lt;br /&gt;
  $ ./flasher.js /home/redconfetti/Projects/mesh/openwrt-images/nanostation-m5/2015-2016/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin&lt;br /&gt;
  Accessing http://192.168.1.20/login.cgi&lt;br /&gt;
  Connection timed out&lt;br /&gt;
  Sending /home/redconfetti/Projects/mesh/openwrt-images/nanostation-m5/2015-2016/openwrt-ar71xx-generic-ubnt-nano-m-xw-squashfs-factory.bin to 192.168.1.20 using tftp put&lt;br /&gt;
  Firmware flashing begun!&lt;br /&gt;
  The firmware has been successfully sent to the router.&lt;br /&gt;
  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).&lt;br /&gt;
  This means that the router is flashing itself with the new firmware.&lt;br /&gt;
  Once the router goes back to having only the power LED lit, the router has been successfully flashed.&lt;br /&gt;
&lt;br /&gt;
In the terminal running Minicom you should see the firmware successfully flashing.&lt;br /&gt;
&lt;br /&gt;
  Receiving file from 192.168.1.10:52289&lt;br /&gt;
  Received 4325788 bytes&lt;br /&gt;
  Firmware Version: XW.ar934x.v6.0.0-OpenWrt-r47662&lt;br /&gt;
  Setting U-Boot environment variables&lt;br /&gt;
  Un-Protected 1 sectors&lt;br /&gt;
  Erasing Flash.... done&lt;br /&gt;
  Erased 1 sectors&lt;br /&gt;
  Writing to Flash... write addr: 9f040000&lt;br /&gt;
  done&lt;br /&gt;
  Protected 1 sectors&lt;br /&gt;
  Copying partition 'kernel' to flash memory:&lt;br /&gt;
  &lt;br /&gt;
  First 0x5 last 0x14 sector size 0x10000&lt;br /&gt;
  ................ done&lt;br /&gt;
  write addr: 9f050000&lt;br /&gt;
  Copying partition 'rootfs' to flash memory:&lt;br /&gt;
  &lt;br /&gt;
  First 0x15 last 0x6e sector size 0x10000&lt;br /&gt;
  .......................................................................................... done&lt;br /&gt;
  write addr: 9f150000&lt;br /&gt;
  &lt;br /&gt;
  Firmware update complete.&lt;br /&gt;
  &lt;br /&gt;
  Resetting...&lt;br /&gt;
  &lt;br /&gt;
  U-Boot 1.1.4-s958 (Jun 10 2015 - 10:56:20)&lt;br /&gt;
  &lt;br /&gt;
  DRAM:  64 MB&lt;br /&gt;
  Flash:  8 MB (0xc2, 0x20, 0x17)&lt;br /&gt;
  Net:   AR8236&lt;br /&gt;
  eth0, eth1&lt;br /&gt;
  Board: Ubiquiti Networks AR9342 board (e855-22585.1122.0030)&lt;br /&gt;
  Radio: 0777:e855&lt;br /&gt;
  Reset: Normal&lt;br /&gt;
  Hit any key to stop autoboot:  0 &lt;br /&gt;
  ## Booting image at 9f050000 ...&lt;br /&gt;
     Image Name:   MIPS OpenWrt Linux-3.18.23&lt;br /&gt;
     Created:      2015-12-01   0:03:51 UTC&lt;br /&gt;
     Image Type:   MIPS Linux Kernel Image (lzma compressed)&lt;br /&gt;
     Data Size:    1135619 Bytes =  1.1 MB&lt;br /&gt;
     Load Address: 80060000&lt;br /&gt;
     Entry Point:  80060000&lt;br /&gt;
     Verifying Checksum at 0x9f050040 ...OK&lt;br /&gt;
     Uncompressing Kernel Image ... OK&lt;br /&gt;
  &lt;br /&gt;
  Starting kernel ...&lt;br /&gt;
  &lt;br /&gt;
  [    0.000000] Linux version 3.18.23 (sudowrt-builder@build-test2) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47662) ) #2 Mon Nov 5&lt;br /&gt;
&lt;br /&gt;
After it reboots if you see the first line mention 'sudowrt-builder', the device is booting the SudoWRT firmware build.&lt;br /&gt;
&lt;br /&gt;
You can press ENTER once it is finished, and it should drop into the command line for the SudoWRT system.&lt;br /&gt;
&lt;br /&gt;
  [   25.650000] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x00000000&lt;br /&gt;
  [   25.660000] done.&lt;br /&gt;
  [   25.660000] jffs2: notice: (993) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and.&lt;br /&gt;
  &lt;br /&gt;
  BusyBox v1.23.2 (2015-11-30 18:48:50 EST) built-in shell (ash)&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
    ._______.___    ._______.______  ._____  .___    .___ .______  ._____  &lt;br /&gt;
    :_ ____/|   |   : .____/:_ _   \ :_ ___\ |   |   : __|:      \ :_ ___\ &lt;br /&gt;
    |   _/  |   |   | : _/\ |   |   ||   |___|   |   | : ||       ||   |___&lt;br /&gt;
    |   |   |   |/\ |   /  \| . |   ||   /  ||   |/\ |   ||   |   ||   /  |&lt;br /&gt;
    |_. |   |   /  \|_.: __/|. ____/ |. __  ||   /  \|   ||___|   ||. __  |&lt;br /&gt;
      :/    |______/   :/    :/       :/ |. ||______/|___|    |___| :/ |. |&lt;br /&gt;
      :                      :        :   :/                        :   :/ &lt;br /&gt;
                                          :                             : &lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
   sudo mesh v0.2 (fledgling.extender)&lt;br /&gt;
                                based on OpenWRT 15.05 (Chaos Calmer)&lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
   &amp;quot;When your rage is choking you, it is best to say nothing.&amp;quot; &lt;br /&gt;
                                              - Octavia E. Butler, Fledgling&lt;br /&gt;
   -------------------------------------------------------------------------&lt;br /&gt;
  &lt;br /&gt;
  root@sudomesh-node:/#&lt;br /&gt;
&lt;br /&gt;
== Extender Node Installation ==&lt;br /&gt;
=== Installation Order ===&lt;br /&gt;
#Flash home nodes and extender nodes&lt;br /&gt;
#Get on roof and determine which direction to face the extender nodes&lt;br /&gt;
#Install J-Pole&lt;br /&gt;
#Crimp end onto Ethernet cable&lt;br /&gt;
#Run Ethernet cable from j-pole down to location of home node (either through a soffit indoors or to an outdoor enclosure)&lt;br /&gt;
#Crimp other end of Ethernet cable and connect to home node via a POE adaptor&lt;br /&gt;
#Install extender node on J-Pole using zip-ties - check lights to make sure unit is powered up&lt;br /&gt;
#Walk around the neighborhood to check the signal&lt;br /&gt;
&lt;br /&gt;
=== Gear Checklist ===&lt;br /&gt;
	&lt;br /&gt;
Protective and personal gear&lt;br /&gt;
*Wear clothes you can get dirty and sturdy boots for roof walking&lt;br /&gt;
*Sunscreen&lt;br /&gt;
*Sunglasses&lt;br /&gt;
*Pocketknife (for cutting zip ties etc)&lt;br /&gt;
*Ladder&lt;br /&gt;
*Safety harness &amp;amp; rope in a bucket&lt;br /&gt;
*Smart phone (to check signal and take pictures)&lt;br /&gt;
Home node gear&lt;br /&gt;
*2 flashed Western Digital Mynet N600 Home Nodes&lt;br /&gt;
*paperclip (to reset equipment)&lt;br /&gt;
*Laptop (to configure equipment)&lt;br /&gt;
*Plastic outdoor enclosure for router (optional)&lt;br /&gt;
*Power Strip&lt;br /&gt;
J-Pole gear&lt;br /&gt;
*J-Pole&lt;br /&gt;
*Latex gloves (for dealing with roofing sealant)&lt;br /&gt;
*Roofing sealant&lt;br /&gt;
*Ratchet set - 10mm for small bolts, 13mm for large bolts&lt;br /&gt;
*Corldless Drill&lt;br /&gt;
*3/16&amp;quot; drill bit for J-pole bolts&lt;br /&gt;
*Steel One-Hole Conduit Straps (for holding Ethernet cable along eves)&lt;br /&gt;
*Screws for the Steel one-hole straps&lt;br /&gt;
Ethernet cable gear&lt;br /&gt;
*Ethernet Spool&lt;br /&gt;
*Ethernet Ends&lt;br /&gt;
*Ethernet Crimper&lt;br /&gt;
*Laminated card showing the Ethernet cable order&lt;br /&gt;
*Label Maker - so you can know which cable is which&lt;br /&gt;
Extender node gear&lt;br /&gt;
*Flashed Ubiquiti Nanostation M2 or M5 extender Node(s)&lt;br /&gt;
*Power over Ethernet (POE) adapters&lt;br /&gt;
*Zip Ties&lt;/div&gt;</summary>
		<author><name>Aetilley</name></author>
	</entry>
</feed>