arm/mipsel/x86 packages

http://pkg.entware.net/binaries/mipsel/

tar zxvf *.ipk / *.tar.gz

Mi

MIWIFIRepairTool: https://www1.miwifi.com/miwifi_download.html

UBNT

UNMS

curl -fsSL https://unms.com/v1/install > /tmp/unms_inst.sh && sudo bash /tmp/unms_inst.sh

ER-X

system type             : MT7621

processor               : 3
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0f                                                    fb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt

Reset

Reset button for about 10 seconds until the eth4 LED flashing/solid. default: static | https://192.168.1.1 (eth0)

Console

Pinout: https://openwrt.org/_media/media/ubiquiti/edgerouter-x-sfp2.jpg
My TTL cables: green/red/yellow/grey | Putty: 57600 8-N-1

https://help.ubnt.com/hc/en-us/articles/360018189493-EdgeRouter-Manual-TFTP-Recovery#3
https://dl.ui.com/firmwares/edgemax/v2.0.x/ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img (>100M)

The baud rate for ER-X / ER-X-SFP / ER-10X and EP-R6 console connections is 57600 instead of 115200.
Hold down the 1 (number one) key as the router starts up

1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
        Input device IP (172.16.3.212) ==:192.168.1.20
        Input server IP (172.16.3.210) ==:192.168.1.10
        Input Linux Kernel filename (vme50) ==:ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img

bootloader

https://help.ubnt.com/hc/en-us/articles/360009932554-EdgeRouter-How-to-Update-the-Bootloader

show system boot-image
add system boot-image

Firmware

https://www.ui.com/download/edgemax/edgerouter-x

show version 
add system image http://dl.ubnt.com/...
add system image egdeos-120821.tar
show system image 
reboot
show system image storage 
set system image default-boot 
delete system image

set interfaces ethernet eth1 address 192.168.3.2/24
commit

OpenWRT

https://openwrt.org/toh/ubiquiti/ubiquiti_edgerouter_x_er-x_ka

custom scripts

chmod +x /config/scripts/post-config.d/yourscript.sh
    #!/bin/bash

Web Setup Wizards

Switch

 switch switch0 {
     address dhcp
     switch-port {
         interface eth0 {
         }
         interface eth1 {
         }
         interface eth2 {
         }
         interface eth3 {
         }
         interface eth4 {
         }
     }
 }

CLI

ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt# show

add bridge

https://help.ui.com/hc/en-us/articles/205223350-EdgeRouter-Creating-a-Bridged-Interface

# WebUI: remove eth3 from switch0
set interfaces bridge br2 address dhcp
set interfaces ethernet eth3 bridge-group bridge br2
commit; save
# WebUI Dashboard: manage bridge/add ports

enable apt

https://help.ubnt.com/hc/en-us/articles/205202560-EdgeRouter-Add-other-Debian-packages-to-EdgeOS

configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy 
set system package repository wheezy url http://http.us.debian.org/debian
commit
save
exit
sudo apt-get update
apt-cache search supervisor

List dhcp/static clients

https://community.ubnt.com/t5/EdgeMAX/Anyway-to-see-connected-clients-Both-DHCP-and-Static/td-p/697223

set service dhcp-server hostfile-update enable  
cat /etc/hosts

RIP

ubnt@ubnt# show protocols rip

    interface switch0
    interface eth0
    neighbor 192.168.3.1
    redistribute {
        connected {
        }
    }

Unifi-AC-Lite/LR

https://community.ubnt.com/t5/UniFi-Updates-Blog/bg-p/Blog_UniFi

system type             : Qualcomm Atheros QCA956X rev 0
processor               : 0
cpu model               : MIPS 74Kc V5.0
BogoMIPS                : 385.84
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, ...
ASEs implemented        : mips16 dsp

BZ.v3.7.5# free -m
             total         used         free       shared      buffers
Mem:(Lite)        126316        62272        64044            0            0
-/+ buffers:              62272        64044
Mem:(LR)        126272        66764        59508            0            0
-/+ buffers:              66764        59508
Swap:            0            0            0

BZ.v3.7.5# info
BZ.v3.7.5# set-inform http://unifi:8080/inform

Controller Web

Settings - search "AUTHENTICATION" for SSH/SMTP
Every minor change on controller causes SSID reset!

NanoStation

M2 loco - guide: https://dl.ubnt.com/guides/NanoStation_M/NanoStation_M_Loco_M_QSG.pdf - fw: https://www.ui.com/download/software/locom2

as normal AP - /ubnt.cgi : airMax off