The R64 is fully supported by mainline OpenWrt by now, no need to start off with outdated vendor-modified version of OpenWrt. You can follow the documentation on Build system setup regarding the prerequisites.
Then clone OpenWrt and launch menuconfig
git clone https://git.openwrt.org/openwrt/openwrt.git/
cd openwrt
scripts/feeds update
scripts/feeds install -a
make menuconfig
Then select R64 board and packages you would like:
A third option, like option 1 is to disable the current limiting by shorting pins 2 and 3.
i.e. using a 0 ohm Resistor for R217 the ISET.
This leaves the EN pin still functional so the reboot works.
I was successful with this approach.
Hello guys. It’s been some time since I tried to make use of BPI R64 and I fell off track. Could somebody fast forward me on recent updates regarding OpenWRT support?
Does mainline OpenWRT produce complete images for both SD and eMMC? Or I still need to extract the preloader, ATF and UBoot from BPI repository and then take compiled kernel and rootfs from OpenWRT and flash them manually?
Is it possible now to use squashfs or it’s still necessary to choose ext4 rootfs?
Are EEPROM patches for MT7615 and MT7622 still needed or you have found a way to place EEPROM in a file/on a partition?
The opposite is true now: There are only squashfs images, the same image can be used on SPI-NAND, eMMC and SD card for sysupgrade.
mt76 still doesn’t supper loading EEPROM for MT7622 built-in 802.11bgn WiFi in a meaningful way for this board, you will need to patch to load from file.
mt76 still doesn’t supper loading EEPROM for MT7622 built-in 802.11bgn WiFi in a meaningful way for this board, you will need to patch to load from file.
EEPROM can be flashed to SPI-NAND and mt76 can load it from there as intended:
afair load-code is only in “global” eeprom.c, chip-specific is only interpretion of fields…just try to apply my patch and place files in your filesystem. make sure mt76 is compiled as module.
Thank you for your wonderful job on making OpenWrt work.
However I’m stuck in a rather ridiculous situation: I’ve applied patches from @frank-w to load firmware from files, compiled OpenWrt, installed it on an SD card (and eMMC), have a working board with working WiFi, but it doesn’t have LUCI or uhttpd. Even though I’ve checked LUCI in menuconfig as a module.
Could you give some advice on where to dig further?
That’s the intended outcome then. If you want things to end up in the generated rootfs, you need to select them as * ie. built-in in OpenWrt’s menuconfig. Otherwise the build system will generate .ipk packages but will not install these packages in the generated image.
Hi Guys,
I have a question, does the BPI-R64 will work with the “OpenWrt-21.02”, where it uses the kernel 5.4. I tried it but wasn’t successful. An official branch of “OpenWrt-21.02”, when chosen BPI-R64 it doesn’t generate the img file, just sysupgrade bin file. When tried to upgrade with the bin file wasn’t successful. Could you guys point out how/which changes or patches needed to build OpenWrt-21.02 for BPI R64