Hi, I have Banana Pi BPI-R3 v.1.1 and I am trying to use it with m.2-to-sata converer board below:
M.2 To SATA 3.0 Riser Card M2 M-KEY PCI-E Expansion Card 5/6 Port SATA3.0 Converter for NVME NGFF To SATA SSD Adapter Card 6Gbps https://www.aliexpress.com/item/1005006160789183.html?spm=a2g0o.order_list.order_list_main.15.531a1802r4Aiuy Chip ASM1166(maybe)
To do so I am trying to compile OpenWRT (branch v24.10.0), although I way far from an expert in the area. I’ve tried also branch v23.05.0, but I was getting some kernel incompatibility errors when I was loading kmod-(s)ata-ahci.
Here is my config file ( config (16.2 KB) ). I created it by combining <OpenWRT (branch v24.10.0)>/target/linux/mediatek/filogic/config-6.6 and diffconfig_mt7986 from this thread (BPi-R3 + OpenWRT: what's the best way to use the rest of my space on my SD card? - #11 by 0xKruzr)
The compilation steps I follow ([OpenWrt Wiki] Build system usage):
cd <path>/openwrt
git checkout v24.10.0
./scripts/feeds update -a
./scripts/feeds install -a
#copy my .config file to <path>/openwrt
make menuconfig
make -j$(nproc) kernel_menuconfig
make -j$(nproc) defconfig download clean world
When Banana Pi BPI-R3 boots with the compiled image, I need to provide power to the sata drives via > 12V/5V XH2.54 connector. To do so I have to set GPIO8, like so:
> cat /sys/class/gpio/gpiochip*/base | head -n1
512
#and sum the base to your GPIO: 512 + 8 = 520
echo "520" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio229/direction
echo "1" > /sys/class/gpio/gpio229/value
I can hear the disk starts rotating now.
But no block device is detected by the system: fdisk -l shows nothing dmesg shows nothing
The most interesting: lspci shows nothing.
Once after installing any modules and packages I came across in discussions in internet, I was able to see /dev/sda. But, again, it was not detected by fdisk and lspci still showed nothing.
Can anyone give me a hand with this? Thank you.