Is ea7300 v2 no longer supported?

Hello! I have the EA7300 v2 (https://openwrt.org/toh/linksys/ea7300_v2) which appears to be listed as a supported device. I followed the instructions and flashed the device using the web UI. Per the instructions I flashed the stock image first (to switch to partition B), then flashed OpenWRT 2nd. Both flashes "appeared" to be successful. However after flashing OpenWRT the device will fail to boot for a few mins, then fall back to the stock firmware.

I am using the images listed in the OpenWRT wiki.

I've tried flashing the device with the device having access to the WAN via the modem, and flashing the device unplugged from the WAN port.

I've tried flashing the stock image odd and even times to attempt to "change the boot partition" blindly since the linksys webui can't display basic information like what it booted from. It still always falls back to the stock firmware after flashing openwrt.

I fear linksys might have bricked the devices as far as installing OpenWRT. Does anyone have any suggestions? I'm worried I should return the product instead of trying to get it going via serial.

The device should be fully supported (it's effectively bog standard mt7621a+mt7603e+mt7615 hardware, with sufficient system specs), images are also readily available. Bugs and regressions for individual devices can always happen, as device coverage needs to be checked/ confirmed by its users (OpenWrt supports over 750 devices, the project can't test all of them, nor even has access to most of them).

Trying an older version of OpenWrt (21.02, 22.03) temporarily for the initial flashing might help (support for this device was added in mid- to late 2020, presumably 21.02 has the best chances to work/ have been tested), follow the procedures in:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=620f9c773413a0deaeda2bdc22d5e9cb89b9317f
If that works, try (sys)upgrading.

Disclaimer: the above is kind of generic, as I don't have access to that device either - while it would be interesting to see what's actually happening with serial console access, the steps above are likely to gather some results.

1 Like

Hello
It is supported. I'm using it. After booting the first time in openwrt remeber to modify the local.rc adding:

/rom/sbin/mtd unlock s_env
/rom/sbin/mtd erase s_env
exit 0

as reported in EA7300 installing

Then you can always reboot to the same partition flashed.
Regards

1 Like

The problem is there is no "first time booting OpenWRT" I'm on my ~20th attempt with no luck. Still have not seen that sweet sweet OpenWRT banner over SSH, as the Linksys boot-loader will not allow it.

As described in the original post the Linksys firmware always boots after flashing. I've tried installing the stock firmware first as instructed before flashing OpenWRT. I've tried flashing older versions of OpenWRT for the EA7300 v2 target and it still only boots the stock image. I've even tried installing the stock firmware in odd and even attempts to attempt to "force" the machine over to the "B" partition.

I've tried the 3x reset trick to force the other partition , with no luck. However since nobody took the time to document how long to wait between each 10 second hold of the reset button, its hard to know if I've properly attempted the "3x reset trick".

If anyone has ideas, I'd love to hear them. I'll be busting out the serial gear for this later this week. It really seems like linksys might have bricked these devices when it comes to booting OpenWRT

Well unfortunatley I'm not an expert btw I followed this steps, I try to give more details than the general install guide:

  1. connect LAN to my pc (disconnected from internet/wifi) and router
  2. Turn on router and wait for pc to get lan
  3. Flash Linksys GUI from itself. The device will now boot Linksys GUI from partition B. --> I've used this firmware version of the linksys firmware: FW_EA7300v2_2.0.3.192635_prod.img
  4. wait until the pc get lan again (dont touch anything, can take time.. dont phisically turn off before 25-30minutes or more if it doesnt get lan)
  5. Flash OpenWrt with Linksys GUI (I've done this with version 22.03.0 https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-linksys_ea7300-v2-squashfs-factory.bin
  6. wait until the pc get lan again (dont touch anything, can take time.., again dont phisically turn off before 25-30minutes or more if it doesnt get lan)
  7. connect to openwrt

For me, worked. Did you try in the same way? with the same firmware versions?

1 Like

I can confirm it is supported, I upgraded one to 23.05.0.rc2 10 days ago.
Take care of the browser cache, so use a private session to get rid of this issue.
Which file are you trying to flash?

From Linksys GUI, flash OpenWrt.
at reboot

  • if you are in OpenWrt than apply the local.rc patch
  • if you are still in Linksys GUI, than you were in the wrong partition. EDIT : Linksys GUI is on partition 1. Flash Linksys, it will force install on partition 2. Than flash OpenWrt, and apply rc.local patch. Sorry I missed to write this.

The trick is to install OpenWrt on partition 1 and apply the patch. It doesn't boot on partition 2.

You need to power on/off three times to force boot on the other partition. There is no reset button involved in the process.

Once you will have your device working, install luci-app-advanced-reboot to easily return to Linksys OEM. than you can flash a newer factory image when you would like to upgrade. You can't use sysupgrade on this device.

EDIT : I have seen the "hard reset" instructions in the docs, that is none sense. I have rewritten this. Hope it'll help.

1 Like

Does the device run any Linksys OEM right now ?
What is the exact version number of the device?
Do you own a newer version by any wizardry?

Well a few more bricks and you'll build a castle (ok bad joke :face_with_open_eyes_and_hand_over_mouth:)

1 Like

Okay, I had a bad cable in the mix and an issue with grounding. All good. I am now able to actually see what is going on... I'm currently looking over it but I am going to post it here too... On the surface, it's not looking good:


[    0.000000] Linux version 5.10.176 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Apr 27 20:28:15 2023
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Linksys EA7300 v2
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30480 r8192 d22768 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=0001500c
[    0.000000] Readback ErrCtl register=0001500c
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 249296K/262144K available (7064K kernel code, 631K rwdata, 832K rodata, 1252K init, 243K bss, 12848K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, 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: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000012] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007946] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.016997] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.083159] pid_max: default: 32768 minimum: 301
[    0.087921] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.095124] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105747] rcu: Hierarchical SRCU implementation.
[    0.110798] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.118912] smp: Bringing up secondary CPUs ...
[    0.124198] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.124208] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.124220] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.124294] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.178698] Synchronize counters for CPU 1: done.
[    0.211147] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.211156] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.211164] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.211210] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.270111] Synchronize counters for CPU 2: done.
[    0.300717] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.300726] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.300734] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.300783] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.355300] Synchronize counters for CPU 3: done.
[    0.385166] smp: Brought up 1 node, 4 CPUs
[    0.393324] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.403145] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.410156] pinctrl core: initialized pinctrl subsystem
[    0.417757] NET: Registered protocol family 16
[    0.423496] thermal_sys: Registered thermal governor 'step_wise'
[    0.424476] cpuidle: using governor teo
[    0.469883] clocksource: Switched to clocksource GIC
[    0.476593] NET: Registered protocol family 2
[    0.481271] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.490100] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.498416] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.506070] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.513148] TCP: Hash tables configured (established 2048 bind 2048)
[    0.519562] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.526063] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.533253] NET: Registered protocol family 1
[    0.537547] PCI: CLS 0 bytes, default 32
[    0.543893] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.554568] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.560351] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.571305] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.580523] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.586394] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.592327] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.598760] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.609438] printk: console [ttyS0] disabled
[    0.613792] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.622795] printk: console [ttyS0] enabled
[    0.622795] printk: console [ttyS0] enabled
[    0.631055] printk: bootconsole [early0] disabled
[    0.631055] printk: bootconsole [early0] disabled
[    0.643608] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    0.650047] nand: Winbond W29N01HV
[    0.653442] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.661007] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.668388] read_bbt: found bbt at block 1023
[    0.672943] 11 fixed-partitions partitions found on MTD device mt7621-nand
[    0.679828] Creating 11 MTD partitions on "mt7621-nand":
[    0.685127] 0x000000000000-0x000000080000 : "boot"
[    0.693492] 0x000000080000-0x0000000c0000 : "u_env"
[    0.700725] 0x0000000c0000-0x000000100000 : "factory"
[    0.707958] 0x000000100000-0x000000140000 : "s_env"
[    0.715130] 0x000000140000-0x000000180000 : "devinfo"
[    0.722399] 0x000000180000-0x000000580000 : "kernel"
[    0.752137] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    0.843884] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    0.935604] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.027353] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.119058] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.210883] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.302654] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.394426] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.486216] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.577972] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.669819] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.757954] 0x000000580000-0x000002980000 : "ubi"
[    1.945077] 0x000002980000-0x000002d80000 : "alt_kernel"
[    1.971649] 0x000002d80000-0x000005180000 : "alt_rootfs"
[    2.159253] 0x000005180000-0x000005280000 : "sysdiag"
[    2.170491] 0x000005280000-0x000007f80000 : "syscfg"
[    2.451063] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.459870] mtk_soc_eth 1e100000.ethernet: generated random MAC address 52:43:63:be:97:61
[    2.468851] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    2.478127] i2c /dev entries driver
[    2.484000] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    2.490742] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    2.499520] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    2.507709] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    2.515972] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.523516] NET: Registered protocol family 10
[    2.529823] Segment Routing with IPv6
[    2.533595] NET: Registered protocol family 17
[    2.538125] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.551533] 8021q: 802.1Q VLAN Support v1.8
[    2.559082] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.583441] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=26)
[    2.595767] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=27)
[    2.607945] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=28)
[    2.620237] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=29)
[    2.632444] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=30)
[    2.645006] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.655440] DSA: tree 0 setup
[    2.658758] rt2880-pinmux pinctrl: pcie is already enabled
[    2.664321] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    2.671026] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    2.679819] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    2.687968] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    2.696224] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.704041] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.711734] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    2.819083] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.824675] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    2.930335] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    2.937270] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    2.942144] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    2.947006] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.956454] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.962826] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    2.969699] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.976546] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.982032] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    2.992228] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.998226] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.004491] pci 0000:00:00.0: reg 0x14: [mem 0x60200000-0x6020ffff]
[    3.010813] pci 0000:00:00.0: supports D1
[    3.014806] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    3.021027] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    3.027051] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.033331] pci 0000:00:01.0: reg 0x14: [mem 0x60210000-0x6021ffff]
[    3.039671] pci 0000:00:01.0: supports D1
[    3.043663] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.051067] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    3.057108] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.064167] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000]
[    3.070044] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.077488] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.082733] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.088802] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.095584] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.102455] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    3.108491] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.115538] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    3.121972] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.138145] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    3.143393] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.149463] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    3.156242] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.162900] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    3.169486] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.176436] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.183048] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.190000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.196759] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    3.203531] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    3.210312] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[    3.217073] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    3.223853] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    3.230641] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    3.237403] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.242367] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    3.249127] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.255911] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    3.263215] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.268158] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    3.274927] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    3.284574] UBI error: no valid UBI magic found inside mtd6
[    3.291001] /dev/root: Can't open blockdev
[    3.295093] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.302609] Please append a correct "root=" boot option; here are the available partitions:
[    3.310951] 1f00             512 mtdblock0
[    3.310956]  (driver?)
[    3.317462] 1f01             256 mtdblock1
[    3.317466]  (driver?)
[    3.323996] 1f02             256 mtdblock2
[    3.324001]  (driver?)
[    3.330522] 1f03             256 mtdblock3
[    3.330526]  (driver?)
[    3.337031] 1f04             256 mtdblock4
[    3.337035]  (driver?)
[    3.343551] 1f05            4096 mtdblock5
[    3.343556]  (driver?)
[    3.350076] 1f06           36864 mtdblock6
[    3.350080]  (driver?)
[    3.356584] 1f07            4096 mtdblock7
[    3.356588]  (driver?)
[    3.363108] 1f08           36864 mtdblock8
[    3.363112]  (driver?)
[    3.369636] 1f09            1024 mtdblock9
[    3.369640]  (driver?)
[    3.376146] 1f0a           46080 mtdblock10
[    3.376150]  (driver?)
[    3.382758] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.391013] Rebooting in 1 seconds..

