@mk24, thank you VERY much. That's what I was missing! Thank you so much for your patience and explaining it explicitly!
aloha,
had the same problem. My UAP was stuck in tftp boot mode after i tried to downgrade from UniFi firmware 4.x to 3.x.. which in retrospect, i didn't even have to do. I then used the console method from the wiki page to flash the latest openWRT firmware. For this method, you will also need a USB-to-TTL adapter.
For this to work you have to use the sysupgrade file.. i lost a few hours on that one -> "openwrt-22.03.2-ath79-generic-ubnt_unifi-squashfs-sysupgrade.bin"
But with a few commands, and a few minutes later, openWRT was where it should be -> 0x9f050000
ar7240> setenv serverip 192.168.1.10
ar7240> tftpboot 0x80000000 openwrt-22.03.2-ath79-generic-ubnt_unifi-squashfs-sysupgrade.bin
ar7240> erase 0x9f050000 +0x00760000
ar7240> cp.b 0x80000000 0x9f050000 0x5d012f
ar7240> reset
But after the reboot, it was still stuck in tftp mode , so after spending a few hours trying to find out why this was happening, and even soldering out the reset button which did not help, i finely found the reason
I just had to clean up my variable environment. There were a few settings that made the boot loader always start the tftp recovery, which was probably left over from my 3.x downgrade attempt. So i removed a few things:
ar7240> setenv do_urescue=FALSE
ar7240> setenv led1
ar7240> setenv led2
ar7240> setenv filesize
ar7240> setenv fileaddr
ar7240> saveenv
i was left with (don't forget to saveenv)
ar7240> printenv
bootargs=console=tty0 panic=3
bootcmd=run ubntappinit ubntboot
bootdelay=1
ubntappinit=go ${ubntaddr} uappinit;go ${ubntaddr} ureset_button;urescue;go ${ubntaddr} uwrite
mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),7552k(kernel),256k(cfg),64k(EEPROM)
ubntboot=bootm 0x9f050000
ethact=eth0
ipaddr=192.168.1.20
serverip=192.168.1.254
stdin=serial
stdout=serial
stderr=serial
ubntaddr=80200020
Environment size: 405/65532 bytes
ar7240>
then after "ar7240> reset", or power cycle all was good
I hope this helps someone save some time and few UAP bricks