1 (edytowany przez chemik89 2023-06-30 19:14:50)

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 big_smile

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 HTTP

i 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.

2 (edytowany przez chemik89 2023-06-30 18:32:15)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Stary NAND odczytałem w czytniku, miał 657 uszkodzonych bloków.

binwalk -e MX30LF1G18AC@TSOP48.BIN

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             uImage header, header size: 64 bytes, header CRC: 0xEBCCB4B4, created: 2015-09-25 14:29:54, image size: 133648 bytes, Data Address: 0xA0200000, Entry Point: 0xA0200000, data CRC: 0xE36D1B47, OS: Linux, CPU: MIPS, image type: Standalone Program, compression type: none, image name: "NAND Flash I"
112104        0x1B5E8         U-Boot version string, "U-Boot 1.1.3 (Sep 25 2015 - 10:29:47)"
270250        0x41FAA         Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x50, starting code segment: 0x0, code size: 0x7300
2162688       0x210000        uImage header, header size: 64 bytes, header CRC: 0xE4A0869B, created: 2021-07-29 04:21:28, image size: 2444390 bytes, Data Address: 0x80001000, Entry Point: 0x80001000, data CRC: 0xF44CAF37, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: none, image name: "MIPS X-WRT Linux-5.4.134"
2168332       0x21160C        Copyright string: "Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>"

WARNING: Extractor.execute failed to run external extractor 'ubireader_extract_files -o 'ubifs-root' '%e'': [Errno 2] No such file or directory: 'ubireader_extract_files', 'ubireader_extract_files -o 'ubifs-root' '%e'' might not be installed correctly
6488064       0x630000        UBI erase count header, version: 1, EC: 0x1, VID header offset: 0x800, data offset: 0x1000
38928384      0x2520000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x38, starting code segment: 0x0, code size: 0x7300
38928512      0x2520080       Zip archive data, at least v2.0 to extract, compressed size: 25033, uncompressed size: 156925, name: ui.xml
38954386      0x2526592       Zip archive data, at least v2.0 to extract, compressed size: 14039, uncompressed size: 85312, name: msg.xml
38968915      0x2529E53       Zip archive data, at least v2.0 to extract, compressed size: 51390, uncompressed size: 229831, name: hlp.js
39022174      0x2536E5E       End of Zip archive, footer length: 22
41091072      0x2730000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x38, starting code segment: 0x0, code size: 0x7300
41091200      0x2730080       Zip archive data, at least v2.0 to extract, compressed size: 24545, uncompressed size: 160540, name: ui.xml
41116570      0x273639A       Zip archive data, at least v2.0 to extract, compressed size: 13863, uncompressed size: 87931, name: msg.xml
41130923      0x2739BAB       Zip archive data, at least v2.0 to extract, compressed size: 51206, uncompressed size: 222300, name: hlp.js
43253760      0x2940000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x38, starting code segment: 0x0, code size: 0x7300
43253888      0x2940080       Zip archive data, at least v2.0 to extract, compressed size: 23293, uncompressed size: 155641, name: ui.xml
43277958      0x2945E86       Zip archive data, at least v2.0 to extract, compressed size: 13132, uncompressed size: 84206, name: msg.xml
43291564      0x29493AC       Zip archive data, at least v2.0 to extract, compressed size: 49396, uncompressed size: 212810, name: hlp.js
43342765      0x2955BAD       End of Zip archive, footer length: 22
45416448      0x2B50000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x64, starting code segment: 0x0, code size: 0x7300
45416576      0x2B50080       Zip archive data, at least v2.0 to extract, compressed size: 23158, uncompressed size: 154016, name: ui.xml
45440511      0x2B55DFF       Zip archive data, at least v2.0 to extract, compressed size: 12975, uncompressed size: 82672, name: msg.xml
45453960      0x2B59288       Zip archive data, at least v2.0 to extract, compressed size: 48387, uncompressed size: 204492, name: hlp.js
45504120      0x2B65678       End of Zip archive, footer length: 22
47579136      0x2D60000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x38, starting code segment: 0x0, code size: 0x7300
47579264      0x2D60080       Zip archive data, at least v2.0 to extract, compressed size: 32248, uncompressed size: 214147, name: ui.xml
47612577      0x2D682A1       Zip archive data, at least v2.0 to extract, compressed size: 15888, uncompressed size: 102428, name: msg.xml
47629019      0x2D6C2DB       Zip archive data, at least v2.0 to extract, compressed size: 61937, uncompressed size: 350912, name: hlp.js
47693145      0x2D7BD59       End of Zip archive, footer length: 22
64880640      0x3DE0000       Sercomm firmware signature, version control: 256, download control: 0, hardware ID: "AYA", hardware version: 0x4100, firmware version: 0x86, starting code segment: 0x0, code size: 0x7300
64880768      0x3DE0080       Zip archive data, at least v2.0 to extract, compressed size: 28140, uncompressed size: 169074, name: ui.xml
64909845      0x3DE7215       Zip archive data, at least v2.0 to extract, compressed size: 13945, uncompressed size: 87210, name: msg.xml
64924280      0x3DEAA78       Zip archive data, at least v2.0 to extract, compressed size: 53082, uncompressed size: 216721, name: hlp.js
64979279      0x3DF814F       End of Zip archive, footer length: 22
69206067      0x4200033       Sercomm firmware signature, version control: 19280, download control: 1027, hardware ID: "", hardware version: 0x9, firmware version: 0x100, starting code segment: 0x4, code size: 0x0
69206074      0x420003A       Zip archive data, at least v1.0 to extract, name: keys/
69206137      0x4200079       Zip archive data, at least v2.0 to extract, compressed size: 206, uncompressed size: 245, name: keys/dh1024.pem
69206416      0x4200190       Zip archive data, at least v1.0 to extract, compressed size: 21, uncompressed size: 21, name: keys/index.txt.attr
69206632      0x4200268       Zip archive data, at least v2.0 to extract, compressed size: 110, uncompressed size: 220, name: keys/index.txt
69206814      0x420031E       Zip archive data, at least v2.0 to extract, compressed size: 95, uncompressed size: 110, name: keys/index.txt.old
69206985      0x42003C9       Zip archive data, at least v1.0 to extract, compressed size: 3, uncompressed size: 3, name: keys/serial
69207073      0x4200421       Zip archive data, at least v1.0 to extract, compressed size: 3, uncompressed size: 3, name: keys/serial.old
69207149      0x420046D       Zip archive data, at least v2.0 to extract, compressed size: 1980, uncompressed size: 3806, name: keys/02.pem
69209262      0x4200CAE       Zip archive data, at least v2.0 to extract, compressed size: 1980, uncompressed size: 3806, name: keys/client.crt
69211379      0x42014F3       Zip archive data, at least v2.0 to extract, compressed size: 518, uncompressed size: 688, name: keys/client.csr
69211986      0x4201752       Zip archive data, at least v2.0 to extract, compressed size: 718, uncompressed size: 916, name: keys/client.key
69212793      0x4201A79       Zip archive data, at least v2.0 to extract, compressed size: 1958, uncompressed size: 3928, name: keys/01.pem
69214884      0x42022A4       Zip archive data, at least v2.0 to extract, compressed size: 1958, uncompressed size: 3928, name: keys/server.crt
69216979      0x4202AD3       Zip archive data, at least v2.0 to extract, compressed size: 517, uncompressed size: 688, name: keys/server.csr
69218404      0x4203064       Zip archive data, at least v2.0 to extract, compressed size: 756, uncompressed size: 1265, name: keys/ca.crt
69219261      0x42033BD       Zip archive data, at least v2.0 to extract, compressed size: 714, uncompressed size: 912, name: keys/ca.key
69221622      0x4203CF6       End of Zip archive, footer length: 22

