Installing Cucumber on Ubiquiti UniFi AC

This guide covers installing Cucumber on compatible UniFi APs including:

  • Ubiquiti UniFi AC Lite / Ubiquiti UniFi AC Long Range
  • Ubiquiti UniFi AC Pro

Note: The UniFi ACs have no TFTP upgrade possible yet. This means you will need to use SSH.
If you don't know how to use this, we would advise not installing.

You will need the following:


1

Installing Cucumber

To start off, SCP the firmware to the /tmp/ with the following command, making sure to replace firmware.bin with the name of the firmware you downloaded from your CT dashboard :

scp firmware.bin ubnt@192.168.1.20:/tmp/

Now SSH into your AP by running the following, replacing ubnt and 192.168.1.20 with the username and IP address of your AP. The default username and password are ubnt and ubnt. If the credetials don't work, have a look here

ssh ubnt@192.168.1.20

As the UAP AC has two partitions, we need to make sure it will always boot from the first one.

mtd erase /dev/mtd4

after which you need to type

echo -n -e '\x00\x00\x00\x00\xa3\x4d\xe8\x2b' > /dev/mtd4

The previous two commands should look something similar to this

Next, run the following command, making sure to replace firmware.bin with the name of the firmware:

mtd -r write /tmp/FIRMWARE-IMAGE.bin kernel0

Your terminal should look similar to the above.