I don't like these nand_erase messages.

[    3.302609] Please append a correct "root=" boot option; here are the available partitions:

This means that a boot variable is missing, you need to fix this by entering a correct value while in console.

Can you log the whole boot? Look for a message at the very beginning telling to press a key. Do so. You are entering console mode. Enter printenv.

1 Like

Yes, no problem btw here are my settings on boot:

U-Boot 1.1.3 (Jan  3 2019 - 10:52:13)
MT7621 # printenv
bootcmd=tftp
bootdelay=5
baudrate=115200
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=192.168.1.1
serverip=192.168.1.123
auto_recovery=yes
boot_ver=0.1.8
BootType=3
boot_part_ready=3
boot_part=1
bootargs=console=ttyS1,115200n8 root=/dev/mtdblock6 ro rootfstype=jffs2 init=/sbin/init
stdin=serial
stdout=serial
stderr=serial

Environment size: 314/4092 bytes
MT7621 # mtdinfo

Start           Size            Name
0x00000000      0x00080000      bootloader
0x00080000      0x00040000      config
0x000c0000      0x00040000      factory
0x00100000      0x00040000      s_env
0x00140000      0x00040000      devinf
0x00180000      0x02880000      kernel
0x02980000      0x02880000      alt_kernel

And here is the full boot process with the reboot loop (I cut the power after it rebooted):

