Help needed I can’t get my xiaomi router 3g unbricked

First of all, I was really bored last night and I wanted to try something new. I decided to install x-wrt firmware (an openwrt fork) through the breed bootloader on my main router. Yes, the worst decision of my life.

After my decision I installed "breed" to my router. It was painless and it succesfully rebooted to it. After that I shocked by what i see. It was completely Chinese and as you may guess I don't know Chinese. I didn't giveup and after a few clicks I found flash a firmware section (fml). And I pulled the trigger. But it didn't go well. I got some Chinese errors(?) and I started sweating. Then I wanted to go back to xiaomi's stock firmware. After returning to stock firmware, I tried to install openwrt back normally. But it didn't happen also. The device did not boot after the restart command. I did some researches I deciside to write the mtdblock1.bin file to Bootloader via the breed (which I found on the internet). I did so many wrong things and even tftp recovery with kernel0.bin file is not working now. Please see my bootlog. At the last line all router lights turning off and not responding to anything, not even reset button. Thank you all for any help!

https://pastebin.com/qdUvFs1F

===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=12500000 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: 0xf, 1/0 = 625/399 3D000000
PLL3 FB_DL: 0x12, 1/0 = 513/511 49000000
PLL2 FB_DL: 0x17, 1/0 = 648/376 5D000000
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]=00001E1F
==================================================================
                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 |    9 7 8 9 7 7 7 7 3 5
10 |    5 6 7 7 5 6
--------------------------------------
 
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =31 DQS1 = 30
==================================================================
bit     DQS0     bit      DQS1
0  (1~61)31  8  (2~56)29
1  (1~57)29  9  (1~54)27
2  (1~56)28  10  (1~54)27
3  (0~57)28  11  (1~55)28
4  (1~61)31  12  (2~58)30
5  (1~58)29  13  (1~55)28
6  (1~58)29  14  (1~57)29
7  (1~62)31  15  (1~56)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    9 9 11 12 7 9 9 7 4 8
10 |    8 8 7 9 6 8
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff00a0
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1
DQ loop=14, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=14,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed
 
===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=12500000 HZ
===================================================================
 
 
U-Boot 1.1.3 (Apr 17 2017 - 17:00:02)
 
Board: Ralink APSoC DRAM:  256 MB
Power on memory test. Memory size= 256 MB...OK!
relocate_code Pointer at: 8ffac000
 
Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 8ffdffd0
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C8 D1 80 95 40]
Device not found, ID: c8d1
Not Support this Device!
chip_mode=00000001
Support this Device in MTK table! c8d1
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
..============================================
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=5 OCP Ratio=1/4
Flash component: NAND Flash
Date:Apr 17 2017  Time:17:00:02
============================================
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 LWLLL
 
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.
 
You choosed 3
                                                                              0
Booting System 2
..Erasing NAND Flash...
ranand_erase: start:80000, len:20000
.Writing to NAND Flash...
done
 
3: System Boot system code via Flash.
## Booting image at bc600000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.171
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1840709 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
.............................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
commandline uart_en=0 factory_mode=0 usb_u3=0
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256
 
Starting kernel ...
 
