I’m encountering a problem on the BPI-R3 Mini while trying to back up the BL2 region of the SPI-NAND. When using sf read at any RAM address, the CPU triggers a Synchronous Abort, and the system resets. This happens even when splitting the read into smaller chunks.
I have bought an BPI-R3 mini, and I want to use it with my own compiled OpenWRT. At this moment, the device has the stock 21.05 SNAPSHOT version on the NAND and something on the EMMC. I have followed the tutorial, and the result is always the same, after the power remove, switch to EMMC boot this screen is welcome me in serial port, after the uboot menu:
So you try to boot mainline openwrt from emmc after installing it with mainline instructions from pre-installed bpi-image on nand,right?
Looks like the fit does not contain the config name which is taken by the script. Either the fit image has changed or the script for booting specific configuration.
You can list your env variables with printenv. For available configurations i only know dumpimage in linux,but no uboot command. Afaik openwrt loads fit image itself from a storage block and not as file from partition you can only try get offset and size of fit from uboot and write this to file after booting linux.
this is the config-name which seems to be taken…but i do not know where openwrt creates the fit which has to include this config
seems like fit is loaded this way:
looks like there is a partition production where all is loaded from and than a fit is extracted from it
fit itself seems to be created from here:
have you a production partition on emmc and executed these steps with the r3mini (not R3) files?
I’ve made a mistake at first time. At the first time Unfortunetly i was Inattentive, and i write the simple r3 Images, not the r3-mini. Is it problem? Since then i have wrote the r3-mini Images several time, but the result is the same every time.
the fip has to match the sysupgrade/recovery part. so if you flashed complete image for r3 you have to replace at least fip and the files above with r3mini files
you can check what’s in you r uboot environment set, if this is the right bootconf
I haven’t renamed anything. How can I restart the whole procedure from the start? I found the tutorial how can restore the default NAND layout, but nothing about EMMC. Is it possible to restore the default EMMC layout? Here is the EMMC layout now:
Okay! It works! Now I have 21.05-SNAPSHOT on NAND and EMMC too. So lets start again. I boot into NAND, and follow the instructions here, but now the correct images from 24.10.4 downloads:
Thank You very much! Everything is okay, my EMMC has the latest 24.10.4 In the future, if i want to upgrade i can do it from luci menu with the sysupgrade package right? And how can I use the whole size of EMMC? At this momet I see only this:
You should check your nand again after flashing mainline openwrt. Maybe it breaks it too as downstream openwrt uses the properitary nmbm layer. Consider install openwrt 24.10 to nand too.
For using full emmc size there are many threads here,not sure which way is working but this is a common limitation of openwrt which is tricky to fix due to the filesystem structure (r/o rootfs + squashfs/overlay).
root@BananaPI_BPI-R3_Mini:/tmp# mtd write /tmp/openwrt-*-bananapi_bpi-r3-mini-sn
and-preloader.bin /dev/mtd0
Could not open mtd device: /dev/mtd0
Can't open device for writing!
root@BananaPI_BPI-R3_Mini:/tmp#