===================================================================

     		MT7621   stage1 code Nov  5 2018 08:37:41 (ASIC)

     		CPU=50000000 HZ BUS=16666666 HZ

==================================================================

Change MPLL source from XTAL to CR...

do MEMPLL setting..

MEMPLL Config : 0x11100000

3PLL mode + External loopback

=== XTAL-40Mhz === DDR-1200Mhz ===

PLL2 FB_DL: 0xe, 1/0 = 614/410 39000000

PLL4 FB_DL: 0x14, 1/0 = 547/477 51000000

PLL3 FB_DL: 0x15, 1/0 = 603/421 55000000

DDR patch working

do DDR setting..[00320381]

Apply DDR3 Setting...(use customer AC)

          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120

      --------------------------------------------------------------------------------

0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1

000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1

000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0

0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0

0011:|    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0    0

0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

DRAMC_DQSCTL1[0e0]=13000000

DRAMC_DQSGCTL[124]=80000033

rank 0 coarse = 15

rank 0 fine = 72

B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0

opt_dle value:9

DRAMC_DDR2CTL[07c]=C287221D

DRAMC_PADCTL4[0e4]=000022B3

DRAMC_DQIDLY1[210]=070F080F

DRAMC_DQIDLY2[214]=030F060F

DRAMC_DQIDLY3[218]=0F070E04

