Ubiquiti UniFi 6 Lite

Ubiquiti has released a new series of UniFi APs supporting AX.

  • UniFi 6 Lite
  • UniFi 6 Long Range

1. Connect to the booted device at using username/password “ubnt”.

ssh ubnt@

2. Update the bootloader environment.

fw_setenv devmode TRUE
fw_setenv boot_openwrt "fdt addr \$(fdtcontroladdr); fdt rm /signature; bootubnt"
fw_setenv bootcmd "run boot_openwrt"

3. At this point you may verify that everything is set correctly.


4. Transfer the OpenWrt sysupgrade image to the device using SCP.

scp openwrt.bin ubnt@

5. Check the mtd partition number for bs / kernel0 / kernel1

cat /proc/mtd

6. Set the bootselect (bs) flag to boot from kernel0

dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock4

7. Write the OpenWrt sysupgrade image to both kernel0 as well as kernel1

dd if=openwrt.bin of=/dev/mtdblock6
dd if=openwrt.bin of=/dev/mtdblock7

8. Reboot the device. It should boot into OpenWrt.

If flashing went wrong, your device may not be able to boot. You may find out what your device is doing with its LED pattern. See https://help.ui.com/hc/en-us/articles/204910134 for a description of LED patterns.

Recovery can be done with TFTP as explained in https://help.ui.com/hc/en-us/articles/204910124-UniFi-TFTP-Recovery-for-Bricked-Access-Points.

1. Download the OEM stock firmware at https://www.ui.com/download/unifi/unifi-6-lite-ap. I chose the oldest one available, which is 5.43.19 at the time of writing. I will assume it is called firmware.bin in what follows. (Direct Link, Alternative Link, sha256sum: 441436c111466b7c55bca294a401aaeb5f74500ca0724df23a6fa46466766176)

2. Disconnect any ethernet cable and turn off the WiFi from your computer.

3. Set your IP address to, subnet to and gateway to Preferably through your distribution's network manager, otherwise adapt the following lines to your setting. eno2 might need to be adapted, check your interface's name with ip a.

ifconfig eno2 netmask up
route add default gw

4. Connect your UniFi 6 Lite to your computer. At this point you will need to know its IP address. The official documentation says it should be but mine was at so you may need to find its IP address by capturing network packets: tcpdump -i eno2 arp. You should see some packets with the AP's IP address when you plug it in.

5. Launch TFTP.


5.1. If your device isn't in TFTP mode (flashing White-Blue-Off), put it in TFTP mode now. Mine was already, so this is from the official documentation: unplug the ethernet cable from the device, then press the reset button with a paper clip. While holding the reset button, plug the ethernet cable back in. Keep holding the reset button until you see the LED flashing.

6. Issue the following commands.

rexmt 1
timeout 60
put firmware.bin

7. The device should automatically reboot with the OEM stock firmware in place when the file transfer is done.

More information is available in the git commit message ?p=openwrt/openwrt.git;a=commit;h=fb4d7a9680117a00721936c98ce41eeb2dea95c9.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2021/03/06 09:44
  • by torxgewinde