151

Odp: Cudy C200P

===================================================================
                MT7621   stage1 code 10:33:55 (ASIC)
                CPU=500000000 HZ BUS=166666666 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: 0x12, 1/0 = 571/453 49000000
PLL4 FB_DL: 0x13, 1/0 = 540/484 4D000000
PLL2 FB_DL: 0x17, 1/0 = 540/484 5D000000
do DDR setting..[01F40000]
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    1    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0
0010:|    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0
0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 15
rank 0 fine = 72
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001F1F
==================================================================
                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 |    7 8 7 11 7 9 8 7 7 8
10 |    9 10 9 11 9 9
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =31 DQS1 = 31
==================================================================
bit     DQS0     bit      DQS1
0  (1~59)30  8  (1~59)30
1  (1~61)31  9  (1~59)30
2  (1~59)30  10  (1~60)30
3  (1~61)31  11  (1~58)29
4  (1~60)30  12  (1~59)30
5  (1~62)31  13  (1~59)30
6  (1~59)30  14  (1~62)31
7  (1~62)31  15  (1~59)30
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    8 8 8 11 8 9 9 7 8 9
10 |    10 12 10 12 9 10
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=500000000 HZ BUS=166666666 HZ
===================================================================


U-Boot 1.1.3 (May 28 2025 - 15:17:06)

Board: Ralink APSoC DRAM:  256 MB
mtest end addr: 8ff31f88
relocate_code Pointer at: 8ff94000

Config XHCI 40M PLL
flash manufacture id: 20, device id 40 18
find flash: xm25qh128c
*** Warning - bad CRC, using default environment

#Reset_MT7530
set LAN/WAN LLLLW

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   R74
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3280923 Bytes =  3.1 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 6.6.103 (marcin@marcin-Z240) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28845-6c7919471e) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Thu Sep  4 22:48:55 2025
[    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 Cudy C200P
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s18848 r8192 d22112 u49152
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=000082e0
[    0.000000] Readback ErrCtl register=000082e0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 247444K/262144K available (8058K kernel code, 652K rwdata, 1712K rodata, 1276K init, 219K bss, 14700K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000004] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008054] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.066224] pid_max: default: 32768 minimum: 301
[    0.079737] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.086977] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103583] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.113410] rcu: Hierarchical SRCU implementation.
[    0.118112] rcu:     Max phase no-delay instances is 1000.
[    0.124178] smp: Bringing up secondary CPUs ...
[    0.129541] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.129567] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.129582] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.129631] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.183621] Synchronize counters for CPU 1: done.
[    0.216244] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.216268] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.216280] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.216313] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.275220] Synchronize counters for CPU 2: done.
[    0.305918] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.305940] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.305953] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.305988] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.360419] Synchronize counters for CPU 3: done.
[    0.390285] smp: Brought up 1 node, 4 CPUs
[    0.400491] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.410303] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.421127] pinctrl core: initialized pinctrl subsystem
[    0.429622] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.438411] /pinctrl: Fixed dependency cycle(s) with /pinctrl/pinctrl0
[    0.460986] clocksource: Switched to clocksource GIC
[    0.475857] NET: Registered PF_INET protocol family
[    0.480920] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.489078] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.497390] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.505071] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.512693] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.519878] TCP: Hash tables configured (established 2048 bind 2048)
[    0.527191] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.534713] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.541206] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.549086] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.554735] PCI: CLS 0 bytes, default 32
[    0.562419] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.570584] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.576381] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.591871] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.597895] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.603943] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.610656] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.619876] printk: console [ttyS0] disabled
[    0.624968] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    0.634060] printk: console [ttyS0] enabled
[    0.634060] printk: console [ttyS0] enabled
[    0.642364] printk: bootconsole [early0] disabled
[    0.642364] printk: bootconsole [early0] disabled
[    0.655525] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.662475] spi-nor spi0.0: XM25QH128C (16384 Kbytes)
[    0.667705] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.674130] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.681464] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.689099] Creating 7 MTD partitions on "spi0.0":
[    0.693916] 0x000000000000-0x000000030000 : "u-boot"
[    0.700601] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.707446] 0x000000040000-0x000000050000 : "factory"
[    0.713886] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.721653] 0x000000050000-0x000000fd0000 : "firmware"
[    0.728039] 2 uimage-fw partitions found on MTD device firmware
[    0.734083] Creating 2 MTD partitions on "firmware":
[    0.739038] 0x000000000000-0x00000032105b : "kernel"
[    0.744003] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.753641] 0x00000032105b-0x000000f80000 : "rootfs"
[    0.758627] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.768997] mtd: setting mtd5 (rootfs) as root device
[    0.774210] 1 squashfs-split partitions found on MTD device rootfs
[    0.780377] 0x0000005f0000-0x000000f80000 : "rootfs_data"
[    0.787067] 0x000000fd0000-0x000000fe0000 : "debug"
[    0.793178] 0x000000fe0000-0x000000ff0000 : "backup"
[    0.799343] 0x000000ff0000-0x000001000000 : "bdinfo"
[    0.805621] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.964341] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    0.978838] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    0.990353] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 19
[    1.000454] i2c_dev: i2c /dev entries driver
[    1.008664] NET: Registered PF_INET6 protocol family
[    1.017127] Segment Routing with IPv6
[    1.020881] In-situ OAM (IOAM) with IPv6
[    1.024982] NET: Registered PF_PACKET protocol family
[    1.030359] 8021q: 802.1Q VLAN Support v1.8
[    1.064310] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.098258] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.107080] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=21)
[    1.119908] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    1.121958] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=22)
[    1.140840] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=23)
[    1.153845] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=24)
[    1.166954] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[    1.173904] DSA: tree 0 setup
[    1.178006] clk: Disabling unused clocks
[    1.188064] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.199075] Freeing unused kernel image (initmem) memory: 1276K
[    1.205089] This architecture does not have kernel memory protection.
[    1.211540] Run /sbin/init as init process
[    1.643856] init: Console is alive
[    1.647543] init: - watchdog -
[    1.971418] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.019281] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    2.034190] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.046387] init: - preinit -
[    2.735795] mtk_soc_eth 1e100000.ethernet wan: renamed from eth1
[    4.181034] random: crng init done
[    4.611621] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    4.624194] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[    4.631410] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
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
[    9.031913] jffs2: notice: (526) jffs2_build_xattr_subsystem: complete building xattr subsystem, 13 of xdatum (0 unchecked, 7 orphan) and 14 of xref (7 dead, 0 orphan) found.
[    9.049362] mount_root: switching to jffs2 overlay
[    9.057222] overlayfs: upper fs does not support tmpfile.
[    9.069006] urandom-seed: Seeding with /etc/urandom.seed
[    9.165319] procd: - early -
[    9.168423] procd: - watchdog -
[    9.772356] procd: - watchdog -
[    9.776626] procd: - ubus -
[    9.935741] procd: - init -
Please press Enter to activate this console.
[   10.542721] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.595986] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized.
[   10.678648] PPP generic driver version 2.4.2
[   10.684851] NET: Registered PF_PPPOX protocol family
[   10.696528] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.648359] urngd: v1.0.2 started.
[   17.638981] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   17.673530] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   17.687978] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   17.695853] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[   17.705364] br-lan: port 1(lan1) entered blocking state
[   17.710657] br-lan: port 1(lan1) entered disabled state
[   17.716100] mt7530-mdio mdio-bus:1f lan1: entered allmulticast mode
[   17.722552] mtk_soc_eth 1e100000.ethernet eth0: entered allmulticast mode
[   17.732839] mt7530-mdio mdio-bus:1f lan1: entered promiscuous mode
[   17.773378] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[   17.783652] br-lan: port 2(lan2) entered blocking state
[   17.788945] br-lan: port 2(lan2) entered disabled state
[   17.794505] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
[   17.802936] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
[   17.824975] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[   17.833982] br-lan: port 3(lan3) entered blocking state
[   17.839273] br-lan: port 3(lan3) entered disabled state
[   17.844874] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
[   17.853435] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
[   17.874150] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
[   17.883542] br-lan: port 4(lan4) entered blocking state
[   17.888836] br-lan: port 4(lan4) entered disabled state
[   17.894517] mt7530-mdio mdio-bus:1f lan4: entered allmulticast mode
[   17.903964] mt7530-mdio mdio-bus:1f lan4: entered promiscuous mode
[   17.932601] mtk_soc_eth 1e100000.ethernet wan: PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=25)
[   17.942279] mtk_soc_eth 1e100000.ethernet wan: configuring for phy/rgmii link mode
[   20.994826] mt7530-mdio mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.001111] br-lan: port 4(lan4) entered blocking state
[   21.007957] br-lan: port 4(lan4) entered forwarding state

Chwile wisi i ponownie się uruchamia...
Może śle coś skompilowałem obraz. zobaczę później,...

152

Odp: Cudy C200P

zeby to nie byl slynny watchdog na cudy'ach
mialem to samo w ap3000v1...trzeba dts chyba zmodyfikowac, dobra i minuta to do restartu.

153

Odp: Cudy C200P

wrzuciłem przez tftp podpisany obraz od Cudy (zmienić trzeba tylko na recovery.bin)

154

Odp: Cudy C200P

Zaloguj się tam i zobacz czy nie ma gpio od wdt czy czegoś podobnego.

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

155

Odp: Cudy C200P

Podpowiedz gdzie dokładnie to sprawdzić.

156

Odp: Cudy C200P

cat /sys/kernel/debug/gpio
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

157

Odp: Cudy C200P

root@OpenWrt:/# cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 416-447, parent: platform/1e000600.gpio, 1e000600.gpio-bank2:

gpiochip1: GPIOs 448-479, parent: platform/1e000600.gpio, 1e000600.gpio-bank1:

gpiochip0: GPIOs 480-511, parent: platform/1e000600.gpio, 1e000600.gpio-bank0:
 gpio-490 (                    |blue:hwdog          ) out hi ACTIVE LOW
 gpio-495 (                    |blue:internet       ) out lo ACTIVE LOW
 gpio-496 (                    |reset               ) in  hi IRQ ACTIVE LOW
root@OpenWrt:/# 

a ja szukałem w sys/class/gpio....

158

Odp: Cudy C200P

I czym jest ten blue hwdog? Diodą? Czy faktycznym wdt?

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

159 (edytowany przez lexmark3200 2025-09-17 15:09:43)

Odp: Cudy C200P

Nie ma innej diody prócz tych na portach od połączenia i POE oraz dwie - PWR i SYSTEM. Tym bardziej blue.
Więc możliwe, że to faktyczny wdt?

160 (edytowany przez Cezary 2025-09-17 15:35:28)

Odp: Cudy C200P

Możliwe.

Zobacz w /sys tam gdzieś jest katalog od device tree. Zobacz czy wdt zdefiniowali. Albo zdekompiluj dts'a i będziesz miał wszystko na tacy.

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

161 (edytowany przez lexmark3200 2025-09-17 16:50:02)

Odp: Cudy C200P

@Cezary - ja zwykły śmiertelnik ;-)
Jeśli podasz co i jak z miłą chęcią to ogarnę, ale to mój dziewiczy rejs w te klimaty ;-)
Takie coś znalazłem:

