Odroid HC4: SATA disk access fixed following linux-image-current-meson64_26.02.0-trunk-dietpi3 update

This is now merely for info: I was preparing a bug report after ‘linux-image-current-meson64_26.02.0-trunk-dietpi2’ update caused an issue (on Monday 12th). The update effectively broke the NAS, since SATA disks became inaccessible.
Investigated yesterday: prepared a separate Armbian SD - worked fine; ultimately, I reverted DietPi to use ‘linux-image-current-meson64_26.02.0-trunk-dietpi1.deb’, as a work-around.

Confirming that today’s ‘linux-image-current-meson64_26.02.0-trunk-dietpi3’ update has restored operation.

For info:
With linux-image-current-meson64_26.02.0-trunk-dietpi2, ‘lsblk’ did not identify the SATA disks; ‘lspci’ showed the IDE interface missing ‘Flags’ and ‘Capabilities’ info:

01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 Serial ATA Controller (rev 02) (prog-if 85 \[PCI native mode-only controller, supports bus mastering\])
Subsystem: ASMedia Technology Inc. Device 1060
!!! Unknown header type 7f
I/O ports at 1010 \[size=8\]
I/O ports at 1010 \[size=8\]
I/O ports at 1020 \[size=4\]
I/O ports at 1018 \[size=8\]
I/O ports at 1024 \[size=4\]
I/O ports at 1000 \[size=16\]
Memory at fc700000 (32-bit, non-prefetchable) \[size=512\]
Expansion ROM at fc800000 \[virtual\] \[disabled\] \[size=64K\]
Kernel driver in use: ahci
Kernel modules: ahci, pata_acpi

With linux-image-current-meson64_26.02.0-trunk-dietpi1 or the current linux-image-current-meson64_26.02.0-trunk-dietpi3, lsblk reports the disks and lspci shows:

01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 Serial ATA Controller (rev 02) (prog-if 85 [PCI native mode-only controller, supports bus mastering])
Subsystem: ASMedia Technology Inc. Device 1060
Flags: bus master, fast devsel, latency 0, IRQ 27
I/O ports at 1010 [size=8]
I/O ports at 1020 [size=4]
I/O ports at 1018 [size=8]
I/O ports at 1024 [size=4]
I/O ports at 1000 [size=16]
Memory at fc700000 (32-bit, non-prefetchable) [size=512]
Expansion ROM at fc800000 [virtual] [disabled] [size=64K]
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, IntMsgNum 0
Capabilities: [100] Virtual Channel
Kernel driver in use: ahci
Kernel modules: ahci, pata_acpi

Regards, Pete.

reference Odroid HC4 does not recognize SATA-driver after installing new kernel 6.18.5-current-meson64? · Issue #7901 · MichaIng/DietPi · GitHub

Thanks - I don’t know how I missed that!

Nice! that was what I was talking yesterday on another thread, glad it was fixed!