Supporting the: "Linksys E8450", and the "Belkin RT3200".(aka "Belkin AX3200")
(The serial interface is displaying RX only for documentation purposes as the only interaction required is from within the web browser via HTTP file upload.)
This script downloads the OpenWrt ImageBuilder to generate a release-like (ie. including LuCI) sysupgrade image. The process involves re-packaging the initramfs image to contain everything necessary for a permanent recovery image within NAND flash including the installer script and the prerequisite installation images.
The resulting file openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery-installer.itb
is suitable to be flashed by the vendor firmware Web-UI as well as non-UBI OpenWrt running on the device (use sysupgrade -F openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery-installer.itb
).
WARNING This will replace the bootloader (TF-A 2.2, U-Boot 2020.10) and convert the flash layout of the device to UBI! The installer stores a copy of the previous bootchain in a dedicated UBI volume boot_backup
. If you want to go back to the vendor firmware, you will have to boot into recovery mode (ie. initramfs),
copy those files into /tmp
, umount the UBI volume, detach the UBI device and then write the files to the corresponding MTD partitions (mtd write $file /dev/mtdX).
To be on the safe side, it is still recommended to make a complete backup of the device flash before running the installer!
To use the script to generate the installer image, you will need all runtime requirements of the OpenWrt ImageBuilder installed as well as libfdt-dev
and cmake
which is needed by the installer-generator itself.
You may of course as well go ahead and download the generated files here.
- Connect any of the LAN ports of the device directly to the Ethernet port of your PC.
- Configure the IP address of the PC to be
192.168.1.254
, netmask255.255.255.0
, no gateway, no DNS. - Power on the device, wait about a minute for it to be ready.
- Open a web browser and navigate to http://192.168.1.1 and wait for the wizard to come up.
- Click exactly inside the radio button to confirm you have read the terms and conditions, then abort the wizard.
- You should then be greeted by the login screen, the stock password is "admin". (This step might only apply to the Linksys, everything else remains the same)
- Navigate to Administration -> Firmware Upgrade
- Upload
openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery-installer.itb
to vendor web interface upgrade page. - Wait for OpenWrt recovery image to come up.
- Login and navigate to System -> Backup / Flash Firmware (Consider taking another backup of every MTDblock category before proceeding)
- Upload the
openwrt-mediatek-mt7622-linksys_e8450-ubi-sysupgrade.itb
file. - Reboot and proceed to a normal OpenWrt setup (or upload your configuration file).
WARNING SNAPSHOT RELEASES ARE LARGELY UNTESTED! PROCEED AT YOUR OWN RISK!
- If you haven't already, backup every "mtdblock" category, and move the "boot_backup" to another device. (In the event of emergency you can reflash via JTAG
ssh root@192.168.1.1 -p 22
- Connect the WAN port to a router with internet, and DHCP
- Install
auc
package as follows:
opkg update
opkg install auc
(instead of using auc
on the console you may as well use luci-app-attendedsysupgrade
for a Web-UI version of the updater)
- Run
auc
(or open attended sysupgrade tab in LuCI) - Once completed, the system will reboot with current snapshot firmware.
(Verified with the April 6th 2021 Snapshot release)
- Hold down the "reset" button below the "WPS" button whilst powering on the device.
- Release the button once the power LED turns a orange/yellow color.
This will remove any user configuration errors and allow restoring or upgrading from ssh/http/tftp.