aczkolwiek chyba szybciej jak sobie skopiuje z innego r6220 aniżeli wygrzebie z tego ...

3

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Jak masz czytnik NAND to czemu nie skopiujesz na nowy NAND?

4 (edytowany przez chemik89 2023-07-03 11:04:26)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

1. nie potrzebuje tyle miejsca, i jak bym wymieniał to i tak na inny, ten się nie opłaca. Wiec i tak musiałbym korygować layout.
https://www.tme.eu/pl/details/mx30lf1g1 … c-ti-tray/

2. na tym routerze od początku pod openwrt są problemy z kontrolerem nand - takie problemy z uszkodzonymi blokami powinny się korygować same a nie rozwalać system plików. Wymiana na nową kość nic nie zmieni.
3. chce wymienić na spi w 7 egzemplarzach, żeby pozbyć się problemów na dobre i móc ich normalnie użyć na "produkcji", bez strachu że za pół roku znowu się posypie ... Obecnie te routery są dla mnie bezużyteczne.
4. Chciałem spróbować czy sie da, i przy okazji się czegoś nauczyć ;D

jednego i tak pewnie poświęcę dla eksperymentów, na PCB jest wyprowadzone sporo gpio, nawet pcie.

Miałem się tym dalej zająć w weekend, ale nie było czasu :>

5 (edytowany przez zakk87 2023-08-17 17:02:52)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cześć @chemk89 mam podobną sytuację z R6800, podczas wgrywania przez nmrpflash konsola wywalała badblocki, pamięć zastosowana w tym routerze to MX30LF1G18AC-TI niestety bawiłem się coś w konsoli i chyba ją wyczyściłem razem z bootloaderem (router nie wstaje). Teraz myślę aby wlutować nową sztukę jednak czym wcześniej wgrać md0 i czy to wystarczy?

6 (edytowany przez chemik89 2023-08-17 17:12:09)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Więc tak, dzisiaj sie chwilę pobawiłem.
Zmieniłem breed na wndr3700

generalnie jak ktoś ma nor flash 16MB to myślę że spokojnie można wgrać cały dump z wndr3700 i pewnie zadziała smile one się w sumie tylko rodzajem pamięci różnią.

jednak ja lece hard way :> mam tylko wiadekto kosci 8MB i zamierzam je wykorzystać wink

zamiast nand ustawiłem w DTS

&spi0 {
    status = "okay";

    flash@0 {
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <10000000>;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "u-boot";
                reg = <0x0 0x30000>;
                read-only;
            };

            partition@30000 {
                label = "u-boot-env";
                reg = <0x30000 0x10000>;
                read-only;
            };

            factory: partition@40000 {
                label = "factory";
                reg = <0x40000 0x10000>;
                read-only;
            };

            partition@50000 {
                compatible = "denx,uimage";
                label = "firmware";
                reg = <0x50000 0x7b0000>;
            };
        };
    };
};

zbudowałem.

teraz jak to wgrać ... :> breed przyjmuje na wejściu zlepek kernel+rootfs
więc posklejałem cos takiego

#!/bin/bash

