OK - I got the BPI-R3 booting fine via the SD -> NAND -> eMMC winding path.
So far so good. However I started adding packages before realizing just how limited the eMMC partition is.
I have an M.2 NVMe card on order - however, the eMMC partition is flat full. I added the gcc package and it couldn't complete due to lack of disk space.
So, I'm trying to wipe the eMMC partition so I can start again. And then move to the M.2 NVMe.
Using the DIP switches, I can boot back on the SPI-NAND. First I just used the u-boot menu to install the bootloader etc to the eMMC (like the first time). While I can boot to eMMC after that - the image is clearly borked and I still don't have any extra disk space.
So the question is, how do I fully wipe/reformat the eMMC partition so that I can re-install the image? The U-Boot console seems to be the most likely place - but not sure where to start.
You should be able to do this the typical Linux way. If you boot into the image on NAND and have the eMMC enabled, it will show up as a normal block device (usually /dev/mmcblk0) and be accessible the same as any other disk device would in Linux. From there, you can repartition or wipe using your preferred tools. Personally, if the data present right now isn't viable, I'd simply use dd and fill the eMMC with zeros. From there, you can reboot and install as if it were fresh.
Though, I have yet read any of the ways to so, noob friendly.
Or, that worked for me, and then I have to perform manual reinstall all over, reset packages, configs, the whole thing...
Do you have a preferred method, or link?
I would love to do this, as my eMMC is almost full.
I also seem to read, that the BPI-R3 cannot use ext4?
I don't know why though.
It‘s been a while, since I setup my bpi r3. But first of all, we need to solve your space problem. I think the easiest way, would be the get the sqashfs factory image from openwrt.org. Then head to: system/ firmware upgrade in luci and install the image. If I remember right, luci puts the image in /tmp, which is a ram disc. After the reboot everything should be fine again. On the fresh install, install cfdisk. With it just resize /dev/mmcblk0p5 to occupy the remaining free space and reboot afterwards. After the reboot you should have 8GB space available.
Edit: the post was saying: resize /dev/mmcblk0p66 before, which is wrong. I posted the correct procedure below.
Thanks!
I will try this.
It maybe a little bit of time, as I am currently using this device as my "production" device, and my family will kill me for interrupting their service.
Thanks for the update.
It looks like I have to start over, as I can't login via ssh, nor url.
Shrug, it's okay, I already swapped gateways on the pfsense box, and took the BPI-R3 off the network, so, all is good there.
I will now start over and try this again...
Getting there - after following a variation - /dev/mmcblk0p6 was originally listed as "Free space" of 7.1G. I navigated down and chose [New] - then wrote quit and rebooted.
Now I have:
You don‘t need to use extroot. Just resize mmcblk0p5 as I said. Don‘t format it, just reboot afterwards and your overlay will have the full available size of approximately 7.2 GB shown in my screenshot.
Wow, so the firmware selector seems to broken, for now, I set up the environment in debian to build, and cannot find the cfdisk option, argh...
Really hate having to poke around in the make menuconfig, takes waay tooo loong...
I see, I will need to have a look at my r3 tomorrow. It’s been a while, since I set it up. But as it is my productive router, I can not try everything out myself.