Welcome! Log In Create A New Profile

Advanced

Readynas duo V2 and Zyxel NSA325 wakealarm missing

Posted by AndreaCipcino 
Readynas duo V2 and Zyxel NSA325 wakealarm missing
August 02, 2024 11:00AM
Hello Bodhi,
I would like to use an OMV7 plugin for wakealarm function, but it doesn't work.
I have noted that in the realtime clock directory /sys/class/rtc/rtc0 , there is no wakealarm file:
root@nas-backup:/sys/class/rtc/rtc0# ls -l
total 0
drwxr-xr-x 3 root root    0 Aug  2 16:27 .
drwxr-xr-x 3 root root    0 Aug  2 16:27 ..
-r--r--r-- 1 root root 4096 Aug  2 16:58 date
-r--r--r-- 1 root root 4096 Aug  2 16:58 dev
lrwxrwxrwx 1 root root    0 Aug  2 16:43 device -> ../../../0-0032
-r--r--r-- 1 root root 4096 Aug  2 16:58 hctosys
-rw-r--r-- 1 root root 4096 Aug  2 16:58 max_user_freq
-r--r--r-- 1 root root 4096 Aug  2 16:58 name
-rw-r--r-- 1 root root 4096 Aug  2 16:58 offset
drwxr-xr-x 2 root root    0 Aug  2 16:39 power
-r--r--r-- 1 root root 4096 Aug  2 16:58 since_epoch
lrwxrwxrwx 1 root root    0 Aug  2 16:58 subsystem -> ../../../../../../../../class/rtc
-r--r--r-- 1 root root 4096 Aug  2 16:58 time
-rw-r--r-- 1 root root 4096 Aug  2 16:58 uevent

Even If I use
root@nas-backup:/sys/class/rtc/rtc0# rtcwake -s 30
rtcwake: cannot open /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
rtcwake: /dev/rtc0 not enabled for wakeup events

How can I make wakealarm to work ?
I need it for automatically turning on the nas at 13:00 and at 19:00 from monday to friday.

=====
bodhi's edit: change the thread Subject to include Zyxel NSA325



Edited 1 time(s). Last edit at 10/06/2024 03:36PM by bodhi.
Re: Readynas duo V2 wakealarm missing
August 02, 2024 11:46AM
Was the original firmware able to wakeup the NAS on RTC?
Re: Readynas duo V2 wakealarm missing
August 02, 2024 12:01PM
Whith original netgear firmware, you can set shutdowns and wakeups via web interface: you select in power settings "activate wakeup timer" and then select when the nas should be on, and it works.
But as I have checked just now , it has not the wakealarm file, and rtcwake says that rtc0 is not enebled for wakeup events too.
So probably netgear has another method to make it wakeup, but I don't know how to reproduce it...
Are there any other way to do it?
Re: Readynas duo V2 wakealarm missing
August 02, 2024 12:17PM
AndreaCipcino,

> But as I have checked just now , it has not the
> wakealarm file, and rtcwake says that rtc0 is not
> enebled for wakeup events too.

I don't recall you've posted the boot log. Please do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 02, 2024 04:32PM
Bodhi,
thank you for answering.
I have to wait to the end of August before I can access again the Nas, and starting again to work on this project.
I use the Nas in my working environment, and our company is now closed for holidays.
I will post the boot log as soon as I can work on it again.
Re: Readynas duo V2 wakealarm missing
August 02, 2024 10:45PM
AndreaCipcino,

Sure. I'll also take a look at this box RTC driver to see if somehting is missing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 03, 2024 05:34AM
A reminder so I don't forget when we get back to this topic.

Looks like the DTS for this device needs some improvement regarding RTC. This box uses rs5c372a chip, which is already configured in the kernel. But we probably need to disable the standard Kirkwood rtc device, so it the rs5c372a device can be exposed properly.

i2c@11000 {
			status = "okay";

			rs5c372a: rs5c372a@32 {
				compatible = "ricoh,rs5c372a";
				reg = <0x32>;
			};

			g762: g762@3e {
				compatible = "gmt,g762";
				reg = <0x3e>;
				clocks = <&g762_clk>; /* input clock */
				fan_gear_mode = <0>;
				fan_startv = <1>;
				pwm_polarity = <0>;
			};
		};

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 03, 2024 06:47AM
Wouldn't that mean that you can simply use rtc1 instead of rtc0?
Re: Readynas duo V2 wakealarm missing
August 03, 2024 08:31PM
Mijzelf,
as I recall, rtc1is not present. Only rtc0 is inside /sys/class/rtc.
Re: Readynas duo V2 wakealarm missing
August 03, 2024 11:13PM
Need to add a similar line as kirkwood-nsa325.dts has:

               /* This board uses the pcf8563 RTC instead of the SoC RTC */
                rtc@10300 {
                        status = "disabled";
                };

Only replace the pcf8563 in comment with the rs5c372a used by the Duo V2. It appears that this fix should be applied to the kirkwood-netgear_readynas_nv+_v2.dts also.

Ray
Re: Readynas duo V2 wakealarm missing
August 04, 2024 01:01AM
@AndreaCipcino & Mijzelf,

> as I recall, rtc1is not present. Only rtc0 is
> inside /sys/class/rtc.

Yes, that's what I expected to see in dmesg, only rtc0.

@Ray,

Correct.

====

But dmesg output is needed for confirmation, as always.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 07, 2024 12:29AM
AndreaCipcino,

Try this new version of the DTB. I've also attached the DTS here for reference.

Copy the DTB to the rootfs /boot/dts/. And recreate the uImage with it. Reboot and please post the serial console or dmesg log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-netgear_readynas_duo_v2.dtb (12.8 KB)
open | download - kirkwood-netgear_readynas_duo_v2.dts (4.6 KB)
Re: Readynas duo V2 wakealarm missing
August 24, 2024 01:19AM
Hi bodhi,

since updating my system from bullseye to bookworm, I have the same problems with the NSA325v2.

bootlog:
[    5.317646] i2c_dev: i2c /dev entries driver
[    5.326039] rtc-pcf8563 0-0051: registered as rtc0
[    5.340245] rtc-pcf8563 0-0051: setting system clock to 2024-08-24T05:35:22 UTC (1724477722)
root@NSA325v2:/boot# fw_printenv
arcNumber=4495
dtb_file=/boot/dts/kirkwood-nsa325.dtb

Current kernel:
root@NSA325v2:~/bin# uname -a
Linux NSA325v2 6.9.6-kirkwood-tld-1 #1 PREEMPT Fri Jun 21 16:45:39 PDT 2024 armv5tel GNU/Linux

I have tried to set the wakuptime in two differned ways:

In Bullseye, writing a wakealarm file with seconds from 1.1.1970 to the directory
/sys/class/rtc/rtc0/ always worked, since bookworm I have no longer write access to this directory.

echo 1724994000 > /sys/class/rtc/rtc0/wakealarm
./WakeUp.sh: Zeile 66: /sys/class/rtc/rtc0/wakealarm: Keine Berechtigung

