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.
You choosed 3
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.106
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1992336 Bytes = 1.9 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.106 (buildbot@slashdirt-03) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9662-3411399)) #0 SMP Thu Mar 21 01:04:57 2019
[ 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 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 [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+0x90/0x4ac with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu @81491000 s26256 r8192 d22896 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130560
[ 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=000740c0
[ 0.000000] Readback ErrCtl register=000740c0
[ 0.000000] Memory: 512620K/524288K available (4717K kernel code, 242K rwdata, 1040K rodata, 260K init, 254K bss, 11668K 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: 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.007820] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.073981] pid_max: default: 32768 minimum: 301
[ 0.078751] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.085260] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094059] Hierarchical SRCU implementation.
[ 0.099223] smp: Bringing up secondary CPUs ...
[ 0.119370] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.119379] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.119390] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.119530] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.163976] Synchronize counters for CPU 1: done.
[ 0.213223] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.213230] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.213237] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.213312] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.255126] Synchronize counters for CPU 2: done.
[ 0.300531] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.300539] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.300546] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.300629] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.340312] Synchronize counters for CPU 3: done.
[ 0.370177] smp: Brought up 1 node, 4 CPUs
[ 0.378059] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.387855] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.394156] pinctrl core: initialized pinctrl subsystem
[ 0.400772] NET: Registered protocol family 16
[ 0.415827] pull PCIe RST: RALINK_RSTCTRL = 4000000
[ 0.721143] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.726177] ***** Xtal 40MHz *****
[ 0.729547] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.734659] Port 0 N_FTS = 1b105000
[ 0.738099] Port 1 N_FTS = 1b105000
[ 0.741557] Port 2 N_FTS = 1b102800
[ 1.896729] PCIE2 no card, disable it(RST&CLK)
[ 1.901073] -> 21007f2
[ 1.903491] PCIE0 enabled
[ 1.906097] PCIE1 enabled
[ 1.908686] PCI host bridge /pcie@1e140000 ranges:
[ 1.913448] MEM 0x0000000060000000..0x000000006fffffff
[ 1.918633] IO 0x000000001e160000..0x000000001e16ffff
[ 1.923803] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 1.939749] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.945597] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.951316] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.958989] PCI host bridge to bus 0000:00
[ 1.963028] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.969861] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 1.975713] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.982466] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.992512] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 1.999028] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.005959] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.012501] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.019432] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.026162] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[ 2.032913] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[ 2.039644] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[ 2.046405] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.053639] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.058570] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.065308] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[ 2.072578] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.077479] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff]
[ 2.085701] clocksource: Switched to clocksource GIC
[ 2.092136] NET: Registered protocol family 2
[ 2.097248] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 2.104134] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 2.110583] TCP: Hash tables configured (established 2048 bind 2048)
[ 2.117011] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.122778] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.129240] NET: Registered protocol family 1
[ 2.365652] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.372033] Crashlog allocated RAM at address 0x3f00000
[ 2.377634] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 2.388710] random: fast init done
[ 2.393514] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.399310] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.412482] bounce: pool size: 64 pages
[ 2.416307] io scheduler noop registered
[ 2.420132] io scheduler deadline registered (default)
[ 2.426462] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.436286] console [ttyS0] disabled
[ 2.439829] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[ 2.448830] console [ttyS0] enabled
[ 2.448830] console [ttyS0] enabled
[ 2.455706] bootconsole [early0] disabled
[ 2.455706] bootconsole [early0] disabled
[ 2.464415] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.471327] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.478508] Enable NFI Clock
[ 2.481379] # MTK NAND # : Use HW ECC
[ 2.485040] Device found in MTK table, ID: c8da, EXT_ID: 909544
[ 2.490951] Support this Device in MTK table! c8da
[ 2.495922] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.502381] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xda
[ 2.508717] nand: ESMT NAND 256MiB 3,3V 8-bit
[ 2.513053] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.520630] Scanning device for bad blocks
[ 2.810127] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[ 2.816987] Creating 10 MTD partitions on "MT7621-NAND":
[ 2.822281] 0x000000000000-0x000000040000 : "Bootloader"
[ 2.828709] 0x000000040000-0x000000080000 : "Config"
[ 2.834675] 0x000000080000-0x0000000c0000 : "Bdata"
[ 2.840613] 0x0000000c0000-0x000000100000 : "Factory"
[ 2.846720] 0x000000100000-0x000000140000 : "crash"
[ 2.852609] 0x000000140000-0x0000001c0000 : "crash_syslog"
[ 2.859162] 0x0000001c0000-0x000000200000 : "reserved0"
[ 2.865369] 0x000000200000-0x000000600000 : "kernel_stock"
[ 2.871921] 0x000000600000-0x000000a00000 : "kernel"
[ 2.877983] 0x000000a00000-0x00000ff80000 : "ubi"
[ 2.885537] [mtk_nand] probe successfully!
[ 2.890390] Signature matched and data read!
[ 2.894639] load_fact_bbt success 2047
[ 2.899154] libphy: Fixed MDIO Bus: probed
[ 2.968267] libphy: mdio: probed
[ 4.371868] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.378495] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[ 4.389160] NET: Registered protocol family 10
[ 4.394981] Segment Routing with IPv6
[ 4.398805] NET: Registered protocol family 17
[ 4.403286] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.416204] 8021q: 802.1Q VLAN Support v1.8
[ 4.423449] UBI: auto-attach mtd9
[ 4.426842] ubi0: attaching mtd9
[ 6.784245] ubi0: scanning is finished
[ 6.805036] ubi0: attached mtd9 (name "ubi", size 245 MiB)
[ 6.810541] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.817397] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.824150] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.831090] ubi0: good PEBs: 1964, bad PEBs: 0, corrupted PEBs: 0
[ 6.837167] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 6.844356] ubi0: max/mean erase counter: 3/2, WL threshold: 4096, image sequence number: 975123993
[ 6.853370] ubi0: available PEBs: 1920, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
[ 6.862756] ubi0: background thread "ubi_bgt0d" started, PID 391
[ 6.862783] hctosys: unable to open rtc device (rtc0)
[ 6.874048] usb_vbus: disabling
[ 6.877770] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 6.885217] Please append a correct "root=" boot option; here are the available partitions:
[ 6.893568] 1f00 256 mtdblock0
[ 6.893575] (driver?)
[ 6.900096] 1f01 256 mtdblock1
[ 6.900101] (driver?)
[ 6.906615] 1f02 256 mtdblock2
[ 6.906620] (driver?)
[ 6.913121] 1f03 256 mtdblock3
[ 6.913125] (driver?)
[ 6.919641] 1f04 256 mtdblock4
[ 6.919645] (driver?)
[ 6.926160] 1f05 512 mtdblock5
[ 6.926165] (driver?)
[ 6.932666] 1f06 256 mtdblock6
[ 6.932670] (driver?)
[ 6.939185] 1f07 4096 mtdblock7
[ 6.939189] (driver?)
[ 6.945704] 1f08 4096 mtdblock8
[ 6.945708] (driver?)
[ 6.952209] 1f09 251392 mtdblock9
[ 6.952213] (driver?)
[ 6.958728] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.968911] Rebooting in 1 seconds..
===================================================================
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 ===
PLL3 FB_DL: 0xc, 1/0 = 714/310 31000000
PLL4 FB_DL: 0xf, 1/0 = 618/406 3D000000
PLL2 FB_DL: 0x11, 1/0 = 569/455 45000000
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 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 8 9 7 5 8 6 7 7
10 | 9 10 9 10 7 8
--------------------------------------
==================================================================
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~60)30 8 (1~58)29
1 (1~58)29 9 (1~58)29
2 (1~55)28 10 (1~56)28
3 (1~59)30 11 (1~57)29
4 (1~60)30 12 (1~60)30
5 (0~57)28 13 (1~57)29
6 (1~58)29 14 (1~58)29
7 (1~60)30 15 (1~57)29
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 9 9 10 9 7 7 9 6 8 8
10 | 11 11 9 11 8 9
==================================================================
==================================================================
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 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15, 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
===================================================================