DRAMC_DQIDLY4[21c]=0C070E08

DRAMC_R0DELDLY[018]=00001E20

==================================================================

		RX	DQS perbit delay software calibration 

==================================================================

1.0-15 bit dq delay value

==================================================================

bit|     0  1  2  3  4  5  6  7  8  9

--------------------------------------

0 |    15 6 15 7 15 5 15 3 4 13 

10 |    6 15 7 14 7 12 

--------------------------------------




==================================================================

2.dqs window

x=pass dqs delay value (min~max)center 

y=0-7bit DQ of every group

input delay:DQS0 =32 DQS1 = 30

==================================================================

bit	DQS0	 bit      DQS1

0  (0~60)30  8  (2~58)30

1  (1~60)30  9  (1~58)29

2  (0~56)28  10  (1~58)29

3  (1~64)32  11  (0~55)27

4  (0~57)28  12  (1~58)29

5  (1~61)31  13  (1~60)30

6  (0~58)29  14  (1~59)30

7  (1~64)32  15  (1~59)30

==================================================================

3.dq delay value last

==================================================================

bit|    0  1  2  3  4  5  6  7  8   9

--------------------------------------

0 |    15 8 15 7 15 6 15 3 4 14 

10 |    7 15 8 14 7 12 

==================================================================

==================================================================

     TX  perbyte calibration 

==================================================================

DQS loop = 15, cmp_err_1 = ffff0a04 

DQS loop = 14, cmp_err_1 = ffff0a00 

dqs_perbyte_dly.last_dqsdly_pass[0]=14,  finish count=1 

DQS loop = 13, cmp_err_1 = ffff0000 

dqs_perbyte_dly.last_dqsdly_pass[1]=13,  finish count=2 

