Unifi UAP-PRO installation

Hi there,
I have an old UAP-PRO or AP-PRO. That I am having trouble installing the factory openwrt firmware on.

I have followed the instructions on https://openwrt.org/toh/ubiquiti/unifi_ap_pro

  1. Device get IP address from DHCP. If no DHCP, device will default to 192.168.1.20
  2. Login inside the AP with ssh ubnt@ip_address (password ubnt)
  3. Download factory.bin to /tmp
  4. Rename the firmware image to fwupdate.bin
  5. Use the Ubiquiti fwupgrade utils to reflash it:
    fwupdate.real -m fwupdate.bin

I can SSH into the device on the default IP. I can upload the factory.bin to the /tmp folder through winSCP.

I have the filename changed to fwupdate.bin according to the instructions but I keep getting the following error message through the SSH terminal when trying to flash to the new firmware.

UBNT-BZ.v4.3.28# fwupdate.real -m fwupdate.bin
Couldn't open image file: fwupdate.bin!

Any help would be appreciated.
Thanks!

After logging in with ssh you'll want to make /tmp your default directory:
cd /tmp
then make sure the file exists:
ls -l
rename if necessary
mv <OLD_FILE_NAME> <NEW_FILE_NAME>

and / or specify the full path to the file when doing the update:
fwupdate.real -m /tmp/fwupdate.bin
although later versions of fwupdate did not take the name it had to be /tmp/fwupdate.bin

Amazing. Thanks so much. That worked first try.

___ ___ ..__
| | |
|_ ____/|
| | / | || ) | | (c) 2010-2020
| | | | \ || \ | | Ubiquiti Networks, Inc.
|
|
| /||/ |_|
|_/ https://www.ui.com/

  Welcome to UniFi UAP-Pro!

UBNT-BZ.v4.3.28# cd /tmp
UBNT-BZ.v4.3.28# ls -l

-rw-r--r-- 1 ubnt root 4 Jan 29 06:29 TZ
-rw-r--r-- 1 ubnt root 4232 Jan 1 1970 default.cfg
drwxr-xr-x 2 ubnt root 40 Jan 29 06:30 dropbear
lrwxrwxrwx 1 ubnt root 4 Jan 1 1970 etc -> /etc
-rw-r--r-- 1 ubnt root 6816407 Apr 7 2024 fwupdate.bin
drwxr-xr-x 3 ubnt root 60 Jan 29 06:29 lib
drwxr-xr-x 2 ubnt root 60 Jan 29 06:40 lock
drwxr-xr-x 2 ubnt root 120 Jan 29 07:27 log
-rw-r--r-- 1 ubnt root 18763 Jan 29 06:29 rc.txt
lrwxrwxrwx 1 ubnt root 21 Jan 29 06:29 resolv.conf -> /tmp/resolv.conf.auto
-rw-r--r-- 1 ubnt root 0 Jan 29 06:29 resolv.conf.auto
drwxr-xr-x 5 ubnt root 1000 Jan 29 07:35 run
-rw-r--r-- 1 ubnt root 4232 Jan 29 06:29 running.cfg
drwxrwxrwt 2 ubnt root 40 Jan 1 1970 shm
drwxr-xr-x 2 ubnt root 40 Jan 1 1970 state
drwxr-xr-x 2 ubnt root 80 Jan 1 1970 sysinfo
-rw-r--r-- 1 ubnt root 11519 Jan 29 06:29 sysinit.txt
-rw-r--r-- 1 ubnt root 4232 Jan 1 1970 system.cfg
drwxr-xr-x 2 ubnt root 40 Jan 1 1970 tmp
drwxr-xr-x 10 ubnt root 200 Jan 29 06:29 utermd

UBNT-BZ.v4.3.28# fwupdate.real -m /tmp/fwupdate.bin
part:fis:6816063, block size:16121856
Writing 'jffs2 ' to /dev/mtd2(jffs2 ) ... [%100]
Done