It does not work with rtcwake either:
root@NSA325v2:~/bin# rtcwake -s 30
rtcwake: /dev/rtc0 not enabled for wakeup events

Otto
Re: Readynas duo V2 wakealarm missing
August 24, 2024 06:02AM
Otto,

Thanks Otto. I'll take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 25, 2024 12:40AM
Otto,

Quote

/sys/class/rtc/rtc0/ always worked, since bookworm I have no longer write access to this directory.

Do you keep any dmesg log for this NSA325 box running bullesye?

With bookworm running, please post
dmesg
lsmod

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/25/2024 12:41AM by bodhi.
Re: Readynas duo V2 wakealarm missing
August 25, 2024 04:17AM
Hi bodhi,

thanks for checking my issue.

Sorry, I don't have keep any logs from bullseye.

I have shrinked the initramfs by setting MODULES=dep in /etc/initramfs-tools/initramfs.conf.

root@NSA325v2:~# lsmod
Module                  Size  Used by
autofs4                45056  2
evdev                  16384  1
sg                     28672  0
marvell_cesa           36864  0
orion_wdt              12288  0
kirkwood_thermal       12288  0
gpio_keys              20480  0
fixed                  16384  0
uas                    24576  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq

root@NSA325v2:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.9.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 PREEMPT Fri Jun 21 16:45:39 PDT 2024
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] pcpu-alloc: s0 r0 d131072 u131072 alloc=1*131072
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 491524K/524288K available (12288K kernel code, 1773K rwdata, 5420K rodata, 1024K init, 312K bss, 32764K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000001] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000091] Switching to timer-based delay loop, resolution 5ns
[    0.000739] Console: colour dummy device 80x30
[    0.000809] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000836] CPU: Testing write buffer coherency: ok
[    0.000954] pid_max: default: 32768 minimum: 301
[    0.007816] LSM: initializing lsm=capability
[    0.009157] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009192] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.021102] Setting up static identity map for 0x100000 - 0x100058
[    0.021401] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.021800] rcu: Hierarchical SRCU implementation.
[    0.021817] rcu:     Max phase no-delay instances is 1000.
[    0.024926] devtmpfs: initialized
[    0.035010] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.035051] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.041086] prandom: seed boundary self test passed
[    0.044277] prandom: 100 self tests passed
[    0.044292] pinctrl core: initialized pinctrl subsystem
[    0.048018] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.048755] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.050819] audit: initializing netlink subsys (disabled)
[    0.051310] audit: type=2000 audit(0.050:1): state=initialized audit_enabled=0 res=1
[    0.052804] thermal_sys: Registered thermal governor 'step_wise'
[    0.052965] cpuidle: using governor ladder
[    0.053029] cpuidle: using governor menu
[    0.053565] Feroceon L2: Enabling L2
[    0.053599] Feroceon L2: Cache support initialised.
[    0.063050] No ATAGs?
[    0.420105] raid6: int32x8  gen()   152 MB/s
[    0.760103] raid6: int32x4  gen()   140 MB/s
[    1.100103] raid6: int32x2  gen()   192 MB/s
[    1.440103] raid6: int32x1  gen()   130 MB/s
[    1.440116] raid6: using algorithm int32x2 gen() 192 MB/s
[    1.780101] raid6: .... xor() 116 MB/s, rmw enabled
[    1.780112] raid6: using intx1 recovery algorithm
[    1.781453] SCSI subsystem initialized
[    1.781807] libata version 3.00 loaded.
[    1.782133] usbcore: registered new interface driver usbfs
[    1.782217] usbcore: registered new interface driver hub
[    1.782273] usbcore: registered new device driver usb
[    1.782566] pps_core: LinuxPPS API ver. 1 registered
[    1.782575] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.782600] PTP clock support registered
[    1.785042] vgaarb: loaded
[    1.785732] clocksource: Switched to clocksource orion_clocksource
[    1.806606] VFS: Disk quotas dquot_6.6.0
[    1.806951] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.831959] NET: Registered PF_INET protocol family
[    1.832251] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.836604] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.836772] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.837547] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.837623] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.838167] TCP: Hash tables configured (established 4096 bind 4096)
[    1.838724] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.838917] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.838978] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.839739] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.846597] RPC: Registered named UNIX socket transport module.
[    1.846611] RPC: Registered udp transport module.
[    1.846617] RPC: Registered tcp transport module.
[    1.846621] RPC: Registered tcp-with-tls transport module.
[    1.846626] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.846644] PCI: CLS 0 bytes, default 32
[    1.849027] Trying to unpack rootfs image as initramfs...
[    2.633408] Freeing initrd memory: 5976K
[    3.054301] Initialise system trusted keyrings
[    3.054381] Key type blacklist registered
[    3.054728] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    3.054799] zbud: loaded
[    3.068994] NFS: Registering the id_resolver key type
[    3.069049] Key type id_resolver registered
[    3.069057] Key type id_legacy registered
[    3.069210] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.069229] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.070036] fuse: init (API version 7.40)
[    3.071255] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    3.280687] xor: measuring software checksum speed
[    3.287325]    arm4regs        :  1492 MB/sec
[    3.298333]    8regs           :   895 MB/sec
[    3.306097]    32regs          :  1270 MB/sec
[    3.306107] xor: using function: arm4regs (1492 MB/sec)
[    3.306120] async_tx: api initialized (async)
[    3.306133] Key type asymmetric registered
[    3.306141] Asymmetric key parser 'x509' registered
[    3.346505] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    3.346899] io scheduler bfq registered
[    3.488605] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    3.490203] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    3.491242] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    3.492086] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    3.492121] mvebu-pcie mbus@f1000000:pcie@82000000: Parsing ranges property...
[    3.492153] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    3.492191] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    3.492225] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    3.492258] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.492290] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.492321] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.492344] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.492982] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    3.493001] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.493019] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    3.493034] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    3.493048] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    3.493060] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    3.493072] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.493084] pci_bus 0000:00: scanning bus
[    3.493204] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400 PCIe Root Port
[    3.493236] pci 0000:00:01.0: PCI bridge to [bus 00]
[    3.493251] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.493264] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    3.493588] pci 0000:00:01.0: vgaarb: pci_notify
[    3.494771] pci_bus 0000:00: fixups for bus
[    3.494788] PCI: bus0: Fast back to back transfers disabled
[    3.494800] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    3.494813] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.494829] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    3.494986] pci_bus 0000:01: scanning bus
[    3.495041] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330 PCIe Endpoint
[    3.495079] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x00001fff 64bit]
[    3.495241] pci 0000:01:00.0: PME# supported from D0 D3hot
[    3.495257] pci 0000:01:00.0: PME# disabled
[    3.495319] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.495628] pci 0000:01:00.0: vgaarb: pci_notify
[    3.515840] pci_bus 0000:01: fixups for bus
[    3.515857] PCI: bus1: Fast back to back transfers disabled
[    3.515868] pci_bus 0000:01: bus scan returning with max=01
[    3.515879] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.515897] pci_bus 0000:00: bus scan returning with max=01
[    3.515927] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff]: assigned
[    3.515948] pci 0000:01:00.0: BAR 0 [mem 0xe0000000-0xe0001fff 64bit]: assigned
[    3.515973] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.515990] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    3.516079] pcieport 0000:00:01.0: vgaarb: pci_notify
[    3.516114] pcieport 0000:00:01.0: assign IRQ: got 0
[    3.516133] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    3.516154] pcieport 0000:00:01.0: enabling bus mastering
[    3.516180] pcieport 0000:00:01.0: vgaarb: pci_notify
[    3.516211] pci 0000:00:01.0: enabling bus mastering
[    3.516225] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    3.517268] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.577126] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.580777] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.637136] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.641041] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    3.643204] printk: legacy console [ttyS0] disabled
[    3.643730] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 28, base_baud = 12500000) is a 16550A
[    3.643792] printk: legacy console [ttyS0] enabled
[    4.786110] loop: module loaded
[    4.790270] sata_mv f1080000.sata: version 1.28
[    4.790824] sata_mv f1080000.sata: slots 32 ports 2
[    4.800467] scsi host0: sata_mv
[    4.805632] scsi host1: sata_mv
[    4.809906] ata1: SATA max UDMA/133 irq 29 lpm-pol 0
[    4.815603] ata2: SATA max UDMA/133 irq 29 lpm-pol 0
[    4.822404] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    4.829585] nand: Eon NAND 128MiB 3,3V 8-bit
[    4.834575] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.842991] Scanning device for bad blocks
[    4.852677] Bad eraseblock 100 at 0x000000c80000
[    4.862823] Bad eraseblock 200 at 0x000001900000
[    4.907586] 9 cmdlinepart partitions found on MTD device orion_nand
[    4.914591] Creating 9 MTD partitions on "orion_nand":
[    4.920501] 0x000000000000-0x000000100000 : "uboot"
[    4.926808] 0x000000100000-0x000000180000 : "uboot_env"
[    4.933340] 0x000000180000-0x000000200000 : "key_store"
[    4.939957] 0x000000200000-0x000000280000 : "info"
[    4.946096] 0x000000280000-0x000000c80000 : "etc"
[    4.952154] 0x000000c80000-0x000001680000 : "kernel_1"
[    4.958698] 0x000001680000-0x000004640000 : "rootfs1"
[    4.965246] 0x000004640000-0x000005040000 : "kernel_2"
[    4.971794] 0x000005040000-0x000008000000 : "rootfs2"
[    4.979292] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    4.987938] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.019822] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.029435] mv643xx_eth: Set the PHY to fix link down
[    5.030234] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:43:03:02
[    5.046315] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.052599] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.061325] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    5.095752] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.102898] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.09
[    5.111937] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.119928] usb usb1: Product: EHCI Host Controller
[    5.125562] usb usb1: Manufacturer: Linux 6.9.6-kirkwood-tld-1 ehci_hcd
[    5.132947] usb usb1: SerialNumber: f1050000.ehci
[    5.139291] hub 1-0:1.0: USB hub found
[    5.143846] hub 1-0:1.0: 1 port detected
[    5.149347] xhci_hcd 0000:01:00.0: vgaarb: pci_notify
[    5.149483] xhci_hcd 0000:01:00.0: assign IRQ: got 33
[    5.149562] xhci_hcd 0000:01:00.0: enabling bus mastering
[    5.149581] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.155598] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    5.164159] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[    5.174023] xhci_hcd 0000:01:00.0: enabling Mem-Wr-Inval
[    5.174601] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.180733] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    5.188905] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    5.196157] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.09
[    5.205169] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.213148] usb usb2: Product: xHCI Host Controller
[    5.218769] usb usb2: Manufacturer: Linux 6.9.6-kirkwood-tld-1 xhci-hcd
[    5.226128] usb usb2: SerialNumber: 0000:01:00.0
[    5.232310] hub 2-0:1.0: USB hub found
[    5.236888] hub 2-0:1.0: 2 ports detected
[    5.242410] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.251486] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.09
[    5.260524] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.268650] usb usb3: Product: xHCI Host Controller
[    5.274258] usb usb3: Manufacturer: Linux 6.9.6-kirkwood-tld-1 xhci-hcd
[    5.281653] usb usb3: SerialNumber: 0000:01:00.0
[    5.288129] hub 3-0:1.0: USB hub found
[    5.292656] hub 3-0:1.0: 2 ports detected
[    5.298341] xhci_hcd 0000:01:00.0: vgaarb: pci_notify
[    5.298540] usbcore: registered new interface driver usb-storage
[    5.305828] mousedev: PS/2 mouse device common for all mice
[    5.312506] i2c_dev: i2c /dev entries driver
[    5.320901] rtc-pcf8563 0-0051: registered as rtc0
[    5.326533] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.335107] rtc-pcf8563 0-0051: setting system clock to 2024-08-25T08:51:53 UTC (1724575913)
[    5.344596] ata1.00: ATA-9: WDC WD30EFRX-68EUZN0, 80.00A80, max UDMA/133
[    5.352102] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.361622] device-mapper: uevent: version 1.0.3
[    5.367410] ata1.00: configured for UDMA/133
[    5.373024] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    5.383293] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.390810] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.398626] scsi 0:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A80 PQ: 0 ANSI: 5
[    5.409318] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    5.418465] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.425902] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.431915] sd 0:0:0:0: [sda] Write Protect is off
[    5.437598] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.445269] sdhci: Secure Digital Host Controller Interface driver
[    5.452261] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.459909] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.460019] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.469978] sdhci: Copyright(c) Pierre Ossman
[    5.475276] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    5.520019] ledtrig-cpu: registered to indicate activity on CPUs
[    5.556180] hid: raw HID events driver (C) Jiri Kosina
[    5.566400] drop_monitor: Initializing network drop monitor service
[    5.578206] NET: Registered PF_INET6 protocol family
[    5.584696]  sda: sda1
[    5.588406] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.596052] Segment Routing with IPv6
[    5.600445] RPL Segment Routing with IPv6
[    5.605249] In-situ OAM (IOAM) with IPv6
[    5.610445] NET: Registered PF_PACKET protocol family
[    5.616814] Key type dns_resolver registered
[    5.638206] registered taskstats version 1
[    5.643149] Loading compiled-in X.509 certificates
[    5.668099] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    5.685815] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.695429] Key type .fscrypt registered
[    5.700355] Key type fscrypt-provisioning registered
[    5.706235] usb 1-1: Product: USB2.0 Hub
[    5.716323] hub 1-1:1.0: USB hub found
[    5.721222] hub 1-1:1.0: 4 ports detected
[    5.726353] Key type big_key registered
[    5.902078] Key type encrypted registered
[    5.925900] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.936045] ata2.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133
[    5.943502] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.969639] ata2.00: configured for UDMA/133
[    5.995335] scsi 1:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5
[    6.007712] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    6.034816] "cryptomgr_test" (121) uses obsolete ecb(arc4) skcipher
[    6.041927] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    6.050645] sd 1:0:0:0: [sdb] Write Protect is off
[    6.062101] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    6.062215] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.072144] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    6.083749] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    6.159403]  sdb: sdb1
[    6.162940] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.251454] usb 1-1.3: New USB device found, idVendor=8564, idProduct=1000, bcdDevice=11.00
[    6.265749] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.273818] usb 1-1.3: Product: Mass Storage Device
[    6.295766] usb 1-1.3: Manufacturer: JetFlash
[    6.300845] usb 1-1.3: SerialNumber: 15AKIY74888FN95E
[    6.317330] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    6.336273] scsi host2: usb-storage 1-1.3:1.0
[    7.545907] scsi 2:0:0:0: Direct-Access     JetFlash Transcend 16GB   1100 PQ: 0 ANSI: 6
[    7.560482] sd 2:0:0:0: [sdc] 30818304 512-byte logical blocks: (15.8 GB/14.7 GiB)
[    7.576860] sd 2:0:0:0: [sdc] Write Protect is off
[    7.582384] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    7.585978] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.618595]  sdc: sdc1 sdc2 sdc3 sdc4
[    7.626715] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    7.893738] clk: Disabling unused clocks
[    7.902196] Freeing unused kernel image (initmem) memory: 1024K
[    7.909526] Checked W+X mappings: passed, no W+X pages found
[    7.916047] Run /init as init process
[    7.920428]   with arguments:
[    7.920438]     /init
[    7.920446]   with environment:
[    7.920453]     HOME=/
[    7.920461]     TERM=linux
[    9.216903] usbcore: registered new interface driver uas
[   20.257740] PM: Image not found (code -22)
[   21.339261] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.418638] EXT4-fs (sdc1): mounted filesystem 8aaf6ef3-0b64-4e81-a6d6-c8e4a5488b33 ro with ordered data mode. Quota mode: none.
[   24.510647] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   24.885088] orion_wdt: Initial timeout 21 sec
[   25.047149] random: crng init done
[   25.348738] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   25.405854] marvell-cesa f1030000.crypto: CESA device successfully registered
[   25.420680] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   25.458344] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   27.792182] Adding 524284k swap on /dev/sdc2.  Priority:-2 extents:1 across:524284k
[   27.910885] EXT4-fs (sdc1): re-mounted 8aaf6ef3-0b64-4e81-a6d6-c8e4a5488b33 r/w. Quota mode: none.
[   64.790613] EXT4-fs (sda1): mounted filesystem a13dd87b-c5d5-4f41-99d8-b71688b60b0f r/w with ordered data mode. Quota mode: none.
[   66.298007] EXT4-fs (sdb1): mounted filesystem 0651fd1f-f1d8-4c50-bc73-f72878834221 r/w with ordered data mode. Quota mode: none.
[   67.245717] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   71.053277] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled

Otto



Edited 2 time(s). Last edit at 08/25/2024 04:32AM by ottok.
Re: Readynas duo V2 wakealarm missing
August 26, 2024 12:28AM
All,

I think there must have been RTC changes in the kernel. Unfortunately, I'm away from my Zyxel NSA325 box for about 4 weeks. I can only track down kernel code. So it might take a while.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
August 26, 2024 10:11AM
Bodhi,
I am now returned to work and I have access again to the nas.
I have tried the new kirkwood-netgear_readynas_duo_v2.dtb file , and now I think the rs5c372a chip device is running;
but the problem still persists.
root@nas-backup:/sys/class/rtc# rtcwake -s 30
rtcwake: cannot open /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
rtcwake: /dev/rtc0 not enabled for wakeup events

I now attach the dmesg log:
root@nas-backup:/sys/class/rtc# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: NETGEAR ReadyNAS Duo v2
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial init=/usr/bin/systemd
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 228756K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 33388K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    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: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000001] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008518] Switching to timer-based delay loop, resolution 5ns
[    0.015564] Console: colour dummy device 80x30
[    0.020771] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.031994] CPU: Testing write buffer coherency: ok
[    0.037648] pid_max: default: 32768 minimum: 301
[    0.049561] LSM: initializing lsm=capability,integrity
[    0.057178] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.065211] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.083138] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.091193] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.099845] Setting up static identity map for 0x100000 - 0x100058
[    0.106948] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.113180] rcu: Hierarchical SRCU implementation.
[    0.118720] rcu: 	Max phase no-delay instances is 1000.
[    0.126796] devtmpfs: initialized
[    0.139332] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149916] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.159555] prandom: seed boundary self test passed
[    0.168284] prandom: 100 self tests passed
[    0.173101] pinctrl core: initialized pinctrl subsystem
[    0.181931] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.189722] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.201350] audit: initializing netlink subsys (disabled)
[    0.209084] thermal_sys: Registered thermal governor 'step_wise'
[    0.209212] cpuidle: using governor ladder
[    0.220714] audit: type=2000 audit(0.190:1): state=initialized audit_enabled=0 res=1
[    0.229239] cpuidle: using governor menu
[    0.234428] Feroceon L2: Enabling L2
[    0.238744] Feroceon L2: Cache support initialised.
[    0.252926] No ATAGs?
[    0.608533] raid6: int32x8  gen()   152 MB/s
[    0.948532] raid6: int32x4  gen()   140 MB/s
[    1.298534] raid6: int32x2  gen()   182 MB/s
[    1.638531] raid6: int32x1  gen()   132 MB/s
[    1.643476] raid6: using algorithm int32x2 gen() 182 MB/s
[    1.998530] raid6: .... xor() 115 MB/s, rmw enabled
[    2.004084] raid6: using intx1 recovery algorithm
[    2.019827] SCSI subsystem initialized
[    2.028669] libata version 3.00 loaded.
[    2.028982] usbcore: registered new interface driver usbfs
[    2.035182] usbcore: registered new interface driver hub
[    2.058612] usbcore: registered new device driver usb
[    2.064639] pps_core: LinuxPPS API ver. 1 registered
[    2.078531] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.088340] PTP clock support registered
[    2.110750] vgaarb: loaded
[    2.114810] clocksource: Switched to clocksource orion_clocksource
[    2.141743] VFS: Disk quotas dquot_6.6.0
[    2.155147] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.197724] NET: Registered PF_INET protocol family
[    2.203528] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    2.226574] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.244984] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.253409] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    2.274860] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    2.282707] TCP: Hash tables configured (established 2048 bind 2048)
[    2.305359] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.313429] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.344868] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.353177] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.375460] RPC: Registered named UNIX socket transport module.
[    2.382050] RPC: Registered udp transport module.
[    2.394830] RPC: Registered tcp transport module.
[    2.400210] RPC: Registered tcp-with-tls transport module.
[    2.414827] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.421945] PCI: CLS 0 bytes, default 32
[    2.447150] Trying to unpack rootfs image as initramfs...
[    3.602551] Initialise system trusted keyrings
[    3.614976] Key type blacklist registered
[    3.624966] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    3.632239] zbud: loaded
[    3.663242] Freeing initrd memory: 9240K
[    3.672319] NFS: Registering the id_resolver key type
[    3.678180] Key type id_resolver registered
[    3.683044] Key type id_legacy registered
[    3.687893] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.695289] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.704556] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.712945] fuse: init (API version 7.38)
[    3.718793] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.726184] orangefs_init: module version upstream loaded
[    3.732541] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    3.877853] jitterentropy: Initialization failed with host not compliant with requirements: 9
[    3.887074] xor: measuring software checksum speed
[    3.899236]    arm4regs        :  1475 MB/sec
[    3.915279]    8regs           :   895 MB/sec
[    3.928061]    32regs          :  1270 MB/sec
[    3.933093] xor: using function: arm4regs (1475 MB/sec)
[    3.939005] async_tx: api initialized (async)
[    3.944040] Key type asymmetric registered
[    3.948827] Asymmetric key parser 'x509' registered
[    3.995030] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.003430] io scheduler bfq registered
[    4.149908] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.159497] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.170194] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.180680] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    4.190574] mvebu-pcie mbus@f1000000:pcie@82000000: Parsing ranges property...
[    4.190611] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    4.200730] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    4.210825] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    4.220914] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    4.231511] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    4.242111] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    4.252704] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    4.263865] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    4.272198] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.278403] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    4.289254] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    4.300097] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    4.310938] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.318501] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    4.325454] pci_bus 0000:00: scanning bus
[    4.325540] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    4.332547] pci 0000:00:01.0: vgaarb: pci_notify
[    4.333609] pci_bus 0000:00: fixups for bus
[    4.333628] PCI: bus0: Fast back to back transfers disabled
[    4.339906] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    4.339921] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.348607] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    4.348767] pci_bus 0000:01: scanning bus
[    4.348821] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    4.355543] pci 0000:01:00.0: reg 0x10: [mem 0x40000000-0x40001fff 64bit]
[    4.363147] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    4.369931] pci 0000:01:00.0: PME# disabled
[    4.369996] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    4.385846] pci 0000:01:00.0: vgaarb: pci_notify
[    4.414886] pci_bus 0000:01: fixups for bus
[    4.414904] PCI: bus1: Fast back to back transfers disabled
[    4.421143] pci_bus 0000:01: bus scan returning with max=01
[    4.421155] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    4.428464] pci_bus 0000:00: bus scan returning with max=01
[    4.428493] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.436063] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.444050] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.449709] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.457246] pcieport 0000:00:01.0: vgaarb: pci_notify
[    4.457278] pcieport 0000:00:01.0: assign IRQ: got 0
[    4.457298] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.464066] pcieport 0000:00:01.0: enabling bus mastering
[    4.464095] pcieport 0000:00:01.0: vgaarb: pci_notify
[    4.464125] pci 0000:00:01.0: enabling bus mastering
[    4.464925] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.536792] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.548490] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.616787] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.628739] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.637991] printk: console [ttyS0] disabled
[    4.643452] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 28, base_baud = 12500000) is a 16550A
[    4.653185] printk: console [ttyS0] enabled
[    4.663037] printk: bootconsole [earlycon0] disabled
[    4.705344] loop: module loaded
[    4.709524] sata_mv f1080000.sata: version 1.28
[    4.710069] sata_mv f1080000.sata: slots 32 ports 2
[    4.719546] scsi host0: sata_mv
[    4.724678] scsi host1: sata_mv
[    4.728987] ata1: SATA max UDMA/133 irq 29
[    4.733813] ata2: SATA max UDMA/133 irq 29
[    4.739773] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    4.746923] nand: Hynix H27U1G8F2BTR-BC
[    4.751478] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.759829] Scanning device for bad blocks
[    4.810203] Bad eraseblock 601 at 0x000004b20000
[    4.847583] 5 fixed-partitions partitions found on MTD device orion_nand
[    4.855038] Creating 5 MTD partitions on "orion_nand":
[    4.860900] 0x000000000000-0x000000180000 : "u-boot"
[    4.867283] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    4.873875] 0x000000200000-0x000000800000 : "uImage"
[    4.880251] 0x000000800000-0x000001800000 : "minirootfs"
[    4.886948] 0x000001800000-0x000008000000 : "jffs2"
[    4.894129] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    4.902766] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    4.934414] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    4.944703] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 2c:b0:5d:be:fd:25
[    4.954928] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.961179] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.969878] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    5.004832] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.011917] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    5.020970] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.028966] usb usb1: Product: EHCI Host Controller
[    5.034588] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    5.041965] usb usb1: SerialNumber: f1050000.ehci
[    5.048277] hub 1-0:1.0: USB hub found
[    5.052814] hub 1-0:1.0: 1 port detected
[    5.058233] xhci_hcd 0000:01:00.0: vgaarb: pci_notify
[    5.058364] xhci_hcd 0000:01:00.0: assign IRQ: got 33
[    5.058441] xhci_hcd 0000:01:00.0: enabling bus mastering
[    5.058459] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.064474] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    5.072938] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[    5.082852] xhci_hcd 0000:01:00.0: enabling Mem-Wr-Inval
[    5.083484] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.089604] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    5.097805] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    5.105050] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    5.114058] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.122040] usb usb2: Product: xHCI Host Controller
[    5.127660] usb usb2: Manufacturer: Linux 6.5.7-kirkwood-tld-1 xhci-hcd
[    5.135027] usb usb2: SerialNumber: 0000:01:00.0
[    5.141110] hub 2-0:1.0: USB hub found
[    5.145673] hub 2-0:1.0: 2 ports detected
[    5.151131] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.160171] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.05
[    5.169203] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.177321] usb usb3: Product: xHCI Host Controller
[    5.182929] usb usb3: Manufacturer: Linux 6.5.7-kirkwood-tld-1 xhci-hcd
[    5.190291] usb usb3: SerialNumber: 0000:01:00.0
[    5.196639] hub 3-0:1.0: USB hub found
[    5.201222] hub 3-0:1.0: 2 ports detected
[    5.206866] xhci_hcd 0000:01:00.0: vgaarb: pci_notify
[    5.207053] usbcore: registered new interface driver usb-storage
[    5.214258] mousedev: PS/2 mouse device common for all mice
[    5.220948] i2c_dev: i2c /dev entries driver
[    5.228735] device-mapper: uevent: version 1.0.3
[    5.234560] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    5.244528] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.251864] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.259068] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.266795] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    5.274237] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.281907] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.289340] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.298814] ledtrig-cpu: registered to indicate activity on CPUs
[    5.305839] ata1.00: configured for UDMA/133
[    5.311091] hid: raw HID events driver (C) Jiri Kosina
[    5.317607] drop_monitor: Initializing network drop monitor service
[    5.325060] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    5.335241] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    5.343729] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.349817] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.358555] NET: Registered PF_INET6 protocol family
[    5.366847] Segment Routing with IPv6
[    5.371393] sd 0:0:0:0: [sda] Write Protect is off
[    5.376975] RPL Segment Routing with IPv6
[    5.381801] In-situ OAM (IOAM) with IPv6
[    5.386753] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.386860] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.396985] NET: Registered PF_PACKET protocol family
[    5.403110] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    5.410234] Key type dns_resolver registered
[    5.432581] registered taskstats version 1
[    5.437559] Loading compiled-in X.509 certificates
[    5.460696] Key type .fscrypt registered
[    5.465416] Key type fscrypt-provisioning registered
[    5.471840]  sda: sda1 sda2 sda3
[    5.477505] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.487218] Key type big_key registered
[    5.528576] Key type encrypted registered
[    5.566267] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    5.584954] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.597989] usb 1-1: Product:  SanDisk 3.2Gen1
[    5.608334] usb 1-1: Manufacturer:  USB
[    5.612905] usb 1-1: SerialNumber: 0101912a363c81ba99b5801c257adab9a1b0a40864156cef981cbef054c1894b7405000000000000000000001471cb8bff9a550083558107beaf0a32
[    5.640306] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.651164] scsi host2: usb-storage 1-1:1.0
[    5.673318] "cryptomgr_test" (108) uses obsolete ecb(arc4) skcipher
[    5.864847] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.884981] ata2.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    5.892424] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.917385] ata2.00: configured for UDMA/133
[    5.942931] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    5.966095] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    5.974586] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    5.994889] sd 1:0:0:0: [sdb] Write Protect is off
[    6.000416] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    6.000499] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.024926] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    6.088991]  sdb: sdb1 sdb2 sdb3
[    6.105569] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.736549] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[    6.756534] sd 2:0:0:0: [sdc] 120164352 512-byte logical blocks: (61.5 GB/57.3 GiB)
[    6.775907] sd 2:0:0:0: [sdc] Write Protect is off
[    6.781446] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    6.794850] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.823234]  sdc: sdc1
[    6.835288] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    7.517780] clk: Disabling unused clocks
[    7.525725] Freeing unused kernel image (initmem) memory: 1024K
[    7.545452] Checked W+X mappings: passed, no W+X pages found
[    7.551861] Run /init as init process
[    7.556295]   with arguments:
[    7.556306]     /init
[    7.556314]   with environment:
[    7.556320]     HOME=/
[    7.556327]     TERM=linux
[    8.739507] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    8.785997] usbcore: registered new interface driver uas
[    8.798677] rtc-rs5c372 0-0032: registered as rtc0
[    8.821895] rtc-rs5c372 0-0032: setting system clock to 2024-08-26T14:49:19 UTC (1724683759)
[    9.564948] md/raid1:md1: active with 2 out of 2 mirrors
[    9.571106] md1: detected capacity change from 0 to 1048552
[    9.595013] md/raid1:md2: active with 2 out of 2 mirrors
[    9.601198] md2: detected capacity change from 0 to 3897585504
[    9.607854] md/raid1:md0: active with 2 out of 2 mirrors
[    9.624355] md0: detected capacity change from 0 to 8386536
[   11.234851] random: crng init done
[   25.795173] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   25.894844] EXT4-fs (sdc1): mounted filesystem 3f058a7b-571c-438c-9e91-083a21f629db ro with ordered data mode. Quota mode: none.
[   26.817778] systemd[1]: Inserted module 'autofs4'
[   26.931741] systemd[1]: systemd 252.26-1~deb12u2 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[   26.965452] systemd[1]: Detected architecture arm.
[   27.014577] systemd[1]: Hostname set to <nas-backup>.
[   29.872717] systemd[1]: Queued start job for default target graphical.target.
[   29.923010] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[   29.968785] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[   30.008777] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[   30.058763] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[   30.107339] systemd[1]: Created slice user.slice - User and Session Slice.
[   30.145660] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[   30.185590] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[   30.226787] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[   30.275267] systemd[1]: Expecting device dev-disk-by\x2duuid-43226f8e\x2d31b3\x2d4816\x2d8b81\x2d1fbb2bac8efa.device - /dev/disk/by-uuid/43226f8e-31b3-4816-8b81-1fbb2bac8efa...
[   30.325114] systemd[1]: Expecting device dev-ttyS0.device - /dev/ttyS0...
[   30.365186] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[   30.405429] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[   30.445883] systemd[1]: Reached target paths.target - Path Units.
[   30.485626] systemd[1]: Reached target slices.target - Slice Units.
[   30.525359] systemd[1]: Reached target swap.target - Swaps.
[   30.565196] systemd[1]: Reached target time-set.target - System Time Set.
[   30.605853] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[   30.646025] systemd[1]: Listening on dm-event.socket - Device-mapper event daemon FIFOs.
[   30.690054] systemd[1]: Listening on lvm2-lvmpolld.socket - LVM2 poll daemon socket.
[   30.786899] systemd[1]: Listening on rpcbind.socket - RPCbind Server Activation Socket.
[   30.826523] systemd[1]: Listening on syslog.socket - Syslog Socket.
[   30.866253] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[   30.905770] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[   30.946858] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[   30.986309] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[   31.026457] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[   31.066616] systemd[1]: Listening on systemd-networkd.socket - Network Service Netlink Socket.
[   31.106570] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[   31.146210] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[   31.186305] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   31.235615] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[   31.282152] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[   31.365439] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[   31.385733] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
[   31.406201] systemd[1]: Finished blk-availability.service - Availability of block devices.
[   31.485668] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[   31.567914] systemd[1]: Starting lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[   31.639789] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
[   31.726015] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[   31.821809] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[   31.915260] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[   31.966069] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
[   32.016000] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
[   32.047322] systemd[1]: netplan-ovs-cleanup.service - OpenVSwitch configuration for cleanup was skipped because of an unmet condition check (ConditionFileIsExecutable=/usr/bin/ovs-vsctl).
[   32.097208] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[   32.165842] systemd[1]: Starting systemd-journald.service - Journal Service...
[   32.256143] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[   32.345968] systemd[1]: Starting systemd-network-generator.service - Generate network units from Kernel command line...
[   32.448106] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[   32.496478] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[   32.544933] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[   32.568698] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[   32.625459] systemd[1]: Using hardware watchdog 'Software Watchdog', version 0, device /dev/watchdog0
[   32.655060] systemd[1]: Watchdog running with a hardware timeout of 5min.
[   32.744928] EXT4-fs (sdc1): re-mounted 3f058a7b-571c-438c-9e91-083a21f629db r/w. Quota mode: none.
[   32.764538] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[   32.846694] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[   32.906334] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[   32.967200] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[   33.037663] systemd[1]: Finished lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
[   33.117922] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   33.155511] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[   33.188017] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[   33.225354] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[   33.258016] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   33.286891] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[   33.347948] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[   33.385285] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[   33.446164] systemd[1]: Started systemd-journald.service - Journal Service.
[   33.966194] systemd-journald[278]: Received client request to flush runtime journal.
[   34.009019] systemd-journald[278]: File /var/log/journal/c4334d5b2fba8bce5294b56551baee86/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   39.203818] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   39.387395] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   39.506766] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   40.025146] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   40.477146] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   40.505489] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   40.536884] cfg80211: failed to load regulatory.db
[   43.779151] EXT4-fs (dm-0): mounted filesystem 43226f8e-31b3-4816-8b81-1fbb2bac8efa r/w with ordered data mode. Quota mode: journalled.
[   44.434778] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   45.166065] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   45.932084] orion_wdt: Initial timeout 21 sec
[   48.666265] marvell-cesa f1030000.crypto: CESA device successfully registered
[   51.375153] Adding 995324k swap on /var/swap.  Priority:-2 extents:19 across:1576852k FS