DQ loop=15, cmp_err_1 = ffff01aa

DQ loop=14, cmp_err_1 = ffff01aa

DQ loop=13, cmp_err_1 = ffff00aa

dqs_perbyte_dly.last_dqdly_pass[1]=13,  finish count=1 

DQ loop=12, cmp_err_1 = ffff00a2

DQ loop=11, cmp_err_1 = ffff00a0

DQ loop=10, cmp_err_1 = ffff0080

DQ loop=9, cmp_err_1 = ffff0080

DQ loop=8, cmp_err_1 = ffff0000

dqs_perbyte_dly.last_dqdly_pass[0]=8,  finish count=2 

byte:0, (DQS,DQ)=(b,8)

byte:1, (DQS,DQ)=(8,8)

DRAMC_DQODLY1[200]=88888888

DRAMC_DQODLY2[204]=88888888

20,data:8b

[EMI] DRAMC calibration passed




===================================================================

     		MT7621   stage1 code done 

     		CPU=50000000 HZ BUS=16666666 HZ

===================================================================



U-Boot 1.1.3 (Jan  3 2019 - 10:52:13)


Board: Ralink APSoC DRAM:  256 MB

relocate_code Pointer at: 8ff94000


Config XHCI 40M PLL 

Allocate 16 byte aligned buffer: 8ffca650

Enable NFI Clock

# MTK NAND # : Use HW ECC

NAND ID [EF F1 00 95 00]

Device found in MTK table, ID: eff1, EXT_ID: 9500

Support this Device in MTK table! eff1 

select_chip

