ER-X bad link, improved instructions

Documentation for installing Ubiquiti Edgerouter-X has a bad link, and is confusing about which kernel to use.

Firstly, the link to an image from mega.nz is dead.

Secondly, this paragraph is confusing.
Another clip is that at the moment the created firmware install images of section Firmware download cannot be used for this approach because they are too big in size. They are not fitting into the kernel partition (Device Flash Layout 3145728 vs. 3547875; the Ubiquiti installer is checking the filesize and fail; openwrt-19.07.4-ramips-mt7621-ubnt-erx-initramfs-kernel.bin; 08.11.2020). If you want to use them use the serial console and load the file via TFTP into RAM and install OpenWrt via sysupgrade after follow: Serial installation with TFTP for this.

The confusion (to me at least) is because of file naming in step 5;
Upload the kernel image to the device, access the device via SSH and install the firmware:
scp /path/to/your/kernel-image/openwrt-ramips-mt7621-ubnt-erx-initramfs-kernel.bin root@192.168.1.1:/tmp

The filename it says to SCP is the one the top section to only use when using Serial installation with TFTP, which has different instructions.

scp /path/to/your/kernel-image/openwrt-ramips-mt7621-ubnt-erx-initramfs-factory.tar root@192.168.1.1:/tmp

The difference in the filenames is one ends in 'factory.tar' the other 'kernel.bin'

The step after scp'ing the factory.tar/kernel.bin is to ssh to 192.168.1.1;
ssh root@192.168.1.1
However the default user (and password) from the original firmware is ubnt, so i believe it should be
ssh ubnt@192.168.1.1 (and swap from eth0 to eth1)

Because the factory.tar is old, there are difficulties scp'ing the sysupgrade image across, i somehow stumbled across this combination of options to work with debian testing.
scp -O -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa openwrt-21.02.3-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin root@192.168.1.1:/tmp

Im having trouble recovering my 2 er-x after a power outage, so it could also be that im misinterpreting the above.

These are the steps that worked cleanly for me installing from Debian testing system.

  1. Upload the kernel image to the device, access the device via SSH and install the firmware: (password:ubnt)
> scp /path/to/your/kernel-image/openwrt-ramips-mt7621-ubnt-erx-initramfs-factory.tar ubnt@192.168.1.1:/tmp
> ssh ubnt@192.168.1.1
> ubnt@ubnt:/$ cd tmp
> ubnt@ubnt:/tmp$ add system image openwrt-ramips-mt7621-ubnt-erx-initramfs-factory.tar
  1. After the device has rebooted connect your PC to eth1 of EdgeRouter (you should get an IP automatically now) and upload the sysupgrade image to the device, access the device via SSH and install the firmware to finish installation process:
> scp -O -o HostKeyAlgorithms=+ssh-rsa /path/to/your/kernel-image/openwrt-19.07.4-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.bin root@192.168.1.1:/tmp
> ssh -o HostKeyAlgorithms=+ssh-rsa  root@192.168.1.1
> root@openwrt:/$ cd tmp
> root@openwrt:/tmp$ sysupgrade -v -n -F openwrt-19.07.4-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.bin

Thnx, and Applying for OpenWrt wiki account

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.