and the lsmod :
root@nas-backup:/sys/class/rtc# lsmod
Module                  Size  Used by
tls                    77824  0
cpufreq_ondemand       16384  0
cpufreq_powersave      16384  0
cpufreq_userspace      16384  0
cpufreq_conservative    12288  0
evdev                  16384  1
quota_v2               12288  2
quota_tree             20480  1 quota_v2
g762                   20480  0
marvell_cesa           36864  0
orion_wdt              12288  0
kirkwood_thermal       12288  0
gpio_keys              20480  0
cfg80211              851968  0
rfkill                 28672  2 cfg80211
sg                     28672  0
binfmt_misc            20480  1
softdog                12288  3
configfs               45056  1
ip_tables              24576  0
x_tables               40960  1 ip_tables
autofs4                45056  2
fixed                  16384  0
uas                    24576  0
rtc_rs5c372            24576  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq

Thank you for your help
Re: Readynas duo V2 wakealarm missing
September 03, 2024 06:53AM
AndreaCipcino.

As I mentioned above,

Quote

I think there must have been RTC changes in the kernel. Unfortunately, I'm away from my Zyxel NSA325 box for about 4 weeks. I can only track down kernel code. So it might take a while.

Looks like there was a significant change in the Linux mainline kernel in the RTC alarm area.

