===================================================================
MT7621 stage1 code 10:33:11 (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: 0xb, 1/0 = 610/414 2D000000
PLL2 FB_DL: 0xd, 1/0 = 646/378 35000000
PLL3 FB_DL: 0x13, 1/0 = 712/312 4D000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 11 2 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 1 1
000E:| 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
000F:| 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0
0010:| 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0011:| 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
rank 0 coarse = 15
rank 0 fine = 64
B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001E1E
==================================================================
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 8 7 10 7 8 9 6 6 7
10 | 9 9 8 10 7 10
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =30 DQS1 = 30
==================================================================
bit DQS0 bit DQS1
0 (1~58)29 8 (1~56)28
1 (1~56)28 9 (1~56)28
2 (0~56)28 10 (1~58)29
3 (1~59)30 11 (1~55)28
4 (1~58)29 12 (1~58)29
5 (1~59)30 13 (1~57)29
6 (1~58)29 14 (1~58)29
7 (1~59)30 15 (1~59)30
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 10 10 9 10 8 8 10 6 8 9
10 | 10 11 9 11 8 10
==================================================================
==================================================================
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 = ffff0082
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=16666666 HZ
===================================================================
U-Boot 1.1.3 (Jan 19 2017 - 17:14:12)
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: 8ffe0050
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C8 DA 90 95 44]
Device found in MTK table, ID: c8da, EXT_ID: 909544
Support this Device in MTK table! c8da
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 2047
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=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Jan 19 2017 Time:17:14:12
============================================
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 LLLLW
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. 0
Booting System 2
..Erasing NAND Flash...
ranand_erase: start:40000, 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.162
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2097420 Bytes = 2 MB
Load Address: 80001000
Entry Point: 80001000
................................ Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
commandline uart_en=0 factory_mode=0 usb_u3=1
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256
Starting kernel ...
[ 0.000000] Linux version 4.14.162 (builder@buildhost) (gcc version 8.3.0 (Op enWrt GCC 8.3.0 r12040-8df14c229c)) #0 SMP Fri Jan 17 23:24:06 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 3 Pro
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 1c000000 @ 00000000 (usable)
[ 0.000000] memory: 04000000 @ 20000000 (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 byt es
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem [mem 0x0000000010000000-0x0000000023ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x0000000023ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x9c/0x4e0 with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26096 r8192 d23056 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130496
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,j ffs2
[ 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=00030340
[ 0.000000] Readback ErrCtl register=00030340
[ 0.000000] Memory: 510692K/524288K available (5006K kernel code, 253K rwdata , 1084K rodata, 1260K init, 260K bss, 13596K reserved, 0K cma-reserved, 262144K 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] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478ab b4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806 45118ns
[ 0.007822] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.073982] pid_max: default: 32768 minimum: 301
[ 0.078802] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.085310] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094502] Hierarchical SRCU implementation.
[ 0.099715] smp: Bringing up secondary CPUs ...
[ 0.107930] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.107938] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt es
[ 0.107950] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.108087] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.164469] Synchronize counters for CPU 1: done.
[ 0.201827] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.201835] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt es
[ 0.201844] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.201919] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.255713] Synchronize counters for CPU 2: done.
[ 0.289163] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.289171] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt es
[ 0.289178] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.289252] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.340896] Synchronize counters for CPU 3: done.
[ 0.370763] smp: Brought up 1 node, 4 CPUs
[ 0.379367] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.389171] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.395571] pinctrl core: initialized pinctrl subsystem
[ 0.402304] NET: Registered protocol family 16
[ 0.417445] pull PCIe RST: RALINK_RSTCTRL = 4000000
[ 0.722699] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.727732] ***** Xtal 40MHz *****
[ 0.731103] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.736217] Port 0 N_FTS = 1b102800
[ 0.739654] Port 1 N_FTS = 1b102800
[ 0.743113] Port 2 N_FTS = 1b102800
[ 1.898375] PCIE2 no card, disable it(RST&CLK)
[ 1.902721] -> 21007f2
[ 1.905139] PCIE0 enabled
[ 1.907743] PCIE1 enabled
[ 1.910333] PCI host bridge /pcie@1e140000 ranges:
[ 1.915095] MEM 0x0000000060000000..0x000000006fffffff
[ 1.920282] IO 0x000000001e160000..0x000000001e16ffff
[ 1.925449] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 1.941818] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.947688] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.953502] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.961319] PCI host bridge to bus 0000:00
[ 1.965358] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.972214] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 1.978041] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.984799] pci_bus 0000:00: No busn resource found for root bus, will use [b us 00-ff]
[ 1.993465] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), rec onfiguring
[ 2.001406] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), rec onfiguring
[ 2.010695] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.017252] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.024118] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.030703] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.037603] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.044357] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[ 2.051073] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[ 2.057839] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[ 2.064569] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bi t]
[ 2.071851] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.076738] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.083504] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bi t]
[ 2.090740] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.095686] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff]
[ 2.103823] clocksource: Switched to clocksource GIC
[ 2.110552] NET: Registered protocol family 2
[ 2.115599] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 2.122481] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 2.128944] TCP: Hash tables configured (established 2048 bind 2048)
[ 2.135354] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.141120] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.147606] NET: Registered protocol family 1
[ 2.383772] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.390324] Crashlog allocated RAM at address 0x3f00000
[ 2.395729] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 2.410184] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.415983] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT Y) (c) 2001-2006 Red Hat, Inc.
[ 2.426498] random: fast init done
[ 2.431698] bounce: pool size: 64 pages
[ 2.435628] io scheduler noop registered
[ 2.439453] io scheduler deadline registered (default)
[ 2.445658] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.455440] console [ttyS0] disabled
[ 2.458986] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 2.468043] console [ttyS0] enabled
[ 2.468043] console [ttyS0] enabled
[ 2.474922] bootconsole [early0] disabled
[ 2.474922] bootconsole [early0] disabled
[ 2.485328] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.492380] Enable NFI Clock
[ 2.495307] # MTK NAND # : Use HW ECC
[ 2.498972] Device found in MTK table, ID: c8da, EXT_ID: 909544
[ 2.504903] Support this Device in MTK table! c8da
[ 2.509852] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.516335] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xda
[ 2.522657] nand: ESMT NAND 256MiB 3,3V 8-bit
[ 2.527016] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz e: 64
[ 2.534587] Scanning device for bad blocks
[ 2.822696] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[ 2.829557] Creating 10 MTD partitions on "MT7621-NAND":
[ 2.834879] 0x000000000000-0x000000040000 : "Bootloader"
[ 2.841270] 0x000000040000-0x000000080000 : "Config"
[ 2.847190] 0x000000080000-0x0000000c0000 : "Bdata"
[ 2.853010] 0x0000000c0000-0x000000100000 : "factory"
[ 2.859116] 0x000000100000-0x000000140000 : "crash"
[ 2.864978] 0x000000140000-0x0000001c0000 : "crash_syslog"
[ 2.871410] 0x0000001c0000-0x000000200000 : "reserved0"
[ 2.877622] 0x000000200000-0x000000600000 : "kernel_stock"
[ 2.884170] 0x000000600000-0x000000a00000 : "kernel"
[ 2.890081] 0x000000a00000-0x00000ff80000 : "ubi"
[ 2.897657] [mtk_nand] probe successfully!
[ 2.902466] Signature matched and data read!
[ 2.906751] load_fact_bbt success 2047
[ 2.911102] libphy: Fixed MDIO Bus: probed
[ 2.986388] libphy: mdio: probed
[ 4.391348] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.397947] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe 100000, irq 21
[ 4.408860] NET: Registered protocol family 10
[ 4.415029] Segment Routing with IPv6
[ 4.418770] NET: Registered protocol family 17
[ 4.423271] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.436246] 8021q: 802.1Q VLAN Support v1.8
[ 4.443314] UBI: auto-attach mtd9
[ 4.446680] ubi0: attaching mtd9
[ 6.439980] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 6.712417] ubi0: scanning is finished
[ 6.733252] ubi0: attached mtd9 (name "ubi", size 245 MiB)
[ 6.738762] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.745618] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.752372] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.759314] ubi0: good PEBs: 1964, bad PEBs: 0, corrupted PEBs: 0
[ 6.765391] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 12 8
[ 6.772580] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequ ence number: 1579303446
[ 6.781681] ubi0: available PEBs: 1920, total reserved PEBs: 44, PEBs reserve d for bad PEB handling: 40
[ 6.791070] ubi0: background thread "ubi_bgt0d" started, PID 401
[ 6.791095] hctosys: unable to open rtc device (rtc0)
[ 6.802353] usb_vbus: disabling
[ 6.806103] VFS: Cannot open root device "(null)" or unknown-block(0,0): erro r -6
[ 6.813552] Please append a correct "root=" boot option; here are the availab le partitions:
[ 6.821909] 1f00 256 mtdblock0
[ 6.821917] (driver?)
[ 6.828442] 1f01 256 mtdblock1
[ 6.828447] (driver?)
[ 6.834962] 1f02 256 mtdblock2
[ 6.834967] (driver?)
[ 6.841468] 1f03 256 mtdblock3
[ 6.841471] (driver?)
[ 6.847987] 1f04 256 mtdblock4
[ 6.847992] (driver?)
[ 6.854508] 1f05 512 mtdblock5
[ 6.854513] (driver?)
[ 6.861014] 1f06 256 mtdblock6
[ 6.861018] (driver?)
[ 6.867534] 1f07 4096 mtdblock7
[ 6.867539] (driver?)
[ 6.874055] 1f08 4096 mtdblock8
[ 6.874060] (driver?)
[ 6.880561] 1f09 251392 mtdblock9
[ 6.880564] (driver?)
[ 6.887080] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno wn-block(0,0)
[ 6.897426] Rebooting in 1 seconds..