Hi, I got a RockPro64 on 21.02.1 with a PCIe to SATA (2 ports) Controller.
I already know that this card works because I got a Debian on the eMMC, and OpenWrt is on the SD card.
The card is recognized, but no disks are.
Here is the output of lsblk
root@OpenWrt:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 1.8G 0 disk
├─mmcblk0p1 179:1 0 16M 0 part
└─mmcblk0p2 179:2 0 104M 0 part /
And lspci
root@OpenWrt:~# lspci
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3399 PCI Express Root Port
01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
I tried with 1 and 2 drives attached (they are in RAID 1) with no success.
If you have any idea to make this card works, please let me know.
My first guess would be that you haven't installed the necessary kernel modules (kmod-ata-ahci) for your PCIe SATA controller (it's not a default device, so OpenWrt doesn't have it preinstalled).
E.g. (from an x86_64 system):
$ lspci -knn
[…]
04:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 02)
Subsystem: ASRock Incorporation Motherboard [1849:0612]
Kernel driver in use: ahci
Kernel modules: ahci
I'm going to guess that you probably need a newer kernel (ie try using trunk), there have also been a few reports (in general) that the card you're using (I'm guessing you got it from Pine64) may be a bit unstable in SATA3 (600) mode but reliable in SATA2 (300) but that wouldn't affect overall detection.
..also, keep in mind that if you're powering the HDDs off the board it's only meant for 2.5" HDDs (or SSDs) and a pretty beefy PSU (4A+) as 3.5" draws too much current (power).