While taking my Belkin RT3200 out of service (replacing with GL iNet MT6000 Flint 2), I wanted to flash 23.05.5.
Despite several attempts using LuCI or the CLI, the RT3200 remains on the 22.03-SNAPSHOT firmware.
Here is the output of attempting sysupgrade
to 23.05.4... It failed - what other things could I try? Thanks.
root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# wget https://mirror-03.infra.openwrt.org/releases/23.05.4/targets/mediatek/mt7622/openwrt-23.05.4-mediatek-mt7622-lin
ksys_e8450-ubi-squashfs-sysupgrade.itb
Downloading 'https://mirror-03.infra.openwrt.org/releases/23.05.4/targets/mediatek/mt7622/openwrt-23.05.4-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb'
Connecting to 185.163.119.85:443
Writing to 'openwrt-23.05.4-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb'
openwrt-23.05.4-medi 100% |*******************************| 9676k 0:00:00 ETA
Download completed (9908531 bytes)
root@OpenWrt:/tmp# sysupgrade -v openwrt-23.05.4-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
Cannot save config while running from ramdisk.
Sun Sep 29 02:55:38 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions.
Command failed: Connection failed
root@OpenWrt:/tmp# Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.
Looks like you are running the initramfs image currently.
Try adding the -n
argument (this will not attempt to keep settings). You might also need the -F
(force) switch.
That didn't change anything. Router is still running 22.03-SNAPSHOT after it reboots. What other info could I provide?
sysupgrade -v -n -F openwrt-23.05.4-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
Sun Sep 29 11:40:22 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions.
Command failed: Connection failed
root@OpenWrt:/tmp# Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.
Hmm. I’m not sure.
I was looking at the device page for tftp info - that might be a way to get the upgrade to work. But there is all sorts of additional stuff on there which could be important regarding a possible brick scenario that could occur. I don’t have this device and I don’t want to provide any potential bad info…
Have you looked though that page recently?
https://openwrt.org/toh/linksys/e8450
There also appears to be a bunch of useful stuff here:
daniel
September 29, 2024, 8:01pm
6
You are apparently running off an initramfs. This could be the recovery image, and that means that the router will not start the production firmware because something might have happened which requires our attention. Please post the output of:
cat /sys/fs/pstore/*
1 Like
Here's the output. Some history on this router. I purchased this router (used) a couple years ago. I followed the somewhat complicated steps to flash the UBI image. I don't remember the exact version (but it was NOT a snapshot) but it would probably have been 22.05.x.
I declined to upgrade it because it was working fine and I wanted to avoid OKD. I replaced it with a GL.iNet Flint 2, so I figured I would update to 23.03.5. That got me to this point...
Please let me know of other info I could collect. Also - this is no longer my primary router, so I am willing to do more vigorous tests/experiments. Thanks again
root@OpenWrt:~# cat /sys/fs/pstore/*
Oops#1 Part1
<6>[ 0.108837] CPU: All CPU(s) started at EL2
<6>[ 0.113082] alternatives: patching kernel code
<6>[ 0.121213] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
<6>[ 0.131432] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
<6>[ 0.138551] pinctrl core: initialized pinctrl subsystem
<6>[ 0.145288] NET: Registered protocol family 16
<6>[ 0.150224] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
<6>[ 0.157580] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
<6>[ 0.165616] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
<6>[ 0.174194] thermal_sys: Registered thermal governor 'fair_share'
<6>[ 0.174199] thermal_sys: Registered thermal governor 'bang_bang'
<6>[ 0.180512] thermal_sys: Registered thermal governor 'step_wise'
<6>[ 0.186762] thermal_sys: Registered thermal governor 'user_space'
<6>[ 0.193263] ASID allocator initialised with 65536 entries
<6>[ 0.205696] pstore: Registered ramoops as persistent store backend
<6>[ 0.212133] ramoops: using 0x10000@0x42ff0000, ecc: 0
<3>[ 0.227341] Cannot find regmap for /clock-controller@10209000: -22
<1>[ 0.233804] Unable to handle kernel paging request at virtual address fffffffffffffffe
<1>[ 0.242005] Mem abort info:
<1>[ 0.244898] ESR = 0x96000005
<1>[ 0.248054] EC = 0x25: DABT (current EL), IL = 32 bits
<1>[ 0.253551] SET = 0, FnV = 0
<1>[ 0.256710] EA = 0, S1PTW = 0
<1>[ 0.259955] Data abort info:
<1>[ 0.262930] ISV = 0, ISS = 0x00000005
<1>[ 0.266898] CM = 0, WnR = 0
<1>[ 0.269965] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000044990000
<1>[ 0.276906] [fffffffffffffffe] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
<0>[ 0.285924] Internal error: Oops: 0000000096000005 [#1] SMP
<7>[ 0.291691] Modules linked in:
<7>[ 0.294852] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G S 5.10.221 #0
<7>[ 0.302600] Hardware name: Linksys E8450 (UBI) (DT)
<7>[ 0.307649] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
<7>[ 0.313867] pc : 0xffffffc010455e44
<7>[ 0.317473] lr : 0xffffffc01045eb20
<7>[ 0.321079] sp : ffffffc010b5bb20
<7>[ 0.324504] x29: ffffffc010b5bb20 x28: 0000000000000000
<7>[ 0.330004] x27: ffffffc0109a03c8 x26: ffffffc010abd378
<7>[ 0.335503] x25: ffffffc0109885e8 x24: 0000000000000000
<7>[ 0.341003] x23: ffffffc010ab7f08 x22: 0000000000000000
<7>[ 0.346503] x21: ffffff801fee5fa8 x20: fffffffffffffffe
<7>[ 0.352002] x19: 0000000000000000 x18: 000000000000004e
<7>[ 0.357501] x17: 000000000000001c x16: 00000000e2b07cbf
<7>[ 0.363000] x15: ffffffc010a29b60 x14: 00000000000000ea
<7>[ 0.368500] x13: 000000000000004e x12: ffffffc010b5b7f8
<7>[ 0.373999] x11: ffffffc010a81b60 x10: 00000000fffff000
<7>[ 0.379498] x9 : ffffffc010a81b60 x8 : 0000000000000000
<7>[ 0.384998] x7 : ffffffc010a29b60 x6 : 00000000ffffefff
<7>[ 0.390496] x5 : 0000000000000000 x4 : 0000000000000000
<7>[ 0.395995] x3 : ffffff8000050000 x2 : 0000000000000000
<7>[ 0.401494] x1 : ffffffc010b2c418 x0 : fffffffffffffffe
<7>[ 0.406994] Call trace:
<7>[ 0.409520] 0xffffffc010455e44
<7>[ 0.412766] 0xffffffc01045eb20
<7>[ 0.416011] 0xffffffc01045e970
<7>[ 0.419256] 0xffffffc0104a48b0
<7>[ 0.422501] 0xffffffc0104a246c
<7>[ 0.425745] 0xffffffc0104a2ba4
<7>[ 0.428990] 0xffffffc0104a2e10
<7>[ 0.432236] 0xffffffc0104a01f8
<7>[ 0.435481] 0xffffffc0104a28c4
<7>[ 0.438726] 0xffffffc0104a2e80
<7>[ 0.441971] 0xffffffc0104a14d8
<7>[ 0.445217] 0xffffffc01049ec38
<7>[ 0.448462] 0xffffffc0109c1694
<7>[ 0.451707] 0xffffffc010004b70
<7>[ 0.454951] 0xffffffc0109a1024
<7>[ 0.458196] 0xffffffc010810394
<7>[ 0.461441] 0xffffffc010005f78
<0>[ 0.464691] Code: 910003fd f9000bf3 52800013 b40000e0 (f9400013)
<4>[ 0.471013] ---[ end trace d6325dbc317ece51 ]---
Panic#2 Part1
<6>[ 0.121213] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
<6>[ 0.131432] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
<6>[ 0.138551] pinctrl core: initialized pinctrl subsystem
<6>[ 0.145288] NET: Registered protocol family 16
<6>[ 0.150224] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
<6>[ 0.157580] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
<6>[ 0.165616] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
<6>[ 0.174194] thermal_sys: Registered thermal governor 'fair_share'
<6>[ 0.174199] thermal_sys: Registered thermal governor 'bang_bang'
<6>[ 0.180512] thermal_sys: Registered thermal governor 'step_wise'
<6>[ 0.186762] thermal_sys: Registered thermal governor 'user_space'
<6>[ 0.193263] ASID allocator initialised with 65536 entries
<6>[ 0.205696] pstore: Registered ramoops as persistent store backend
<6>[ 0.212133] ramoops: using 0x10000@0x42ff0000, ecc: 0
<3>[ 0.227341] Cannot find regmap for /clock-controller@10209000: -22
<1>[ 0.233804] Unable to handle kernel paging request at virtual address fffffffffffffffe
<1>[ 0.242005] Mem abort info:
<1>[ 0.244898] ESR = 0x96000005
<1>[ 0.248054] EC = 0x25: DABT (current EL), IL = 32 bits
<1>[ 0.253551] SET = 0, FnV = 0
<1>[ 0.256710] EA = 0, S1PTW = 0
<1>[ 0.259955] Data abort info:
<1>[ 0.262930] ISV = 0, ISS = 0x00000005
<1>[ 0.266898] CM = 0, WnR = 0
<1>[ 0.269965] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000044990000
<1>[ 0.276906] [fffffffffffffffe] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
<0>[ 0.285924] Internal error: Oops: 0000000096000005 [#1] SMP
<7>[ 0.291691] Modules linked in:
<7>[ 0.294852] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G S 5.10.221 #0
<7>[ 0.302600] Hardware name: Linksys E8450 (UBI) (DT)
<7>[ 0.307649] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
<7>[ 0.313867] pc : 0xffffffc010455e44
<7>[ 0.317473] lr : 0xffffffc01045eb20
<7>[ 0.321079] sp : ffffffc010b5bb20
<7>[ 0.324504] x29: ffffffc010b5bb20 x28: 0000000000000000
<7>[ 0.330004] x27: ffffffc0109a03c8 x26: ffffffc010abd378
<7>[ 0.335503] x25: ffffffc0109885e8 x24: 0000000000000000
<7>[ 0.341003] x23: ffffffc010ab7f08 x22: 0000000000000000
<7>[ 0.346503] x21: ffffff801fee5fa8 x20: fffffffffffffffe
<7>[ 0.352002] x19: 0000000000000000 x18: 000000000000004e
<7>[ 0.357501] x17: 000000000000001c x16: 00000000e2b07cbf
<7>[ 0.363000] x15: ffffffc010a29b60 x14: 00000000000000ea
<7>[ 0.368500] x13: 000000000000004e x12: ffffffc010b5b7f8
<7>[ 0.373999] x11: ffffffc010a81b60 x10: 00000000fffff000
<7>[ 0.379498] x9 : ffffffc010a81b60 x8 : 0000000000000000
<7>[ 0.384998] x7 : ffffffc010a29b60 x6 : 00000000ffffefff
<7>[ 0.390496] x5 : 0000000000000000 x4 : 0000000000000000
<7>[ 0.395995] x3 : ffffff8000050000 x2 : 0000000000000000
<7>[ 0.401494] x1 : ffffffc010b2c418 x0 : fffffffffffffffe
<7>[ 0.406994] Call trace:
<7>[ 0.409520] 0xffffffc010455e44
<7>[ 0.412766] 0xffffffc01045eb20
<7>[ 0.416011] 0xffffffc01045e970
<7>[ 0.419256] 0xffffffc0104a48b0
<7>[ 0.422501] 0xffffffc0104a246c
<7>[ 0.425745] 0xffffffc0104a2ba4
<7>[ 0.428990] 0xffffffc0104a2e10
<7>[ 0.432236] 0xffffffc0104a01f8
<7>[ 0.435481] 0xffffffc0104a28c4
<7>[ 0.438726] 0xffffffc0104a2e80
<7>[ 0.441971] 0xffffffc0104a14d8
<7>[ 0.445217] 0xffffffc01049ec38
<7>[ 0.448462] 0xffffffc0109c1694
<7>[ 0.451707] 0xffffffc010004b70
<7>[ 0.454951] 0xffffffc0109a1024
<7>[ 0.458196] 0xffffffc010810394
<7>[ 0.461441] 0xffffffc010005f78
<0>[ 0.464691] Code: 910003fd f9000bf3 52800013 b40000e0 (f9400013)
<4>[ 0.471013] ---[ end trace d6325dbc317ece51 ]---
<0>[ 0.476391] Kernel panic - not syncing: Oops: Fatal exception
<2>[ 0.482340] SMP: stopping secondary CPUs
root@OpenWrt:~#
slh
September 29, 2024, 9:19pm
8
Disclaimer: I don't have this or other mt7622 (nor filogic) devices.
…but, if you're lucky, 'just' removing the old pstore files, be it by /sys/fs/pstore/*
or by powering it off (pulling the dc barrel plug) for a couple of minutes might already do the job. If that was only an intermittent issue (that both reports are effectively about the same issue isn't that promising though).
And... it was my lucky day. I did this:
cd /sys/fs/pstore
rm dmesg*
cd /tmp
wget https://mirror-03.infra.openwrt.org/releases/23.05.5/targets/mediatek/mt7622/openwrt-23.05.5-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
sysupgrade -v -n -F openwrt-23.05.5-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
And my router is now running a shiny copy of the newest OpenWrt. Next step - turn it into a "spare router" that I can easily re-use later.
Thanks!