SATA drives mounting issues with Armbian Jammy rolling release

So I installed Armbian Jammy rolling release kernel 6.1.43 on my Rock 5 ITX. I connected 4 SATA SSD drives to the board but the system simply doesn’t see the drives. I booted the board using the Radxa Bullseye image as well as the Armbian Trixie rolling release and they saw and mounted the drives without any issues.

What can I do to fix this?

Check what driver radxa’s debian is using, and check if armbian has that driver enabled.

I don’t have sata disk to test. But from output of dmesg|grep ata I can see a lot of sata related logs. And from lspci -v I can see ASMedia SATA Controller. You can compare dmesh of working and not working images to see what’s the difference.

It turns out that the issue is with kernel 6.1 that I was using in Armbian Jammy, Armbian Trixie as well as JR Ubuntu Noble.

It was really not worth the time and effort to hunt for drivers, etc… I went back to the Radxa’s latest build of Debian Bullseye with KDE 5. It works correctly mounting the drives and running Plex Media and Shinobi servers.

1 Like

I have a similar issue. It randomly works with Armbian Jammy and kernel 6.1, but most of the time the SATA controller isn’t recognized / initialized.

Which distribution / kernel combo is working for you?

I’m using Radxa’s latest build with 5.10.xxx kernel and KDE but I think any distribution with 5.10 kernel will work.

1 Like

I ended up going back to 5.10 (Armbian Bookworm minimal) and compiling my own zfs. Rough instructions:

Have the same issue with my three boards. All the boards do not work stable with SATA SSD or HDD it doesn’t matter. I checked all the stable releases from Armbian site with no positive result. Eventually, I desoldered SPI flash with FW of ASM1164 and nothing happened - the controller worked as usual fifty-fifty. It seems, there is not proper firmware for ASM1164

I am going to flash SPI for ASM1164 with last firmware from Asmedia, I hope it will work

Update after two weeks: the problem was with kernel 6.1. With kernel from Radxa everything is ok, integrated PCIe/SATA bridge works well

We find that the issue of SATA drives not detected is caused by Kernel PCIe driver.
You can see this PR. https://github.com/armbian/linux-rockchip/pull/221
The PR is merged as well.

And the newer OS, https://github.com/armbian/os/releases/download/24.8.0-trunk.585/Armbian_24.8.0-trunk.585_Rock-5-itx_noble_vendor_6.1.75_gnome-kisak_desktop.img.xz, is available.

1 Like

I’m not sure if this is related to the OPs sata problems, but I have similar issues. I am testing a newly arrived board with 24gb memory and booting Armbian Noble 24.04 from a NVMe. The sata controller init randomly completes between reboots. Somes times the drives are seen other times they are not. The drives are: /dev/sda:

Model=SanDisk SSD PLUS 120 GB, FwRev=UE4500RL, SerialNo=180510A00C5C
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=unknown, MaxMultSect=1, MultSect=off
(maybe): CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234455040
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-4,5,6,7

  • signifies the current active mode

/dev/sdb:

Model=ST2000DX002-2DV164, FwRev=CC41, SerialNo=Z4Z7A8DR
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=3907029168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Reserved: ATA/ATAPI-4,5,6,7

  • signifies the current active mode

A quick scan through syslog for the word error on a boot when sata fails gives:

2024-10-13T05:51:48.641104+01:00 rock-5-itx kernel: fiq_debugger fiq_debugger.0: error -ENXIO: IRQ fiq not found 2024-10-13T05:51:48.641105+01:00 rock-5-itx kernel: fiq_debugger fiq_debugger.0: error -ENXIO: IRQ wakeup not found 2024-10-13T05:51:48.641505+01:00 rock-5-itx kernel: dw-pcie: probe of fe180000.pcie failed with error -22 2024-10-13T05:51:48.641507+01:00 rock-5-itx kernel: dw-pcie: probe of fe150000.pcie failed with error -22 2024-10-13T05:51:48.641511+01:00 rock-5-itx kernel: dw-pcie: probe of fe160000.pcie failed with error -22 2024-10-13T05:51:48.641513+01:00 rock-5-itx kernel: dw-pcie: probe of fe170000.pcie failed with error -22 2024-10-13T05:51:48.642538+01:00 rock-5-itx kernel: optee: probe of firmware:optee failed with error -22 2024-10-13T05:51:48.642747+01:00 rock-5-itx kernel: dw-pcie: probe of fe190000.pcie failed with error -22 2024-10-13T05:51:48.642936+01:00 rock-5-itx kernel: mpp_rkvenc2 fdbd0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found 2024-10-13T05:51:48.642963+01:00 rock-5-itx kernel: mpp_rkvenc2 fdbe0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found 2024-10-13T05:51:48.642993+01:00 rock-5-itx kernel: rockchip-vop2 fdd90000.vop: error -ENODEV: _opp_set_regulators: no regulator (vop) found 2024-10-13T05:51:48.643743+01:00 rock-5-itx kernel: ahci: probe of 0001:11:00.0 failed with error -5 2024-10-13T05:53:34.096443+01:00 rock-5-itx kernel: fiq_debugger fiq_debugger.0: error -ENXIO: IRQ fiq not found 2024-10-13T05:53:34.096444+01:00 rock-5-itx kernel: fiq_debugger fiq_debugger.0: error -ENXIO: IRQ wakeup not found 2024-10-13T05:53:34.096747+01:00 rock-5-itx kernel: dw-pcie: probe of fe180000.pcie failed with error -22 2024-10-13T05:53:34.096749+01:00 rock-5-itx kernel: dw-pcie: probe of fe150000.pcie failed with error -22 2024-10-13T05:53:34.096757+01:00 rock-5-itx kernel: dw-pcie: probe of fe160000.pcie failed with error -22 2024-10-13T05:53:34.096764+01:00 rock-5-itx kernel: dw-pcie: probe of fe170000.pcie failed with error -22 2024-10-13T05:53:34.097660+01:00 rock-5-itx kernel: optee: probe of firmware:optee failed with error -22 2024-10-13T05:53:34.098251+01:00 rock-5-itx kernel: dw-pcie: probe of fe190000.pcie failed with error -22 2024-10-13T05:53:34.098439+01:00 rock-5-itx kernel: mpp_rkvenc2 fdbd0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found 2024-10-13T05:53:34.098467+01:00 rock-5-itx kernel: mpp_rkvenc2 fdbe0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found 2024-10-13T05:53:34.098494+01:00 rock-5-itx kernel: rockchip-vop2 fdd90000.vop: error -ENODEV: _opp_set_regulators: no regulator (vop) found

Additionally, when I power down the ITX board my ATX PSU does not switch off.

The link https://github.com/armbian/os/releases/download/24.8.0-trunk.585/Armbian_24.8.0-trunk.585_Rock-5-itx_noble_vendor_6.1.75_gnome-kisak_desktop.img.xz

Gives a 404 error

I’m running Armbian server image headless.
Uname -> Linux rock-5-itx 6.1.75-vendor-rk35xx #1 SMP Wed Aug 21 11:45:59 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Is there a fixed updated kernel for that?

The bottom line is that it is an issue in the 6.1 kernel branch and of this moment there’s no fix for this. I ended up going back to the 5.xx kernel branch.