Difference between revisions of "Ubiquiti UAP AC Mesh"

Jump to navigation Jump to search
(section: new compiling entry with steps to produce sysupgrade image)
Line 7: Line 7:
  
 
If your device shipped with the latest firmware, or if you upgraded to version <code>3.8.xx.xxxx</code> or higher, you may need to downgrade the device before you can flash it due to the <code>mtd</code> utility being missing in later versions. Simply download any <code>3.7.xx.xxxx</code> firmware image from the [https://www.ubnt.com/download/unifi/unifi-mesh Ubiquiti Downloads Page] and proceed with the recovery instructions.
 
If your device shipped with the latest firmware, or if you upgraded to version <code>3.8.xx.xxxx</code> or higher, you may need to downgrade the device before you can flash it due to the <code>mtd</code> utility being missing in later versions. Simply download any <code>3.7.xx.xxxx</code> firmware image from the [https://www.ubnt.com/download/unifi/unifi-mesh Ubiquiti Downloads Page] and proceed with the recovery instructions.
 +
 +
== Compiling ==
 +
 +
Clone the Libremesh source code with <code>git clone https://github.com/libremesh/lime-sdk.git</code><br>
 +
If stuck, detailed information can be found here: (https://libremesh.org/getit.html)[https://libremesh.org/getit.html]<br> 
 +
The following steps should produce the `sysupgrade` firmware.<br>
 +
 +
<pre>
 +
./cooker -d ar71xx/generic
 +
./cooker -b ar71xx/generic
 +
./cooker -c ar71xx/generic --flavor=lime_default --profile=ubnt-unifiac-mesh --community=massmesh/common
 +
</pre>
 +
 +
The filename of the sysupgrade firmware may change. The examples below may differ than the binary produced from the steps above. <br>
 +
In the case you are building the latest development firmware, the output directory may generate a firmware named <br>
 +
<code>openwrt-18.06.1-massmesh-common-ar71xx-generic-ubnt-unifiac-mesh-squashfs-sysupgrade.bin</code>
  
 
== Flashing ==
 
== Flashing ==

Revision as of 20:23, 31 October 2018

UAP AC Mesh

The UAP AC Mesh is a PoE powered access point that is weather resistant and omnidirectional.

Downgrading

If your device shipped with the latest firmware, or if you upgraded to version 3.8.xx.xxxx or higher, you may need to downgrade the device before you can flash it due to the mtd utility being missing in later versions. Simply download any 3.7.xx.xxxx firmware image from the Ubiquiti Downloads Page and proceed with the recovery instructions.

Compiling

Clone the Libremesh source code with git clone https://github.com/libremesh/lime-sdk.git
If stuck, detailed information can be found here: (https://libremesh.org/getit.html)[1]
The following steps should produce the `sysupgrade` firmware.

./cooker -d ar71xx/generic
./cooker -b ar71xx/generic 
./cooker -c ar71xx/generic --flavor=lime_default --profile=ubnt-unifiac-mesh --community=massmesh/common

The filename of the sysupgrade firmware may change. The examples below may differ than the binary produced from the steps above.
In the case you are building the latest development firmware, the output directory may generate a firmware named
openwrt-18.06.1-massmesh-common-ar71xx-generic-ubnt-unifiac-mesh-squashfs-sysupgrade.bin

Flashing

In the stock firmware, the access point will have the default user/pass ubnt / ubnt. If there is no DHCP server, it will assign itself the IP address 192.168.1.20.

  1. Statically assign your computer the IP address 192.168.1.25
  2. Power on the device and plug it into your computer's ethernet port
  3. Copy the firmware you want to flash to the device:
  4. scp openwrt-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin ubnt@192.168.1.20:/tmp/
  5. SSH into the device and log in with the default username and password ubnt / ubnt
  6. ssh ubnt@192.168.1.20
  7. Then write the firmware to kernel0 and kernel1
  8. BZ.v3.7.40# mtd write /tmp/openwrt-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin kernel0
    Unlocking kernel0 ...
    Erasing kernel0 ...
    Writing from /tmp/openwrt-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin to kernel0 ...  [e/w]
    
    BZ.v3.7.40# mtd -r write /tmp/openwrt-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin kernel1
    Unlocking kernel1 ...
    Erasing kernel1 ...
    Writing from /tmp/openwrt-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin to kernel1 ...  [e/w]
    

Recovery

To recover the UAP AC Mesh from a bad flash, or to upgrade or downgrade the stock firmware, you will need to put the device in recovery mode and send a stock firmware using TFTP.

  1. Obtain a stock firmware to flash by going to the Ubiquiti Downloads Page for this device and clicking "See Past Firmware" - 3.7.xx.xxxx is recommended if you wish to flash something else afterwards
  2. Rename the firmware file to firmware.bin, as the device will look for this file name
  3. To enter recovery mode, hold the reset button located next to the ethernet port while plugging in the power. Hold the reset button until the side LED alternates orange, blue, off.
  4. Assign your computer a static IP such as 192.168.1.25, with net mask of 255.255.255.0 or /24
  5. Connect your computer's ethernet port to the device
  6. Run TFTP and enter the following commands:
tftp> connect 192.168.1.20
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> put firmware.bin
Sent x bytes in x seconds

The LED will flash at varying speeds, then it will turn solid when complete.