So far I only have some idea what to do for the NSA325, but have not yet found what to do for the Netgear Readynas Duo V2.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 wakealarm missing
September 05, 2024 10:48AM
Bodhi,
I understand the situation, for now I will fall back on the stock OS and will leave this on stand-by.
Once you have again access to your NSA325, and find what's wrong, hopefully that will benefit the resolution of this problem for Readynas Duo v2 too. Thanks again in the meantime.
Re: Readynas duo V2 wakealarm missing
October 06, 2024 03:35PM
Hi Otto ,

Please test this updated DTB for the NSA325. This needs to be used with kernel linux-6.10.11-kirkwood-tld-1 or later.

I'd suggest that you back up your rootfs, and remove the HDD data drive before the test. The change in the latest kernel is in RTC driver only, but we need to take precaution, especially if you are going to hibernate or suspend the systm. And I have not tested this on my NSA325 box yet.

- Download the attached DTB
- Rename the current DTB in /boot/dts.
- Copy the new DTB to /boot/dts

If you are running with the new NSA325 u-boot you can reboot, or shutdown the box and cold start. If you are running stock u-boot then recreate the uImage with this DTB before reboot.

After login to Debian (as root), check the infratructure
ls -l /sys/class/wakeup/
ls -l /sys/class/wakeup/wakeup3/
ls -l /sys/class/rtc/rtc0/
cat /sys/class/rtc/rtc0/wakealarm