[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16

Signature matched and data read!

load_fact_bbt success 1023

load fact bbt success

[mtk_nand] probe successfully!

mtd->writesize=2048 mtd->oobsize=64,	mtd->erasesize=131072  devinfo.iowidth=8

....Check Devinfo OK !!!


Updating boot_count ... header=0x20110811 , count=1 , checksum=20110812  ,auto_recovery->next_record=17 

write offs 0x108800, len 0xc

..ranand_erase: start:100000, len:20000 

.(5191)offs=1083392 piece=34816 piece_size=12 rc=0

Done!

write succeed

..Erasing NAND Flash...

ranand_erase: start:80000, len:20000 

.Writing to NAND Flash...

done


************************************

CBT Uboot Version: 0.1.8

************************************

============================================ 

Ralink UBoot Version: 5.0.0.0

-------------------------------------------- 

ASIC MT7621A DualCore (MAC to MT7530 Mode)

DRAM_CONF_FROM: Auto-Detection 

DRAM_TYPE: DDR3 

DRAM bus: 16 bit

Xtal Mode=3 OCP Ratio=1/3

Flash component: NAND Flash

Date:Jan  3 2019  Time:10:52:13

============================================ 

icache: sets:256, ways:4, linesz:32 ,total:32768

dcache: sets:256, ways:4, linesz:32 ,total:32768 


 ##### The CPU freq = 880 MHZ #### 

 estimate memory size =256 Mbytes

#Reset_MT7530

set LAN/WAN WLLLL


Please choose the operation: 

   1: Load system code to SDRAM via TFTP. 

   2: Load system code then write to Flash via TFTP. 

   3: Boot system code via Flash (default).

   4: Entr boot command line interface.

   7: Load Boot Loader code then write to Flash via Serial. 

   9: Load Boot Loader code then write to Flash via TFTP. 

default: 3

 4  3  2  1  0 

RECOVERY: Using Default KERNEL

   

3: System Boot system code via Flash.

## Booting image at bc180000 ...

   Image Name:   MIPS OpenWrt Linux-5.10.176

   Image Type:   MIPS Linux Kernel Image (uncompressed)

   Data Size:    2703940 Bytes =  2.6 MB

   Load Address: 80001000

   Entry Point:  80001000

..........................................   Verifying Checksum ... OK

OK

No initrd

## Transferring control to Linux (at address 80001000) ...

## Giving linux memsize in MB, 256


Starting kernel ...




OpenWrt kernel loader for MIPS based SoC

Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>

Decompressing kernel... done!

Starting kernel at 80001000...


[    0.000000] Linux version 5.10.176 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Apr 27 20:28:15 2023
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Linksys EA7300 v2
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30480 r8192 d22768 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=00015006
[    0.000000] Readback ErrCtl register=00015006
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 249296K/262144K available (7064K kernel code, 631K rwdata, 832K rodata, 1252K init, 243K bss, 12848K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, 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: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000012] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007946] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.016997] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.083159] pid_max: default: 32768 minimum: 301
[    0.087922] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.095125] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105746] rcu: Hierarchical SRCU implementation.
[    0.110796] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.118910] smp: Bringing up secondary CPUs ...
[    0.124198] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.124209] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.124220] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.124295] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.178696] Synchronize counters for CPU 1: done.
[    0.211141] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.211151] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.211158] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.211205] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.270107] Synchronize counters for CPU 2: done.
[    0.300714] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.300723] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.300731] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.300779] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.355296] Synchronize counters for CPU 3: done.
[    0.385162] smp: Brought up 1 node, 4 CPUs
[    0.393317] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.403138] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.410151] pinctrl core: initialized pinctrl subsystem
[    0.417767] NET: Registered protocol family 16
[    0.423411] thermal_sys: Registered thermal governor 'step_wise'
[    0.424765] cpuidle: using governor teo
[    0.470752] clocksource: Switched to clocksource GIC
[    0.477718] NET: Registered protocol family 2
[    0.482567] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.490966] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.499278] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.506911] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.514001] TCP: Hash tables configured (established 2048 bind 2048)
[    0.520439] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.526924] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.534157] NET: Registered protocol family 1
[    0.538453] PCI: CLS 0 bytes, default 32
[    0.545002] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.555448] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.561239] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.571812] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.581103] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.586940] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.592820] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.599268] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.609901] printk: console [ttyS0] disabled
[    0.614223] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.623213] printk: console [ttyS0] enabled
[    0.623213] printk: console [ttyS0] enabled
[    0.631465] printk: bootconsole [early0] disabled
[    0.631465] printk: bootconsole [early0] disabled
[    0.643841] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    0.650188] nand: Winbond W29N01HV
[    0.653662] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.661232] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.668624] read_bbt: found bbt at block 1023
[    0.673153] 11 fixed-partitions partitions found on MTD device mt7621-nand
[    0.680009] Creating 11 MTD partitions on "mt7621-nand":
[    0.685328] 0x000000000000-0x000000080000 : "boot"
[    0.693929] 0x000000080000-0x0000000c0000 : "u_env"
[    0.701205] 0x0000000c0000-0x000000100000 : "factory"
[    0.708507] 0x000000100000-0x000000140000 : "s_env"
[    0.715695] 0x000000140000-0x000000180000 : "devinfo"
[    0.723019] 0x000000180000-0x000000580000 : "kernel"
[    0.752793] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    0.844524] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    0.936184] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.027842] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.119500] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.211339] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.303081] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.394840] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.486568] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.578270] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.669953] nand: nand_erase_nand: attempt to erase a bad block at page 0x00000900
[    1.758042] 0x000000580000-0x000002980000 : "ubi"
[    1.944856] 0x000002980000-0x000002d80000 : "alt_kernel"
[    1.971494] 0x000002d80000-0x000005180000 : "alt_rootfs"
[    2.158860] 0x000005180000-0x000005280000 : "sysdiag"
[    2.169958] 0x000005280000-0x000007f80000 : "syscfg"
[    2.451925] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.460651] mtk_soc_eth 1e100000.ethernet: generated random MAC address a2:5b:22:a8:37:2e
[    2.469562] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    2.478756] i2c /dev entries driver
[    2.484825] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    2.491586] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    2.500368] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    2.508550] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    2.516819] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.524076] NET: Registered protocol family 10
[    2.530299] Segment Routing with IPv6
[    2.534130] NET: Registered protocol family 17
[    2.538649] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.552071] 8021q: 802.1Q VLAN Support v1.8
[    2.559614] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.585005] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=26)
[    2.597344] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=27)
[    2.609663] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=28)
[    2.622115] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=29)
[    2.634390] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=30)
[    2.646992] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.657424] DSA: tree 0 setup
[    2.660699] rt2880-pinmux pinctrl: pcie is already enabled
[    2.666296] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    2.673013] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    2.681807] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    2.689956] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    2.698222] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.705963] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.713583] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    2.820980] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.826545] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    2.932254] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    2.939189] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    2.944058] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    2.948919] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.958370] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.964736] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    2.971611] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.978458] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.983937] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    2.994133] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    3.000131] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.006390] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    3.013431] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    3.019222] pci 0000:00:00.0: supports D1
[    3.023235] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    3.029383] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    3.035436] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.041701] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    3.048719] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    3.054518] pci 0000:00:01.0: supports D1
[    3.058510] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.065545] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.073558] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.081783] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    3.087798] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.094858] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000]
[    3.100753] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.108131] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.113379] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.119448] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.126223] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    3.133447] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.140271] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    3.146316] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.153366] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    3.159774] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.175890] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    3.181134] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.187203] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.193978] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    3.201192] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.207828] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    3.214438] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.221390] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.227975] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.234925] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.241712] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    3.248904] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    3.255682] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    3.262893] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    3.269658] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    3.276443] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    3.283222] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    3.289989] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    3.296766] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.301728] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    3.308488] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.315261] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.322477] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    3.329764] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.334730] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    3.341506] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.348264] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.358352] UBI error: no valid UBI magic found inside mtd6
[    3.364796] /dev/root: Can't open blockdev
[    3.368886] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.376356] Please append a correct "root=" boot option; here are the available partitions:
[    3.384698] 1f00             512 mtdblock0 
[    3.384704]  (driver?)
[    3.391237] 1f01             256 mtdblock1 
[    3.391241]  (driver?)
[    3.397746] 1f02             256 mtdblock2 
[    3.397750]  (driver?)
[    3.404273] 1f03             256 mtdblock3 
[    3.404277]  (driver?)
[    3.410797] 1f04             256 mtdblock4 
[    3.410801]  (driver?)
[    3.417304] 1f05            4096 mtdblock5 
[    3.417308]  (driver?)
[    3.423829] 1f06           36864 mtdblock6 
[    3.423833]  (driver?)
[    3.430335] 1f07            4096 mtdblock7 
[    3.430338]  (driver?)
[    3.436861] 1f08           36864 mtdblock8 
[    3.436865]  (driver?)
[    3.443388] 1f09            1024 mtdblock9 
[    3.443392]  (driver?)
[    3.449895] 1f0a           46080 mtdblock10 
[    3.449899]  (driver?)
[    3.456514] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.464771] Rebooting in 1 seconds..


