Flash Unifi AP AC Outdoor (SOLVED)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ubiquiti Devices
Author Message
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Tue Jun 16, 2020 19:13    Post subject: Flash Unifi AP AC Outdoor (SOLVED) Reply with quote
Hello,

I'm trying to flash wireless AP - AP AC Outdoor with no luck.

I'm using TFTP method with this device:
- hold RESET button while booting
- blink white and blue LED in turns

Device: UniFi UAP-ACOutdoor (BZ.v3.8.17)
DD-WRT Firmware: Build 40559 (UNIFIAC.dd-wrt-preflash.bin)

From computer:
Code:
tftp> bin
mode set to octet
tftp> put UNIFIAC.dd-wrt-preflash_0.bin
putting UNIFIAC.dd-wrt-preflash_0.bin to 192.168.1.20:UNIFIAC.dd-wrt-preflash_0.bin [octet]
Sent 7704920 bytes in 3.4 seconds [18129224 bits/sec]



UART console:
Code:
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: .. 7704920 bytes read
Entry at 0x81fa3910
Firmware check failed! (-2)
CFE>


Successful flash original firmware:
Code:
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: .. 7944600 bytes read
Entry at 0x81fa3910
Firmware Version: BZ.bcm4706.v3.8.17.6789.190110.0913
Reading from 0x81fc8294: Programming...done. 7794688 bytes written
Booting(0): boot -raw -z -addr=0x80001000 -max=0x1eff000 flash0.os:
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: ... 3653996 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000


I have also tried to flash:
- dd-wrt-40559-unifiac-preflash.bin
- dd-wrt-40559-unifiac-webflash.bin
via TFTP with same result

Thanks for help!
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 6357
Location: Texas, USA

PostPosted: Tue Jun 16, 2020 20:09    Post subject: Reply with quote
Router Database wrote:
DISCLAIMER
This database may not have up-to-date information and may even recommend a build which might cause issues. As such, you should check the device specific forum (Broadcom, Atheros, MediaTek, etc.) first before flashing any build recommended in this database. There you will find build specific topics that discuss any issues with a particular build/release. For more up-to-date firmware files, please visit the firmware faq.

YOU HAVE BEEN GIVEN FRIENDLY AND FAIR NOTICE


You may need to start with an older firmware:

https://wiki.dd-wrt.com/wiki/index.php/Supported_Devices#Ubiquiti

Min usable DD-WRT version unifi_ac build 25408 20141120
Notes for running DD-WRT needs DD-WRT activation

Also, 40559 is a problematic build and the Router Database is not up-to-date(Refer to rules and guidelines):

Installation Wiki

Where Do I Download Firmware?

Firmware FAQ

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2020/

Also, you need to make sure it's not a newer-generation Atheros-powered device, which is not currently supported: https://openwrt.org/toh/ubiquiti/unifiac

It is a general rule of thumb that most devices that require activation aren't always given support here in the forum, hence the reason why no build release threads exist in this area.

https://www.google.com/search?q=flash+ubiquiti+dd-wrt+forum.dd-wrt.com

_________________
Official Forum Rules, Guidelines, and Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
RTFM/STFW - TL;DR is NOT an excuse.
Why Should I Care What Color the Bikeshed Is?

---------------------------------------------------------

Linux User #377467 counter.li.org / linuxcounter.net
“Suitcase” v5: 4x (2x Intel® E5645) on Intel® S5500HV
“Suitcase” v1: 4xQuad P6pro-200 SL25A SMP Proliant 7000s
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Tue Jun 16, 2020 21:14    Post subject: Reply with quote
Thank you for response;)

I have noticed that I'll have to buy a licence. I'm OK with paying 20€ for working FW.

My device is Broadcom based:
Code:
BZ.v3.8.17# cat /proc/cpuinfo | grep system
system type      : Broadcom BCM5300 chip rev 1


I have tested with these revisions:
- 06-15-2020-r43420
- 11-20-2014-r25408
...but have got exactly same results.
Code:
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: .. 7954776 bytes read
Entry at 0x81fa3910
Firmware check failed! (-2)
CFE> Decompressing...done


Code:
tftp> bin
mode set to octet
tftp> put UNIFIAC.dd-wrt-preflash.bin
putting UNIFIAC.dd-wrt-preflash.bin to 192.168.1.20:UNIFIAC.dd-wrt-preflash.bin [octet]
Sent 7954776 bytes in 3.3 seconds [19284305 bits/sec]


I'm not able to find any information about flashing Unifi devices on this forum. Is there any chance ...?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 6357
Location: Texas, USA

PostPosted: Tue Jun 16, 2020 22:19    Post subject: Reply with quote
I presume you cannot flash it via web interface of the stock firmware, or use the stock firmware CLI to flash it. What OS are you using to flash?
_________________
Official Forum Rules, Guidelines, and Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
RTFM/STFW - TL;DR is NOT an excuse.
Why Should I Care What Color the Bikeshed Is?

---------------------------------------------------------

Linux User #377467 counter.li.org / linuxcounter.net
“Suitcase” v5: 4x (2x Intel® E5645) on Intel® S5500HV
“Suitcase” v1: 4xQuad P6pro-200 SL25A SMP Proliant 7000s
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Wed Jun 17, 2020 11:26    Post subject: Reply with quote
I'm using Ubuntu 18.04

This device has no web GUI, it's "unifi" device with central management.

I have some progress with flashing from CMD using 43420 build:
Code:
$ scp UNIFIAC.dd-wrt-preflash.bin  ubnt@192.168.1.20:/tmp/fwupdate.bin
$ ssh ubnt@192.168.1.20
BZ.v3.8.17# syswrapper.sh upgrade2 &


After running this the flashing process begin and the device restarts itself with OS2 (it looks there is two partions for system)
Code:
Committing NVRAM...done
Device eth0:  hwaddr 04-18-D6-B0-76-F4, ipaddr 192.168.1.20, mask 255.255.255.0
        gateway not set, nameserver not set
Booting(1): boot -raw -z -addr=0x80001000 -max=0x1eff000 flash0.os2:
Loader:raw Filesys:raw Dev:flash0.os2 File: Options:(null)
Loading: .. 5552 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000


After booting the device is not responding to ping on 192.168.1.1 (neither 192.168.1.20 which is default unifi address)

When I perform hard reset (using button), then the device is booting OS0
Code:
Committing NVRAM...done
Device eth0:  hwaddr 00-27-22-E9-00-00, ipaddr 192.168.1.20, mask 255.255.255.0
        gateway not set, nameserver not set
reset button pressed: clearing cfg partition!
reset button pressed: clearing nvram partition!


Code:
Committing NVRAM...done
Device eth0:  hwaddr 00-27-22-E9-00-00, ipaddr 192.168.1.20, mask 255.255.255.0
        gateway not set, nameserver not set
Booting(0): boot -raw -z -addr=0x80001000 -max=0x1eff000 flash0.os:
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: ... 3653996 bytes read
Entry at 0x80001000
Closing network.


After reset the device is running Unifi BZ.v3.8.17
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 6357
Location: Texas, USA

PostPosted: Wed Jun 17, 2020 13:33    Post subject: Reply with quote
Well, I guess TFTP is the only method, but it could be a tricky thing...

http://docs.sputnik.com/m/agent/l/4044-flashing-ubiquiti-devices-with-sputnik-powered-dd-wrt-firmware-tftp-method

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=86856

https://www.google.com/search?q=flashing+unifi+device+with+dd-wrt

_________________
Official Forum Rules, Guidelines, and Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
RTFM/STFW - TL;DR is NOT an excuse.
Why Should I Care What Color the Bikeshed Is?

---------------------------------------------------------

Linux User #377467 counter.li.org / linuxcounter.net
“Suitcase” v5: 4x (2x Intel® E5645) on Intel® S5500HV
“Suitcase” v1: 4xQuad P6pro-200 SL25A SMP Proliant 7000s
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Thu Jun 18, 2020 8:14    Post subject: Reply with quote
I have already read this forum thread and the article (and many others ...). But I think it's differentent devices (AirOS products, Unifi with U-boot, Atheros based, ...)

TFTP is not working with DD-WRT images. I have tried many combinations but all leads to "Firmware check failed! (-2)" message.

I could try differentent build version using SSH CLI flash tool...

Is there any way of support given the fact that these devices are under paid licence?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 6357
Location: Texas, USA

PostPosted: Thu Jun 18, 2020 15:38    Post subject: Reply with quote
You could try direct email via the main website.

https://dd-wrt.com/contact/

shop@dd-wrt.com

https://dd-wrt.com/professional/activation/

_________________
Official Forum Rules, Guidelines, and Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
RTFM/STFW - TL;DR is NOT an excuse.
Why Should I Care What Color the Bikeshed Is?

---------------------------------------------------------

Linux User #377467 counter.li.org / linuxcounter.net
“Suitcase” v5: 4x (2x Intel® E5645) on Intel® S5500HV
“Suitcase” v1: 4xQuad P6pro-200 SL25A SMP Proliant 7000s
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Wed Jun 24, 2020 13:07    Post subject: Reply with quote
I contacted DD-WRT support team and they were really kind.

The correct way to install DD-WRT firmware is using TFTP. However it seems broken with latest Unifi FW.

I was advised to use mtd command from device to flash it.

Copy (for example with "scp") FW to /tmp folder of device. Then run:

Code:
mtd -f write /tmp/dd-wrt-43471-unifiac-preflash.bin linux
mtd -f write /tmp/dd-wrt-43471-unifiac-preflash.bin linux2


And reboot
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 6357
Location: Texas, USA

PostPosted: Wed Jun 24, 2020 13:29    Post subject: Reply with quote
Good to know, thanks for following up! I guess you could have downgraded the stock firmware to the oldest release available and then tried TFTP.
_________________
Official Forum Rules, Guidelines, and Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
RTFM/STFW - TL;DR is NOT an excuse.
Why Should I Care What Color the Bikeshed Is?

---------------------------------------------------------

Linux User #377467 counter.li.org / linuxcounter.net
“Suitcase” v5: 4x (2x Intel® E5645) on Intel® S5500HV
“Suitcase” v1: 4xQuad P6pro-200 SL25A SMP Proliant 7000s
cjd77
DD-WRT Novice


Joined: 16 Jun 2020
Posts: 6

PostPosted: Wed Jun 24, 2020 13:39    Post subject: Reply with quote
I have tried the oldest FW available from Ubiquiti website, but it was probably not old enough.

Ubiquiti makes available only a few newest FW versions on their websites.

DD-WRT team will try to make it work again with new Unifi FW.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ubiquiti Devices All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum