We have OpenWrt images and install scripts for the BPI-R4 Lite (MT7987A, BE14 Wi-Fi 7 card), tested on a real board: SD card → NAND → eMMC.
Direct downloads:
- SD card image – flash with Etcher, boots on its own
- Whole NAND image – BL2 + UBI with U-Boot, its environment and the system
- Whole eMMC image – GPT, BL2, U-Boot, system
The NAND and eMMC images are what the install scripts write; you do not need to download them by hand unless you want to.
Release – all files and checksums · Full guide (README, Part L)
How they are built: upstream OpenWrt 25.12 (Linux 6.12) plus the MediaTek SDK (mtk-openwrt-feeds) for the full Wi-Fi 7 stack, with LuCI and Docker. Everything below about Ethernet and the ports concerns builds on the MediaTek SDK – plain upstream OpenWrt is not affected. One image for every Lite: without the Wi-Fi card it simply runs as a wired router, and it fits the 256 MB NAND.
Boot switch SW3
| Boot from | SW3 (A B C D) |
|---|---|
| SD card | 0000 |
| NAND | 1001 |
| eMMC | 1101 |
A B choose the boot medium. C chooses the SPI flash (0 = NAND; the NOR position is the same chip select, and the Lite carries NAND). D switches the shared SD/eMMC controller (0 = SD card, 1 = eMMC) – with D=0 while booting from NAND, the SD card stays attached.
Install in short
- Flash
…-bpi-r4-lite-sdcard.img.gzwith Etcher, SW3 =0000, WAN cable in,ssh [email protected]. /root/install-dir/install-nand.sh→ power off, SW3 =1001, power on.- Optional:
/root/install-dir/install-emmc.sh(from NAND) → SW3 =1101.
The USB-C port marked DEBUG is a USB serial console on the board (115200) – handy, but not needed for the steps above.
Why Ethernet may not come up on MediaTek SDK builds
Builds that use the MediaTek SDK (mtk-openwrt-feeds, for the Wi-Fi 7 stack) replace upstream OpenWrt’s Lite device tree with MediaTek’s own. That one takes the Ethernet MAC addresses and the Wi-Fi calibration from a UBI volume called factory on the SPI-NAND – and U-Boot adds this NAND part of the device tree also when you boot from SD or eMMC. The boards come without that data (the factory NAND area and the EEPROM are empty), so the volume is missing and the Ethernet driver waits for it forever: no eth0/eth1, no LAN, no WAN – dmesg only says 15100000.ethernet: deferred probe pending. The Wi-Fi driver then crashes in its error path. Plain upstream OpenWrt does not have this problem.
Our images read nothing from that volume, as on the BPI-R4. The LAN and WAN MAC addresses come from the chip ID in the SoC eFuse, so a board keeps the same addresses on SD, NAND and eMMC and after every reinstall.
Two smaller things we fixed: the MediaTek device tree names the ports lan0–lan3, sfp0 and WAN eth1, while the default network config expects lan1–lan4 and wan (so lan0 and the SFP were not in the LAN bridge and WAN never came up); and after a kernel crash U-Boot only tried a recovery image the NAND does not have and stopped at its prompt – ours falls through to the normal boot.
Feedback and test reports welcome.