[ $# -ne 2 ] && { echo "Usage: $0 kernel1.bin rootfs0.bin"; exit 1; }

kernel1="$1"
rootfs0="$2"

[ -f "$kernel1" ] || { echo "kernel1 file doesn't exist, aborting: $kernel1"; exit 2; }
[ -f "$rootfs0" ] || { echo "rootfs0 file doesn't exist, aborting: $rootfs0"; exit 2; }

set -eo pipefail

tmpfile=$(mktemp tmp.XXXXXX)
truncate -s 3M "$tmpfile"
dd if="$kernel1" of="$tmpfile" conv=nocreat,notrunc status=none oflag=seek_bytes seek=0
#dd if="$kernel1" of="$tmpfile" conv=nocreat,notrunc status=none oflag=seek_bytes seek=3M
cat "$rootfs0" >> "$tmpfile"
mv "$tmpfile" openwrt_for_breed.bin

echo "openwrt_for_breed.bin successfully created."

limit dla 8MB przy breed to
7,69 MB (8060928B)


no i dobra, poszło, wgrane, odpalone


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: Netgear WNDR3700 v5
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

Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-5.10.190
    Data Size:    2750819 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Flushing cache ... done.

Starting kernel at 0x80001000...



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.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    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=000734e0
[    0.000000] Readback ErrCtl register=000734e0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6757K kernel code, 628K rwdata, 1368K rodata, 1280K init, 235K bss, 11728K 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]  Tracing variant of Tasks RCU enabled.
[    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] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015848] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033805] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115405] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129803] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.147977] rcu: Hierarchical SRCU implementation.
[    0.157770] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173186] smp: Bringing up secondary CPUs ...
[    0.182798] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182808] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182820] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182909] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243062] Synchronize counters for CPU 1: done.
[    0.302744] smp: Brought up 1 node, 2 CPUs
[    0.315077] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.334587] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.348226] pinctrl core: initialized pinctrl subsystem
[    0.360737] NET: Registered protocol family 16
[    0.373570] cpuidle: using governor teo
[    0.441468] clocksource: Switched to clocksource GIC
[    0.452931] NET: Registered protocol family 2
[    0.461913] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.477236] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.493937] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.509085] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.523082] TCP: Hash tables configured (established 1024 bind 1024)
[    0.535893] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548795] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562922] NET: Registered protocol family 1
[    0.571515] PCI: CLS 0 bytes, default 32
[    0.582354] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.599257] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.610851] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.633042] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.644490] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.655819] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.667640] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.681812] printk: console [ttyS0] disabled
[    0.690319] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.708330] printk: console [ttyS0] enabled
[    0.708330] printk: console [ttyS0] enabled
[    0.724839] printk: bootconsole [early0] disabled
[    0.724839] printk: bootconsole [early0] disabled
[    0.747394] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.760673] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.770501] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.783234] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.797816] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.813311] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.827951] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.842819] Creating 4 MTD partitions on "spi0.0":
[    0.852399] 0x000000000000-0x000000030000 : "u-boot"
[    0.863283] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.874929] 0x000000040000-0x000000050000 : "factory"
[    0.886124] 0x000000050000-0x000000800000 : "firmware"
[    0.898887] 2 uimage-fw partitions found on MTD device firmware
[    0.910752] Creating 2 MTD partitions on "firmware":
[    0.920833] 0x000000000000-0x000000300000 : "kernel"
[    0.932082] 0x000000300000-0x0000007b0000 : "ubi"
[    0.983431] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    0.999306] mtk_soc_eth 1e100000.ethernet: generated random MAC address 9a:37:32:bb:50:a6
[    1.016529] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.034294] i2c /dev entries driver
[    1.043539] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.056957] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.074533] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.090853] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.107326] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.120475] NET: Registered protocol family 10
[    1.133028] Segment Routing with IPv6
[    1.140433] NET: Registered protocol family 17
[    1.149797] 8021q: 802.1Q VLAN Support v1.8
[    1.162639] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.196249] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.218589] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.240979] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.263178] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.285662] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.307950] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.324917] DSA: tree 0 setup
[    1.331489] rt2880-pinmux pinctrl: pcie is already enabled
[    1.342580] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.355967] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.373511] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.389813] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.406214] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.421410] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.436543] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.551247] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.562369] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.673680] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.687547] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.697267] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.706995] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.725730] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.738440] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.752148] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.765863] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.776796] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.797122] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.809111] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.821608] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    1.834165] pci 0000:00:00.0: supports D1
[    1.842155] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.854147] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.866182] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.878682] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    1.891247] pci 0000:00:01.0: supports D1
[    1.899241] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.912581] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    1.924644] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.938701] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    1.951236] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    1.965278] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    1.977703] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.991405] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.001894] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.014041] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.027569] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.041964] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.055446] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.067498] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.081554] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.093149] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.106860] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.117313] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.129462] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.142991] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.157387] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.170620] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.183811] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.197687] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.210860] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.224737] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.238266] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.252664] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.266194] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.280584] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.294119] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.307650] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.321181] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.334718] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.349295] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.363684] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.373591] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.387114] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.400639] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.415037] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.428566] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.438464] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.451990] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.465516] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.481236] UBI: auto-attach mtd5
[    2.487991] ubi0: attaching mtd5
[    2.494903] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.510000] ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 64
[    2.524841] ubi0 error: validate_ec_hdr: bad EC header
[    2.535249] Erase counter header dump:
[    2.542720]  magic          0x55424923
[    2.550163]  version        1
[    2.556065]  ec             0
[    2.561974]  vid_hdr_offset 2048
[    2.568381]  data_offset    4096
[    2.574804]  image_seq      1691833611
[    2.582268]  hdr_crc        0x46f728c2
[    2.589711] erase counter header hexdump:
[    2.597724] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.190 #0
[    2.609841] Stack : 809f0000 80ffe480 80e98040 80083df4 80880000 80771218 00000000 00000000
[    2.626493]         80c25c64 809d0000 8073f77c 80c383d0 80808e47 00000001 80c25c08 daf172ae
[    2.643138]         00000000 00000000 8073f77c 80c25aa8 ffffefff 00000000 ffffffea 00000000
[    2.659781]         80c25ab4 000000d2 8080e8f0 ffffffff 00000000 00000001 00000000 80740000
[    2.676424]         80e98000 00000000 55424923 80ffe480 00000018 803fa7c0 00000004 809d0004
[    2.693068]         ...
[    2.697931] Call Trace:
[    2.702812] [<800080f0>] show_stack+0x30/0x100
[    2.711658] [<8037747c>] dump_stack+0x9c/0xcc
[    2.720321] [<804621d8>] validate_ec_hdr+0xd8/0x12c
[    2.730024] [<80462f54>] ubi_io_read_ec_hdr+0x250/0x2b0
[    2.740422] [<80468cb8>] ubi_attach+0x374/0x15dc
[    2.749608] [<8045c2cc>] ubi_attach_mtd_dev+0x504/0xc30
[    2.760007] [<808aa0cc>] ubi_init+0x338/0x3dc
[    2.768673] [<80001644>] do_one_initcall+0x50/0x1b4
[    2.778397] [<80891024>] kernel_init_freeable+0x27c/0x314
[    2.789137] [<80693c80>] kernel_init+0x10/0x100
[    2.798148] [<80002ff8>] ret_from_kernel_thread+0x14/0x1c
[    2.808886]
[    2.811953] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
[    2.825137] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
[    2.839321] UBI error: cannot attach mtd5
[    2.848234] /dev/root: Can't open blockdev
[    2.856490] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.871444] Please append a correct "root=" boot option; here are the available partitions:
^C[    2.888103] 1f00             192 mtdblock0
[    2.888109]  (driver?)
[    2.901443] 1f01              64 mtdblock1
[    2.901451]  (driver?)
[    2.914462] 1f02              64 mtdblock2
[    2.914467]  (driver?)
[    2.927474] 1f03            7872 mtdblock3
[    2.927479]  (driver?)
[    2.940491] 1f04            3072 mtdblock4
[    2.940496]  (driver?)
[    2.953525] 1f05            4800 mtdblock5
[    2.953530]  (driver?)
[    2.966538] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.983002] Rebooting in 1 seconds..

i kernel panic ;P

dobrze zrozumiałem że wywala się na UBI ? ma prawo, obszar jest pusty, postaram się wygrzebać art z nand albo z inneg r6220

aczkolwiek i to mi sie nie podoba
[    0.770501] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.783234] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions

wysoce prawdopodobne że źle posklejałem ten flash big_smile

7

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

1. Bad cell count pojawia sie zawsze, zignoruj
2. Tak błąd jest przy ubi, tyle że ty masz tam pamięć zwykłą która pewnie nie chcesz formatować w ubi?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8 (edytowany przez chemik89 2023-08-17 17:24:20)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cezary napisał/a:

1. Bad cell count pojawia sie zawsze, zignoruj
2. Tak błąd jest przy ubi, tyle że ty masz tam pamięć zwykłą która pewnie nie chcesz formatować w ubi?

2. raczej nie ;D

gdzie to się przestawia w kodzie ?

może szybciej jak po prostu zbuduje sobie wndr3700 pod 8MB ? ;D

9

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Musisz w image.mk przepisać tworzenie obrazu żeby nie robił i nie łączył partycji ubi, tylko normalnie jak dla zwykłego spi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10 (edytowany przez chemik89 2023-08-17 20:29:57)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cezary napisał/a:

Musisz w image.mk przepisać tworzenie obrazu żeby nie robił i nie łączył partycji ubi, tylko normalnie jak dla zwykłego spi.

gdzie to sie znajduje ? big_smile
mam jedno w include, ale to tylko jakiś template


edit chyba ze tutaj:
/linux/ramips/image/mt7621.mk


define Device/netgear_wndr3700-v5
  $(Device/dsa-migration)
  $(Device/netgear_sercomm_nor)
  $(Device/uimage-lzma-loader)
  IMAGE_SIZE := 15232k
  DEVICE_MODEL := WNDR3700
  DEVICE_VARIANT := v5
  SERCOMM_HWNAME := WNDR3700v5
  SERCOMM_HWID := AYB
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x1054
  SERCOMM_PAD := 320k
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
        kmod-usb-ledtrig-usbport
  SUPPORTED_DEVICES += wndr3700v5
endef
TARGET_DEVICES += netgear_wndr3700-v5

define Device/netgear_r6220
  $(Device/netgear_sercomm_nand)
  DEVICE_MODEL := R6220
  SERCOMM_HWNAME := R6220
  SERCOMM_HWID := AYA
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0086
  IMAGE_SIZE := 28672k
  DEVICE_PACKAGES += kmod-mt76x2
  SUPPORTED_DEVICES += r6220
endef
TARGET_DEVICES += netgear_r6220

11

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Tak, to to.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12 (edytowany przez chemik89 2023-08-17 21:08:50)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

define Device/netgear_r6220
  $(Device/dsa-migration)
  $(Device/uimage-lzma-loader)
  IMAGE_SIZE := 7872k
  DEVICE_MODEL := R6220
  DEVICE_PACKAGES += kmod-mt76x2
  SUPPORTED_DEVICES += r6220
endef
TARGET_DEVICES += netgear_r6220

coś takiego wystarczy ? co to ten SERCOMM i co tam wypełnić ?
przepisać z 3700 ?

13

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

"Sercomm" to nazwa producenta sprzętu OEM który robi kilka modeli dla różnych brandów, określa także budowę obrazów i zawartość nagłówka dla określonego modelu. Ponieważ i tak nie potrzebujesz obrazów factory (bo r6220 z spi z oryginalnym softem nie istnieje) to możesz sobie złożyć obraz jak chcesz, tym bardziej że stosujesz breeda.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14 (edytowany przez chemik89 2023-08-18 07:31:24)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

hmm nic sie nie zmieniło, dalej krzyczy ubi ... kiedy to sie zaczytuje ? od nowa menuconfig musze zrobic ?

edit, dobra chyba mi sie model zmienił z netgear r6220 na samo r6220 smile przebudowywuje
edit 2 - teraz problem taki ze mi sie buduja tylko kernel-initramfs  i sysupgrade xD
nie mam rootfs i kernela żeby zbudowac breed ;>

edit3 - ale to nie problem bo to już łyka normalnie breed xD zakładam że te obrazy istnieja tylko przy nand

TADAM big_smile

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: Netgear WNDR3700 v5
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

Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-5.10.190
    Data Size:    2749430 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Flushing cache ... done.

Starting kernel at 0x80001000...



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.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    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=000734e0
[    0.000000] Readback ErrCtl register=000734e0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K 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]  Tracing variant of Tasks RCU enabled.
[    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] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015847] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115401] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148026] rcu: Hierarchical SRCU implementation.
[    0.157827] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173233] smp: Bringing up secondary CPUs ...
[    0.182843] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182854] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182865] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182958] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243115] Synchronize counters for CPU 1: done.
[    0.302800] smp: Brought up 1 node, 2 CPUs
[    0.316163] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335671] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349312] pinctrl core: initialized pinctrl subsystem
[    0.361911] NET: Registered protocol family 16
[    0.374705] cpuidle: using governor teo
[    0.440715] clocksource: Switched to clocksource GIC
[    0.452278] NET: Registered protocol family 2
[    0.461561] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.476886] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.493579] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.508730] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.522737] TCP: Hash tables configured (established 1024 bind 1024)
[    0.535523] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548432] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562570] NET: Registered protocol family 1
[    0.571161] PCI: CLS 0 bytes, default 32
[    0.582124] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.601389] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.612878] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.635045] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.646564] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.657948] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.669824] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.684060] printk: console [ttyS0] disabled
[    0.692639] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.710603] printk: console [ttyS0] enabled
[    0.710603] printk: console [ttyS0] enabled
[    0.727123] printk: bootconsole [early0] disabled
[    0.727123] printk: bootconsole [early0] disabled
[    0.750518] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.763734] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.773542] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.786368] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.800953] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.816452] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.831130] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.845990] Creating 4 MTD partitions on "spi0.0":
[    0.855573] 0x000000000000-0x000000030000 : "u-boot"
[    0.866444] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.878135] 0x000000040000-0x000000050000 : "factory"
[    0.890449] 0x000000050000-0x000000800000 : "firmware"
[    0.902463] 2 uimage-fw partitions found on MTD device firmware
[    0.914306] Creating 2 MTD partitions on "firmware":
[    0.924247] 0x000000000000-0x00000029f436 : "kernel"
[    0.934134] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951691] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.961693] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.981019] mtd: setting mtd5 (rootfs) as root device
[    0.991617] 1 squashfs-split partitions found on MTD device rootfs
[    1.004065] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.062897] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.078902] mtk_soc_eth 1e100000.ethernet: generated random MAC address ba:97:16:c8:4a:24
[    1.096207] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.113865] i2c /dev entries driver
[    1.123249] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.136761] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.154335] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.170664] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.187165] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.200513] NET: Registered protocol family 10
[    1.213020] Segment Routing with IPv6
[    1.220428] NET: Registered protocol family 17
[    1.229761] 8021q: 802.1Q VLAN Support v1.8
[    1.242680] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.275910] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.298832] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.321373] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.343781] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.366383] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.388925] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.405843] DSA: tree 0 setup
[    1.412389] rt2880-pinmux pinctrl: pcie is already enabled
[    1.423493] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.436881] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.454478] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.470784] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.487202] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.502411] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.517523] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.632220] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.643339] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.754652] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.768520] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.778240] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.787968] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.806719] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.819427] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.833139] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.846858] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.857793] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.878131] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.890122] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.902621] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    1.915183] pci 0000:00:00.0: supports D1
[    1.923173] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.935168] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.947208] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.959715] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    1.972279] pci 0000:00:01.0: supports D1
[    1.980247] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.993587] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.005655] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.019711] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.032249] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.046294] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.058712] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.072460] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.082916] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.095071] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.108599] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.122995] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.136461] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.148495] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.162572] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.174170] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.187924] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.198377] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.210516] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.224056] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.238453] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.251688] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.264868] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.278738] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.291933] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.305809] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.319333] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.333727] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.347257] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.361657] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.375190] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.388716] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.402252] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.415789] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.430367] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.444759] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.454656] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.468178] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.481714] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.496114] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.509639] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.519540] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.533066] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.546600] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.565142] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.591569] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.610797] Freeing unused kernel memory: 1288K
[    2.619844] This architecture does not have kernel memory protection.
[    2.632691] Run /sbin/init as init process
[    3.630265] init: Console is alive
[    3.637632] init: - watchdog -
[    4.807859] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.964739] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.981268] init: - preinit -
[    6.636049] random: jshn: uninitialized urandom read (4 bytes read)
[    6.721922] random: jshn: uninitialized urandom read (4 bytes read)
[    6.774154] random: jshn: uninitialized urandom read (4 bytes read)
[    7.065809] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.082611] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.095997] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.096314] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.127255] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[   11.194890] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   11.209897] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.432946] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.451258] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.743739] mt7530 mdio-bus:1f lan1: Link is Down
[   11.764089] procd: - early -
[   11.770069] procd: - watchdog -
[   12.470976] procd: - watchdog -
[   12.478064] procd: - ubus -
[   12.585400] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.600100] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.613440] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.635564] procd: - init -
Please press Enter to activate this console.
[   13.752066] random: jshn: uninitialized urandom read (4 bytes read)
[   13.829464] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.852226] random: ubus: uninitialized urandom read (4 bytes read)
[   13.897956] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.182545] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.197696] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.203806] urngd: v1.0.2 started.
[   14.517198] random: crng init done
[   14.524097] random: 27 urandom warning(s) missed due to ratelimiting
[   14.619792] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.630645] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.641935] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.654106] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   14.666058] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
[   15.310781] mt76x2e 0000:01:00.0: Invalid MAC address, using random address ee:47:55:e4:2c:7c
[   15.351402] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.367544] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.378516] mt76x2e 0000:01:00.0: Build: 1
[   15.386671] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.420759] mt76x2e 0000:01:00.0: Firmware running!
[   15.533013] PPP generic driver version 2.4.2
[   15.547421] NET: Registered protocol family 24
[   15.573826] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.35.0 (2023-08-12 09:46:51 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03-SNAPSHOT, r20211-de29f15af1
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

[   77.379916] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   77.393821] jffs2_build_filesystem(): unlocking the mtd device...
[   77.393832] done.
[   77.410043] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   79.781283] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   79.843381] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   79.860008] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   79.878643] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   79.897101] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   79.916535] 8021q: adding VLAN 0 to HW filter on device lan1
[   79.933424] br-lan: port 1(lan1) entered blocking state
[   79.943959] br-lan: port 1(lan1) entered disabled state
[   79.956668] device lan1 entered promiscuous mode
[   79.966254] device eth0 entered promiscuous mode
[   80.026069] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   80.060420] 8021q: adding VLAN 0 to HW filter on device lan2
[   80.083925] br-lan: port 2(lan2) entered blocking state
[   80.094481] br-lan: port 2(lan2) entered disabled state
[   80.115989] device lan2 entered promiscuous mode
[   80.139554] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   80.171454] 8021q: adding VLAN 0 to HW filter on device lan3
[   80.189914] br-lan: port 3(lan3) entered blocking state
[   80.200474] br-lan: port 3(lan3) entered disabled state
[   80.213650] device lan3 entered promiscuous mode
[   80.237165] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   80.271343] 8021q: adding VLAN 0 to HW filter on device lan4
[   80.294851] br-lan: port 4(lan4) entered blocking state
[   80.305358] br-lan: port 4(lan4) entered disabled state
[   80.331353] device lan4 entered promiscuous mode
[   80.372679] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   80.398274] 8021q: adding VLAN 0 to HW filter on device wan
[   81.560165] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   81.591014] br-lan: port 1(lan1) entered blocking state
[   81.601508] br-lan: port 1(lan1) entered forwarding state
[   81.625079] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   86.769902] done.
[   86.773850] jffs2: notice: (1618) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   87.017736] overlayfs: upper fs does not support tmpfile.
[   87.665920] do_page_fault(): sending SIGSEGV to ujail for invalid read access from 00000036
[   87.682780] epc = 77dd8ddf in libubox.so.20220515[77dd5000+18000]
[   87.695044] ra  = 5563471b in ujail[55630000+14000]

dzięki big_smile widać tu jeszcze coś do poprawy ?
nawet bez art działa
ale zaraz spróbuje go jakoś tam wgrać, breed ma nawet od tego opcje .. tylko że się nie wstrzeli w dobry obszar...
pora wgrać breed od Linksys RE6500 big_smile


teraz tak, onny r6220, mam taki układ

 1.986060] 0x000000000000-0x000000100000 : "u-boot"
[    2.007875] 0x000000100000-0x000000200000 : "SC PID"
[    2.028863] 0x000000200000-0x000000600000 : "kernel"
[    2.080251] 0x000000600000-0x000002200000 : "ubi"
[    2.372399] 0x000002e00000-0x000002f00000 : "factory"
[    2.393939] 0x000004200000-0x000007e00000 : "reserved"

spi

[    0.845990] Creating 4 MTD partitions on "spi0.0":
[    0.855573] 0x000000000000-0x000000030000 : "u-boot"
[    0.866444] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.878135] 0x000000040000-0x000000050000 : "factory"
[    0.890449] 0x000000050000-0x000000800000 : "firmware"
[    0.902463] 2 uimage-fw partitions found on MTD device firmware
[    0.914306] Creating 2 MTD partitions on "firmware":
[    0.924247] 0x000000000000-0x00000029f436 : "kernel"
[    0.934134] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951691] 0x00000029f436-0x0000007b0000 : "rootfs"

hmm nie moge znaleść art xD
mtd4 w r6220 z nand to tylko to

"03 76 0B 00 B0 39 56 61 7A F0 03 76 C3 14 FF FF FF FF 03 76 C3 14 00 00 00 00 00 00 00 00 00 00 00 00 B0 07 80 00 60 7F FD 9B FF FF FF FF FF FF FF FF FF FF 22 34 00 20 FF FF 00 01 00 00 00 00 00 00 22 00 00 00 00 00 00 00 00 00 00 00 E0 01 82 00 00 94 40 B4 C0 C9 23 00 00 00 C0 C9 23 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF C8 C8 C8 C8 00 00 00 C8 C2 C6 C2 C2 C2 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 05 00 00 00 AF 00 5E 88 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 20"

wgrałem 64kb tego (bo tak chce breed) ale to są same śmieci ...

a jak patrze na dump z kości tego pacjenta to w 0x000002e00000-0x000002f00000 jest pusto

15

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Dla mediateków odpowiednikiem "art" jest partycja factory w której jest wszystko pod odpowiednimi offsetami. I z tego korzysta dts do odczytu danych. No  i to nie są "śmieci"...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16 (edytowany przez chemik89 2023-08-18 07:33:55)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

hmm
to wyboldowane to faktycznie adres LAN i się zaczytuje

17

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Ale ta partycja ma wielkość 0x100000 czyli 1MB. Nie 64KB. Ty nie patrz na to co jakoś breed mówi tylko trzymaj się tez wielkości danych z których dts korzysta.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18 (edytowany przez chemik89 2023-08-18 07:40:24)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cezary napisał/a:

Ale ta partycja ma wielkość 0x100000 czyli 1MB. Nie 64KB. Ty nie patrz na to co jakoś breed mówi tylko trzymaj się tez wielkości danych z których dts korzysta.

ale to co wkleiłem to jedyne co tam jest, reszta obszaru jest pusta


ifconfig
br-lan    Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fdd7:83de:a4fc::1/60 Scope:Global
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:633 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:109865 (107.2 KiB)  TX bytes:29078 (28.3 KiB)

eth0      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:1873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:510 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:373479 (364.7 KiB)  TX bytes:84794 (82.8 KiB)
          Interrupt:17

lan1      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1873 errors:0 dropped:10 overruns:0 frame:0
          TX packets:485 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:339765 (331.8 KiB)  TX bytes:77948 (76.1 KiB)

lan2      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:320 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24960 (24.3 KiB)  TX bytes:24960 (24.3 KiB)

wan       Link encap:Ethernet  HWaddr B0:39:56:61:7A:F1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr B0:39:56:61:7A:F4
          inet6 addr: fe80::b239:56ff:fe61:7af4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:423 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:90049 (87.9 KiB)

niby łapie te adresy sensownie, tylko znalazło mi tylko jedno radio
B0:39:56:61:7A i  ostatni człon sobie chyba wylicza samo

19 (edytowany przez Cezary 2023-08-18 07:41:31)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

No to uwaliłeś sobie factory. Bo np. pod 0x8000 też musza być dane.

Adres mac jest zaraz na samym początku tej partycji. Dalej są dane dla jednego i później pod 8000 dla drugiego radia.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20 (edytowany przez chemik89 2023-08-18 07:42:47)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cezary napisał/a:

No to uwaliłeś sobie factory. Bo np. pod 0x8000 też musza być dane.

wyciągnąłem jest z chodzącego routera ?

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.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    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: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K 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]  Tracing variant of Tasks RCU enabled.
[    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] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015847] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115401] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148030] rcu: Hierarchical SRCU implementation.
[    0.157831] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173237] smp: Bringing up secondary CPUs ...
[    0.182847] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182857] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182869] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182961] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243118] Synchronize counters for CPU 1: done.
[    0.302803] smp: Brought up 1 node, 2 CPUs
[    0.316167] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335670] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349316] pinctrl core: initialized pinctrl subsystem
[    0.361917] NET: Registered protocol family 16
[    0.374775] cpuidle: using governor teo
[    0.440297] clocksource: Switched to clocksource GIC
[    0.452099] NET: Registered protocol family 2
[    0.461071] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.476090] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.492783] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.507990] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.521946] TCP: Hash tables configured (established 1024 bind 1024)
[    0.534767] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.547708] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562054] NET: Registered protocol family 1
[    0.570709] PCI: CLS 0 bytes, default 32
[    0.583305] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.602361] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.613850] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.636539] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.648029] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.659470] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.671364] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.685664] printk: console [ttyS0] disabled
[    0.694245] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.712191] printk: console [ttyS0] enabled
[    0.712191] printk: console [ttyS0] enabled
[    0.728714] printk: bootconsole [early0] disabled
[    0.728714] printk: bootconsole [early0] disabled
[    0.751633] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.764861] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.774919] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.787645] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.802239] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.817773] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.832443] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.847300] Creating 4 MTD partitions on "spi0.0":
[    0.856896] 0x000000000000-0x000000030000 : "u-boot"
[    0.868087] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.879842] 0x000000040000-0x000000050000 : "factory"
[    0.891162] 0x000000050000-0x000000800000 : "firmware"
[    0.903223] 2 uimage-fw partitions found on MTD device firmware
[    0.915099] Creating 2 MTD partitions on "firmware":
[    0.925052] 0x000000000000-0x00000029f436 : "kernel"
[    0.934951] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.952517] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.962514] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.981832] mtd: setting mtd5 (rootfs) as root device
[    0.992131] 1 squashfs-split partitions found on MTD device rootfs
[    1.004528] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.062415] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.079377] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.097120] i2c /dev entries driver
[    1.106647] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.120086] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.137713] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.154052] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.170512] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.183772] NET: Registered protocol family 10
[    1.195963] Segment Routing with IPv6
[    1.203446] NET: Registered protocol family 17
[    1.212776] 8021q: 802.1Q VLAN Support v1.8
[    1.225627] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.255461] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.278355] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.300794] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.323263] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.345908] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.368481] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.385408] DSA: tree 0 setup
[    1.392005] rt2880-pinmux pinctrl: pcie is already enabled
[    1.403107] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.416496] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.434049] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.450368] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.466783] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.482012] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.497136] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.611842] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.622961] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.734275] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.748144] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.757865] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.767599] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.786352] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.799061] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.812776] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.826487] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.837421] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.857745] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.869734] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.882238] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.896281] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    1.907802] pci 0000:00:00.0: supports D1
[    1.915796] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.927791] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.939831] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.952343] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.966389] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    1.977906] pci 0000:00:01.0: supports D1
[    1.985900] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.998972] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.014973] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.031205] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.043244] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.057300] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.069824] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.083882] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.096310] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.110062] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.120521] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.132667] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.146199] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.160604] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.174069] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.186104] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.200160] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.211775] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.225527] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.235979] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.248124] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.261655] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.276063] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.289297] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.302479] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316354] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.329537] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.343423] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.356953] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.371346] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.384876] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.399263] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.412808] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.426339] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.439869] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.453407] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.467984] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.482381] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.492279] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.505802] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.519328] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.533725] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.547267] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.557158] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.570684] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.584211] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.610731] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.627121] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.646104] Freeing unused kernel memory: 1288K
[    2.655188] This architecture does not have kernel memory protection.
[    2.668033] Run /sbin/init as init process
[    3.665896] init: Console is alive
[    3.673219] init: - watchdog -
[    4.846831] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.003941] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.030760] init: - preinit -
[    6.734114] random: jshn: uninitialized urandom read (4 bytes read)
[    6.819725] random: jshn: uninitialized urandom read (4 bytes read)
[    6.871970] random: jshn: uninitialized urandom read (4 bytes read)
[    7.163297] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.179491] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.180832] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.209900] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.224213] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[    8.894469] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[    8.909468] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.592961] jffs2: notice: (527) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (0 unchecked, 4 orphan) and 10 of xref (4 dead, 0 orphan) found.
[   11.626869] mount_root: switching to jffs2 overlay
[   11.643529] overlayfs: upper fs does not support tmpfile.
[   11.667143] urandom-seed: Seeding with /etc/urandom.seed
[   11.971534] mt7530 mdio-bus:1f lan1: Link is Down
[   11.991933] procd: - early -
[   11.997919] procd: - watchdog -
[   12.700518] procd: - watchdog -
[   12.707622] procd: - ubus -
[   12.814780] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.829509] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.842790] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.864529] procd: - init -
Please press Enter to activate this console.
[   13.962505] random: jshn: uninitialized urandom read (4 bytes read)
[   14.026611] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.045276] random: ubus: uninitialized urandom read (4 bytes read)
[   14.196777] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.478204] urngd: v1.0.2 started.
[   14.485409] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.500593] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.810610] random: crng init done
[   14.817416] random: 27 urandom warning(s) missed due to ratelimiting
[   14.914413] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.925264] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.936586] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.948769] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   15.620945] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.637004] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.647980] mt76x2e 0000:01:00.0: Build: 1
[   15.656145] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.690291] mt76x2e 0000:01:00.0: Firmware running!
[   15.805924] PPP generic driver version 2.4.2
[   15.819747] NET: Registered protocol family 24
[   15.847231] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.564651] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   26.591558] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   26.608409] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.626071] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.644342] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   26.662136] 8021q: adding VLAN 0 to HW filter on device lan1
[   26.677478] br-lan: port 1(lan1) entered blocking state
[   26.688033] br-lan: port 1(lan1) entered disabled state
[   26.704833] device lan1 entered promiscuous mode
[   26.714133] device eth0 entered promiscuous mode
[   26.755380] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   26.769463] 8021q: adding VLAN 0 to HW filter on device lan2
[   26.785476] br-lan: port 2(lan2) entered blocking state
[   26.796080] br-lan: port 2(lan2) entered disabled state
[   26.814702] device lan2 entered promiscuous mode
[   26.838312] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   26.853262] 8021q: adding VLAN 0 to HW filter on device lan3
[   26.871837] br-lan: port 3(lan3) entered blocking state
[   26.882375] br-lan: port 3(lan3) entered disabled state
[   26.896647] device lan3 entered promiscuous mode
[   26.925791] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   26.942314] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.958559] br-lan: port 4(lan4) entered blocking state
[   26.969259] br-lan: port 4(lan4) entered disabled state
[   26.982799] device lan4 entered promiscuous mode
[   27.016646] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   27.032609] 8021q: adding VLAN 0 to HW filter on device wan
[   28.305836] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   28.334892] br-lan: port 1(lan1) entered blocking state
[   28.345424] br-lan: port 1(lan1) entered forwarding state
[   28.414079] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   29.987679] br-lan: port 5(wlan0) entered blocking state
[   29.998373] br-lan: port 5(wlan0) entered disabled state
[   30.009628] device wlan0 entered promiscuous mode
[   30.019530] br-lan: port 5(wlan0) entered blocking state
[   30.030185] br-lan: port 5(wlan0) entered forwarding state
[   30.043155] br-lan: port 5(wlan0) entered disabled state
[   31.072531] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   31.085685] br-lan: port 5(wlan0) entered blocking state
[   31.096388] br-lan: port 5(wlan0) entered forwarding state
[   33.772710] do_page_fault(): sending SIGSEGV to ujail for invalid read access from 00000036
[   33.789508] epc = 77d63ddf in libubox.so.20220515[77d60000+18000]
[   33.801770] ra  = 555a471b in ujail[555a0000+14000]

