EA7300, Flash to "Wrong" Partition

I am out of ideas

but I feel like the actual problem is erasesize being > the length

1 Like

I was wondering about that too, but seems like that exists for several devices, no? And I did try changing the length => CRC error, so the length really is correct (I think :rofl:).

No worries. Really do appreciate all the suggestions. Thanks!

yeah and this goes back to the NAND issue...as this is never the case with NOR flash...

1 Like

Agreed! Problem is, without this - no way to select the partition to boot (it seems), also not possible to "normally" run on the second (alternative) side. OK, I did make it work, but it's a dirty hack ... :laughing:

BTW, just found this, going through the Linksys GPL (and first, splash from the EA7300v2 boot),

*********************************************************************************
              _        _  __    _    __ _____ __   __ _____
             | |      | ||  \  | |  / // ____]\ \ / // ____]TM
             | |      | ||   \ | | / /| (___   \ V /| (____
             | |      | || |\ \| |\ \  \____ \  \ /  \____ \
             | |_____ | || | \   | \ \  ____) | | |   ____) |
             |_______||_||_|  \__|  \_\[____ /  |_|  [_____/

 (c) 2013 Belkin International, Inc. and/or its affiliates. All rights reserved.
 Booting austin (firmware version 2.0.3.192635)
*********************************************************************************

OK, so codename is austin. Then from GPL, src/env/fw_env.h,

/* ---------------------------
 * Special case for Atlanta
 * ------------------------- */
#elif defined(PRODUCT_ATLANTA) || defined(PRODUCT_AUGUSTA) || defined(PRODUCT_SAVANNAH) || defined(PRODUCT_ATHENS) || defined(PRODUCT_COCOON) || defined(PRODUCT_AUSTIN)
#define MTD_UENV_NAME      "u_env"
#define MTD_UENV_OFFSET    0x0000
#define MTD_UENV_PART_SIZE 0x1000     /* MTK has heavily modified uboot */

AUSTIN is noted at the end of the line => settings are correct (offset, length).

Just FYI.

Thanks!

OK, I haven't solved the mystery yet, but ... I'm back to thinking it's r/w related. I also checked mtdinfo for the partition in question, and I see,

root@OpenWrt:/# mtdinfo /dev/mtd1
mtd1
Name:                           u_env
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          2 (262144 bytes, 256.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  2048 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             false

OK, need to fix that last line - in spite of what is in the dtsi file. So I tried changing the dtsi file, just in case that name was triggering something else. What's really screwy - here is the flash section for that partition now,

                partition@80000 {
                        label = "cfg";
                        reg = <0x80000 0x40000>;
                };

So no read-only, and I changed the name ... but the name is not matching above (the capture above is after a re-build ... make clean first too!). Hmmm ... it's like the (OpenWrt) flashing is not working. Next, will try to flash from U-Boot.

OK, all working now! :grinning_face_with_smiling_eyes:. I had to basically wipe all the build / temporary files (not just clean, more like dirclean). Rebuilt, now the u_env partition is r/w, as it should be with my dtsi change ... and fw_setenv works as a result. Life is good :champagne:.

Also, advanced-reboot works great as well, it changes the partition names as needed, so then booting from the correct kernel AND rootfs are right.

Thanks for all the pointers and suggestions. Much appreciated!

1 Like

so the mtd parser is automatically selecting rootfs now?

what patches did you remove / add?

Didn't add anything ... LOL! Somehow in all the building, editing, etc. something got messed up. I cleaned up (and I had it wrong, sort of like distclean), and rebuilt - now it's working great. The real issue was RO being stuck on for mtd1. I didn't touch that code (when cleaning up), but now it's working ... even advanced reboot, and flashing.

Nope, I can't explain it :stuck_out_tongue_winking_eye:. Sorry!

I'm referring to the original goal:

for the correct rootfs to be selected depending on which kernel is booting

Yes, that is working - I'm switching "sides" using advanced-reboot. It automatically changes the partition names, as needed for boot to work (the same as other routers - took me a while and some digging to figure that out). The partition named "ubi" is automatically selected, from the patch I mentioned above (I know, long thread - sorry!).

Thanks!

1 Like

OK, I may have an explanation for some of the oddities I was seeing - can't really confirm now, water under the bridge, but ... the old version of the dtsi file set the alternative partition to read-only. So when OpenWrt was trying to write there, it was likely failing, and rebooting ... so my changes weren't really being written. When I programmed from U-Boot, that's when it all started working. So it may have been fooling me (which is SLIGHTLY different from - I was being a fool :stuck_out_tongue_closed_eyes:).

Make sense?

1 Like

I read all the messages, but to be honest I kind of got lost midway through them.
I have been using the EA7300 for a couple of days now, and I find it very bothersome to have it reboot over to the OEM firmware if i'm not careful how I reboot it. Were you finally successful in flashing OpenWRT to both partitions? I have OpenWRT on the first one but OEM Linksys in the alternative.
If you can, could you write the steps to flash OpenWRT on the alternative as well? i tried the obvious way (which was to flash sysupgrade on OpenWRT) but as you said, it simply reflashed OpenWRT on top of the current OpenWRT partition.
Thanks in advance!
Juan

Me too! That's part of the grief, also how to flash (carefully).

I am working on it, getting close :grinning_face_with_smiling_eyes:. One question - do you have serial port access? I would like to check a couple things, make sure they aren't unique to my router.

Thanks!

Sure, I can get that :slight_smile: I just opened it but don't see any labels, could you provide me with the pinout? I have a couple ttl and rs232 -> usb adapters, i'm guessing it's 3.3v but i'd check with a DMM before doing any damage :laughing:

BTW: mine looks like this https://fccid.io/Q87-03397/Internal-Photos/Internal-Photos-4728618.pdf

Great! I actually have mine working (both partitions), but would like to see if you see the same things that I do (found some odd operation, want a second set of eyes :laughing:). Do you have a picture of your board? I closed my box back up, but I should be able to tell you from a pic where the serial port is.

BTW, I plan to capture some updates later today as well, over here.

Sure, I have it open, it looks just like the one in the pdf i linked in my previous post :slight_smile:
I'm pretty sure the serial port is the only 5 pins soldered to the board, but the pinout is nowhere to be found haha

Alright, figured out the pinout is 1-vcc 2-tx 3-rx 4-nc 5-gnd.
I can pass on the whole of the start of either openwrt or linksys austin firmware if you want. But you'll have to let me know :slight_smile:

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
bootargs=console=ttyS1,115200n8 root=/dev/mtdblock8 ro rootfstype=jffs2 init=/sbin/init
stdin=serial
stdout=serial
stderr=serial
boot_part=1

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

Now the big stuff, OpenWRT boot

===================================================================
                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 ===
PLL4 FB_DL: 0x5, 1/0 = 679/345 15000000
PLL3 FB_DL: 0xa, 1/0 = 556/468 29000000
PLL2 FB_DL: 0x1a, 1/0 = 666/358 69000000
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    0    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    1    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]=14000000
DRAMC_DQSGCTL[124]=80000000
rank 0 coarse = 16
rank 0 fine = 32
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]=060F050F
DRAMC_DQIDLY2[214]=010F040F
DRAMC_DQIDLY3[218]=0F080F07
DRAMC_DQIDLY4[21c]=0D080F09
DRAMC_R0DELDLY[018]=00001F1F
==================================================================
                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 |    14 3 14 6 15 2 15 0 5 12 
10 |    7 15 9 14 6 12 
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =31 DQS1 = 31
==================================================================
bit     DQS0     bit      DQS1
0  (1~57)29  8  (1~57)29
1  (1~57)29  9  (0~55)27
2  (1~58)29  10  (1~59)30
3  (1~62)31  11  (1~57)29
4  (1~59)30  12  (2~60)31
5  (1~58)29  13  (1~57)29
6  (1~59)30  14  (1~58)29
7  (1~60)30  15  (1~59)30
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    15 5 15 6 15 4 15 1 7 15 
10 |    8 15 9 15 8 13 
==================================================================
==================================================================
     TX  perbyte calibration 
==================================================================
DQS loop = 15, cmp_err_1 = ffff2a40 
DQS loop = 14, cmp_err_1 = ffff0000 
dqs_perbyte_dly.last_dqsdly_pass[0]=14,  finish count=1 
dqs_perbyte_dly.last_dqsdly_pass[1]=14,  finish count=2 
DQ loop=15, cmp_err_1 = ffff01aa
DQ loop=14, cmp_err_1 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=14,  finish count=1 
DQ loop=13, cmp_err_1 = ffff00a0
DQ loop=12, cmp_err_1 = ffff0080
DQ loop=11, cmp_err_1 = ffff0080
DQ loop=10, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=10,  finish count=2 
byte:0, (DQS,DQ)=(a,8)
byte:1, (DQS,DQ)=(8,8)
DRAMC_DQODLY1[200]=88888888
DRAMC_DQODLY2[204]=88888888
20,data:8a
[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=3 , checksum=20110814  ,auto_recovery->next_record=4 
write offs 0x102000, len 0xc
..ranand_erase: start:100000, len:20000 
.(5191)offs=1056768 piece=8192 piece_size=12 rc=0
Done!
write succeed

************************************
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
 0 
sync bootargs for DEFAULT
..Erasing NAND Flash...
ranand_erase: start:80000, len:20000 
.Writing to NAND Flash...
done
RECOVERY: Using Default KERNEL
   
3: System Boot system code via Flash.
## Booting image at bc180000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.113
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    2510682 Bytes =  2.4 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.4.113 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16575-4dcdc8249c)) #0 SMP Mon Apr 19 16:34:38 2021
[    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 14 pages/cpu s26768 r8192 d22384 u57344
[    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=00001242
[    0.000000] Readback ErrCtl register=00001242
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 250276K/262144K available (6061K kernel code, 210K rwdata, 1296K rodata, 1252K init, 238K bss, 11868K 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] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x31c/0x534 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007799] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.041999] pid_max: default: 32768 minimum: 301
[    0.046776] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054002] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064451] rcu: Hierarchical SRCU implementation.
[    0.069890] smp: Bringing up secondary CPUs ...
[    6.852888] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    6.852898] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    6.852910] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    6.853010] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.102655] Synchronize counters for CPU 1: done.
[    6.914201] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    6.914209] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    6.914217] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    6.914276] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.167371] Synchronize counters for CPU 2: done.
[    6.975594] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    6.975602] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    6.975611] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    6.975671] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.225237] Synchronize counters for CPU 3: done.
[    0.255110] smp: Brought up 1 node, 4 CPUs
[    0.263638] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.273326] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.280393] pinctrl core: initialized pinctrl subsystem
[    0.287265] NET: Registered protocol family 16
[    0.319155] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.330635] clocksource: Switched to clocksource GIC
[    0.337413] NET: Registered protocol family 2
[    0.342829] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.351176] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.358776] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.365857] TCP: Hash tables configured (established 2048 bind 2048)
[    0.372290] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.378781] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.385972] NET: Registered protocol family 1
[    0.390292] PCI: CLS 0 bytes, default 32
[    0.482612] 4 CPUs re-calibrate udelay(lpj = 1163264)
[    0.488943] random: fast init done
[    0.492520] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.510491] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.516264] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.527755] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.536863] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.542808] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.548622] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.554950] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.564961] printk: console [ttyS0] disabled
[    0.569262] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.578246] printk: console [ttyS0] enabled
[    0.578246] printk: console [ttyS0] enabled
[    0.586507] printk: bootconsole [early0] disabled
[    0.586507] printk: bootconsole [early0] disabled
[    0.598277] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.605844] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    0.612193] nand: Winbond W29N01HV
[    0.615602] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.623162] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.629708] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.637008] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.644306] Scanning device for bad blocks
[    1.297930] 11 fixed-partitions partitions found on MTD device mt7621-nand
[    1.304803] Creating 11 MTD partitions on "mt7621-nand":
[    1.310120] 0x000000000000-0x000000080000 : "boot"
[    1.316352] 0x000000080000-0x0000000c0000 : "u_env"
[    1.322493] 0x0000000c0000-0x000000100000 : "factory"
[    1.328938] 0x000000100000-0x000000140000 : "s_env"
[    1.335155] 0x000000140000-0x000000180000 : "devinfo"
[    1.341623] 0x000000180000-0x000000580000 : "kernel"
[    1.347905] 0x000000580000-0x000002980000 : "ubi"
[    1.354211] 0x000002980000-0x000002d80000 : "alt_kernel"
[    1.360796] 0x000002d80000-0x000005180000 : "alt_rootfs"
[    1.367579] 0x000005180000-0x000005280000 : "sysdiag"
[    1.373849] 0x000005280000-0x000007f80000 : "syscfg"
[    1.381849] libphy: Fixed MDIO Bus: probed
[    1.413028] libphy: mdio: probed
[    1.416526] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.424958] mtk_soc_eth 1e100000.ethernet: generated random MAC address ea:d5:e3:83:8f:90
[    1.434103] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    1.444375] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.452072] NET: Registered protocol family 10
[    1.457927] Segment Routing with IPv6
[    1.461781] NET: Registered protocol family 17
[    1.466347] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.479552] 8021q: 802.1Q VLAN Support v1.8
[    1.485676] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.502505] libphy: dsa slave smi: probed
[    1.507006] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    1.516667] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    1.526361] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    1.536103] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    1.545805] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    1.555659] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.566918] DSA: tree 0 setup
[    1.570192] rt2880-pinmux pinctrl: pcie is already enabled
[    1.575693] mt7621-pci 1e140000.pcie: Error applying setting, reverse things back
[    1.583325] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.590911] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.698139] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.703725] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.809047] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.816010] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.820888] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    1.825768] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.835225] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.841590] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.848457] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.855329] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.860851] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.866885] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.873152] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.879484] pci 0000:00:00.0: supports D1
[    1.883500] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.889594] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.895639] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.901908] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.908230] pci 0000:00:01.0: supports D1
[    1.912245] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.919391] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.927393] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.935588] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    1.941642] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.948044] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.955555] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.960790] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    1.966881] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.973664] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff pref]
[    1.980882] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.987693] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    1.993750] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.000695] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    2.015871] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.021108] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.027198] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    2.033980] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff pref]
[    2.041197] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.047854] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.054463] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.061420] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.068033] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.075000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.081786] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.089002] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.095789] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.103007] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.109797] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.116582] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.123369] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.130161] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.136945] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.141913] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.148696] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.155479] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.162703] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    2.170014] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.174980] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.181763] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.188544] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.196293] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    2.197432] UBI: auto-attach mtd6
[    2.206533] ubi0: attaching mtd6
[    2.576037] ubi0: scanning is finished
[    2.596153] ubi0: attached mtd6 (name "ubi", size 36 MiB)
[    2.601574] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.608437] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.615212] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.622158] ubi0: good PEBs: 288, bad PEBs: 0, corrupted PEBs: 0
[    2.628157] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.635368] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1618850078
[    2.644479] ubi0: available PEBs: 0, total reserved PEBs: 288, PEBs reserved for bad PEB handling: 20
[    2.653696] ubi0: background thread "ubi_bgt0d" started, PID 503
[    2.656934] block ubiblock0_0: created from ubi0:0(rootfs)
[    2.665215] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    2.672174] hctosys: unable to open rtc device (rtc0)
[    2.683330] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    2.694947] Freeing unused kernel memory: 1252K
[    2.699491] This architecture does not have kernel memory protection.
[    2.705923] Run /sbin/init as init process
[    3.247863] init: Console is alive
[    3.251534] init: - watchdog -
[    4.030055] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.125565] usbcore: registered new interface driver usbfs
[    4.131183] usbcore: registered new interface driver hub
[    4.136609] usbcore: registered new device driver usb
[    4.151725] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
[    4.160505] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[    4.169483] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    4.174832] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    4.190779] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    4.200006] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[    4.207078] hub 1-0:1.0: USB hub found
[    4.210937] hub 1-0:1.0: 2 ports detected
[    4.215545] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    4.220899] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    4.228390] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    4.234929] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.243870] hub 2-0:1.0: USB hub found
[    4.247711] hub 2-0:1.0: 1 port detected
[    4.257804] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.275099] init: - preinit -
[    4.927290] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    4.935603] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    4.944106] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.097616] random: jshn: uninitialized urandom read (4 bytes read)
[    5.163530] random: jshn: uninitialized urandom read (4 bytes read)
[    5.369090] random: jshn: uninitialized urandom read (4 bytes read)
[    5.667637] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    5.674713] 8021q: adding VLAN 0 to HW filter on device lan1
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
[    9.863467] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    9.869336] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 653
[    9.950130] UBIFS (ubi0:1): recovery needed
[   10.148615] UBIFS (ubi0:1): recovery completed
[   10.153202] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.161015] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.170905] UBIFS (ubi0:1): FS size: 28696576 bytes (27 MiB, 226 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[   10.181306] UBIFS (ubi0:1): reserved for root: 1355409 bytes (1323 KiB)
[   10.187910] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 4557BB2E-7E6F-4F19-8186-AF0C1CC11C43, small LPT model
[   10.212883] mount_root: switching to ubifs overlay
[   10.236122] urandom-seed: Seeding with /etc/urandom.seed
[   10.355226] procd: - early -
[   10.358197] procd: - watchdog -
[   10.966820] procd: - watchdog -
[   10.974551] procd: - ubus -
[   11.079225] procd: - init -
Please press Enter to activate this console.
[   11.777003] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.796928] tun: Universal TUN/TAP device driver, 1.6
[   11.815383] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf
[   11.823068] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2
[   11.847214] xt_time: kernel timezone is -0000
[   11.882353] urngd: v1.0.2 started.
[   11.900718] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=23
[   11.906168] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   11.911834] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[   11.918042] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   12.020531] random: crng init done
[   12.023963] random: 7 urandom warning(s) missed due to ratelimiting
[   12.543878] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   12.549476] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   12.582637] mt7603e 0000:01:00.0: firmware init done
[   12.774831] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=24
[   12.780267] pci 0000:00:01.0: enabling device (0004 -> 0007)
[   12.786007] mt7615e 0000:02:00.0: enabling device (0000 -> 0002)
[   12.831631] PPP generic driver version 2.4.2
[   12.837524] NET: Registered protocol family 24
[   12.860475] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.928273] mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   12.928273] 
[   13.238193] mt7615e 0000:02:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[   13.289091] mt7615e 0000:02:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307

