It's working.
Recompiling the kernel yesterday (and getting errors), I found that maybe you want do add some core pkgs on 220 and 421 descriptors in cortexa9.mk, what do you think?
kmod-mdio-gpio
kmod-mdio-netlink
kmod-phy-marvell
I did some temp tests, behaving as programmed, assuming that the trips->hdd alert values in .dts file are in Celsius ("36000", i.e.). That are Buffalo stock values?
I found a bit hot both that lower value, and the case itself after the tests, since hdd's usually runs between 21~28ºC.
Must admit that I would fell more confortable with a lower trigger than 36ºC -- like 30ºC.
I would set 30ºC, 36ºC, 42ºC and 48ºC for the four trips. The usual 70ºC max for hdd's it's too high for reliable data keeping -- more fresher, less particle and electron fuzz, more stability.
It doesn't hurt to ask, but "type = "passive";" on trip3 is the expected?
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.92 (dani@tool) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r21859-116c73fd71) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 SMP Thu Feb 9 02:16:51 2023
[ 0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Buffalo LinkStation LS220DE
[ 0.000000] earlycon: uart0 at MMIO 0xd0012000 (options '115200n8')
[ 0.000000] printk: bootconsole [uart0] enabled
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem empty
[ 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] CPU: All CPU(s) started in SVC mode.
[ 0.000000] percpu: Embedded 11 pages/cpu s14028 r8192 d22836 u45056
[ 0.000000] pcpu-alloc: s14028 r8192 d22836 u45056 alloc=11*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: earlycon 2
[ 0.000000] Bootloader command line (ignored): console=ttyS0,115200 root=/dev/sda2 rw initrd=0x2600040 panic=5 BOOTVER=0.38 UBOOT_DATE=2019/12/18 mtdparts=armada-nand:0x2000000(boot),0x1e000000(rootfs) nandboot=yes
[ 0.000000] Unknown kernel command line parameters "2", will be passed to user space.
[ 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] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 246332K/262144K available (8192K kernel code, 631K rwdata, 1884K rodata, 1024K init, 232K bss, 15812K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[ 0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[ 0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[ 0.000000] Switching to timer-based delay loop, resolution 60ns
[ 0.000001] sched_clock: 32 bits at 16MHz, resolution 60ns, wraps every 128849023969ns
[ 0.007898] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114675631333 ns
[ 0.019173] Calibrating delay loop (skipped), value calculated using timer frequency.. 33.33 BogoMIPS (lpj=166666)
[ 0.029523] pid_max: default: 32768 minimum: 301
[ 0.034344] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.041651] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.050296] CPU: Testing write buffer coherency: ok
[ 0.055462] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.061721] Setting up static identity map for 0x100000 - 0x100060
[ 0.068276] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[ 0.073573] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.079932] rcu: Hierarchical SRCU implementation.
[ 0.084975] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.092796] smp: Bringing up secondary CPUs ...
[ 0.097312] smp: Brought up 1 node, 1 CPU
[ 0.101337] SMP: Total of 1 processors activated (33.33 BogoMIPS).
[ 0.107498] CPU: All CPU(s) started in SVC mode.
[ 0.116653] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[ 0.124455] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.134275] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.141174] pinctrl core: initialized pinctrl subsystem
[ 0.147682] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.154261] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.162104] thermal_sys: Registered thermal governor 'step_wise'
[ 0.162392] cpuidle: using governor ladder
[ 0.172647] mvebu-pmsu: CPU idle is currently broken: disabling
[ 0.196599] cryptd: max_cpu_qlen set to 1000
[ 0.204448] SCSI subsystem initialized
[ 0.208458] libata version 3.00 loaded.
[ 0.208717] usbcore: registered new interface driver usbfs
[ 0.214307] usbcore: registered new interface driver hub
[ 0.219666] usbcore: registered new device driver usb
[ 0.226210] clocksource: Switched to clocksource armada_370_xp_clocksource
[ 0.234049] NET: Registered PF_INET protocol family
[ 0.239186] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.247016] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.255366] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.263112] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.270774] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.277924] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.284360] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.290903] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.298051] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.303721] PCI: CLS 0 bytes, default 64
[ 0.310975] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.322889] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.328783] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.342259] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[ 0.350399] debugfs: Directory 'd0018100.gpio' with parent 'regmap' already present!
[ 0.358762] debugfs: Directory 'd0018140.gpio' with parent 'regmap' already present!
[ 0.367651] mv_xor d0060800.xor: Marvell shared XOR driver
[ 0.427560] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 0.435150] mv_xor d0060900.xor: Marvell shared XOR driver
[ 0.497527] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 0.505228] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.512292] printk: console [ttyS0] disabled
[ 0.536743] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 27, base_baud = 12500000) is a 16550A
[ 0.545721] printk: console [ttyS0] enabled
[ 0.554147] printk: bootconsole [uart0] disabled
[ 0.575507] loop: module loaded
[ 0.583193] sata_mv d00a0000.sata: version 1.28
[ 0.583456] sata_mv d00a0000.sata: slots 32 ports 2
[ 0.593717] scsi host0: sata_mv
[ 0.598764] scsi host1: sata_mv
[ 0.602154] ata1: SATA max UDMA/133 irq 35
[ 0.606365] ata2: SATA max UDMA/133 irq 35
[ 0.611232] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xdc
[ 0.617667] nand: Toshiba NAND 512MiB 3,3V 8-bit
[ 0.622313] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.632601] Bad block table found at page 262080, version 0x01
[ 0.638990] Bad block table found at page 262016, version 0x01
[ 0.645656] 2 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[ 0.652720] Creating 2 MTD partitions on "pxa3xx_nand-0":
[ 0.658174] 0x000000000000-0x000002000000 : "kernel"
[ 0.664702] 0x000002000000-0x000020000000 : "ubi"
[ 0.677063] spi-nor spi0.0: mx25l8005 (1024 Kbytes)
[ 0.682543] 2 fixed-partitions partitions found on MTD device spi0.0
[ 0.689023] Creating 2 MTD partitions on "spi0.0":
[ 0.693851] 0x000000000000-0x0000000f0000 : "u-boot"
[ 0.700386] 0x0000000f0000-0x000000100000 : "u-boot-env"
[ 0.720834] mvneta d0074000.ethernet eth0: Using random mac address 92:77:c6:e7:f4:65
[ 0.729096] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.735665] ehci-pci: EHCI PCI platform driver
[ 0.740216] ehci-platform: EHCI generic platform driver
[ 0.745603] ehci-orion: EHCI orion driver
[ 0.749794] orion-ehci d0050000.usb: EHCI Host Controller
[ 0.755253] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[ 0.763037] orion-ehci d0050000.usb: irq 33, io mem 0xd0050000
[ 0.796228] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[ 0.803009] hub 1-0:1.0: USB hub found
[ 0.807488] hub 1-0:1.0: 1 port detected
[ 0.812386] usbcore: registered new interface driver usb-storage
[ 0.819136] rtc-mv d0010300.rtc: registered as rtc0
[ 0.824075] rtc-mv d0010300.rtc: setting system clock to 2023-02-11T05:32:40 UTC (1676093560)
[ 0.832833] i2c_dev: i2c /dev entries driver
[ 0.867030] orion_wdt: Initial timeout 257 sec
[ 0.872019] sdhci: Secure Digital Host Controller Interface driver
[ 0.878307] sdhci: Copyright(c) Pierre Ossman
[ 0.882890] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.899935] marvell-cesa d0090000.crypto: CESA device successfully registered
[ 0.908198] NET: Registered PF_INET6 protocol family
[ 0.915769] Segment Routing with IPv6
[ 0.919651] In-situ OAM (IOAM) with IPv6
[ 0.923684] NET: Registered PF_PACKET protocol family
[ 0.929506] 8021q: 802.1Q VLAN Support v1.8
[ 0.933829] Registering SWP/SWPB emulation handler
[ 1.126206] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 1.137086] ata1.00: ATA-9: ST4000DM000-1F2168, CC54, max UDMA/133
[ 1.143315] ata1.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 1.156910] ata1.00: configured for UDMA/133
[ 1.161693] scsi 0:0:0:0: Direct-Access ATA ST4000DM000-1F21 CC54 PQ: 0 ANSI: 5
[ 1.171438] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 1.179282] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 1.185589] sd 0:0:0:0: [sda] Write Protect is off
[ 1.190480] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.190654] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.239134] sda: sda1 sda2 sda3 sda4 sda5 sda6
[ 1.245663] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.676202] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 1.687076] ata2.00: ATA-9: ST4000DM000-1F2168, CC54, max UDMA/133
[ 1.693303] ata2.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 1.706884] ata2.00: configured for UDMA/133
[ 1.711647] scsi 1:0:0:0: Direct-Access ATA ST4000DM000-1F21 CC54 PQ: 0 ANSI: 5
[ 1.721336] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 1.729184] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 1.735272] sd 1:0:0:0: [sdb] Write Protect is off
[ 1.740155] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.740322] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.810101] sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
[ 1.816690] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 7.066577] armada-370-pinctrl d0018000.pin-ctrl: unsupported function gpo on pin mpp2
[ 7.074558] pinctrl core: failed to register map default (0): invalid type given
[ 7.083388] UBI: auto-attach mtd1
[ 7.086802] ubi0: attaching mtd1
[ 8.702302] ubi0: scanning is finished
[ 8.718110] ubi0: attached mtd1 (name "ubi", size 480 MiB)
[ 8.723658] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 8.730642] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 8.737499] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 8.744503] ubi0: good PEBs: 3832, bad PEBs: 8, corrupted PEBs: 0
[ 8.750647] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 8.757924] ubi0: max/mean erase counter: 23/11, WL threshold: 4096, image sequence number: 2113268021
[ 8.767296] ubi0: available PEBs: 0, total reserved PEBs: 3832, PEBs reserved for bad PEB handling: 72
[ 8.777231] ubi0: background thread "ubi_bgt0d" started, PID 363
[ 8.784236] block ubiblock0_0: created from ubi0:0(rootfs)
[ 8.789816] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 8.802174] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 8.812305] Freeing unused kernel image (initmem) memory: 1024K
[ 8.827776] Run /sbin/init as init process
[ 8.831905] with arguments:
[ 8.831911] /sbin/init
[ 8.831917] 2
[ 8.831923] with environment:
[ 8.831928] HOME=/
[ 8.831933] TERM=linux
[ 9.089259] init: Console is alive
[ 9.092950] init: - watchdog -
[ 9.467013] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 9.595221] SGI XFS with security attributes, no debug enabled
[ 9.652341] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 9.663732] init: - preinit -
[ 10.368958] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.457064] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.651414] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.830751] mvneta d0074000.ethernet eth0: PHY [d0072004.mdio-mii:00] driver [Marvell 88E1318S] (irq=POLL)
[ 10.840881] mvneta d0074000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 13.040624] UBIFS (ubi0:1): Mounting in unauthenticated mode
[ 13.061184] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 488
[ 13.126144] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 13.134080] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 13.144066] UBIFS (ubi0:1): FS size: 471715840 bytes (449 MiB, 3715 LEBs), max 3730 LEBs, journal size 23617536 bytes (22 MiB, 186 LEBs)
[ 13.156426] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 13.163082] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 97C6AC77-839D-43B4-AA8C-79979DA6D4F5, small LPT model
[ 13.175785] mount_root: overlay filesystem has not been fully initialized yet
[ 13.183716] mount_root: switching to ubifs overlay
[ 13.528201] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 13.622383] procd: - early -
[ 13.625463] procd: - watchdog -
[ 14.236319] procd: - watchdog -
[ 14.239871] procd: - ubus -
[ 14.281013] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.294418] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.304070] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.313550] procd: - init -
[ 15.005370] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.113872] urngd: v1.0.2 started.
[ 15.226453] gpio-fan gpio_fan: GPIO fan initialized
[ 15.315661] random: crng init done
[ 15.319180] random: 27 urandom warning(s) missed due to ratelimiting
[ 15.408954] PPP generic driver version 2.4.2
[ 15.416807] NET: Registered PF_PPPOX protocol family
[ 15.451590] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 23.928116] mvneta d0074000.ethernet eth0: PHY [d0072004.mdio-mii:00] driver [Marvell 88E1318S] (irq=POLL)
[ 23.953931] mvneta d0074000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 23.988511] br-lan: port 1(eth0) entered blocking state
[ 23.993805] br-lan: port 1(eth0) entered disabled state
[ 23.999473] device eth0 entered promiscuous mode
[ 27.147164] mvneta d0074000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 27.155273] br-lan: port 1(eth0) entered blocking state
[ 27.160581] br-lan: port 1(eth0) entered forwarding state
[ 27.196152] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
LK