root@OpenWrt:/sys/devices/virtual/watchdog/watchdog0# cat dev
252:0
[root@OpenWrt:/sys/devices/virtual/watchdog/watchdog0# cat uevent
MAJOR=252
MINOR=0
DEVNAME=watchdog0

162

Odp: Cudy C200P

 cd /sys/firmware/devicetree/

Tu szukaj.

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

163

Odp: Cudy C200P

Jeden folder base:

root@OpenWrt:/sys/firmware/devicetree/base# ls
#address-cells                 mc@1fbf8000
#size-cells                    model
aliases                        name
chosen                         nand@1e003000
clkctrl                        nficlock
compatible                     palmbus@1e000000
cpc@1fbf0000                   pcie-phy@1e149000
cpuintc                        pcie-phy@1e14a000
cpus                           pcie@1e140000
ethernet@1e100000              pinctrl
hwdog                          rstctrl
interrupt-controller@1fbc0000  sdhci@1e130000
keys                           sysclock
leds                           xhci@1e1c0000

164

Odp: Cudy C200P

Ja wiem że jest. Miałeś szukać watchdoga, jest w katalogu hwdog

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

165 (edytowany przez lexmark3200 2025-09-17 17:25:55)

Odp: Cudy C200P

W katalogu hwdog mamy:

root@OpenWrt:/sys/firmware/devicetree/base/hwdog# ls
compatible  hwdog_blue  name

nic więcej nie ma.

166

Odp: Cudy C200P

W ich dts oni eksportują to jako LED:

    leds {
        compatible = "gpio-leds";

        internet_blue {
            label = "blue:internet";
            gpios = <0x16 0x0f 0x01>;
        };
    };

    hwdog {
        compatible = "gpio-leds";

        hwdog_blue {
            label = "blue:hwdog";
            gpios = <0x16 0x0a 0x01>;
        };
    };

Czyli ustawiają to jako gpio wyjściowe. A potem w kodzie mają /lib/preinit/09_led_preinit o takiej zawartości

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

pi_led_preinit() {
    led_timer blue:hwdog 1000 1000
}

boot_hook_add preinit_main pi_led_preinit

A ty zrób to normalnie jak to przystało i robisz kodzik taki: https://github.com/openwrt/openwrt/blob … g.dts#L140

tylko z hwmargin na 1000 (1s). I oczywiście odpowiednio GPIO ustawione.

PS. Ich obraz zawiera bootloader jak by coś.

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

167 (edytowany przez lexmark3200 2025-09-17 17:40:32)

Odp: Cudy C200P

Ok. Poprawiam DTS i kompiluje.
@Cezary - nie wiem jak Ty to ogarniasz wszystko. To jest kosmos jakiś big_smile

168

Odp: Cudy C200P

lexmark3200 napisał/a:

Ok. Poprawiam DTS i kompiluje.
@Cezary - nie wiem jak Ty to ogarniasz wszystko. To jest kosmos jakiś big_smile

Zwykła codzienna praca biurowa.

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

169 (edytowany przez lexmark3200 2025-09-17 18:04:39)

Odp: Cudy C200P

Cezary napisał/a:
lexmark3200 napisał/a:

Ok. Poprawiam DTS i kompiluje.
@Cezary - nie wiem jak Ty to ogarniasz wszystko. To jest kosmos jakiś big_smile

Zwykła codzienna praca biurowa.

No tak wink

Wracając do tematu:

gpios = <0x16 0x0a 0x01>;

0x0a - będzie 10 pin? 0x01 stan wysoki na tym pinie?
a co z 0x16 ?

Jeśli powyższe prawidłowe, to w DTS powinno być:
Tylko na GPIO 15 i 16 jest LED od portów.

watchdog {
        compatible = "linux,wdt-gpio";
        gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
        hw_algo = "toggle";
        hw_margin_ms = <1000>;
        always-running;
    };
};

170

Odp: Cudy C200P

U nich reset jest na 16 a to coś na 10. Działa u ciebie reset? Jeżeli tak to odejmij sobie 6 od tego co masz na resecie i masz gpio

0x16 to u ciebie ten &gpio0

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

171 (edytowany przez lexmark3200 2025-09-17 18:31:39)

Odp: Cudy C200P

Zmieniłem na GPIO10. Nie resetuje się samoczynnie.
Reset nie działa. zmienie GPIO. Nie działa WAN - nie ma wyjścia na świat. Co ciekawe, po wpięciu kabla w port. Zapala się dioda os stanu portu.

root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdfe:824d:8ec2::/48'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'wan'
        option proto 'dhcp'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

172

Odp: Cudy C200P

Aby istniał "wan" to musi być odpowiednio w dtsie zdefiniowany - więc sprawdź dts.

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

173 (edytowany przez lexmark3200 2025-09-17 19:01:29)

Odp: Cudy C200P

Na chwilę obecną:
https://ibb.co/W4zwgNc2

Teraz Reset i dioda od PWR i SYSTEM

174

Odp: Cudy C200P

Na razie rób wsparcie dla snapshota. Dopiera jak tam się pojawi to pozwolą na zrobienie backportu do 24.10 jeżeli będą chciwli.

Samego wsparcia dla 24.10 nie przyjmują.

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

175 (edytowany przez lexmark3200 2025-09-17 19:11:09)

Odp: Cudy C200P

Oj, zanim to nastąpi.... Sporo wody w "suchej Wiśle upłynie". Chyba, że będziesz miał ochotę i stalowe nerwy, żeby mnie naprowadzać ;-D

Co do MAC.
zgadza się MAC z etykiety jeśli chodzi o LAN x.x.x.x.6E , na WAN jest 6F na ostatniej pozycji +1 o ile się nie mylę. Czyli etykieta pokazuje adres LAN a nie WAN.

Mam zrobionego fork-a Openwrt. i tam robię. Ale nie chce mi kompilować. Musze przerzucić na "pełny" openwrt i dopiero wypluwa mi obrazy.