I wonder if this is related: SSHD for Official Linksys EA7500v2 Firmware - I think the 7500 very close in hardware to the 7300 off the top of my head.

Another note that may help other people You cannot change bootargs with OpenWRT: https://github.com/8devices/u-boot/issues/3#issuecomment-21688241

Going to try to compile OpenWRT and see if I cannot set the root device properly from the make menuconfig

Ok
printenv shows variables, root= is here.
Actually I'm afraid I can't help you anymore, you have already done everything I would have done myself. And you know how to deal in searching. Maybe ping @arrmo , he knows well this device.

Nice finding. Yes both devices should be very close and share some software/issue.

1 Like

For the next person to find this thread, fixed with the patch from this thread: SSHD for Official Linksys EA7500v2 Firmware - #4 by bism

You can't credit me for the solution. I gave you clues, you gave me perfect answers, more than I asked for. But we didn't manage to solve.
What I feel weird about (and also EA7500) is that sometimes the router installs well (despite being tricky with the bootcounter), sometimes it leads to this nand error. I only installed one EA7300 and ran into issues because of the partition trick (on part 1) and the need of the rc/local tweak. Now that I know this, it's easy to upgrade and I have no more issue whatsoever.

1 Like

TL;DR: Those with v2 having boot issues with 23.05.0 could try 23.05.3 as well, just in case.

I have a v1 EA7300, and the Factory image from its wiki page [OpenWrt Wiki] Linksys EA7300 v1 just didn't work, the router kept rebooting until falling back to Linksys GUI.
I assume my issue was the one discussed on this post, the bad nand one, but at the end my issue probably was another thing.
Because v1 and v2 similarity, what I used is the v1 23.05.0 release image, which is same "old" release 23.05.0 for the v2 wiki page (at the moment).

So then, I wanted to try a custom build just to try this NAND workaround out, but it was taking so long, and since I noted the actual latest release is newer, 23.05.3, I decided to give it a try and it somehow worked.
Since EA7300 v2 wiki page currently also points to its 23.05.0 older image, anyone landing here may want to try the newer 23.05.3 from the builds Index of /releases/23.05.2/targets/ramips/mt7621/ (openwrt.org) just in case.

typo error: the current version is 23.05.2, not .3.

Many devices have this wiki issue :frowning:

1 Like

A search of the forum and info from the wiki indicates that Openwrt FW can be installed from partition 2 (B) using the Linksys GUI to flash Openwrt FW to partition 1 (A) and when the router reboots it will boot into Openwrt on partition 1, but I have not been able to and the reboot always falls back to Linksys FW.

I just got an ea7300v2. I can flash the OEM image over itself repeatedly using the Linksys GUI and the reboot is always to the alternate partition. By using 192.168.1.1/sysinfo.cgi with user=admin and pw=admin, I can see that each time the OEM FW is flashed over itself the reboot is to the alternate partition.

Now the problem occurs when I try to flash the latest stable Openwrt FW using the Linksys GUI on partition 2 and, while the flashing appears to be successful, the reboot after flashing is not Openwrt on partition 1 but Linksys on partition 2. I have tried this numerous times to no avail. I have also tried to flash Openwrt from Linksys on partition 1 but this also fails.

Linksys FW on my ea7300v2 is the latest: Ver. 2.0.4.208179 and I have tried several recent stable Openwrt versions without success.

Hi
Sorry for the delay.
To make it simple, OpenWrt must be flashed on partition 1. So you must start from OEM on partition 2. Problem is that you can't know what is the active partition while being in OEM GUI. Other problem, if you flash OpenWrt on partition 2 and reboot, the bootloader will fails 3 times, and fallback to OEM on partition 1. So the key is to observe the reboot (LED, time) to know if the fallback as occured.

How do you know this ? I can't remember seing this info within OEM GUI.

  1. From OEM, whatever partition, flash again OEM. You will have OEM on both.
  2. flash OpenWrt. Observe the LED while rebooting. If you see fast than slow blinkings, for 20s, than the flash has been done correctly on partition 1. You can access to LuCI. go to step 4.
  3. if the reboot if long, and the LED blinks with three sequences, than the fallback is occuring . Flash as occured on partition 2, so it means that OEM runs on partition 1. Flash again OEM, so it will now boot on partition 2. Return to step 2.
  4. you should now boot OpenWrt from partition 1. Read the doc to modify etc/rc.local. This tweak erases the bootloader fail count at each start.

https://openwrt.org/toh/linksys/ea7300_v2#installation

Hi
Sorry for the delay.
To make it simple, OpenWrt must be flashed on partition 1. So you must start from OEM on partition 2. Problem is that you can't know what is the active partition while being in OEM GUI. Other problem, if you flash OpenWrt on partition 2 and reboot, the bootloader will fail 3 times, and fallback to OEM on partition 1. So the key is to observe the reboot (LED, time) to know if the fallback as occured.

How do you know this ? I can't remember seing this info within OEM GUI.

  1. From OEM, whatever partition, flash again OEM. You will have OEM on both.
  2. flash OpenWrt. Observe the LED while rebooting. If you see fast than slow blinkings, for 20s, than the flash has been done correctly on partition 1. You can access to LuCI. go to step 4.
  3. if the reboot is long, and the LED blinks with three sequences, than the fallback is occuring . Flash as occured on partition 2, so it means that OEM runs on partition 1. Flash again OEM, so it will now boot on partition 2. Return to step 2.
  4. you should now boot OpenWrt from partition 1. Read the doc to modify etc/rc.local. This tweak erases the bootloader fail count at each start.
  5. Enjoy.