EdgeRouter X

    spec

    Set-up

    1. Set-up static ip adress 192.168.1.2 and gateway 192.168.1.1 (see below)
    2. Connect on eth port 0
    3. Access https://192.168.1.1 (ubiquiti web interface)

    Note: default user ubnt, default password ubnt

    Source

    Install OpenWRT

    Through ssh, see below for the user/password

    Installing OpenWrt on these devices requires two steps: first to install a minimal “factory” image (filename includes initramfs-factory), then from that using the standard OpenWrt “sysupgrade” facility to install a full-fledged OpenWrt image (filename includes squashfs-sysupgrade).

    • flash the .tar and reboot: add system image /tmp/openwrt-ramips-mt7621-ubnt-erx-initramfs-factory.tar
    • change ethernet port from eth0 to eth1, now user is root and no ubnt
    • flash sysupgrade -n /tmp/openwrt-19.07.8-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.bin note, weirdly I had to reset (~10 second pushing) the openwrt to be able to run the sysupgrade command.

    Source

    Note: If at any point you soft-brick your router, you can recover it with the EdgeOS image following instructions here. See also revert to stock firmware.

    Files

    Note: To upgrade to the latest 21.02, I used the forcing upgrade sysupgrade -v -F -n /tmp/openwrt-21.02.0-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin from an OpenWRT installation, else it would not go because it was uncapable to migrate the configuration. Careful if you already have some configurtion it will be lost ! Then I had to run in failsafe (push reset button approx 5 seconds and release, then access it in ssh and run first_boot, then reboot).

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA256
    
    bdbc39358555d861f9442f54c10e0b026314247b6faa8176d79e037c72112b80  openwrt-19.07.8-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.bin
    7c530d990b83d045edbbe77c9447976f7d7bdadcfde70ba96ebc25f814c4c521  openwrt-21.02.0-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin
    1862167e0edddd198d3c811762774272474f82474996c32b72f4c70fb945f0dd  openwrt-ramips-mt7621-ubnt-erx-initramfs-factory.tar
    -----BEGIN PGP SIGNATURE-----
    
    iHUEAREIAB0WIQTvklEfN1MKqSoQFZ9IVFdXiuZ0RgUCYT5kjwAKCRBIVFdXiuZ0
    RnIOAQDF4wtg2m7FPmT/fe2Dnxn3Pn924gy9T+Vf34CEBtV/ywD7BJrTNtA0Byre
    p76eKA+enva1UUJNDCtxSGbpE4g75iE=
    =Vzx2
    -----END PGP SIGNATURE-----
    

    Brick device

    It happened once... no way to boot on failsafe.

    1. you reset 30 seconds
    2. with tftp, you flash to 192.168.1.20 through port 0
    tftp> connect 192.168.1.20
    tftp> binary
    tftp> put ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img.signed
    
    1. wait a little bit (3 to 5 minutes), to my case I had eth 0 led on for a while
    2. then follow "Install OpenWRT" part, you will have to go through 19.07 version FIRST then 21.02 (21.02 does not work first)

    ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img.signed