Banana Pi R3 mini - dd: error writing '/dev/mmcblk0p4': No space left on device

Folks,

I picked up another Banana Pi R3 mini. Tried installing rooter firmware on eMMC (like my other one) and got this message when copying the files:

root@OpenWrt:/dev# dd if=/tmp/openwrt-mediatek-filogic-bananapi_bpi-r3-mini-initramfs-recovery.itb of=/dev/mmcblk0p4
dd: error writing '/dev/mmcblk0p4': No space left on device
4097+0 records in
4096+0 records out

Not sure how to fix this? I’ll search and see if I can find anything. If anyone has a suggestion, please let me know.

I can boot to NAND still. Thanks!

Eric

Got it fixed. I started over with the eMMC install and after the first step I powered the R3 mini off, powered it back on, powered it off, booted it to eMMC, powered it off, booted it to NAND, then re-installed to eMMC and it came up.

Eric

I just got this same error I tried what had worked for you however no luck for me. Does any one know the root cause?

It looks like your file ist too big for this partition. Please check (e.g. with fdisk) if it is the right partition (my image use 5/6 for boot and root,but openwrt may be different) and check the size of partition and file.

It looks like you writing to a 2MB partition…image would be much larger (afair around 30MB for openwrt). So i’m sure you use the wrong partition

Sorry I am new to this how do I check with fdisk. I am using these instructions Making sure you're not a bot! is this the right one? Currently I am getting

NOTICE:  BL2: v2.6(release):
NOTICE:  BL2: Built : 15:19:16, Apr 19 2023
NOTICE:  WDT: disabled
NOTICE:  CPU: MT7986 (2000MHz)
NOTICE:  EMI: Using DDR4 settings
NOTICE:  EMI: Detected DRAM size: 2048MB
NOTICE:  EMI: complex R/W mem test passed
ERROR:   BL2: Failed to load image id 3 (-2)

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                44.0M     44.0M         0 100% /rom
tmpfs                   997.0M      2.9M    994.2M   0% /tmp
/dev/ubi0_2               9.1M    628.0K      8.0M   7% /overlay
overlayfs:/overlay        9.1M    628.0K      8.0M   7% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mmcblk0p6           43.8M     43.8M         0 100% /mnt/mmcblk0p6

Moderated: please use code tags

The upper message and the lower do not match tigether. First says that bl2 cannot load fip,but you show openwrt which needs fip before to get started.

But it sem to use mmcblk0p6 for openwrt. But wonder about 100% usage

It is on this step that I got my original error, dd if=/tmp/openwrt-*-bananapi_bpi-r3-mini-initramfs-recovery.itb of=/dev/mmcblk0p4

In your mount i see only mmcblk0p6, not mmcblk0p4,but i guess this is wrong…

I’m not sure,but maybe the image have to be flashed to mmcblk0 (no partition because maybe it already contains partition table).