That got cut up, OpenWRT the return

[   20.081861] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   20.100620] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   20.108899] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   20.112850] device eth0 entered promiscuous mode
[   20.122797] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   20.130098] 8021q: adding VLAN 0 to HW filter on device lan1
[   20.138917] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   20.146203] br-lan: port 1(lan1) entered blocking state
[   20.151567] br-lan: port 1(lan1) entered disabled state
[   20.157945] device lan1 entered promiscuous mode
[   20.187390] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   20.194789] 8021q: adding VLAN 0 to HW filter on device lan2
[   20.204559] br-lan: port 2(lan2) entered blocking state
[   20.209913] br-lan: port 2(lan2) entered disabled state
[   20.216781] device lan2 entered promiscuous mode
[   20.232536] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   20.239872] 8021q: adding VLAN 0 to HW filter on device lan3
[   20.249624] br-lan: port 3(lan3) entered blocking state
[   20.254975] br-lan: port 3(lan3) entered disabled state
[   20.262268] device lan3 entered promiscuous mode
[   20.276318] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   20.283695] 8021q: adding VLAN 0 to HW filter on device lan4
[   20.293019] br-lan: port 4(lan4) entered blocking state
[   20.298421] br-lan: port 4(lan4) entered disabled state
[   20.305686] device lan4 entered promiscuous mode
[   20.333408] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   20.340610] 8021q: adding VLAN 0 to HW filter on device wan
[   23.000783] br-lan: port 5(wlan0) entered blocking state
[   23.006233] br-lan: port 5(wlan0) entered disabled state
[   23.012374] device wlan0 entered promiscuous mode
[   24.315153] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.415308] br-lan: port 6(wlan1) entered blocking state
[   24.420664] br-lan: port 6(wlan1) entered disabled state
[   24.426681] device wlan1 entered promiscuous mode
[   24.431856] br-lan: port 6(wlan1) entered blocking state
[   24.437262] br-lan: port 6(wlan1) entered forwarding state
[   24.443237] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[   24.450783] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.458454] br-lan: port 6(wlan1) entered disabled state
[   24.464471] br-lan: port 2(lan2) entered blocking state
[   24.469793] br-lan: port 2(lan2) entered forwarding state
[   24.475794] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   24.488000] br-lan: port 3(lan3) entered blocking state
[   24.493304] br-lan: port 3(lan3) entered forwarding state
[   25.524415] pppoe-wan: renamed from ppp0
[   26.766850] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   26.773581] br-lan: port 6(wlan1) entered blocking state
[   26.778950] br-lan: port 6(wlan1) entered forwarding state
[   31.401158] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   31.407917] br-lan: port 5(wlan0) entered blocking state
[   31.413287] br-lan: port 5(wlan0) entered forwarding state

I can also provide the linksys one, but can't continue posting :laughing:

Great! Sorry for the delay - was tied up with family last night ... LOL!

Can you clarify, what you have on each partition (1 and 2)? And - are you comfortable flashing a new image (via u-boot)? If so, I can send you the build I have, for you to try out.

Glad to see this! It was my recent finding, that helped a lot. So OpenWrt is on partition 1, right?

FYI, it seems that using u-boot input (transfer to kernel command line) only works on 5.10.

Perhaps use Ubuntu (or another) Pastebin, just add a link here :laughing:.