09-09-2018, 12:02 PM
I have been able run a sata card based on Marvell 88SE9230, with 4 ports.
Kernel:
Linux rockpro64 4.18.0-rc8-1060-ayufan-g45828c4db727 #1 SMP PREEMPT Thu Aug 9 19:41:21 UTC 2018 aarch64 GNU/Linux
To get the rp64 I had to manually bind the ahci driver to the pcie card, adding a udev rule:
I have only tried with one drive yet, the second one is on its way
Kernel:
Linux rockpro64 4.18.0-rc8-1060-ayufan-g45828c4db727 #1 SMP PREEMPT Thu Aug 9 19:41:21 UTC 2018 aarch64 GNU/Linux
Code:
01:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11) (prog-if 01 [AHCI 1.0])
Subsystem: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller
Flags: bus master, fast devsel, latency 0, IRQ 231
I/O ports at 0000
I/O ports at 0000
I/O ports at 0000
I/O ports at 0000
I/O ports at 0000
Memory at fa010000 (32-bit, non-prefetchable) [size=2K]
Expansion ROM at fa000000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Express Legacy Endpoint, MSI 00
Capabilities: [e0] SATA HBA v0.0
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: ahci
To get the rp64 I had to manually bind the ahci driver to the pcie card, adding a udev rule:
Code:
root@rockpro64:~# cat /etc/udev/rules.d/99-marvell.rules
RUN+="/bin/bash -c 'echo 0000:01:00.0 > /sys/bus/pci/drivers/ahci/bind'"
I have only tried with one drive yet, the second one is on its way