Now you can proceed with rtcwake.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-nsa325.dtb (14.1 KB)
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 07, 2024 09:21AM
Hi bodhi,

you're awesome!

I've updated the kernel to 6.10.11 and changed the dtb file.

My old solution works again without any problems.
I use a bash srcipt to set the wakeup time via echo in wakealarm:
root@NSA325v2:~/bin# ./WakeUp.sh
CurrentDate Mo 7. Okt 13:48:45 UTC 2024
Start today Mo 7. Okt 13:50:00 UTC 2024
Start today in seconds 1728309000

echo 1728309000 > /sys/class/rtc/rtc0/wakealarm

When I use rtcwake, I get a “write error”, but I'm not sure if it worked before.
root@NSA325v2:~# rtcwake -d rtc0 -s 60
rtcwake: wakeup from "suspend" using rtc0 at Mon Oct  7 13:55:07 2024
rtcwake: write error

command from "AndreaCipcino"
root@NSA325v2:~# rtcwake -s 30
rtcwake: wakeup from "suspend" using /dev/rtc0 at Mon Oct  7 14:08:40 2024
rtcwake: write error
root@NSA325v2:~# ls -l /sys/class/wakeup/
insgesamt 0
drwxr-xr-x  2 root root 0  7. Okt 14:04 .
drwxr-xr-x 51 root root 0  7. Okt 13:51 ..
lrwxrwxrwx  1 root root 0  7. Okt 14:04 wakeup1 -> ../../devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/wakeup/wakeup1
lrwxrwxrwx  1 root root 0  7. Okt 14:04 wakeup2 -> ../../devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-0051/wakeup/wakeup2
lrwxrwxrwx  1 root root 0  7. Okt 14:04 wakeup3 -> ../../devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-0051/rtc/rtc0/alarmtimer.0.auto/wakeup/wakeup3
root@NSA325v2:~#

