Banana PI R4 - Attempts to install created image from Frank-w on EMMC

I create an image from Frank-w (BPI-Router-Images):

Settings:

imgfile=bpi-r4_emmc.img.gz

skipkerneldownload=1

kernelfile=bpi-r4_6.12.32-main.tar.gz

Next:

./buildimg.sh bpi-r4 bookworm 6.12.32

I try to transfer it to EMMC:

echo 0 > /sys/block/mmcblk0boot0/force_ro

cd /mnt/sda1

dd if=bpi-r4_emmc_bl2.img of=/dev/mmcblk0boot0

gunzip -c bpi-r4_bookworm_6.12.32-main.img.gz | dd bs=512 conv=notrunc,fsync of=/dev/mmcblk0

dd if=bpi-r4_emmc_fip.bin of=/dev/mmcblk0p4

mmc bootpart enable 1 1 /dev/mmcblk0

at the same time, if I create an image from bpi-r4_sdmmc.img.gz and write it to the SD card - everything works.

How to transfer the image to EMMC correctly?

Looks right so far. I’m not sure about the mmc bootpart command as i always did this from uboot. You did this after booting initrd from nand? You cannot access emmc after booting from sdcard because both share the emmc controller,but it looks like emmc itself is available. It would be interesting how far boot process goes,so please show bootlog (debug uart).