21

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Możesz wyciągać je z innego routera, tylko że ten może się zachowywać "dziwnie" bo te dane w większości przypadków są specyficzne dla każdego egzemplarza. Jeżeli masz pecha i zastosowane chipy są z różnych serii o różnych parametrach to może to cudacznie działać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

hmm wyciągnąłem go na nowo i faktycznie coś tam jest pod 8000.

próbowałem to wgrać przy użyciu
kmod-mtd-rw, insmod mtd-rw.ko i_want_a_brick=1

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 007b0000 00010000 "firmware"
mtd4: 0029f436 00010000 "kernel"
mtd5: 00510bca 00010000 "rootfs"
mtd6: 001f0000 00010000 "rootfs_data"
root@OpenWrt:/# mtd -r write /tmp/art.bin /dev/mtd2
Unlocking /dev/mtd2 ...

Writing from /tmp/art.bin to /dev/mtd2 ...  [e]Failed to erase block

mtd -r write /tmp/art.bin /dev/mtd2

23

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Możesz zwykłym dd, albo wcześniej zmień sobie dts'a i usuń read-only z tej partycji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24 (edytowany przez chemik89 2023-08-18 08:53:20)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

Cezary napisał/a:

Możesz zwykłym dd, albo wcześniej zmień sobie dts'a i usuń read-only z tej partycji.

root@OpenWrt:/# dd if=/tmp/art.bin of=/dev/mtd2
dd: error writing '/dev/mtd2': No space left on device
129+0 records in
128+0 records out
hmm xD