root@NSA325v2:~# ls -l /sys/class/wakeup/wakeup3/
insgesamt 0
drwxr-xr-x 2 root root    0  7. Okt 14:04 .
drwxr-xr-x 3 root root    0  7. Okt 14:04 ..
-r--r--r-- 1 root root 4096  7. Okt 14:04 active_count
-r--r--r-- 1 root root 4096  7. Okt 14:04 active_time_ms
lrwxrwxrwx 1 root root    0  7. Okt 14:04 device -> ../../../alarmtimer.0.auto
-r--r--r-- 1 root root 4096  7. Okt 14:04 event_count
-r--r--r-- 1 root root 4096  7. Okt 14:04 expire_count
-r--r--r-- 1 root root 4096  7. Okt 14:04 last_change_ms
-r--r--r-- 1 root root 4096  7. Okt 14:04 max_time_ms
-r--r--r-- 1 root root 4096  7. Okt 14:04 name
-r--r--r-- 1 root root 4096  7. Okt 14:04 prevent_suspend_time_ms
lrwxrwxrwx 1 root root    0  7. Okt 14:04 subsystem -> ../../../../../../../../../../../class/wakeup
-r--r--r-- 1 root root 4096  7. Okt 14:04 total_time_ms
-rw-r--r-- 1 root root 4096  7. Okt 14:04 uevent
-r--r--r-- 1 root root 4096  7. Okt 14:04 wakeup_count
root@NSA325v2:~#

