Guidance upgrading EA4500 to 24.10

I'm trying to upgrade an EA4500 from 23.05.5 to 24.10.0 using a Firmware Selector image. I've tried a 'Sysupgrade' image and a 'Factory' image. The Sysupgrade image gives the error in this picture and the Factory image says metadata doesn't match. Forcing the Factory image with -F fails too, with the router finally falling back with it's dual firmware thing.

What can be done?

Did you follow the instructions in the screen shot you posted?

I tried, and it gave errors. Powershell doesn't have scrollback so I'm not sure exactly what errors. I'll try with something non-windows for a different terminal later in the week. Are those supposed to be 1, 2, 3, or more lines of commands? It's not clear where CR/LF is intended..

Putty.

Two commands, as far as I can see.

fw_setenv nandboot... and
fw_setenv altnandboot....

Unfortunately, I tried to use putty, but I had error

@## Error: "fw_setenv" not defined
nandboot=nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
## Error: "nand read.e 0x2000000 0x200000 0x400000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;" not defined

UPD:
The correct way to enter individual commands, one after the other!:

1. fw_printenv 
2. fw_setenv nandboot "$(fw_printenv nandboot | awk -F='{sub(/^nandboot=/, "");print}' | sed 's/0x300000/0x400000/g')" 
3. fw_setenv altnandboot "$(fw_printenv altnandboot | awk -F= '{sub(/^altnandboot=/, "");print}' | sed 's/0x300000/0x400000/g')"
4. fw_printenv
  1. upload FACTORY image with choose Force update checkbox
  2. restore old configuration

Result:
Firmware Version OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.014.55016~7046a1c

2 Likes

Can confirm this upgrade method works. Although, in my case, trying to retain the config was not possible and I had to do a hard reset and manually reconfigure. Not clear at this time exactly why that was the case.

Doesn't work for me.

The first fw_setenv doesn't work as "## Error: "nandboot" not defined"

Suggestions?

Need more details. Eg. current version of OpenWRT.

Would also be useful to have results of this command:

fw_printenv | grep nandboot

to be able to see what those values are currently.

What version of the EA4500 have you got ?

V1 + V2 <> V3.

Currently running 23.05 V2 of the EA4500 (pretty sure - the box is hard to get at - definitely not 3)

There is no environment variable nandboot
altnandboot exists and appears to be as expected.

Ran the commands as per the previous post and uploaded the factory image.
Box didn't come back up immediately - power cycled a few times and then it came back in 23.05

variables below are after this attempt.
Prior to the attempt

  • the 0x400000 in altnandboot was 0x300000
  • bootcmd=altnandboot
  • nandboot did not exist

Possibly should have waited when nandboot wasn't there to start with. But given the lack of info, and low impact if I bricked this box (could lead to a learning experience on unbricking .... and if we can't rely on the info the system presents, openwrt on this box becomes less desirable to use ).

root@OpenWrt:~# fw_printenv |grep nandboot
altnandboot=nand read.e 0x2000000 0x1c00000 0x400000; setenv bootargs $(console) $(mtdparts) $(alt_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
bootcmd="run nandboot"
root@OpenWrt:

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