I need a decent guide to install Openwrt on BananaPI-R2. There are just too many information in different places here that it becomes difficult to get a simple installation of openwrt on the EMMC drive of the BPI-R2 done. I also need to expand the /overlay partition after installation.
I can just tell you that the documentation is outdated. For example, this file: "bananapi_bpi-r2-sdcard.img.gz" was mentioned without giving the location to the file.
Here is the steps I followed:
If you have the prerequisites (Linux system, UART cable), try these instructions:
The steps a valid even with master or current 22.3 rc4 branches. I have a bananapi r2 on my own.
Good news: you have to fumble with SD-card and UART cable only once, after running the device from emmc you can simply upgrade using the itb file from ./bin/targets/mediatek/mt7623
Good luck!
Go
PS:
I tried also the images from openwrt.org (without transferring to emmc) but found the filesystem sizes too small for loading additional modules (VPN, Minidlna).
For master branch you should know as minidlna is broken because of missing dependencies
@Gotthard
Thanks very much for the link! I followed every step but I still arrived at the same situation: "cat /proc/mtd" was empty.
If I missed any step in the link above, it must be at the last step #14.
"you can easily transfer the card image to mmc using u-boot option “transfer from sd to mmc” during reboot (with serial connection only)"
I didn't find any option in the uboot that says "transfer from sd to mmc" . Instead I select "Install bootloader, recovery and production to eMMC."
I removed ssd and reboot afterwards and boot into the emmc. There the "/proc/mtd" file was empty.
Thanks in advance.
cat /proc/mtd is also empty at my system. Maybe I have missed some kernel modules
You are right, the boot loader options has changed between the years, but you have selected the correct one (thta´s easy because of red marking). If you remove your sdcard after the transfer, system will boot from emmc (w/o option "transfer to emmc"). That should be enough proof of running from emmc.
In /dev I see some devices in relation to mmc
I still haven't been able to solve my problem. I tried the steps here: Expanding OpenWrt squashfs image? (SDcard) - #7 by hc62 to extend the /overlay, but after reboot, It indeed showed that my extra partition is mounted to the root directory, but it is not included in the overlay as expected from this command: "df /overlay /"
Any suggestion or help would be great.
In case it interests anyone, this question is still open. I seem not to find any solution around it. I don't understand why openwrt doesn't provide a proper guide on how to expand a file system (the /overlay directory)