how to upgrade ubnt unifi ac
how to upgrade uap-ac-pro to okos image
Reference
UniFi-TFTP-Recovery
uap-ac-lite openwrt
unifiac on openwrt
Background
there are two partitions, okos merge them into one, so we must split them.
partition name|size| offset in image
—|---|—
kernel0|0x7900(7929856)|0x0000
kernel1|0x7900(7929856)|0x7900
steps
- ssh ubnt@<ip addr>
- cd /tmp
- wget -O 1.tar.gz ‘http://a1.oakridge.io:8000/okos_v2.0.0_20170728142143_openwrt-ar71xx-generic-ubnt-unifi-pro-squashfs-sysupgrade.bin.tar.gz‘
- tar xzf 1.tar.gz
- rm -rvf 1.tar.gz
- dd if=openwrt-ar71xx-generic-ubnt-unifi-pro-squashfs-sysupgrade.bin of=kernel0.bin bs=7929856 count=1
- dd if=openwrt-ar71xx-generic-ubnt-unifi-pro-squashfs-sysupgrade.bin of=kernel1.bin bs=7929856 count=1 skip=1
- mtd write /tmp/kernel0.bin kernel0
- mtd write /tmp/kernel1.bin kernel1
- reboot
Recovery it to UBNT Image
Background
ubnt bootloader provides the tftp server with ip 192.168.1.20, after press and hold the UniFi AP’s reset button when plug in power cable.
Steps
- download firmware from (https://s3-eu-west-1.amazonaws.com/ps-firmware/other/firmware/U7PG2/3.4.7.3284/firmware.bin).
- Set a static IP on your Computer’s NIC. A static IP of 192.168.1.25, subnet of 255.255.255.0 and gateway of 192.168.1.20 will work.
- Install tftp tool on PC. you can install this one pumpkin.
- Plug the UniFi PoE injector’s LAN cable directly to your computer.
- Using a paperclip press and hold the UniFi AP’s reset button. Make sure you can feel it being depressed by the paperclip. Do not release the button until lasts 12s. then AP setups the tftp server and waiting for file upload.
- Uses the Pumpkin TFTP software on PC, and click on “Put File”.
- In “Local Files” browse for the firmware you downloaded and saved previously
- In the “Remote host” field enter the gateway you had predetermined (192.168.1.20), then click OK
nicephil@gmail.com 2017-7-28