Ubiquiti to OpenWRT: Difference between revisions

wiki.TerraBase.info
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
Device: Ubiquity UniFi AP AC Pro Generation 2 (with system board that says Generation 2, but doesn't match any other picture on the internet for a Generation 2 device)
Device: Ubiquity UniFi AP AC Pro Generation 2 (with system board that says Generation 2, but doesn't match any other picture on the internet for a Generation 2 device)


Default IP Address: 192.168.1.20 (but watch out, if a DHCP server is available, it will obtain an IP from that pool)
Default IP Address: 192.168.1.20 (but watch out, if a DHCP server is available, it will obtain an IP from that pool, so check the MAC address on the bottom of the Ubiquiti device and find it in the DHCP Server's leases)


Default SSH Password: ubnt /ubnt
Default SSH Password: ubnt /ubnt (press the reset button to reset to factory defaults if this doesn't work)


Strategy: Ditch the Ubiquiti Firmware and install OpenWRT.
Strategy: Ditch the Ubiquiti Firmware and install OpenWRT.


Install version 3.7.58 firmware (the below assumes the file is renamed to 3.7.58.bin);
Install version 3.7.58 firmware (the below assumes the file is renamed to 3.7.58.bin, as of mid 2026: https://dl.ui.com/unifi/firmware/U7PG2/3.7.58.6385/BZ.qca956x.v3.7.58.6385.170508.0957.bin).  And this firmware is difficult to find as Ubiquiti does not make available on their website.  The links found were not the most reliable, so have not been included  here.  Do a search and try and find it.  The file size is 7.4 MB (Windows size, so 7,766,016 bytes).;


*scp root@WhatEverIPAddress:/3.7.58.bin /tmp (make sure it has access to a Linux device to use SCP)
*scp root@WhatEverIPAddress:/3.7.58.bin /tmp (make sure it has access to a Linux or Windows device with SSH capability to use SCP, and WhatEverIPAddress is the Server IP Address where the file is coming from)
*fwupdate.real -m /tmp/3.7.58.bin (the ".real" supposedly updates the boot code)
*fwupdate.real -m /tmp/3.7.58.bin (the ".real" supposedly updates the boot code)
*reboot if it doesn't reboot automatically.


Install OpenWRT;
Install OpenWRT;
Line 22: Line 23:
*..."look for it" at 192.168.1.1
*..."look for it" at 192.168.1.1
*And then head on over to: [[AC Series Recommended Software and Utilities|AC Series Recommended Software and Utilities - Wiki.TerraBase.info]], and install some utilities that will allow for connecting a USB Flash drive so some real software can be installed on the little guy (not enough internal storage).  Hint: Use the "minimal install".
*And then head on over to: [[AC Series Recommended Software and Utilities|AC Series Recommended Software and Utilities - Wiki.TerraBase.info]], and install some utilities that will allow for connecting a USB Flash drive so some real software can be installed on the little guy (not enough internal storage).  Hint: Use the "minimal install".
Sometimes the ubnt / ubnt, User Name / Password doesn't work, try ui / ui.  And if that doesn't work, try the TFTP method of installing the 3.7.58.bin firmware;
* Hold Reset Button
* Plug in Power
* Hold Reset Button until LED(s) flash White / Blue
* tftp -i 192.168.1.20 put 3.7.58.bin
* Reboot
* SSH and Login with ubnt / ubnt at 192.168.1.20 OR, if it has obtained an IP Address from a DHCP server, which it will, then locate that IP
* tftp -g -r OpenWRT.bin
* ...and then pick up on the above instructions for mtd, dd, etc.


...and if that don't work, break out the soldering iron and attach some pins for JTAG / Serial.
...and if that don't work, break out the soldering iron and attach some pins for JTAG / Serial.

Latest revision as of 19:46, 9 August 2026

...just some rough notes on accessing a Ubiquiti device (not Ubiquity)

Device: Ubiquity UniFi AP AC Pro Generation 2 (with system board that says Generation 2, but doesn't match any other picture on the internet for a Generation 2 device)

Default IP Address: 192.168.1.20 (but watch out, if a DHCP server is available, it will obtain an IP from that pool, so check the MAC address on the bottom of the Ubiquiti device and find it in the DHCP Server's leases)

Default SSH Password: ubnt /ubnt (press the reset button to reset to factory defaults if this doesn't work)

Strategy: Ditch the Ubiquiti Firmware and install OpenWRT.

Install version 3.7.58 firmware (the below assumes the file is renamed to 3.7.58.bin, as of mid 2026: https://dl.ui.com/unifi/firmware/U7PG2/3.7.58.6385/BZ.qca956x.v3.7.58.6385.170508.0957.bin). And this firmware is difficult to find as Ubiquiti does not make available on their website. The links found were not the most reliable, so have not been included here. Do a search and try and find it. The file size is 7.4 MB (Windows size, so 7,766,016 bytes).;

  • scp root@WhatEverIPAddress:/3.7.58.bin /tmp (make sure it has access to a Linux or Windows device with SSH capability to use SCP, and WhatEverIPAddress is the Server IP Address where the file is coming from)
  • fwupdate.real -m /tmp/3.7.58.bin (the ".real" supposedly updates the boot code)
  • reboot if it doesn't reboot automatically.

Install OpenWRT;

  • scp root@WhatEverIPAddress:/OpenWRT_SysUpgrade.bin /tmp (pick your version, ubnt_unifiac-pro-squashfs-sysupgrade.bin in this example)
  • mtd write WhatEverOpenWRTFileName.bin kernel0
  • dd if=/dev/zero bs=1 count=1 of=/dev/mtd4
  • Reboot the device: reboot
  • ..."look for it" at 192.168.1.1
  • And then head on over to: AC Series Recommended Software and Utilities - Wiki.TerraBase.info, and install some utilities that will allow for connecting a USB Flash drive so some real software can be installed on the little guy (not enough internal storage). Hint: Use the "minimal install".

Sometimes the ubnt / ubnt, User Name / Password doesn't work, try ui / ui. And if that doesn't work, try the TFTP method of installing the 3.7.58.bin firmware;

  • Hold Reset Button
  • Plug in Power
  • Hold Reset Button until LED(s) flash White / Blue
  • tftp -i 192.168.1.20 put 3.7.58.bin
  • Reboot
  • SSH and Login with ubnt / ubnt at 192.168.1.20 OR, if it has obtained an IP Address from a DHCP server, which it will, then locate that IP
  • tftp -g -r OpenWRT.bin
  • ...and then pick up on the above instructions for mtd, dd, etc.

...and if that don't work, break out the soldering iron and attach some pins for JTAG / Serial.

Websites;

https://openwrt.org/toh/ubiquiti/unifi_ap_pro

https://openwrt.org/toh/ubiquiti/unifiac