Did you manage to restore the original firmware? If so did you use the backup file you created or flashed it with the latest available firmware. Curious to know if the process of going back to stock was easy
So this command should work for kernel partition: tftpboot 44000000 192.168.1.76:FW_MX4200TR_2.0.5.210476_prod.img && nand erase 1080000 9600000 && nand write 44000000 1080000 2600000
and for alt_kernel partition: tftpboot 44000000 192.168.1.76:FW_MX4200TR_2.0.5.210476_prod.img && nand erase a680000 9600000 && nand write 44000000 a680000 2600000
The last value 2600000 need to be adjusted to actual OEM firmware size.
You can do the same by loading a file from USB: usb start && fatload usb 0:1 44000000 FW_MX4200TR_2.0.5.210476_prod.img && nand erase 1080000 9600000 && nand write 44000000 1080000 2600000 usb start && fatload usb 0:1 44000000 FW_MX4200TR_2.0.5.210476_prod.img && nand erase a680000 9600000 && nand write 44000000 a680000 2600000
These two commands are only run when updating OEM firmware:
thanks for the info, very helpful. I really appreciate your time. Im keen to try update my firmware as its running a very old version and fails to update using the app and webpage so Ill try the method you mentioned.
I'd like to run past you my plan to test the firmware on a MX4200v2. I'm an experienced Linux user but I have zero experience with OpenWrt.
I've forked OpenWrt's GitHub's repo, added your repo as remote and cherry-picked your commit adding support for the MX4200. Luckily there was only one conflict with the comments on package/firmware/ipq-wifi/Makefile. The results are here: https://github.com/innovara/openwrt/tree/linksys_mx4200
I've compiled the firmware and I believe I can flash it onto my MX4200v2 which is currently running stock firmware.
Since sysupgrade isn't working at present, could I, from time to time, flash back the stock firmware and flash a newly built version of OpenWrt like the first time? This would be through the command line or the web, I won't have serial access to the router.
At the moment I can't do any of this anyway because I don't have a backup router. I'll be having one soon though so I would like to know if this approach is flawed or it could work.
After the first installation, you can set these env variables to easy recovery from USB using the initramfs image:
fw_setenv usbimage 'openwrt-qualcommax-ipq807x-linksys_mx4200-initramfs-uImage.itb'
fw_setenv bootusb 'usb start && fatload usb 0:1 $loadaddr $usbimage && bootm $loadaddr'
fw_setenv bootcmd 'run bootusb; if test $auto_recovery = no; then bootipq; elif test $boot_part = 1; then run bootpart1; else run bootpart2; fi'