[    0.000000] Linux version 4.14.171 (buildbot@5b5c16a55686) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7989-82fbd85747)) #0 SMP Thu Feb 27 21:25:59 2020
[    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 Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    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] random: get_random_bytes called from 0x80559744 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: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=0001d803
[    0.000000] Readback ErrCtl register=0001d803
[    0.000000] Memory: 253616K/262144K available (4651K kernel code, 240K rwdata, 572K rodata, 220K init, 255K bss, 8528K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    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.007816] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073980] pid_max: default: 32768 minimum: 301
[    0.078752] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085261] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094082] Hierarchical SRCU implementation.
[    0.099243] smp: Bringing up secondary CPUs ...
[    0.104857] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104866] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.104878] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.105015] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163999] Synchronize counters for CPU 1: done.
[    0.198983] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.198991] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.198998] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.199069] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.255139] Synchronize counters for CPU 2: done.
[    0.286004] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.286011] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.286019] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.286100] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340326] Synchronize counters for CPU 3: done.
[    0.370190] smp: Brought up 1 node, 4 CPUs
[    0.377921] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387711] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.394010] pinctrl core: initialized pinctrl subsystem
[    0.399830] NET: Registered protocol family 16
[    0.410985] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.716222] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.721271] ***** Xtal 40MHz *****
[    0.724626] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.729721] Port 0 N_FTS = 1b102800
[    0.733194] Port 1 N_FTS = 1b102800
[    0.736633] Port 2 N_FTS = 1b102800
[    1.891902] PCIE2 no card, disable it(RST&CLK)
[    1.896264]  -> 21007f2
[    1.898666] PCIE0 enabled
[    1.901258] PCIE1 enabled
[    1.903864] PCI host bridge /pcie@1e140000 ranges:
[    1.908644]  MEM 0x0000000060000000..0x000000006fffffff
[    1.913795]   IO 0x000000001e160000..0x000000001e16ffff
[    1.918991] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.935164] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.941007] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.946786] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.953951] PCI host bridge to bus 0000:00
[    1.957988] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.964817] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.970670] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.977436] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.986105] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.994034] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.003365] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.009902] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.016799] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.023371] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.030270] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.037029] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.043753] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.050935] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.057670] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.064422] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.071138] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.076082] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.082808] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.090084] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.097233] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.102174] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.108895] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.117532] clocksource: Switched to clocksource GIC
[    2.124002] NET: Registered protocol family 2
[    2.129102] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.135990] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.142437] TCP: Hash tables configured (established 2048 bind 2048)
[    2.148853] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.154616] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.161066] NET: Registered protocol family 1
[    2.397484] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.404032] Crashlog allocated RAM at address 0x3f00000
[    2.409485] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.422257] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.428052] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.439421] random: fast init done
[    2.444281] io scheduler noop registered
[    2.448233] io scheduler deadline registered (default)
[    2.453852] gpio-export gpio_export: 1 gpio(s) exported
[    2.459885] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.469883] console [ttyS0] disabled
[    2.473430] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.482489] console [ttyS0] enabled
[    2.482489] console [ttyS0] enabled
[    2.489365] bootconsole [early0] disabled
[    2.489365] bootconsole [early0] disabled
[    2.499732] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.506810] Enable NFI Clock
[    2.509730] # MTK NAND # : Use HW ECC
[    2.513394] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.519304] Support this Device in MTK table! c8d1
[    2.524252] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.530728] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.537049] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.541402] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.548970] Scanning device for bad blocks
[    2.697372] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.704232] Creating 10 MTD partitions on "MT7621-NAND":
[    2.709551] 0x000000000000-0x000000080000 : "Bootloader"
[    2.715857] 0x000000080000-0x0000000c0000 : "Config"
[    2.721769] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.727575] 0x000000100000-0x000000140000 : "Factory"
[    2.733493] 0x000000140000-0x000000180000 : "crash"
[    2.739269] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.745631] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.751798] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.758382] 0x000000600000-0x000000a00000 : "kernel"
[    2.764385] 0x000000a00000-0x000007f80000 : "ubi"
[    2.771088] [mtk_nand] probe successfully!
[    2.775902] Signature matched and data read!
[    2.780183] load_fact_bbt success 1023
[    2.784709] libphy: Fixed MDIO Bus: probed
[    2.859934] mtk_soc_eth 1e100000.ethernet: generated random MAC address 3e:ae:fd:6d:80:bd
[    2.868283] libphy: mdio: probed
[    4.271910] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.278638] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.289573] NET: Registered protocol family 10
[    4.295621] Segment Routing with IPv6
[    4.299432] NET: Registered protocol family 17
[    4.303930] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.316845] 8021q: 802.1Q VLAN Support v1.8
[    4.323941] UBI: auto-attach mtd9
[    4.327277] ubi0: attaching mtd9
[    5.437102] ubi0: scanning is finished
[    5.457285] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.462789] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.469644] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.476398] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.483340] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.489336] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.496525] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1679692884
[    5.505625] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    5.514833] ubi0: background thread "ubi_bgt0d" started, PID 388
[    5.516527] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.526306] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.533258] hctosys: unable to open rtc device (rtc0)
[    5.545180] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.552839] Freeing unused kernel memory: 220K
[    5.557275] This architecture does not have kernel memory protection.
[    6.081810] init: Console is alive
[    6.085450] init: - watchdog -
[    6.573108] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[    6.659382] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.765288] usbcore: registered new interface driver usbfs
[    6.770926] usbcore: registered new interface driver hub
[    6.776394] usbcore: registered new device driver usb
[    6.790640] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.795979] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.807773] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    6.816944] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.823744] hub 1-0:1.0: USB hub found
[    6.827632] hub 1-0:1.0: 2 ports detected
[    6.832294] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.837658] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.845121] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.851747] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.860750] hub 2-0:1.0: USB hub found
[    6.864570] hub 2-0:1.0: 1 port detected
[    6.871792] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.887863] init: - preinit -
[    7.523781] mtk_soc_eth 1e100000.ethernet: PPE started
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
[    7.601722] random: procd: uninitialized urandom read (4 bytes read)
[   10.754824] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 483
[   10.829413] UBIFS (ubi0:1): recovery needed
[   10.939398] UBIFS (ubi0:1): recovery completed
[   10.943954] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.951767] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.961655] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   10.972225] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   10.978831] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID A2A0DB6F-5B84-4E73-A417-8471FDEEFDBE, small LPT model
[   10.992802] mount_root: overlay filesystem has not been fully initialized yet
[   11.002106] mount_root: switching to ubifs overlay
[   11.029885] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.113084] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.127880] procd: - early -
[   11.130861] procd: - watchdog -
[   11.817675] procd: - watchdog -
[   11.821122] procd: - ubus -
[   11.881663] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.996866] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.003761] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.011045] procd: - init -
Please press Enter to activate this console.
[   12.243529] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.312605] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.325565] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.333605] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.341930] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.353592] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   12.394300] xt_time: kernel timezone is -0000
[   12.440379] bus=0x1, slot = 0x0, irq=0xff
[   12.444415] PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
[   12.450238] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   12.457571] mt7603e 0000:01:00.0: Invalid MAC address, using random address d6:38:3e:61:a1:2a
[   13.488788] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   13.494362] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   13.537530] mt7603e 0000:01:00.0: firmware init done

