Temat: NETGEAR R6220 - Wymiana FLASH NAND na SPI
Cześć, jak już kiedyś wspominałem - wiaderko z popsutymi r6220 mi rośnie i rośnie, wszystkiego powodem jest zdychający po pewnym czasie flash.
Przy okazji posprzątania stanowiska z hotair - postanowiłem w jednym wymienić go na SPI i sprawdzić co się stanie ;D
Egzemplarz ten już nawet nie dawał się postawić nmrpflashem.
[spoiler]
[ 33.506653] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.520398] SQUASHFS error: squashfs_read_data failed to read block 0xa363a2
[ 33.534586] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.548012] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.561311] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.561590] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.575208] SQUASHFS error: squashfs_read_data failed to read block 0x55f06e
[ 33.588554] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.602613] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.629527] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
[ 33.646763] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.660223] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
===================================================================
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 ===
PLL3 FB_DL: 0x5, 1/0 = 549/475 15000000
PLL4 FB_DL: 0x10, 1/0 = 528/496 41000000
PLL2 FB_DL: 0x15, 1/0 = 548/476 55000000
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
===================================================================
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 ===
PLL3 FB_DL: 0x6, 1/0 = 738/286 19000000
PLL4 FB_DL: 0x10, 1/0 = 573/451 41000000
PLL2 FB_DL: 0x15, 1/0 = 558/466 55000000
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 0 1 1 1 1 1 1
000F:| 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0
0010:| 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
0011:| 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
rank 0 coarse = 16
rank 0 fine = 32
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 | 13 9 13 9 13 6 13 6 3 11
10 | 5 11 7 11 6 10
--------------------------------------
==================================================================
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~60)30 8 (1~56)28
1 (1~58)29 9 (1~58)29
2 (1~60)30 10 (1~58)29
3 (1~58)29 11 (1~55)28
4 (1~58)29 12 (1~58)29
5 (1~60)30 13 (1~58)29
6 (1~60)30 14 (1~59)30
7 (1~61)31 15 (1~57)29
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 14 11 14 11 15 7 14 6 5 12
10 | 6 13 8 12 6 11
==================================================================
==================================================================
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 = ffff05aa
DQ loop=14, cmp_err_1 = ffff01aa
DQ loop=13, cmp_err_1 = ffff00a2
dqs_perbyte_dly.last_dqdly_pass[1]=13, finish count=1
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)=(9,8)
20,data:99
[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 95 02]
Device found in MTK table, ID: c2f1, EXT_ID: 809502
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.
Bad block detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
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.
Bad block detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
***************************************************
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 X-WRT Linux-5.4.134
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 2444390 Bytes = 2.3 MB
Load Address: 80001000
Entry Point: 80001000
...................................... Verifying Checksum ... OK
OK
commandline in boot is : <NULL> !!!!
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128
Starting kernel ...
OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...
[ 0.000000] Linux version 5.4.134 (ptpt52@SC-GAME) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r17137+1-81482e9286)) #0 SMP Thu Jul 29 04:21:28 2021
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is Netgear R6220
[ 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] 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] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=000734ec
[ 0.000000] Readback ErrCtl register=000734ec
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 120376K/131072K available (5851K kernel code, 229K rwdata, 1272K rodata, 1272K init, 232K bss, 10696K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x364/0x54c with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000008] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015487] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087785] pid_max: default: 32768 minimum: 301
[ 0.097071] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.111471] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.128758] rcu: Hierarchical SRCU implementation.
[ 0.138605] smp: Bringing up secondary CPUs ...
[ 8.304447] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 8.304455] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 8.304467] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 8.304564] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.198349] Synchronize counters for CPU 1: done.
[ 0.257983] smp: Brought up 1 node, 2 CPUs
[ 0.266582] devtmpfs: initialized
[ 0.276823] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.296268] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.309861] pinctrl core: initialized pinctrl subsystem
[ 0.321534] NET: Registered protocol family 16
[ 0.344054] pstore: Registered ramoops as persistent store backend
[ 0.356275] ramoops: using 0x80000@0x3f00000, ecc: 0
[ 0.385853] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.406765] clocksource: Switched to clocksource GIC
[ 0.420287] thermal_sys: Registered thermal governor 'step_wise'
[ 0.420752] NET: Registered protocol family 2
[ 0.441365] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.456121] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.472622] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.487820] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.501807] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.514527] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.527410] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.541451] NET: Registered protocol family 1
[ 0.550007] PCI: CLS 0 bytes, default 32
[ 0.796720] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 0.808166] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.832170] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.843703] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.866585] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.878208] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.889646] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.901858] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.916403] printk: console [ttyS0] disabled
[ 0.924919] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[ 0.942817] printk: console [ttyS0] enabled
[ 0.942817] printk: console [ttyS0] enabled
[ 0.959365] printk: bootconsole [early0] disabled
[ 0.959365] printk: bootconsole [early0] disabled
[ 0.980151] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[ 0.994994] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[ 1.007644] nand: Macronix MX30LF1G18AC
[ 1.015262] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.030338] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[ 1.043372] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 1.057926] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 1.072479] Scanning device for bad blocks
[ 1.688412] Bad eraseblock 481 at 0x000003c20000
[ 2.200670] Bad eraseblock 880 at 0x000006e00000
[ 2.390423] 6 fixed-partitions partitions found on MTD device mt7621-nand
[ 2.403931] Creating 6 MTD partitions on "mt7621-nand":
[ 2.414343] 0x000000000000-0x000000100000 : "u-boot"
[ 2.425888] 0x000000100000-0x000000200000 : "SC PID"
[ 2.437509] 0x000000200000-0x000000600000 : "kernel"
[ 2.449219] 0x000000600000-0x000002200000 : "ubi"
[ 2.460467] 0x000002e00000-0x000002f00000 : "factory"
[ 2.472180] 0x000004200000-0x000007e00000 : "reserved"
[ 2.485755] libphy: Fixed MDIO Bus: probed
[ 2.560646] libphy: mdio: probed
[ 3.968886] ralink_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 3.988778] ralink_soc_eth 1e100000.ethernet: PPE started
[ 4.000439] ralink_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[ 4.019963] mt7621-pci 1e140000.pcie: Parsing DT failed
[ 4.030437] random: fast init done
[ 4.033075] NET: Registered protocol family 10
[ 4.047937] Segment Routing with IPv6
[ 4.055316] NET: Registered protocol family 17
[ 4.064296] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.090380] 8021q: 802.1Q VLAN Support v1.8
[ 4.102215] pstore: Using crash dump compression: deflate
[ 4.114484] rt2880-pinmux pinctrl: pcie is already enabled
[ 4.125584] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[ 4.140524] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[ 4.255269] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[ 4.266375] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[ 4.377400] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[ 4.391264] mt7621-pci 1e140000.pcie: PCIE0 enabled
[ 4.400969] mt7621-pci 1e140000.pcie: PCIE2 enabled
[ 4.410686] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 4.429397] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[ 4.442067] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 4.455759] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 4.469452] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 4.480407] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 4.492397] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 4.504873] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 4.517421] pci 0000:00:00.0: supports D1
[ 4.525388] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 4.537259] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 4.549254] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 4.561736] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 4.574277] pci 0000:00:01.0: supports D1
[ 4.582255] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 4.595176] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 4.611133] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 4.627284] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 4.639308] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 4.652864] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 4.666305] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 4.679929] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 4.690347] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 4.702480] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff]
[ 4.715998] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 4.730386] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 4.743768] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[ 4.755775] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 4.768396] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 4.782016] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[ 4.792433] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]
[ 4.804566] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff]
[ 4.818085] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 4.832469] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 4.845687] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 4.858856] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 4.872719] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 4.885882] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 4.899746] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 4.913264] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[ 4.927650] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[ 4.941169] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[ 4.955550] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[ 4.969078] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[ 4.982592] pci 0000:00:00.0: BAR 7: assigned [io 0x1e160000-0x1e160fff]
[ 4.996109] pci 0000:00:01.0: BAR 7: assigned [io 0x1e161000-0x1e161fff]
[ 5.009638] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 5.024197] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[ 5.038583] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 5.048470] pci 0000:00:00.0: bridge window [io 0x1e160000-0x1e160fff]
[ 5.061981] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 5.075495] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 5.089886] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[ 5.103399] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 5.113285] pci 0000:00:01.0: bridge window [io 0x1e161000-0x1e161fff]
[ 5.126804] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 5.140319] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
[ 5.156185] UBI: auto-attach mtd3
[ 5.162891] ubi0: attaching mtd3
[ 5.452718] ubi0: scanning is finished
[ 5.476689] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[ 5.487524] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 5.501218] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 5.514727] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 5.528589] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[ 5.540550] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 5.554932] ubi0: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 1627532488
[ 5.573115] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[ 5.591494] ubi0: background thread "ubi_bgt0d" started, PID 436
[ 5.605174] block ubiblock0_0: created from ubi0:0(rootfs)
[ 5.616127] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 5.629998] hctosys: unable to open rtc device (rtc0)
[ 5.647585] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[ 5.666045] devtmpfs: mounted
[ 5.676269] Freeing unused kernel memory: 1272K
[ 5.685321] This architecture does not have kernel memory protection.
[ 5.698142] Run /sbin/init as init process
[ 6.268239] init: Console is alive
[ 6.275230] init: - watchdog -
[ 7.508221] SQUASHFS error: xz decompression failed, data probably corrupt
[ 7.521933] SQUASHFS error: squashfs_read_data failed to read block 0x20eb56
[ 7.535975] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.549323] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.562711] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.576051] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.589417] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.602758] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.616115] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.629462] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.642817] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.656158] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.669529] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.682870] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.696251] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.709599] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.722959] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.736299] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.749661] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.763002] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.776365] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.789712] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.803069] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.816410] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.829774] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.843116] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.856473] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.869825] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.883183] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.896523] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.909890] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.923232] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.936603] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 7.949949] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 7.967169] init: - preinit -
[ 8.906066] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.975609] random: jshn: uninitialized urandom read (4 bytes read)
[ 33.506653] SQUASHFS error: xz de[ 9.128270] random: jshn: uninitialized urandom read (4 bytes read)
co[ 9.141658] ttyS ttyS0: 1 input overrun(s)
mpression failed, datad_data failed to read b6] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.548012] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.561311] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.561590] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.575208] SQUASHFS error: squashfs_read_data failed to read block 0x55f06e
[ 33.588554] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.602613] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.629527] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
[ 33.646763] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.660223] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
===================================================================
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 ===
PLL3 FB_DL: 0x5, 1/0 = 549/475 15000000
PLL4 FB_DL: 0x10, 1/0 = 528/496 41000000
PLL2 FB_DL: 0x15, 1/0 = 548/476 55000000
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 [ 9.587536] SQUASHFS error: xz decompression failed, data probably corrupt
000B:| 0
==[ 9.603495] SQUASHFS error: squashfs_read_data failed to read block 0x55f06e
================[ 9.620306] SQUASHFS error: Unable to read fragment cache entry [55f06e]
================[ 9.636434] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
=========[ 9.652604] SQUASHFS error: Unable to read fragment cache entry [55f06e]
================[ 9.667535] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
======PU=5000000[ 9.683681] SQUASHFS error: Unable to read fragment cache entry [55f06e]
0 HZ BUS=1666
C[ 9.699788] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
hange MPLL sourc[ 9.715923] SQUASHFS error: Unable to read fragment cache entry [55f06e]
e frode + Extern[ 9.732030] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
al loopback
0[ 9.748195] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 9.763925] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
0000
PLL4 FB_DL: 0x10, 0
do DDR setting..[00320 32 40 48 56 ------------------------ 0 0 0 0 0 0 0 0 0 0 Error loading shared library libnl-tiny.so: I/O error (needed by /sbin/swconfig) 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0005:| 0[ 9.832961] SQUASHFS error: Unable to read fragment cache entry [55f06e]
0 0 0 [ 9.847087] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
0 0 0 0 0 0 0 0 0 0 0 0
000[ 9.872620] SQUASHFS error: Unable to read fragment cache entry [55f06e]
6:| 0 0 [ 9.887625] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
0 0 0 0 0 0 0 0 0 0 [ 9.911782] SQUASHFS error: Unable to read fragment cache entry [55f06e]
0 0 0 [ 9.925504] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
0
0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 Error relocating /sbin/swconfig: nl_socket_free: symbol not found
Error relocating /sbin/swconfig: nlmsg_alloc: symbol not found
Error relocating /sbin/swconfig: genlmsg_put: symbol not found
Error relocating /sbin/swconfig: nl_object_free: symbol not found
Error relocating /sbin/swconfig: nl_socket_alloc: symbol not found
Error relocating /sbin/swconfig: nla_parse: symbol not found
Error relocating /sbin/swconfig: nl_perror: symbol not found
Error relocating /sbin/swconfig: nl_recvmsgs: symbol not found
Error relocating /sbin/swconfig: nl_cb_alloc: symbol not found
Error relocating /sbin/swconfig: nl_cb_set: symbol not found
Error relocating /sbin/swconfig: nla_put: symbol not found
Error relocating /sbin/swconfig: nl_wait_for_ack: symbol not found
Error relocating /sbin/swconfig: nla_next: symbol not found
Error relocating /sbin/swconfig: nl_cb_put: symbol not found
Error relocating /sbin/swconfig: genlmsg_attrlen: symbol not found
Error relocating /sbin/swconfig: genl_connect: symbol not found
Error relocating /sbin/swconfig: nl_cache_free: symbol not found
Error relocating /sbin/swconfig: nlmsg_free: symbol not found
Error relocating /sbin/swconfig: nl_send_auto_complete: symbol not found
Error relocating /sbin/swconfig: genl_ctrl_search_by_name: symbol not found
Error relocating /sbin/swconfig: genl_ctrl_alloc_cache: symbol not found
Error relocating /sbin/swconfig: genlmsg_attrdata: symbol not found
Error relocating /sbin/swconfig: nla_ok: symbol not found
0 0 0
0008:| 0 0 0 0 0 0 0 0 0 0 0 Error loading shared library libnl-tiny.so: I/O error (needed by /sbin/swconfig)
Error relocating /sbin/swconfig: nl_socket_free: symbol not found
Error relocating /sbin/swconfig: nlmsg_alloc: symbol not found
Error relocating /sbin/swconfig: genlmsg_put: symbol not found
Error relocating /sbin/swconfig: nl_object_free: symbol not found
Error relocating /sbin/swconfig: nl_socket_alloc: symbol not found
Error relocating /sbin/swconfig: nla_parse: symbol not found
Error relocating /sbin/swconfig: nl_perror: symbol not found
Error relocating /sbin/swconfig: nl_recvmsgs: symbol not found
Error relocating /sbin/swconfig: nl_cb_alloc: symbol not found
Error relocating /sbin/swconfig: nl_cb_set: symbol not found
Error relocating /sbin/swconfig: nla_put: symbol not found
Error relocating /sbin/swconfig: nl_wait_for_ack: symbol not found
Error relocating /sbin/swconfig: nla_next: symbol not found
Error relocating /sbin/swconfig: nl_cb_put: symbol not found
Error relocating /sbin/swconfig: genlmsg_attrlen: symbol not found
Error reloc[ 10.410277] urandom_read: 6 callbacks suppressed
ating /sbin/swco[ 10.410289] random: procd: uninitialized urandom read (4 bytes read)
nfig: genl_connect: symbol not found
Error relocating /sbin/swconfig: nl_cache_free: symbol not found
Error relocating /sbin/swconfig: nlmsg_free: symbol not found 0 0
Error relocating /sbin/swconfig: nl_send_auto_complete: symbol not found
Error relocating /sbin/swconfig: genl_ctrl_search_by_name: symbol not found
Error relocating /sbin/swconfig: genl_ctrl_alloc_cache: symbol not found
Error relocating /sbin/swconfig: genlmsg_attrdata: symbol not found
Error relocating /sbin/swconfig: nla_ok: symbol not found
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Error loading shared library libnl-tiny.so: I/O error (needed by /sbin/swconfig)000C:
Error relocating /sbin/swconfig: nl_socket_free: symbol not found
Error relocating /sbin/swconfig: nlmsg_alloc: symbol not found
Error relocating /sbin/swconfig: genlmsg_put: symbol not found
Error relocating /sbin/swconfig: nl_object_free: symbol not found
Error relocating /sbin/swconfig: nl_socket_alloc: symbol not found
Error relocating /sbin/swconfig: nla_parse: symbol not found
Error relocating /sbin/swconfig: nl_perror: symbol not found
Error relocating /sbin/swconfig: nl_recvmsgs: symbol not found
Error relocating /sbin/swconfig: nl_cb_alloc: symbol not found
Error relocating /sbin/swconfig: 0[ 10.661653] ttyS ttyS0: 20 input overrun(s)
0 0
000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0
0010:| 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
0011:| 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017: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
| 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 = 16
rank 0 fine = 32
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 | 13 9 13 9 13 6 13 6 3 11
10 | 5 11 7 11 6 10
--------------------------------------
==================================================================
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~60)30 8 (1~56)28
1 (1~58)29 9 (1~58)29
2 (1~60)30 10 (1~58)29
3 (1~58)29 11 (1~55)28
4 (1~58)29 12 (1~58)29
5 (1~60)30 13 (1~58)29
6 (1~60)30 14 (1~59)30
7 (1~61)31 15 (1~57)29
==================================================================
3.dq delay value last
==================================================================
bit-----------------------=============================================================
==================================================================
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 = ffff05aa
DQ loop=14, cmp_err_1 = ffff01aa
DQ loop=13, cmp_err_1 = ffff00a2
dqs_perbyte_dly.last_dqdly_pass[1]=13, finish count=1
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)=(9,8)
20,data:99
[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 95 02]
Device found in MTK table, ID: c2f1, EXT_ID: 809502
Support this Device in MTK table! c2f1
select_chip
[NAND]select ecc bit:4, sparesize :64 sata 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.
Bad block detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
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.
Bad block detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
***************************************************
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 ...
[ 33.506653] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.520398] SQUASHFS error: squashfs_read_data failed to read block 0xa363a2
[ 33.534586] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.548012] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.561311] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.561590] SQUASHFS error: Unable to read fragment cache entry [a363a2]
[ 33.575208] SQUASHFS error: squashfs_read_data failed to read block 0x55f06e
[ 33.588554] SQUASHFS error: Unable to read page, block a363a2, size 1419c
[ 33.602613] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.629527] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
[ 33.646763] SQUASHFS error: Unable to read fragment cache entry [55f06e]
[ 33.660223] SQUASHFS error: Unable to read page, block 55f06e, size 9f18
===================================================================
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 ===
PLL3 FB_DL: 0x5, 1/0 = 549/475 15000000
PLL4 FB_DL: 0x10, 1/0 = 528/496 41000000
PLL2 FB_DL: 0x15, 1/0 = 548/476 55000000
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
===================================================================
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 ===
PLL3 FB_DL: 0x6, 1/0 = 738/286 19000000
PLL4 FB_DL: 0x10, 1/0 = 573/451 41000000
PLL2 FB_DL: 0x15, 1/0 = 558/466 55000000
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[ 12.647359] mount_root: loading kmods from internal overlay
0 0 0 [ 12.659508] ttyS ttyS0: 4 input overrun(s)
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 [ 12.730586] SQUASHFS error: xz decompression failed, data probably corrupt
0 0
000B:[ 12.744935] SQUASHFS error: squashfs_read_data failed to read block 0x20eb56
| 0 0 0[ 12.761762] SQUASHFS error: Unable to read fragment cache entry [20eb56]
0 0 0 [ 12.777883] SQUASHFS error: Unable to read page, block 20eb56, size fb64
0 0 0 [ 12.794059] SQUASHFS error: Unable to read fragment cache entry [20eb56]
0 0 0 [ 12.810122] SQUASHFS error: Unable to read page, block 20eb56, size fb64
0 0 0 [ 12.826998] mount_root: failed to launch kmodloader from internal overlay
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 0 1 1 1 1 1 1
000F:| 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0
0010:| 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
0011:| 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [ 13.023391] UBIFS (ubi0:1): Mounting in unauthenticated mode
0
0018:| 0 [ 13.036569] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 907
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 [ 13.122434] UBIFS (ubi0:1): recovery needed
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 = 16
rank 0 fine = 32
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 | 13 9 13 9 13 6 13 6 3 11
10 | 5 11 7 11 6 10
--------------------------------------
==================================================================
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
[ 13.338604] UBIFS (ubi0:1): recovery completed
0 (1~60)30 8 [ 13.349886] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
(1~56)28
1 (1~[ 13.368114] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
58)29 9 (1~58)[ 13.390620] UBIFS (ubi0:1): FS size: 12697600 bytes (12 MiB, 100 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
29
2 (1~60)30 [ 13.413980] UBIFS (ubi0:1): reserved for root: 599739 bytes (585 KiB)
10 (1~58)29
3[ 13.429579] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 72C09BC6-B63C-4B3B-8835-A57DCC3A1B11, small LPT model
(1~58)29 11 [ 13.457199] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
(1~55)28
4 (1~58)29 12 (1~58)29
5 (1~60)30 13 (1~58)29
6 (1~60)30 14 [ 13.483838] block: extroot: not configured
(1~59)30
7 (1[ 13.493804] UBIFS (ubi0:1): un-mount UBI device 0
~61)31 15 (1~5[ 13.505656] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
7)29
==========================================[ 13.526833] UBIFS (ubi0:1): Mounting in unauthenticated mode
================[ 13.540475] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 910
========
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 14 11 14 11 15 7 14 6 5 12
10 | 6 13 8 12 6 11
==================================================================
==================================================================
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 = ffff05aa
DQ loop=14, cmp_err_1 = ffff01aa
DQ loop=13, cmp_err_1 = ffff00a2
dqs_perbyte_dly.last_dqdly_pass[1]=13, finish count=1
DQ loop=12, cmp_err_1 = ffff0000
dqs_perbyte_dly.[ 13.699041] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
last_dqdly_pass[[ 13.716695] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
0]=12, finish c[ 13.739211] UBIFS (ubi0:1): FS size: 12697600 bytes (12 MiB, 100 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
ount=2
byte:0, [ 13.762567] UBIFS (ubi0:1): reserved for root: 599739 bytes (585 KiB)
(DQS,DQ)=(9,8)
[ 13.778176] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 72C09BC6-B63C-4B3B-8835-A57DCC3A1B11, small LPT model
byte:1, (DQS,DQ)=(9,8)
20,data:99
[EMI] DRAMC calibration passed
===================================================================
MT7621 stage1 code done
CPU=50000000 HZ BUS=16666666 HZ
======================1.3 (Sep 25 2015 - 10:2
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 95 02]
Device found in MTK table, ID: c2f1, EXT_ID: 809502
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_faccessfully!
mtd->writesiddr : 0x100000
.*** War=================
Ralin
ASIC MT7621AS (MAC to M16 bit
Xtal Mode=3 OCP =======================dcache: sets:256, ways:4, linesz:32 ,total:327[ 13.949393] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
68
##### The CPU freq = 880 MHZ ####
estimate memory size [ 13.974471] block: extroot: not configured
=128 Mbytes
R[ 13.984826] mount_root: switching to ubifs overlay
eset 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
cm[ 14.037687] urandom-seed: Seeding with /etc/urandom.seed
d : 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.
Bad block detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
NetTxPacket = 0x87FE5B40
KSEG1ADDR(NetTxPacket) = 0x !
Trying Eth0 (10/100-RP_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 ver[ 14.224540] procd: - early -
sion 2
Actual U[ 14.233090] procd: - watchdog -
-Boot ABI version 2
******************************************
Uboot StandAlone Entry
******************************************
0ock detected at 0x3c20000, oob_buf[0] is 0x0
NAND Section 18, has bad block at address c3820000, Image Offset 3c20000
NAND Section 18, has bad block count 1
Bad block detected [ 14.867094] procd: - watchdog -
[ 14.882631] procd: - ubus -
[ 15.061208] procd: - init -
at 0x6e00000, oob_buf[0] is 0x0
NAND Section 21, has bad block at address c6a00000, Image Offset 6e00000
NAND Section 21, has bad block count 1
***************************************************
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 ...
[ 33.506653] SQUASHFS error: xz decompression failed, data probably corrupt
[ 33.520398] SQUASHFS error: squashfs_read_data failed to read block 0xa363a2
[ 33.534586] SQUASHFS error: UnPlease press Enter to activate this console.
able to read fragment cach(none) login: ade flag check pass!Entering Firmware : Everything is OK.
kernelPassword:
System Boot system code via Flash.
## Booting image at bfe00000 ...
[ 16.163074] SQUASHFS error: xz decompression failed, data probably corrupt
[ 16.176793] SQUASHFS error: squashfs_read_data failed to read block 0x20eb56
[ 16.190831] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 16.204171] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 16.217591] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 16.230934] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 16.356895] urngd: v1.0.2 started.
[ 16.589906] random: crng init done
[ 17.962066] SQUASHFS error: xz decompression failed, data probably corrupt
[ 17.975773] SQUASHFS error: squashfs_read_data failed to read block 0x20eb56
[ 17.989806] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 18.003143] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 18.016527] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 18.029869] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 18.182635] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 18.195995] SQUASHFS error: Unable to read page, block 20eb56, size fb64
[ 18.209357] SQUASHFS error: Unable to read fragment cache entry [20eb56]
[ 18.222688] SQUASHFS error: Unable to read page, block 20eb56, size fb64[/spoiler]
tak więc:
1. wylutowałem NAND
2. Pobrałem BREED dla Nefi D1
3. Wgrałem całość na WINBOND W25Q64, mam ich całe pudełko :>
4. Wlutowałem w miejsce pod SPI FLASH, przelutowałem rezystory R50 na R51 oraz R48 na R46 (najtrudniejsze w tej całej operacji)
5. Poskładałem do kupy, podłączyłem port szeregowy z predkoscia 115200
i TADAM ![]()
Boot and Recovery Environment for Embedded Devices
Copyright (C) 2021 HackPascal <hackpascal@gmail.com>
Build date 2021-12-15 [git-f9b74d0]
Version 1.1 (r1337)
DRAM: 128MB
Platform: MediaTek MT7621S ver 1, eco 3
Board: Newifi D1
Clocks: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz
Flash: Winbond W25Q64 (8MB) on mt7621-spi.0
rt2880-eth: MAC address from EEPROM is invalid, using default settings.
rt2880-eth: Using MAC address 00:0c:43:00:00:01
eth0: MediaTek MT7530 Gigabit switch
Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0
Press any key to interrupt autoboot ... 0
Unable to locate firmware.
Starting breed built-in shell
breed> d
Unrecognised command: d
Type 'help' to get available commands.
breed> help
Available commands:
about - About this bootloader
abstatus - Interrupt status of autoboot
arp - Display ARP table
autoboot - Detect firmware type and boot automatically
boot - Boot firmware
btntst - Test GPIO of buttons
dhcp - Display DHCP leases
env - Environment variables utility
envconf - Configure environment variable block
exit - Exit from telnet
flash - Flash utility
gpio - GPIO utilities
help - Show available commands
mdio - MDIO utility
mem - Memory operation utilities
net - Network control
netstat - Display network state
reset - Restart device
setbrg - Set baudrate
spi - SPI utility
sysinfo - Display system information
thread - Display all threads
wget - Retrieval file through HTTPi z tego punktu mam problem, bo muszę teraz:
1. Przygotować obraz openwrt z ustawieniami pod 8MB SPI (nigdy nie miałem okazji nawet zbudować Openwrt, nie wspominając o konfiguracji pod router)
2. Wgrać ART, bo nie mam MAC adresów.