Rpi5: SSD connected to "PCIe to 2-channel SATA" not detected

  • Hi, I recently purchased this HAT: https://www.waveshare.com/wiki/PCIe_TO_2-CH_SATA_HAT+ , connected it to my Rpi5/LibreELEC12.0.2 with my WD green sata disk attached but the disk is not detected. I am doing "ls /dev | grep sd" but I find no related /dev/sdX device . I have other 2 disks connected to usb, those are listed as /dev/sda and /dev/sdb BUT no other disk. Please help me find the reason why the disk is not being detected and fix the issue. Please note the following:

    1. lspci shows:

    Code
    0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 30)
    0000:01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
    0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 30)
    0001:01:00.0 Ethernet controller: Device 1de4:0001

    2. lshw shows:

    3. dmesg | grep pcie shows:

    4. I tried latest PiOS, it detects the disk as /dev/sdc ; was able to format and mount it

    I am not sure what "UNCLAIMED" means in the above listing or what else to run to find the problem. Any help or suggestion greatly appreciated.

  • Please update to LE 12.2.1 and provide a full log if it doesn't work

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    so long,

    Hias

  • Sure, I made a new LE12.2.1 card, I am using that to debug.

    Full log:

    https://paste.libreelec.tv/dashing-quagga.log

    dmesg:

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    lshw:

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    lspci:

    Code
    LibreELEC:~ # lspci
    0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
    0001:01:00.0 SATA controller: ASMedia Technology Inc. ASM1061/ASM1062 Serial ATA Controller (rev 01)
    0002:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
    0002:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

    All suggestions/ideas are welcome, thank you for your help!

  • Code
    Dec 14 07:45:23.313958 kernel: pci 0001:01:00.0: BAR 4 [io  size 0x0020]: can't assign; no space
    Dec 14 07:45:23.314046 kernel: pci 0001:01:00.0: BAR 4 [io  size 0x0020]: failed to assign
    Dec 14 07:45:23.314274 kernel: pci 0001:01:00.0: BAR 0 [io  size 0x0008]: can't assign; no space
    Dec 14 07:45:23.314378 kernel: pci 0001:01:00.0: BAR 0 [io  size 0x0008]: failed to assign
    Dec 14 07:45:23.314470 kernel: pci 0001:01:00.0: BAR 2 [io  size 0x0008]: can't assign; no space
    Dec 14 07:45:23.314537 kernel: pci 0001:01:00.0: BAR 2 [io  size 0x0008]: failed to assign
    Dec 14 07:45:23.314615 kernel: pci 0001:01:00.0: BAR 1 [io  size 0x0004]: can't assign; no space
    Dec 14 07:45:23.314708 kernel: pci 0001:01:00.0: BAR 1 [io  size 0x0004]: failed to assign
    Dec 14 07:45:23.314776 kernel: pci 0001:01:00.0: BAR 3 [io  size 0x0004]: can't assign; no space
    Dec 14 07:45:23.314863 kernel: pci 0001:01:00.0: BAR 3 [io  size 0x0004]: failed to assign

    The only thing that stands out(ish) to me is this ^ but I'm no expert on HAT boards or PCI things.

    Shortly after those messsages is Some PCI device resources are unassigned, try booting with pci=realloc so I would see if adding pci=realloc to kernel boot params in cmdline.txt does anything?

  • Please first update the bootloader (in LE12.2.1 go to Settings->LibreELEC->Update, scroll down to the end) and then test with a fresh installation of this image (leave config.txt alone for now):
    https://www.horus.com/~hias/tmp/libreelec/LibreELEC-RPi5.aarch64-13.0-devel-20251214122221-2bad22a.img.gz

    SATA support isn't enabled in our RPi images ATM, the above image adds that.

    If it doesn't work please again post a 'pastekodi' log.

    so long,

    Hias

  • Hi HiassofT , the sata disk is properly detected and mounted using the LE13 image you provided.

    lspci:

    Is there any way I can enable sata in older LE version (like 12.0.2 I am using, or at least latest 12). I can try building LE if necessary, I remember I did it years ago for an addon. I would need details about what to change, obviously your help again.

    Or is it waiting for the new 13 the only practical option at this time? I would keep v12 for a while longer if possible, for me moving to a new major version is always a lot of work (some addons don't work, new configs needed etc).

    Thank you so much for your help!

  • Hi chewitt , I added pci=realloc to cmdline.txt in LE12.2.1 and rebooted but unfortunately that changed nothing, sata was still unclaimed and the disk was not detected, clearly LE lacks support as HiassofT mentioned. Thank you for looking into this anyway!