Things are getting worse. It's completely out of control and stuck on bootloop now. Any thoughts?

https://pastebin.com/jwqPBCg5

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

     ..MT7621   stage1 code done 

     ..CPU=50000000 HZ BUS=12500000 HZ

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



U-Boot 1.1.3 (Jul 14 2017 - 15:16:26)

Board: Ralink APSoC DRAM:  256 MB
Power on memory test. Memory size= 256 MB...OK!
relocate_code Pointer at: 8ffac000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 8ffdff50
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C8 D1 80 95 40]
Device not found, ID: c8d1
Not Support this Device! 

chip_mode=00000001
Support this Device in MTK table! c8d1 

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
..============================================ 
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=5 OCP Ratio=1/4
Flash component: NAND Flash
Date:Jul 14 2017  Time:15:16:26
============================================ 
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 LWLLL

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. 

Boot failure detected on both systems
Verifying kernel1 uImage CRC, addr: 0xbc200000
Bad Magic Number,FFFFFFFF
Verifying kernel2 uImage CRC, addr: 0xbc600000
Bad Magic Number,FFFFFFFF
Booting System 2
..ranand_erase: start:80000, len:20000 
..Done!
done
   
3: System Boot system code via Flash.
## Booting image at bc600000 ...
Bad Magic Number,FFFFFFFF, try to reboot
..ranand_erase: start:80000, len:20000 
..Done!
done

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

     ..MT7621   stage1 code 10:33:11 (ASIC)

     ..CPU=50000000 HZ BUS=12500000 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: 0xf, 1/0 = 682/342 3D000000

PLL3 FB_DL: 0x12, 1/0 = 665/359 49000000

PLL2 FB_DL: 0x17, 1/0 = 605/419 5D000000

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]=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 |    9 7 8 9 6 7 7 7 3 5 

10 |    5 7 7 7 5 6 

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



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

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  (1~58)29  8  (1~57)29

1  (1~57)29  9  (1~56)28

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

3  (1~58)29  11  (2~57)29

4  (0~61)30  12  (1~60)30

5  (1~60)30  13  (1~57)29

6  (1~60)30  14  (1~58)29

7  (1~64)32  15  (1~58)29

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

3.dq delay value last

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

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

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

0 |    12 10 11 12 8 9 9 7 4 7 

10 |    7 8 7 8 6 7 

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

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

     TX  perbyte calibration 

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

DQS loop = 15, cmp_err_1 = ffff0000 

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

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

DQ loop=15, cmp_err_1 = ffff00a0

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

DQ loop=14, cmp_err_1 = ffff0000

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

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

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

20,data:88

[EMI] DRAMC calibration passed




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

     ..MT7621   stage1 code done 

     ..CPU=50000000 HZ BUS=12500000 HZ

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