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.
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.
I installed kmod-ata-ahci, as suggested. This is the entire list list of packages I have at the moment
package_list.txt (2.6 KB)).
Unfortunately these don’t help - the m2-sata convertor board still does not work. On boot its LEDs flash briefly and that’s the only sign of life I get.
After last experiments, I think the issue is not in the software(OpenWRT version) but in the hardware. I think I am using incompatible m.2-to-sata convertor.
It is however also an ASM1166 card. So the other has something on the pcb that is not compatible. Anyway, good to know that the ASM1166 also works on the R3.
Perhaps you can take a bit more time and help us to complement this:
I put file “mt7986a-bananapi-bpi-r3-sata.dtso” provided by frank-w in “target/linux/mediatek/dts/”.
This does not seem to affect the build. So I inspected how “mt7986a-bananapi-bpi-r3-respeaker-2mics” is added, and created a patch for sata (target/linux/mediatek/patches-6.6/865-arm64-dts-mt7986-add-sata-for-bpi-r3.patch):
Now the build seems to detect it, because it started to fail .
But I can’t find the reason for the crash. It seems the mkimage command is given wrong arguments and that there is some overlap (line 2241
install.txt (159.5 KB)
):
External offset 1000 overlaps FIT length 2000
Error: Bad parameters for FIT image type
Could you please give me some hints on how to solve this?