BPI-R3 howto restart on emmc

Hi,

After extending the data partition on the emmc, I tried to upgrade from 23.5.3 to 24.10. It failed and left me in recovery mode (RAMFS).

I was not able to recover from this, so I started to suspect the emmc, and wanted to recreate is completely. I suspected the data partitions (in my case p5 and 6) and deleted them, but did not find a way to recreate them, so I wanted to start over, as it is a new device), but with keeping the nand config, as this is the only working part right now.

How can I prepare the mmc for transferring a new openwrt version (boot, data, all what is needed).

So I want to remove all data in order to start over. In the Openwrt thread about this board I asked this too, but it looks like this has never been done before. I hope you can tell me what needs to be done in preparation (cfdisk, parted, using the nand version) and transferring the Openwrt version, preferably using a USB stick to dd the data. I want to keep the nand before loosing that too (nand is on 23.05.5 and is my only routed way out now).

Thanks for your help!

Hi,

No one having a suggestion for me?

You can boot from nand with emmc enabled and clean partitions on emmc with fdisk or parted. After that i would start install beginning with sdcard

But this would mean deleting the nand and that is what I am trying to prevent. Or am I misinterpreting you? Or do you mean having an usb key while booted to nand and create the partitions (how to create the partitions and fill them with the appropiate data, is there a manual method?)?

I mean only delting partitions from nand. You can try reinstall from nand again,but then you have to try upgrade again which may fail again. So i would do complete reinstall of new openwrt. And because openwrt emmc install is done through copy of parts from nand and not from image file you need actual openwrt on nand to install emmc.

So it is not possible to manually create the partitions and copy the needed data from the usb key, when booted from nand?

That would be the logical way for me, given the resources available (and then I would be able to test new or old).

Maybe it is possible but much more manual work. Look in the builtin env for r3 nand in openwrt source to see the steps.

Are you referring to this page? https://openwrt.org/toh/sinovoip/bananapi_bpi-r3

I could not find what I was looking here.

Or do you have another source? I don´t mind getting the hands dirty, but I need some example to work with, to get me up to speed…

I mean sourcecode from openwrt… somewhere here:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch;hb=HEAD#l700