Install Ubiquiti UNIFI AP AC PRO GEN2

Good evening,
Thank you all for your responses. @RuralRoots special thanks.
Find the answer to your questions below. the md5sum is good.
I tested the ./flash_openwrt.sh script. it still does not work

oot@DELL:/home/dell007/Downloads# md5sum ubnt.bin 
5bb23b387defcbd1f6cda5819c7905e5  ubnt.bin
root@DELL:/home/dell007/Downloads# 

oot@DELL:/home/dell007/Downloads# ./flash_openwrt.sh
+ IP=192.168.1.20
+ IP_WRT=192.168.1.1
+ HOST=ubnt@192.168.1.20
+ wping 192.168.1.20
+ ping -c 1 -W 1 192.168.1.20
+ sleep 10
+ iscp ubnt.bin ubnt@192.168.1.20:/tmp/
+ sshpass -p ubnt scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=error -oMacs=hmac-sha1 -O ubnt.bin ubnt@192.168.1.20:/tmp/
+ issh ubnt@192.168.1.20 -C fwupdate.real -m /tmp/ubnt.bin
+ sshpass -p ubnt ssh -oMacs=hmac-sha1 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=no -o LogLevel=error -o ServerAliveInterval=3 -o ServerAliveCountMax=3 ubnt@192.168.1.20 -C fwupdate.real -m /tmp/ubnt.bin
Invalid version 'BZ.qca956x.v3.7.58.6385.170508.0957'
+ wping 192.168.1.20
+ ping -c 1 -W 1 192.168.1.20
+ sleep 10
+ iscp openwrt.bin ubnt@192.168.1.20:/tmp/
+ sshpass -p ubnt scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=error -oMacs=hmac-sha1 -O openwrt.bin ubnt@192.168.1.20:/tmp/
+ issh ubnt@192.168.1.20 mtd write /tmp/openwrt.bin
+ sshpass -p ubnt ssh -oMacs=hmac-sha1 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PubkeyAuthentication=no -o LogLevel=error -o ServerAliveInterval=3 -o ServerAliveCountMax=3 ubnt@192.168.1.20 mtd write /tmp/openwrt.bin
ash: mtd: not found


And here are the two problems due to increased lock-down of new versions of the factory firmware.

Downgrading is no longer allowed.

The mtd command does not exist in the new firmware. mtd is not the only way to write to flash though. Some kernels treat MTD flash more like a regular file and dd or even cat > /dev/mtdX work. Trying this of course is a serious risk of bricking. Or find an mtd binary that matches the libraries in the stock firmware.

I am a beginner, please give me the steps to follow.
I point out that it's not just the new versions, elsewhere I'm on version 5.43.43

@RuralRoots I was able to solve the problem thanks to this link. thank you all.

2 Likes

Fascinating! So the short version is

echo "5edfacbf" > /proc/ubnthal/.uf

and then you can just dd OpenWrt to kernel0 as with earlier versions.

Credit @blocktrron

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.