Unifi LR-6

    Install OpenWRT

    Through ssh, normally the devie 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-----
    

    Default Wifi Configuration

    /etc/config/wireless

    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 ) &