root@NSA325v2:~# ls -l /sys/class/rtc/rtc0/
insgesamt 0
drwxr-xr-x 4 root root    0  7. Okt 13:51 .
drwxr-xr-x 3 root root    0  7. Okt 13:51 ..
drwxr-xr-x 4 root root    0  7. Okt 14:04 alarmtimer.0.auto
-r--r--r-- 1 root root 4096  7. Okt 14:05 date
-r--r--r-- 1 root root 4096  7. Okt 14:05 dev
lrwxrwxrwx 1 root root    0  7. Okt 13:54 device -> ../../../0-0051
-r--r--r-- 1 root root 4096  7. Okt 14:05 hctosys
-rw-r--r-- 1 root root 4096  7. Okt 14:05 max_user_freq
-r--r--r-- 1 root root 4096  7. Okt 13:51 name
drwxr-xr-x 2 root root    0  7. Okt 14:05 power
-r--r--r-- 1 root root 4096  7. Okt 14:05 range
-r--r--r-- 1 root root 4096  7. Okt 14:05 since_epoch
lrwxrwxrwx 1 root root    0  7. Okt 14:05 subsystem -> ../../../../../../../../class/rtc
-r--r--r-- 1 root root 4096  7. Okt 14:05 time
-rw-r--r-- 1 root root 4096  7. Okt 14:05 uevent
-rw-r--r-- 1 root root 4096  7. Okt 14:05 wakealarm
root@NSA325v2:~#

root@NSA325v2:~# cat /sys/class/rtc/rtc0/wakealarm
root@NSA325v2:~#

The rtc part in dmesg:
[    5.366375] rtc-pcf8563 0-0051: registered as rtc0
[    5.373210] rtc-pcf8563 0-0051: setting system clock to 2024-10-07T13:50:50 UTC (1728309050)

A question regarding the recommendation to “remove the HDD data drive before testing”.
Can the modification destroy any data partitions?

Many thanks for your help
Otto
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 07, 2024 01:48PM
Otto,

> I've updated the kernel to 6.10.11 and changed the
> dtb file.
>
> My old solution works again without any problems.

Cool!

> A question regarding the recommendation to
> “remove the HDD data drive before testing”.
> Can the modification destroy any data partitions?

No it cannot. But since I have not tested myself, just want be cautious. The RTC driver change was in the latest mainline kernels recently. And I enabled it in the updated DTS (which is not in mainline yet).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 10/07/2024 01:49PM by bodhi.
Re: Readynas duo V2 wakealarm missing
October 07, 2024 03:57PM
Note that this DTB has not been tested.

Please test this updated DTB for the ReadyNAS duo V2 . This needs to be used with kernel linux-6.10.11-kirkwood-tld-1 or later. The RTC driver for this box (rs5c372) is quite different from the Zyxel NSA325 (pcf8563). So don't know if this will work.

I'd suggest that you back up your rootfs, and remove the HDD data drive before the test. There was no change in the latest kernel is in this driver (but there might be changes somewhere else in the RTC infrastructure). We need to take precaution, especially if you are going to hibernate or suspend the system.

- Download the attached DTB
- Rename the current DTB in /boot/dts.
- Copy the new DTB to /boot/dts

If you are running stock u-boot then recreate the uImage with this DTB before reboot.

After login to Debian (as root), check the infrastructure
ls -l /sys/class/wakeup/
ls -l /sys/class/wakeup/wakeup3/
ls -l /sys/class/rtc/rtc0/
cat /sys/class/rtc/rtc0/wakealarm


Now you can proceed with rtcwake.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-netgear_readynas_duo_v2.dtb (12.8 KB)
Re: Readynas duo V2 wakealarm missing
October 07, 2024 07:11PM
Hi Otto,

On the NSA325, since it can only support 1-mimute accuracy, could you try

date
rtcwake -s 180
date
rtcwake -d rtc0 -s 185
date

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 10/07/2024 07:12PM by bodhi.
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 08, 2024 04:00AM
Hi bodhi,

I get the “write error” here as well

root@NSA325v2:~# date
Di 8. Okt 08:57:32 UTC 2024
root@NSA325v2:~# rtcwake -s 180
rtcwake: wakeup from "suspend" using /dev/rtc0 at Tue Oct  8 09:00:48 2024
rtcwake: write error
root@NSA325v2:~# date
Di 8. Okt 08:57:50 UTC 2024
root@NSA325v2:~# rtcwake -d rtc0 -s 185
rtcwake: wakeup from "suspend" using rtc0 at Tue Oct  8 09:01:08 2024
rtcwake: write error
root@NSA325v2:~# date
Di 8. Okt 08:58:05 UTC 2024
root@NSA325v2:~#


Otto
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 08, 2024 01:02PM
Thanks for testing Otto!

Since it's working by writing time directly to /sys/class/rtc, I think we can live with it for a while. I'll come back to this rtcwake later.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 09, 2024 08:52AM
Hi bodhi,

that's fine for me and thanks again for the correction.

By “live” do you mean with the next kernel update for all?

Otto
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 09, 2024 01:57PM
Otto,

Yes. This updated DTB will be part of the next kernel update. When I have time, I will look into the rtcwake write error.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Readynas duo V2 and Zyxel NSA325 wakealarm missing
October 14, 2024 03:36PM
Otto,

I looked at the rtcwake code and logs. It seems as though rtcwake has never worked on Kirkwood boxes before. Nobody tested it ? :)

This test was run on the Dell Kace M300 (same SoC as the NSA325).

root@tldDebian6:~# rtcwake -d rtc0 -s 180 --mode standby --verbose
Using UTC time.
	delta   = 0
	tzone   = 0
	tzname  = UTC
	systime = 1728770975, (UTC) Sat Oct 12 22:09:35 2024
	rtctime = 1728770975, (UTC) Sat Oct 12 22:09:35 2024
alarm 0, sys_time 1728770975, rtc_time 1728770975, seconds 180
rtcwake: wakeup from "standby" using rtc0 at Sat Oct 12 22:12:36 2024
suspend mode: standby; suspending system
rtcwake: write error

On serial console at that moment,
tldDebian6 login: 
[177444.096183][ T3870] PM: suspend entry (shallow)
[177444.101102][ T3870] Filesystems sync: 0.000 seconds
[177444.106712][ T3870] Freezing user space processes
[177444.113593][ T3870] Freezing user space processes completed (elapsed 0.002 seconds)
[177444.121429][ T3870] OOM killer disabled.
[177444.125457][ T3870] Freezing remaining freezable tasks
[177444.131910][ T3870] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[177444.140189][ T3870] printk: Suspending console(s) (use no_console_suspend to debug)
[177444.195912][ T3871] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[177444.196597][   T56] ata1.00: Entering standby power mode
[177444.257846][ T3870] PM: System core suspend callback mvebu_mbus_suspend+0x0/0xb8 failed.
[177444.261944][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[177444.262197][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[177444.262414][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[177444.464224][ T3870] OOM killer enabled.
[177444.468187][ T3870] Restarting tasks ... done.
[177444.476658][ T3870] PM: suspend exit
[177444.755931][   T56] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[177444.787575][ T3798] sd 0:0:0:0: [sda] Starting disk
[177444.793770][   T56] ata1.00: configured for UDMA/133
[177444.799592][   T56] ata1.00: Entering active power mode

So it was because the callback failed, the system exits suspend right away.

Still I cannot see why mvebu_mbus_suspend() failed. This is where the mbus state is saved during suspend. But in this test, the mbus state does not have valid data at that moment.

In your script, how did you do the suspend? do you write to the alarm and then write to the sleep state? or do you use pm-suspend?

Please post a snippet of your script where these steps were done.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 10/14/2024 03:52PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: