Unifi LR-6

    V1 vs V2

    Difference between two versions is that v1's LED has full RGB color support while v2's has limited blue/white colors, due to supply shortages.

    source

    Install OpenWRT

    Through ssh, normally the device get an ip through dhcp

    1. scp openwrt-mediatek-mt7622-ubnt_unifi-6-lr-squashfs-sysupgrade.bin ubnt@192.168.2.156:/tmp
    2. Check the mtd partition number for bs / kernel0 / kernel1 cat /proc/mtd
    3. Set the bootselect flag to boot from kernel0 dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock6
    4. 4 minutes flashing dd if=/tmp/openwrt-mediatek-mt7622-ubnt_unifi-6-lr-squashfs-sysupgrade.bin of=/dev/mtdblock8 dd if=/tmp/openwrt-mediatek-mt7622-ubnt_unifi-6-lr-squashfs-sysupgrade.bin of=/dev/mtdblock9
    5. reboot took 5 minutes until having a solid blue line
    6. connect the ap directly to the computer since it runs a DHCP server and distribute an ip by default you need to switch as a dhcp client

    Note: default user ubnt, default password ubnt

    source source 2

    Files

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA256
    
    b6146b76657927a673914aaa78f15e79341f87ecd43520d723296a5441a6d273  openwrt-21.02.1-mediatek-mt7622-ubnt_unifi-6-lr-squashfs-sysupgrade.bin
    -----BEGIN PGP SIGNATURE-----
    
    iHUEAREIAB0WIQS6FrUxin3X0/uI3zRD+jfzTY+N4AUCYYPeGgAKCRBD+jfzTY+N
    4MljAQC2L6Iher8tM4eEvty02jOChVdy1VNDiPF9EFiCaSK3aAEAr2p1jla5K4S1
    B/J8nqHjzYOcLa4TXkPU/5S++JfGt/Q=
    =4ppQ
    -----END PGP SIGNATURE-----
    
    scp network/misc/mesh-packages-mt7622/*.ipk mesh-node:/tmp/
    opkg install /tmp/*.ipk
    

    Important: here are packages for batman on ubiquiti with mt7622 on 21.02.1 version, it could be completely different from a chip to another and an OpenWRT version to another.

    The files are available in [misc/mesh-packages-mt7622]

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA256
    
    efb940fbf405318e59e31afe51767f949a6337213546018f21f3ddfdf9527eb4  batctl-full_2021.1-1_aarch64_cortex-a53.ipk
    6f555c784d672366e7874459238529c21e4e68e17fdaae47f6a029b7a8cdaaa8  batctl-tiny_2021.1-1_aarch64_cortex-a53.ipk
    a9531f2450c53c243087475c4af19fcb3db23723fd21304550120afc75cd7756  kmod-batman-adv_5.4.154+2021.1-4_aarch64_cortex-a53.ipk
    3690620c28de5d79549fa1b9dea5d802d9af312401d9e3023f66bc32b4278cdb  kmod-crypto-crc32c_5.4.154-1_aarch64_cortex-a53.ipk
    4c7b75d334b203ed5cc69e7a5522c1202909d3938a2e94f42bddea01043bdc36  kmod-crypto-hash_5.4.154-1_aarch64_cortex-a53.ipk
    fcdd9ac54677afb5454cc7ab585aecfac39cdd70dd8e4e2a01005ee98e310687  kmod-lib-crc16_5.4.154-1_aarch64_cortex-a53.ipk
    b06f53f514c892b3116ba93b0d75add2ab52a4ddf01f5a4671b860b1b499990e  kmod-lib-crc32c_5.4.154-1_aarch64_cortex-a53.ipk
    0f0e65f4538e63eae8d02444a92faecdeb49dad6c0d397f63d0a869af674a09e  libopenssl1.1_1.1.1l-1_aarch64_cortex-a53.ipk
    f5bd1e22c354b67d569572934a958e80ab42a1e1e1a75f081f2f2df57d23285a  librt_1.1.24-3_aarch64_cortex-a53.ipk
    1eb8c9aab04e5c043e1d4fb713ff15df66cdcef1310a5efe6bf1b42ca39a87a6  wpad-mesh-openssl_2020-06-08-5a8b3662-35_aarch64_cortex-a53.ipk
    -----BEGIN PGP SIGNATURE-----
    
    iHUEAREIAB0WIQS6FrUxin3X0/uI3zRD+jfzTY+N4AUCYYPreQAKCRBD+jfzTY+N
    4G5RAP9opkPozSaJ61jYZRcM8sU1fYHtgFoqqG/z3niHDThk+QD/Rg6YDDHMVeJK
    k/pDZyZ5Tv7MCanVYtuMRr8kMKbeVxA=
    =j0cq
    -----END PGP SIGNATURE-----
    

    Default Wifi Configuration

    /etc/config/wireless (from openwrt 21.02.1)

    config wifi-device 'radio0'
            option type 'mac80211'
            option path 'platform/18000000.wmac'
            option channel '1'
            option band '2g'
            option htmode 'HT20'
            option disabled '1'
    
    config wifi-iface 'default_radio0'
            option device 'radio0'
            option network 'lan'
            option mode 'ap'
            option ssid 'OpenWrt'
            option encryption 'none'
    
    config wifi-device 'radio1'
            option type 'mac80211'
            option path '1a143000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
            option channel '36'
            option band '5g'
            option htmode 'HE80'
            option disabled '1'
    
    config wifi-iface 'default_radio1'
            option device 'radio1'
            option network 'lan'
            option mode 'ap'
            option ssid 'OpenWrt'
            option encryption 'none'
    

    Led Color Pattern

    source

    Change the brightness

    echo 50 > /sys/class/leds/blue/brightness # 50%
    

    Turn off after 5 minute of a (re)boot - /etc/rc.local:

    ( /bin/sleep 5m && /bin/echo 0 > /sys/class/leds/blue/brightness ) &
    

    Recovery (Ubiquiti OS)

    The above recovery method normally works, however when I tried on one of my device it did not. I highly suspect an hardware default (weird/inconsistent flashing light). See also another user facing same issue

    1. push reset during 20sec+, wait blinking state (blue, white, black, blue, white etc.)
    2. ip address add 192.168.1.25/24 dev enp0s31f6 && ip route add default via 192.168.1.20
    3. tftp
    4. In case the ip is not 192.168.1.20, you can find it by looking with tcpdump -i enp0s31f6 arp
    connect 192.168.1.20
    binary
    put BZ.MT7622_6.5.54+14746.230522.2227.bin
    
    1. reboot and wait ~5 minutes

    BZ.MT7622_6.5.54+14746.230522.2227.bin