z resztą po co ja kombinuje, ten adres 8000 się przecież mieści e 64kB
B=mac wlan 5Ghz
62 76 01 00 B0 39 56 61 7A F4 12 76 C3 14 00 00 00 00 12 76 C3 14 00 00 00 00 FF FF FF FF FF FF FF FF 37 D8 9D 40 FF 7F FD 9B FF FF FF FF FF FF FF FF FF FF 22 FD 0A 00 FF FF B1 01 00 00 00 00 00 00 FF D7 8C 8C 00 00 00 8C 00 00 00 8C E0 01 00 82 82 57 47 B6 7F 05 1D 00 00 00 7E 16 0A 00 00 00 82 E9 0A 00 00 82 E9 16 00 00 81 ED 16 00 00 80 F0 17 00 00 81 F6 19 00 00 80 FE 1A 00 00 82 E2 0A 00 00 82 E2 1A 00 00 82 E8 1A 00 00 82 E6 1A 00 00 83 EB 1A 00 00 83 F2 17 00 00 00 4E C3 C3 00 00 00 00 C6 C6 C2 82 C6 C6 C2 82 00 00 00 00 C6 C6 C4 00 00 00 00 00 00 00 00 00 84 83 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0D 09 0D 10 A5 28 28 00 00 00 00 00 00 00 0F CA 74 C5 E8 07 30 3D 01 B0 08 26 00 0E 04 15 00 8A 00 40 00 00 00 08 00 9D 08 00 12 C0 00 00 08 20 04 2A 90 00 00 24 01 04 54 08 D0 A0 28 20 FF FF FF FF FF FF FF 08 FF FF FF FF FF FF 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF C0 81 82 C3 04 45 46 07 08 09 FF FF FF FF FF FF



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.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    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: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K 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]  Tracing variant of Tasks RCU enabled.
[    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] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015848] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115399] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129797] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148001] rcu: Hierarchical SRCU implementation.
[    0.157798] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173203] smp: Bringing up secondary CPUs ...
[    0.182813] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182822] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182833] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182920] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243086] Synchronize counters for CPU 1: done.
[    0.302769] smp: Brought up 1 node, 2 CPUs
[    0.316112] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335616] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349255] pinctrl core: initialized pinctrl subsystem
[    0.361850] NET: Registered protocol family 16
[    0.374753] cpuidle: using governor teo
[    0.441499] clocksource: Switched to clocksource GIC
[    0.453230] NET: Registered protocol family 2
[    0.462114] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.477419] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.494101] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.509272] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.523256] TCP: Hash tables configured (established 1024 bind 1024)
[    0.536049] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548980] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.563279] NET: Registered protocol family 1
[    0.571889] PCI: CLS 0 bytes, default 32
[    0.581705] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.601071] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.612599] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.635091] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.646513] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.658071] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.670053] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.684449] printk: console [ttyS0] disabled
[    0.693075] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.711033] printk: console [ttyS0] enabled
[    0.711033] printk: console [ttyS0] enabled
[    0.727553] printk: bootconsole [early0] disabled
[    0.727553] printk: bootconsole [early0] disabled
[    0.750000] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.763521] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.773371] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.786086] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.800673] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.816208] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.830868] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.845730] Creating 4 MTD partitions on "spi0.0":
[    0.855326] 0x000000000000-0x000000030000 : "u-boot"
[    0.866205] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.877913] 0x000000040000-0x000000050000 : "factory"
[    0.889888] 0x000000050000-0x000000800000 : "firmware"
[    0.901809] 2 uimage-fw partitions found on MTD device firmware
[    0.913711] Creating 2 MTD partitions on "firmware":
[    0.923643] 0x000000000000-0x00000029f436 : "kernel"
[    0.933551] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951420] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.961405] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.980691] mtd: setting mtd5 (rootfs) as root device
[    0.991135] 1 squashfs-split partitions found on MTD device rootfs
[    1.003533] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.063335] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.079700] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.097368] i2c /dev entries driver
[    1.106804] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.120303] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.137874] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.154225] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.170679] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.184045] NET: Registered protocol family 10
[    1.196067] Segment Routing with IPv6
[    1.203604] NET: Registered protocol family 17
[    1.213032] 8021q: 802.1Q VLAN Support v1.8
[    1.225823] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.256526] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.279409] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.301762] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.324168] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.346703] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.369219] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.386211] DSA: tree 0 setup
[    1.392770] rt2880-pinmux pinctrl: pcie is already enabled
[    1.403871] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.417262] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.434807] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.451110] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.467534] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.482738] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.497854] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.612542] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.623660] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.734971] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.748840] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.758558] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.768286] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.787023] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.799731] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.813443] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.827161] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.838095] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.858417] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.870406] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.882904] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.896947] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    1.908465] pci 0000:00:00.0: supports D1
[    1.916459] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.928476] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.940525] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.953036] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.967079] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    1.978594] pci 0000:00:01.0: supports D1
[    1.986588] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.999640] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.015636] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.031855] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.043907] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.057962] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.070481] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.084537] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.096967] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.110698] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.121154] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.133298] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.146835] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.161245] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.174721] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.186754] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.200809] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.212410] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.226146] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.236593] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.248739] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.262267] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.276680] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.289925] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.303107] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316982] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.330156] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.344040] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.357571] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.371963] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.385498] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.399887] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.413431] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.426962] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.440486] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.454027] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.468603] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.483000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.492904] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.506426] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.519951] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.534349] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.547886] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.557778] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.571305] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.584831] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.611839] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.628286] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.647395] Freeing unused kernel memory: 1288K
[    2.656466] This architecture does not have kernel memory protection.
[    2.669312] Run /sbin/init as init process
[    3.665946] init: Console is alive
[    3.673254] init: - watchdog -
[    4.845549] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.002363] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.031759] init: - preinit -
[    6.733406] random: jshn: uninitialized urandom read (4 bytes read)
[    6.818950] random: jshn: uninitialized urandom read (4 bytes read)
[    6.871125] random: jshn: uninitialized urandom read (4 bytes read)
[    7.162839] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.179030] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.181805] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.209501] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.224146] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[    8.805452] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[    8.820451] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.593062] jffs2: notice: (527) jffs2_build_xattr_subsystem: complete building xattr subsystem, 8 of xdatum (0 unchecked, 3 orphan) and 9 of xref (3 dead, 0 orphan) found.
[   11.626738] mount_root: switching to jffs2 overlay
[   11.643277] overlayfs: upper fs does not support tmpfile.
[   11.667000] urandom-seed: Seeding with /etc/urandom.seed
[   11.970584] mt7530 mdio-bus:1f lan1: Link is Down
[   11.990581] procd: - early -
[   11.996738] procd: - watchdog -
[   12.691483] procd: - watchdog -
[   12.698572] procd: - ubus -
[   12.806495] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.821316] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.834504] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.856172] procd: - init -
Please press Enter to activate this console.
[   13.968250] random: jshn: uninitialized urandom read (4 bytes read)
[   14.058631] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.086514] random: ubus: uninitialized urandom read (4 bytes read)
[   14.195084] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.477527] urngd: v1.0.2 started.
[   14.491669] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.506847] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.780770] random: crng init done
[   14.787656] random: 27 urandom warning(s) missed due to ratelimiting
[   14.924731] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.935610] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.946898] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.959065] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   15.621898] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.638001] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.648995] mt76x2e 0000:01:00.0: Build: 1
[   15.657156] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.691282] mt76x2e 0000:01:00.0: Firmware running!
[   15.810330] PPP generic driver version 2.4.2
[   15.824613] NET: Registered protocol family 24
[   15.850891] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.446462] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   26.474080] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   26.490771] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.508719] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.526611] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   26.541059] 8021q: adding VLAN 0 to HW filter on device lan1
[   26.557050] br-lan: port 1(lan1) entered blocking state
[   26.567654] br-lan: port 1(lan1) entered disabled state
[   26.580235] device lan1 entered promiscuous mode
[   26.589764] device eth0 entered promiscuous mode
[   26.632576] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   26.646572] 8021q: adding VLAN 0 to HW filter on device lan2
[   26.662861] br-lan: port 2(lan2) entered blocking state
[   26.673412] br-lan: port 2(lan2) entered disabled state
[   26.686371] device lan2 entered promiscuous mode
[   26.709190] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   26.724293] 8021q: adding VLAN 0 to HW filter on device lan3
[   26.748278] br-lan: port 3(lan3) entered blocking state
[   26.758842] br-lan: port 3(lan3) entered disabled state
[   26.772038] device lan3 entered promiscuous mode
[   26.795241] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   26.812338] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.827739] br-lan: port 4(lan4) entered blocking state
[   26.838366] br-lan: port 4(lan4) entered disabled state
[   26.851832] device lan4 entered promiscuous mode
[   26.893209] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   26.909141] 8021q: adding VLAN 0 to HW filter on device wan
[   28.124873] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   28.171476] br-lan: port 1(lan1) entered blocking state
[   28.182025] br-lan: port 1(lan1) entered forwarding state
[   28.245346] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.166499] br-lan: port 5(wlan0) entered blocking state
[   30.177141] br-lan: port 5(wlan0) entered disabled state
[   30.188385] device wlan0 entered promiscuous mode
[   30.198044] br-lan: port 5(wlan0) entered blocking state
[   30.208656] br-lan: port 5(wlan0) entered forwarding state
[   30.248601] br-lan: port 5(wlan0) entered disabled state
[   31.601934] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   31.615140] br-lan: port 5(wlan0) entered blocking state
[   31.625856] br-lan: port 5(wlan0) entered forwarding state



BusyBox v1.35.0 (2023-08-12 09:46:51 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03-SNAPSHOT, r20211-de29f15af1
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          inet6 addr: fdc2:11ca:902d::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:591 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:131330 (128.2 KiB)  TX bytes:8734 (8.5 KiB)

eth0      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:679 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:151884 (148.3 KiB)  TX bytes:11776 (11.5 KiB)
          Interrupt:17

lan1      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:679 errors:0 dropped:7 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:139662 (136.3 KiB)  TX bytes:9250 (9.0 KiB)

lan2      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5616 (5.4 KiB)  TX bytes:5616 (5.4 KiB)

wan       Link encap:Ethernet  HWaddr B0:39:56:61:7A:F1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr B0:39:56:61:7A:F4
          inet6 addr: fe80::b239:56ff:fe61:7af4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:138207 (134.9 KiB)

radio 5Ghz działa ok, 2.4 nawet nie znajduje karty, przekopiowanie config/wireless z normalnego 6220 niczym nie zaowocowało
w sumie pamiętam problemy z radiem 2.4 często występowały w okolicach openwrt 18

edit:
znalazłem też w dumpie nand ten art (jak coś to 4 pierwsze bajty 03 76 0B 00 oraz 62 76 01 00 go identyfikują), tylko tam cały obszar wolny obszar jest ućkany
FF FF FF FF FF FF FF FF 26 20 98 1B 87 6E FC FF

bewnie jakieś przesunięcia uszkodzonych bloków

posklejam ręcznie i wgram

25 (edytowany przez chemik89 2023-08-18 09:49:17)

Odp: NETGEAR R6220 - Wymiana FLASH NAND na SPI

wgrane, art org. z tej płytki, IP się przypisały nowe, jest ok.

No to stan na teraz:

Co nie działa
WLAN 2.4Ghz

Co działa
Reszta ;p

nie mam pomysłu jak to radio teraz naprawić :>
pora porównać bootlog big_smile

na SPI:
mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000  ## same 0 ?
mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000

na NAND
mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0060000000
mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
pci 0000:00:01.0: supports D1
pci 0000:00:01.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold

a na NAND
pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:02.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x0000ffff]
pci 0000:00:02.0: supports D1
pci 0000:00:02.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold

inna linia pcie ?