Linksys e8450 Openwrt OKOD fix caused boot loop

Hello,

I have a linksys e8450 which was running openwrt and it stopped booting with no lights whenever I was turning it on. I read about OKD and tried to fix the router. everything went well and I didn't face any issues with mtk_uartboot. Now the router is booting but it's stuck in a boot loop.

I tried booting into recovery and it works fine. i tried re flashing the sysupgrade and the results are same. it goes into boot loop

I tried fail safe mode and that's working too.

The issue is normal boot is not working and it's continuously going into the boot loop.

At first since I was using openwrt 23.5.0 so i used the steps for the same version to recover from OKOD. but it went into boot loop.

Then I tried the same OKOD steps but with the 24.1 version fip and preloader with mkt_uartboot and flashed the recovery installer and sysupgrade of 24.1 openwrt version.

But it didn't resolve the boot loop problem. the router is still booting fine in recovery mode and failsafe mode.

Could any one please help me here. I really need this router to go back to normal.

Thank you so much

Provide a bootlog via serial

Thank you for your reply. Please find the boot log via serial below.


F0: 102B 0000
F6: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0400 0041 [0000]
G0: 1190 0000
T0: 0000 02EE [000F]
Jump to BL

NOTICE:  BL2: v2.12.0(release):OpenWrt v2025.02.12~e0907706-1 (mt7622-snand-ubi-1ddr)
NOTICE:  BL2: Built : 18:57:18, May 17 2025
NOTICE:  WDT: Cold boot
NOTICE:  CPU: MT7622
NOTICE:  WDT: disabled
NOTICE:  SPI-NAND: adjusting SPI-NAND pin drive strength to 12mA
NOTICE:  SPI-NAND: FM35Q1GA (128MB)
NOTICE:  UBI: scanning [0x80000 - 0x8000000] ...
NOTICE:  UBI: scanning is finished
NOTICE:  UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
NOTICE:  UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
NOTICE:  UBI: Volume fip (Id #0) size is 1021228 bytes
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.10.0  (release):OpenWrt v2024.01.17~bacca82a-3 (mt7622-snand-ubi-1ddr)
NOTICE:  BL31: Built : 23:09:37, Feb  3 2025


U-Boot 2024.10-OpenWrt-r28427-6df0e3d02a (Feb 03 2025 - 23:09:37 +0000)

CPU:   MediaTek MT7622
Model: mt7622-linksys-e8450-ubi
DRAM:  512 MiB
Core:  49 devices, 21 uclasses, devicetree: separate
MMC:
Loading Environment from UBI... SPI-NAND: FM35Q1GA (128MB)
Read 126976 bytes from volume ubootenv to 000000005f7bf0c0
Read 126976 bytes from volume ubootenv2 to 000000005f7de100
OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
reset button found
Loading Environment from UBI... UBI partition 'ubi' already selected
Read 126976 bytes from volume ubootenv to 000000005f7bf0c0
Read 126976 bytes from volume ubootenv2 to 000000005f7de100
OK
Net:   eth0: ethernet@1b100000

        ( ( ( OpenWrt ) ) )       U-Boot 2024.10-OpenWrt-r28427-6df0e3d02a (Feb 
      1. Run default boot command.
      2. Boot system via TFTP.
      3. Boot production system from flash.
      4. Boot recovery system from flash.
      5. Load production system via TFTP then write to flash.
      6. Load recovery system via TFTP then write to flash.
      7. Load BL31+U-Boot FIP via TFTP then write to flash.
      8. Load BL2 preloader via TFTP then write to flash.
      9. Reboot.
      a. Reset all settings to factory defaults.
      0. Exit


  Press UP/DOWN to move, ENTER to select, ESC to quit
UBI partition 'ubi' already selected
No size specified -> Using max size (10665984)
Read 10665984 bytes from volume fit to 0000000048000000

## Checking Image at 48000000 ...
   FIT image found
   FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
    Image 0 (kernel-1)
     Description:  ARM64 OpenWrt Linux-6.6.73
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x48001000
     Data Size:    5656044 Bytes = 5.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   9bc5014d
     Hash algo:    sha1
     Hash value:   59eabfdd94837265e52d18a375d60b0b3003c3c9
    Image 1 (fdt-1)
     Description:  ARM64 OpenWrt linksys_e8450-ubi device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x48566000
     Data Size:    31569 Bytes = 30.8 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   c7622ab4
     Hash algo:    sha1
     Hash value:   33e85deac30481fed49c9e690b121092bb94c5e4
    Image 2 (rootfs-1)
     Description:  ARM64 OpenWrt linksys_e8450-ubi rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x4856e000
     Data Size:    4960256 Bytes = 4.7 MiB
     Hash algo:    crc32
     Hash value:   d1c2dacd
     Hash algo:    sha1
     Hash value:   838150e4819d565833137c515df9a46e18fa3cbd
    Default Configuration: 'config-1'
    Configuration 0 (config-1)
     Description:  OpenWrt linksys_e8450-ubi
     Kernel:       kernel-1
     FDT:          fdt-1
     Loadables:    rootfs-1
## Checking hash(es) for FIT Image at 48000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+
   Hash(es) for Image 2 (rootfs-1): crc32+ sha1+
## Loading kernel from FIT Image at 48000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.6.73
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x48001000
     Data Size:    5656044 Bytes = 5.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   9bc5014d
     Hash algo:    sha1
     Hash value:   59eabfdd94837265e52d18a375d60b0b3003c3c9
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 48000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt linksys_e8450-ubi device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x48566000
     Data Size:    31569 Bytes = 30.8 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   c7622ab4
     Hash algo:    sha1
     Hash value:   33e85deac30481fed49c9e690b121092bb94c5e4
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x48566000
Working FDT set to 48566000
## Loading loadables from FIT Image at 48000000 ...
   Trying 'rootfs-1' loadables subimage
     Description:  ARM64 OpenWrt linksys_e8450-ubi rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x4856e000
     Data Size:    4960256 Bytes = 4.7 MiB
     Hash algo:    crc32
     Hash value:   d1c2dacd
     Hash algo:    sha1
     Hash value:   838150e4819d565833137c515df9a46e18fa3cbd
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Uncompressing Kernel Image to 44000000
   Loading Device Tree to 000000005e7ee000, end 000000005e7f8b50 ... OK
Working FDT set to 5e7ee000
Add 'ramoops@42ff0000' node failed: FDT_ERR_EXISTS

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.6.73 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28427-6df0e3d02a) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Mon Feb  3 23:09:37 2025
[    0.000000] Machine model: Linksys E8450 (UBI)
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.4
[    0.000000] percpu: Embedded 18 pages/cpu s35560 r8192 d29976 u73728
[    0.000000] pcpu-alloc: s35560 r8192 d29976 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512 ubi.block=0,fit root=/dev/fit0 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x000000005f4c0000-0x000000005f5c0000] (1MB)
[    0.000000] Memory: 500044K/524288K available (9152K kernel code, 950K rwdata, 1620K rodata, 448K init, 310K bss, 24244K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: 0xffffffc080010000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000001] sched_clock: 56 bits at 13MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008280] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.018679] pid_max: default: 32768 minimum: 301
[    0.026104] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.033452] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.043949] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.053363] rcu: Hierarchical SRCU implementation.
[    0.058190] rcu:     Max phase no-delay instances is 1000.
[    0.063939] smp: Bringing up secondary CPUs ...
[    0.068935] Detected VIPT I-cache on CPU1
[    0.068946] CPU features: SANITY CHECK: Unexpected variation in SYS_CNTFRQ_EL0. Boot CPU: 0x00000000bebc20, CPU1: 0x00000000000000
[    0.068968] CPU features: Unsupported CPU feature variation detected.
[    0.069033] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.069106] smp: Brought up 1 node, 2 CPUs
[    0.102042] SMP: Total of 2 processors activated.
[    0.106759] CPU features: detected: 32-bit EL0 Support
[    0.111915] CPU features: detected: CRC32 instructions
[    0.117100] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.125485] CPU: All CPU(s) started at EL2
[    0.129589] alternatives: applying system-wide alternatives
[    0.139994] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149891] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.157955] pinctrl core: initialized pinctrl subsystem
[    0.164393] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.170673] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.177787] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.185575] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.194006] thermal_sys: Registered thermal governor 'fair_share'
[    0.194012] thermal_sys: Registered thermal governor 'bang_bang'
[    0.200124] thermal_sys: Registered thermal governor 'step_wise'
[    0.206159] thermal_sys: Registered thermal governor 'user_space'
[    0.212272] ASID allocator initialised with 65536 entries
[    0.224516] pstore: Using crash dump compression: deflate
[    0.229943] pstore: Registered ramoops as persistent store backend
[    0.236143] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.251680] Modules: 29616 pages in range for non-PLT usage
[    0.251694] Modules: 521136 pages in range for PLT usage
[    0.258436] cryptd: max_cpu_qlen set to 1000
[    0.269227] SCSI subsystem initialized
[    0.273191] libata version 3.00 loaded.
[    0.278635] clocksource: Switched to clocksource arch_sys_counter
[    0.287021] NET: Registered PF_INET protocol family
[    0.292090] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.300737] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.309144] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.316920] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.324724] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.332076] TCP: Hash tables configured (established 4096 bind 4096)
[    0.338810] MPTCP token hash table entries: 512 (order: 1, 12288 bytes, linear)
[    0.346263] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.352829] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.360108] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.365820] PCI: CLS 0 bytes, default 64
[    0.371273] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.382406] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.388269] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.429840] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.438672] mt7622-pinctrl 10211000.pinctrl: invalid group "pwm_ch7_2" for function "pwm"
[    0.459100] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.472692] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.482836] printk: console [ttyS0] disabled
[    0.507651] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.516985] printk: console [ttyS0] enabled
[    0.516985] printk: console [ttyS0] enabled
[    0.525369] printk: bootconsole [uart8250] disabled
[    0.525369] printk: bootconsole [uart8250] disabled
[    0.556521] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 119, base_baud = 1562500) is a ST16650V2
[    0.567290] mtk_rng 1020f000.rng: registered RNG driver
[    0.568114] random: crng init done
[    0.580727] loop: module loaded
[    0.584473] mtk-ecc 1100e000.ecc: probed
[    0.592483] spi-nand spi2.0: Fidelix SPI NAND was found.
[    0.597809] spi-nand spi2.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.605981] mtk-snand 1100d000.spi: ECC strength: 4 bits per 512 bytes
[    0.612872] 2 fixed-partitions partitions found on MTD device spi2.0
[    0.619311] OF: Bad cell count for /spi@1100d000/flash@0/partitions
[    0.625586] OF: Bad cell count for /spi@1100d000/flash@0/partitions
[    0.632108] Creating 2 MTD partitions on "spi2.0":
[    0.636903] 0x000000000000-0x000000080000 : "bl2"
[    0.642622] 0x000000080000-0x000008000000 : "ubi"
[    0.779972] ubi0: default fastmap pool size: 50
[    0.784515] ubi0: default fastmap WL pool size: 25
[    0.789317] ubi0: attaching mtd1
[    1.071785] ubi0: scanning is finished
[    1.080487] ubi0: attached mtd1 (name "ubi", size 127 MiB)
[    1.085993] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.092883] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.099670] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.106622] ubi0: good PEBs: 1020, bad PEBs: 0, corrupted PEBs: 0
[    1.112711] ubi0: user volume: 8, internal volumes: 1, max. volumes count: 128
[    1.119928] ubi0: max/mean erase counter: 6/3, WL threshold: 4096, image sequence number: 47625610
[    1.128882] ubi0: available PEBs: 0, total reserved PEBs: 1020, PEBs reserved for bad PEB handling: 20
[    1.138190] ubi0: background thread "ubi_bgt0d" started, PID 302
[    1.138425] OF: Bad cell count for /spi@1100d000/flash@0/partitions
[    1.150681] OF: Bad cell count for /spi@1100d000/flash@0/partitions
[    1.157623] block ubiblock0_5: created from ubi0:5(fit)
[    1.328501] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc081620000, irq 126
[    1.338416] i2c_dev: i2c /dev entries driver
[    1.344504] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.354955] NET: Registered PF_INET6 protocol family
[    1.361129] Segment Routing with IPv6
[    1.364815] In-situ OAM (IOAM) with IPv6
[    1.368835] NET: Registered PF_PACKET protocol family
[    1.373926] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.387152] 8021q: 802.1Q VLAN Support v1.8
[    1.414133] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.420729] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.426567] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.685354] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.691593] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.697084] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.703962] pci_bus 0000:00: scanning bus
[    1.708154] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.714350] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.724595] pci_bus 0000:00: fixups for bus
[    1.728823] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.735523] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.743601] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.750745] pci_bus 0000:01: scanning bus
[    1.754913] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[    1.761109] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    1.768435] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    1.775764] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    1.783746] pci 0000:01:00.0: supports D1 D2
[    1.788012] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.794651] pci 0000:01:00.0: PME# disabled
[    1.799184] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.838897] pci_bus 0000:01: fixups for bus
[    1.843101] pci_bus 0000:01: bus scan returning with max=01
[    1.848700] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.855330] pci_bus 0000:00: bus scan returning with max=01
[    1.860936] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.868599] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.876620] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    1.883429] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    1.891275] pci 0000:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    1.899128] pci 0000:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    1.906962] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.911960] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    1.918791] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    1.927837] pci_bus 0000:00: resource 4 [mem 0x20000000-0x27ffffff]
[    1.934115] pci_bus 0000:01: resource 1 [mem 0x20000000-0x201fffff]
[    1.940614] pcieport 0000:00:00.0: assign IRQ: got 130
[    1.945767] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.951908] pcieport 0000:00:00.0: enabling bus mastering
[    1.957415] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44f150c0
[    1.964970] pcieport 0000:00:00.0: PME: Signaling with IRQ 130
[    1.971004] pcieport 0000:00:00.0: save config 0x00: 0x325814c3
[    1.976938] pcieport 0000:00:00.0: save config 0x04: 0x00100006
[    1.982880] pcieport 0000:00:00.0: save config 0x08: 0x06040000
[    1.988815] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    1.994738] pcieport 0000:00:00.0: save config 0x10: 0x0000000c
[    2.000669] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    2.006591] pcieport 0000:00:00.0: save config 0x18: 0x40010100
[    2.012522] pcieport 0000:00:00.0: save config 0x1c: 0x04200000
[    2.018445] pcieport 0000:00:00.0: save config 0x20: 0x20102000
[    2.024388] pcieport 0000:00:00.0: save config 0x24: 0x00000000
[    2.030322] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    2.036244] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    2.042175] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    2.048097] pcieport 0000:00:00.0: save config 0x34: 0x00000050
[    2.054028] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    2.059959] pcieport 0000:00:00.0: save config 0x3c: 0x00020182
[    2.066718] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[    2.073316] mtk-pcie 1a145000.pcie: Parsing ranges property...
[    2.079185] mtk-pcie 1a145000.pcie:      MEM 0x0028000000..0x002fffffff -> 0x0028000000
[    2.418688] mtk-pcie 1a145000.pcie: Port1 link down
[    2.423805] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[    2.430019] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.435508] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[    2.442390] pci_bus 0001:00: scanning bus
[    2.448247] pci_bus 0001:00: fixups for bus
[    2.452440] pci_bus 0001:00: bus scan returning with max=00
[    2.458012] pci_bus 0001:00: resource 4 [mem 0x28000000-0x2fffffff]
[    2.464994] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    2.473223] FIT: Detected U-Boot 2024.10-OpenWrt-r28427-6df0e3d02a
[    2.479461] FIT: Selected configuration: "config-1" (OpenWrt linksys_e8450-ubi)
[    2.486777] FIT:           kernel sub-image 0x00001000..0x00565deb "kernel-1" (ARM64 OpenWrt Linux-6.6.73)
[    2.496535] FIT:          flat_dt sub-image 0x00566000..0x0056db50 "fdt-1" (ARM64 OpenWrt linksys_e8450-ubi device tree blob)
[    2.507938] FIT:       filesystem sub-image 0x0056e000..0x00a28fff "rootfs-1" (ARM64 OpenWrt linksys_e8450-ubi rootfs)
[    2.519191] block ubiblock0_5: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    2.608218] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[    2.617401] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.628181] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=133)
[    2.650694] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=134)
[    2.672968] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=135)
[    2.695188] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=136)
[    2.717671] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=137)
[    2.729091] mtk_soc_eth 1b100000.ethernet eth0: entered promiscuous mode
[    2.735853] DSA: tree 0 setup
[    2.739453] clk: Disabling unused clocks
[    2.746832] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    2.754252] Freeing unused kernel memory: 448K
[    2.758784] Run /sbin/init as init process
[    2.762874]   with arguments:
[    2.765832]     /sbin/init
[    2.768531]   with environment:
[    2.771669]     HOME=/
[    2.774019]     TERM=linux
[    2.961425] init: Console is alive
[    2.964968] init: - watchdog -
[    3.361405] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.391103] usbcore: registered new interface driver usbfs
[    3.396657] usbcore: registered new interface driver hub
[    3.402070] usbcore: registered new device driver usb
[    3.407989] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.421381] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    3.426636] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    3.435720] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000200010
[    3.444839] xhci-mtk 1a0c0000.usb: irq 138, io mem 0x1a0c0000
[    3.450704] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    3.455935] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    3.463349] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    3.470106] hub 1-0:1.0: USB hub found
[    3.473917] hub 1-0:1.0: 2 ports detected
[    3.478403] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.487162] hub 2-0:1.0: USB hub found
[    3.490998] hub 2-0:1.0: 1 port detected
[    3.500533] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.518264] init: - preinit -
[    3.846358] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    3.855104] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.030789] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.665524] mt7530-mdio mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[    8.275141] UBIFS (ubi0:7): Mounting in unauthenticated mode
[    8.281019] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 800
[    8.298059] UBIFS (ubi0:7): recovery needed
[    8.333393] UBIFS (ubi0:7): recovery completed
[    8.337942] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
[    8.345803] UBIFS (ubi0:7): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.355726] UBIFS (ubi0:7): FS size: 96247808 bytes (91 MiB, 758 LEBs), max 769 LEBs, journal size 4825088 bytes (4 MiB, 38 LEBs)
[    8.367387] UBIFS (ubi0:7): reserved for root: 4546021 bytes (4439 KiB)
[    8.374006] UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID D15019A0-BE42-4305-BB61-D77A624BB777, small LPT model
[    8.386382] mount_root: overlay filesystem has not been fully initialized yet
[    8.395413] mount_root: switching to ubifs overlay
[    8.401954] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.413695] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.467157] mt7530-mdio mdio-bus:1f lan1: Link is Down
[    8.476965] procd: - early -
[    8.479999] procd: - watchdog -
[    9.040310] procd: - watchdog -
[    9.044580] procd: - ubus -
[    9.204187] procd: - init -
Please press Enter to activate this console.
[    9.509445] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.542608] Loading modules backported from Linux version v6.12.6-0-ge9d65b48ce1a
[    9.550120] Backport generated by backports.git v6.1.110-1-35-g410656ef04d2
[    9.632734] mt7622-wmac 18000000.wmac: registering led 'mt76-phy0'
[    9.709270] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.723902] urngd: v1.0.2 started.
[    9.727728] mt7915e 0000:01:00.0: assign IRQ: got 130
[    9.732904] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[    9.739066] mt7915e 0000:01:00.0: enabling bus mastering
[    9.781020] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    9.781020]
[    9.880110] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44f150c0
[    9.910107] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[    9.939941] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240429200716a
[    9.939941]
[   10.090612] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20240429200752
[   10.138446] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240429200812
[   10.254853] mt7915e 0000:01:00.0: registering led 'mt76-phy1'
[   10.327987] PPP generic driver version 2.4.2
[   10.333639] NET: Registered PF_PPPOX protocol family
[   10.343315] kmodloader: done loading kernel modules from /etc/modules.d/*

F0: 102B 0000
F6: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0400 0041 [0000]
G0: 1190 0000
T0: 0000 02EE [000F]
Jump to BL

NOTICE:  BL2: v2.12.0(release):OpenWrt v2025.02.12~e0907706-1 (mt7622-snand-ubi-1ddr)
NOTICE:  BL2: Built : 18:57:18, May 17 2025
NOTICE:  WDT: Cold boot
NOTICE:  CPU: MT7622
NOTICE:  WDT: disabled
NOTICE:  SPI-NAND: adjusting SPI-NAND pin drive strength to 12mA
NOTICE:  SPI-NAND: FM35Q1GA (128MB)
NOTICE:  UBI: scanning [0x80000 - 0x8000000] ...
NOTICE:  UBI: scanning is finished
NOTICE:  UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
NOTICE:  UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
NOTICE:  UBI: Volume fip (Id #0) size is 1021228 bytes
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.10.0  (release):OpenWrt v2024.01.17~bacca82a-3 (mt7622-snand-ubi-1ddr)
NOTICE:  BL31: Built : 23:09:37, Feb  3 2025


U-Boot 2024.10-OpenWrt-r28427-6df0e3d02a (Feb 03 2025 - 23:09:37 +0000)

CPU:   MediaTek MT7622
Model: mt7622-linksys-e8450-ubi
DRAM:  512 MiB
Core:  49 devices, 21 uclasses, devicetree: separate
MMC:
Loading Environment from UBI... SPI-NAND: FM35Q1GA (128MB)
Read 126976 bytes from volume ubootenv to 000000005f7bf0c0
Read 126976 bytes from volume ubootenv2 to 000000005f7de100
OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
reset button found
Loading Environment from UBI... UBI partition 'ubi' already selected
Read 126976 bytes from volume ubootenv to 000000005f7bf0c0
Read 126976 bytes from volume ubootenv2 to 000000005f7de100
OK
Net:   eth0: ethernet@1b100000

        ( ( ( OpenWrt ) ) )       U-Boot 2024.10-OpenWrt-r28427-6df0e3d02a (Feb 
      1. Run default boot command.
      2. Boot system via TFTP.
      3. Boot production system from flash.
      4. Boot recovery system from flash.
      5. Load production system via TFTP then write to flash.
      6. Load recovery system via TFTP then write to flash.
      7. Load BL31+U-Boot FIP via TFTP then write to flash.
      8. Load BL2 preloader via TFTP then write to flash.
      9. Reboot.
      a. Reset all settings to factory defaults.
      0. Exit

  Hit any key to stop autoboot: 3
  Press UP/DOWN to move, ENTER to select, ESC to quit

@Wallbanger Hello, I am not sure if its useful but i was trying many things and none of them worked out but i found something strange. When i boot into failsafe mode and use mount_root, the /overlay/upper and /overlay/work directories are empty. If i create any file or directory inside /overlay it gets removed when the router is rebooted to failsafe mode again. Also /rom/overlay directory is empty as well.