In my BPI-R4-Lite I have a NVMe card (CN13) and an Intel WiFi card (CN11) in the two mini PCIe slots
The BPI-R3-Lite docs (Banana Pi BPI-R4 Lite design with Mediatek MT7987 chip | BananaPi Docs) shows two SD Card images for 24.10
- OpenWRT-24.10 MT76 OpenSource wifi driver wifi SDK for BE14000 Wifi Card (1 PCIE,2 Lane)
- OpenWRT-24.10 MT76 OpenSource wifi driver wifi SDK (2 PCIE, both have 1 Lane)
I have installed the image from link #2 and it shows the NVme card as well as WiFi cards in CN13 and CN11 respectively. However, this image is standalone with no repos to add other packages (not useful to me)
Given that 25.12.0 supports BPI-R4-Lite, I built a 25.12.0 RC5 SD card image but it defaults to 1 PCIE, 2 Lanes. The NVMe card (CN13) is detected but the WiFi card (CN11) is not.
Search shows that to enable 2 mini PCIe slots with 1-lane each, one must use the mt7987a-bananapi-bpi-r4-lite-2pcie-1L device tree overlay. This overlay configures the MT7987 SoC to split the PCIe interface into two independent 1-lane ports (PCIE0 and PCIE1), enabling both mPCIe slots (CN11 and CN13).
No specific kernel config is needed — the PCIe layout is defined entirely by the device tree. The OpenWrt build must have the correct device tree blob (mt7987a-bananapi-bpi-r4-lite-2pcie-1L.dtb).
However, the official image builder tar ball has the 1 PCIe, 2 Lane device tree blob only.
./target-aarch64_cortex-a53_musl/linux-mediatek_filogic/image-mt7987a-bananapi-bpi-r4-lite.dtb
Where do I find or how to do I create a device tree blob for 2PCIe,1Lane (mt7987a-bananapi-bpi-r4-lite-2pcie-1L.dtb)?
The person who built the 24.10 images, please share the procedure on how you built the 2PCI, 1Lane image.
Thanks for your help.