[BPI-R64] sata activate

Tell me please! How to make the hard drive (sata) work on BPI-R64 OpenWrt? which modules to add to the assembly?

Afaik you need to enable sata in dts and disable pcie1,because they share same pcie-port on soc

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts#n500

status=“ok”

Also on sata-phy

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts#n220

status=“disable”

maybe asm_sel needs to be set to output-low, have done all 3 and see my connected hdd

sata.patch (635 Bytes)

root@bpi-r64:~# cat /proc/partitions                                            
major minor  #blocks  name                                                      
                                                                                
 179        0    7634944 mmcblk0                                                
 179        1     262144 mmcblk0p1                                              
 179        2    7105536 mmcblk0p2                                              
 179       24   31166976 mmcblk1                                                
 179       25     262144 mmcblk1p1                                              
 179       26    7105536 mmcblk1p2                                              
   8        0  732574584 sda                                                    
   8        1     307200 sda1                                                   
   8        2     614400 sda2                                                   
   8        3     131072 sda3                                                   
   8        4   52068289 sda4                                                   
   8        5     358400 sda5                                                   
   8        6   15728640 sda6                                                   
   8        7  227866624 sda7                                                   
   8        8  414515200 sda8                                                   
   8        9   20981760 sda9

Thanks !!! done!!! here is a link to the assembly with a working image OpenWrt with support for HDD. https://drive.google.com/drive/folders/1VQ7e4uyw4oTB1whDGXAPrhgnJZW3fM3U?usp=sharing