A week ago I installed OpenWRT v14 on a Ubiquiti UniFi AP without any problem by following these instructions here:
https://wiki.openwrt.org/toh/ubiquiti/unifi
Today I am trying with another one (same model, or so I think), but the installation is not working at all.
These are my steps:
login as: admin
admin@192.168.11.2's password:
BusyBox v1.11.2 (2014-09-30 11:56:14 PDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
BZ.v3.2.6# wget https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/
openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin
BZ.v3.2.6# cd /tmp
BZ.v3.2.6# wget https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/
openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin
--2016-02-21 01:13:45-- https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:443... connected.
ERROR: cannot verify downloads.openwrt.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./OU=http://certs.starfieldtech.com/repository//CN=Starfield Secure Certificate Authority - G2':
Unable to locally verify the issuer's authority.
ERROR: certificate common name `www.openwrt.org' doesn't match requested host name `downloads.openwrt.org'.
To connect to downloads.openwrt.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
Well... the certificate thing did not happen the last week. I don't know what is going on, but I will ignore it as suggested:
BZ.v3.2.6# wget https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/
openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin --no-check-certificate
--2016-02-21 01:15:31-- https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin
Resolving downloads.openwrt.org... ^[[B^[[B78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:443... connected.
WARNING: cannot verify downloads.openwrt.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./OU=http://certs.starfieldtech.com/repository//CN=Starfield Secure Certificate Authority - G2':
Unable to locally verify the issuer's authority.
WARNING: certificate common name `www.openwrt.org' doesn't match requested host name `downloads.openwrt.org'.
HTTP request sent, awaiting response... 200 OK
Length: 3342748 (3.2M) [application/octet-stream]
Saving to: `openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin'
100%[=========================================>] 3,342,748 120K/s in 29s
2016-02-21 01:16:28 (113 KB/s) - `openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin' saved [3342748/3342748]
BZ.v3.2.6#So, I rename the file to "/tmp/fwupdate.bin" as must be done, and start "syswrapper":
BZ.v3.2.6# mv openwrt-ar71xx-generic-ubnt-unifi-squashfs-factory.bin /tmp/fwupdate.
bin
BZ.v3.2.6# syswrapper.sh upgrade2
+ execThe connection falls, but the AP is still on (IP 192.168.11.2 on my network):
luis@Midnighter:~$ sudo ping 192.168.11.2
[sudo] password for luis:
PING 192.168.11.2 (192.168.11.2) 56(84) bytes of data.
64 bytes from 192.168.11.2: icmp_seq=1 ttl=64 time=0.459 ms
64 bytes from 192.168.11.2: icmp_seq=2 ttl=64 time=0.197 ms
^C
--- 192.168.11.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.197/0.328/0.459/0.131 ms
luis@Midnighter:~$ nmap 192.168.11.2
Starting Nmap 7.01 ( https://nmap.org ) at 2016-02-20 23:20 CET
Nmap scan report for 192.168.11.2
Host is up (0.00036s latency).
All 1000 scanned ports on 192.168.11.2 are closed
Nmap done: 1 IP address (1 host up) scanned in 0.31 seconds
luis@Midnighter:~$After waiting 1-2 minutes (maybe the AP is still installing anything in background?), I power off the device 1 minute, power it on again, but IP (must be now 192.168.1.1 according to the OpenWRT Wiki) keeps the same, and I still can SSH login with the same data I had before (no "new host key" message when connecting, as it should) :
login as: admin
admin@192.168.11.2's password:
BusyBox v1.11.2 (2014-09-30 11:56:14 PDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
BZ.v3.2.6#Tested with the images:
https://downloads.openwrt.org/barrier_b … actory.bin
https://downloads.openwrt.org/chaos_cal … actory.bin
Could anyone give some ideas, please?
Why did it work fine with the other UniFi AP?
Further data:
- Prior to accessing the UniFi, I needed to install the (damned) Ubiquiti Controller software :-P , in order to give the device some basic config, like user/password so I could login via SSH. The process was performed in both cases from the same computer (Windows portable) and I think configuration was just the same (WiFi name, password, DHCP client for RJ45... etc).
