Netgear R6220 Not booting after OpenWrt upgrade

Hello,

I need your help.

I have a Netgear R6220 router for about 5 years, and in the last 2 I have used openwrt firmware.

Yesterday I tried to update the firmware at the last version and I think I made a mistake, now the router doesn't work anymore, so I soldered pin for the UART transmission, and this is the output (txt file, the text is to long per the message).

It seems is it in some kind of loop, but if I am fast, with CTRL+C I can enter in

U-Boot 1.1.3 (Sep 25 2015 - 10:29:47) SERCOMM #

Boot serial
===================================================================
                MT7621   stage1 code 13:15:05 (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: 0x5, 1/0 = 589/435 15000000
PLL3 FB_DL: 0xc, 1/0 = 699/325 31000000
PLL4 FB_DL: 0x1a, 1/0 = 586/438 69000000
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    0
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    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
rank 0 coarse = 15
rank 0 fine = 72
B:|    0    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0
opt_dle value:11
DRAMC_R0DELDLY[018]=00001D1F
==================================================================
                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 11 15 13 15 11 15 8 4 11
10 |    7 14 7 12 5 12
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =31 DQS1 = 29
==================================================================
bit     DQS0     bit      DQS1
0  (0~59)29  8  (1~55)28
1  (1~59)30  9  (1~56)28
2  (0~59)29  10  (1~57)29
3  (1~58)29  11  (1~52)26
4  (0~57)28  12  (1~54)27
5  (1~61)31  13  (0~56)28
6  (0~59)29  14  (1~55)28
7  (1~62)31  15  (0~56)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    15 12 15 15 15 11 15 8 5 12
10 |    7 15 9 13 6 13
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff2a01
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 = ffff0082
dqs_perbyte_dly.last_dqdly_pass[1]=14,  finish count=1
DQ loop=13, cmp_err_1 = ffff0080
DQ loop=12, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=12,  finish count=2
byte:0, (DQS,DQ)=(9,8)
byte:1, (DQS,DQ)=(8,8)
20,data:89
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (Sep 25 2015 - 10:29:47)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fac000

Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 87fe1bb0
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 F1 80 1D C2]
Device found in MTK table, ID: c2f1, EXT_ID: 801dc2
Support this Device in MTK table! c2f1
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
Env addr : 0x100000
.*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.2.1.0
--------------------------------------------
ASIC MT7621AS (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:Sep 25 2015  Time:10:29:47
============================================
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 =128 Mbytes

Reset switch ...
#Reset_MT7530
set LAN/WAN LLLLW
..Example expects ABI version 2
Actual U-Boot ABI version 2

******************************************
    Uboot StandAlone Entry
******************************************
0, cmd
1, 0x0000000D
cmd : 0x0000000D


Press Ctrl+C to Enter the Main loop...
Example expects ABI version 2
Actual U-Boot ABI version 2

******************************************
    Uboot StandAlone Entry
******************************************
0, cmd
1, 0x0000000F
cmd : 0x0000000F
Enter NMRP_main
Flash Sector Number : 1024.

 NetTxPacket = 0x87FE5B40

 KSEG1ADDR(NetTxPacket) = 0xA7FE5B40

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
NMRP_FLASH_SIZE_buffer --> a1000000.
NMRP:LISTENING
### No NMRP Server found ###

 KSEG1ADDR(NetTxPacket) = 0xA7FE5B40

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 ETH_STATE_ACTIVE!!
STANDALONE_LOAD_ADDR is 0xa0600000
Example expects ABI version 2
Actual U-Boot ABI version 2

******************************************
    Uboot StandAlone Entry
******************************************
0, boot
Flash Sector Number : 1024.

***************************************************
    Sercomm Boot Version 1.19.0

***************************************************
Upgrade flag check pass!Entering Firmware : Everything is OK.
kernel addr :0xbfe00000

 System Boot system code via Flash.
## Booting image at bfe00000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.221
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1877378 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
.............................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK



commandline in boot is : <NULL>  !!!!



No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.221 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 SMP Mon Feb 15 15:22:37 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Netgear R6220
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x80577744 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26224 r8192 d22928 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00015022
[    0.000000] Readback ErrCtl register=00015022
[    0.000000] Memory: 122620K/131072K available (4756K kernel code, 239K rwdata, 588K rodata, 1252K init, 255K bss, 8452K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    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.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.015496] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087795] pid_max: default: 32768 minimum: 301
[    0.097089] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110106] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125640] Hierarchical SRCU implementation.
[    0.134901] smp: Bringing up secondary CPUs ...
[    0.157407] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.157416] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.157426] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.157554] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204374] Synchronize counters for CPU 1: done.
[    0.264031] smp: Brought up 1 node, 2 CPUs
[    0.275661] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.295134] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.307338] pinctrl core: initialized pinctrl subsystem
[    0.319068] NET: Registered protocol family 16
[    0.335326] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.644256] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.654330] ***** Xtal 40MHz *****
[    0.661052] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.671259] Port 0 N_FTS = 1b102800
[    0.678154] Port 1 N_FTS = 1b102800
[    0.685079] Port 2 N_FTS = 1b102800
[    1.843508] PCIE1 no card, disable it(RST&CLK)
[    1.852200]  -> 12007f2
[    1.857017] PCIE0 enabled
[    1.862214] PCIE2 enabled
[    1.867395] PCI host bridge /pcie@1e140000 ranges:
[    1.876924]  MEM 0x0000000060000000..0x000000006fffffff
[    1.887277]   IO 0x000000001e160000..0x000000001e16ffff
[    1.897650] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.923427] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.934778] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.946023] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.959002] PCI host bridge to bus 0000:00
[    1.967088] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.980685] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.992425] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.005901] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.022484] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.038286] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.055564] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.068618] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.082419] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.095540] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.109370] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.122854] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.137188] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.150666] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.164154] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.177641] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.192156] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.206480] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.216312] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.229826] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.244161] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.257632] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.267465] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.282316] clocksource: Switched to clocksource GIC
[    2.293636] NET: Registered protocol family 2
[    2.303132] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.316886] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.329484] TCP: Hash tables configured (established 1024 bind 1024)
[    2.342203] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.353716] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.366340] NET: Registered protocol family 1
[    2.612258] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.623283] Crashlog allocated RAM at address 0x3f00000
[    2.633902] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.654801] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.666333] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.689609] io scheduler noop registered
[    2.697484] io scheduler deadline registered (default)
[    2.709099] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.725797] console [ttyS0] disabled
[    2.732860] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    2.750789] console [ttyS0] enabled
[    2.750789] console [ttyS0] enabled
[    2.764580] bootconsole [early0] disabled
[    2.764580] bootconsole [early0] disabled
[    2.782593] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.796619] Enable NFI Clock
[    2.802362] # MTK NAND # : Use HW ECC
[    2.809656] Device found in MTK table, ID: c2f1, EXT_ID: 801dc2
[    2.821443] Support this Device in MTK table! c2f1
[    2.831336] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.844212] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[    2.856864] nand: Macronix NAND 128MiB 3,3V 8-bit
[    2.866229] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.881317] Scanning device for bad blocks
[    3.160969] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[    3.174496] Creating 6 MTD partitions on "MT7621-NAND":
[    3.184915] 0x000000000000-0x000000100000 : "u-boot"
[    3.195921] 0x000000100000-0x000000200000 : "SC PID"
[    3.206894] 0x000000200000-0x000000600000 : "kernel"
[    3.217856] 0x000000600000-0x000002200000 : "ubi"
[    3.228496] 0x000002e00000-0x000002f00000 : "factory"
[    3.239620] 0x000004200000-0x000007e00000 : "reserved"
[    3.251365] [mtk_nand] probe successfully!
[    3.260267] Signature matched and data read!
[    3.268774] load_fact_bbt success 1023
[    3.277011] libphy: Fixed MDIO Bus: probed
[    3.354867] libphy: mdio: probed
[    4.760934] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.773468] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    4.793107] NET: Registered protocol family 10
[    4.803601] Segment Routing with IPv6
[    4.810977] NET: Registered protocol family 17
[    4.819966] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.845764] 8021q: 802.1Q VLAN Support v1.8
[    4.857285] UBI: auto-attach mtd3
[    4.863956] ubi0: attaching mtd3
[    5.127525] ubi0: scanning is finished
[    5.150012] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[    5.160783] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.174477] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.187984] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.201840] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[    5.213801] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.228175] ubi0: max/mean erase counter: 14/6, WL threshold: 4096, image sequence number: 336613720
[    5.246352] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[    5.264732] ubi0: background thread "ubi_bgt0d" started, PID 363
[    5.266550] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.287648] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.301520] hctosys: unable to open rtc device (rtc0)
[    5.311826] usb_vbus: disabling
[    5.321742] squashfs: SQUASHFS error: unable to read inode lookup table
[    5.335419] List of all partitions:
[    5.342391] 1f00            1024 mtdblock0
[    5.342398]  (driver?)
[    5.355399] 1f01            1024 mtdblock1
[    5.355404]  (driver?)
[    5.368411] 1f02            4096 mtdblock2
[    5.368417]  (driver?)
[    5.381417] 1f03           28672 mtdblock3
[    5.381421]  (driver?)
[    5.394444] 1f04            1024 mtdblock4
[    5.394449]  (driver?)
[    5.407457] 1f05           61440 mtdblock5
[    5.407463]  (driver?)
[    5.420462] fe00            2604 ubiblock0_0
[    5.420466]  (driver?)
[    5.433828] No filesystem could mount root, tried:
[    5.433834]  squashfs
[    5.443550]  jffs2
[    5.448055]
[    5.455005] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,0)
[    5.473659] Rebooting in 1 seconds..

===================================================================
                MT7621   stage1 code 13:15:05 (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: 0x5, 1/0 = 646/378 15000000
PLL3 FB_DL: 0xc, 1/0 = 708/316 31000000
PLL4 FB_DL: 0x1a, 1/0 = 740/284 69000000
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    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
rank 0 coarse = 15
rank 0 fine = 72
B:|    0    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0
opt_dle value:11
DRAMC_R0DELDLY[018]=00001C20
==================================================================
                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 11 15 13 15 11 15 9 4 11
10 |    7 14 7 13 5 12
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =32 DQS1 = 28
==================================================================
bit     DQS0     bit      DQS1
0  (0~58)29  8  (1~54)27
1  (1~58)29  9  (1~56)28
2  (0~59)29  10  (1~56)28
3  (1~57)29  11  (1~52)26
4  (0~56)28  12  (1~55)28
5  (1~60)30  13  (1~56)28
6  (0~58)29  14  (1~55)28
7  (2~63)32  15  (1~55)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    15 14 15 15 15 13 15 9 5 11
10 |    7 15 7 13 5 12
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff2a01
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 = ffff0082
dqs_perbyte_dly.last_dqdly_pass[1]=14,  finish count=1
DQ loop=13, cmp_err_1 = ffff0080
DQ loop=12, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=12,  finish count=2
byte:0, (DQS,DQ)=(9,8)
byte:1, (DQS,DQ)=(8,8)
20,data:89
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================

Can anyone help me to restore a functioning firmware (original or openwrt)?

before/until someone knowledgable comes along...

possibly-this

do me it seems like;

using default environment
and
commandline in boot is : <NULL>  !!!!

are what is most relevant here?...

perhaps the image has grown too large for your device and wiped out uenv(partition) or something...

setting a bootargs = 'root=/dev/mtX' or similar may get you temporarily running but thats a wild guess (do not do saveenv) there is also an 'env default -a' or something like that but better to try to figure out what happened to the device first...

or wiki says;

Debricking of the R6220 can be done by using the tool nmrpflash tool. See details over here: https://github.com/jclehner/nmrpflash

This tool can also be used to go back to stock firmware. 

so that... then back to 19.x would probably be a cleaner option...? ( wait for more feedback )

Use nmrpflash method to restore stock firmware. It works well.

Than reinstall openWrt of course :wink:
If you install 21.02 rc2, do it without keeping settings.

Thank you everybody,
I succeed flash original firmware with nmrpflash.

For posterity I had to access my router throw serial and use the command sc_nmrp.
If I didn't done that, the nmrp procedure continue to fail with the error "No response after 60 seconds. Bailing out."

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