I think I have a procedure, but it is complicated a little bit
Step 1. The emmc....tsv file modification
Just remove P in lines 4 and 5 and type -. Suggested create a copy of the original file because in next compilation file will be again replaced to the original content.
Step 2. Generation *.raw file
./create_sdcard_from_flashlayout.sh ../flashlayout_st-image-weston/trusted/FlashLayout_emmc_xxxx.tsv
Step 3. Copy to sd card created *.raw and tf-a-stm32mp157c...-mx-emmc.stm32 into to /usr/local for instance
Step 4. Write prepared raw image into EMMC memory by typing
dd if=/usr/local/FlashLayout_emmc_stm32mp157c-....-mx-trusted.raw of=/dev/mmcblk1 bs=8M conv=fdatasync status=progress
Step 5. Unlock the EMMC boot area
echo 0 > /sys/class/block/mmcblk1boot0/force_ro
echo 0 > /sys/class/block/mmcblk1boot1/force_ro
Step 6. Write tf-a image into the EMMC
dd if=/usr/local/tf-a-stm32mp157c-...-mx-emmc.stm32 of=/dev/mmcblk1boot0
dd if=/usr/local/tf-a-stm32mp157c-...-mx-emmc.stm32 of=/dev/mmcblk1boot1
Step 7. Mount boot partition on EMMC
mkdir -p /mnt/emmc-card
mount /dev/mmcblk1p6 /mnt/emmc-card
vi /mnt/emmc-card/extlinux.conf
Change record
root=PARTUUID=491f6117-415d-4f53-88c9-6e0de54deac6
to
root=/dev/mmcblk1p8
Step 8. Clean up procedure
umount /mnt/emmc-card
rm -rf /mnt/emmc-card
Step 9. Synchronize written files
sync
Step 10. Power off the board and change boot pins to EMMC
One more thing finally, to be able to store the new prepared *.raw file into /usr/local it is necessary to extend sd-card /usr/local partition. I do it like that in the file create_sdcard_from_flashlayout.sh
but this is only for the Sd-card for the EMMC go back to Your settings.
Can someone reproduce this procedure and confirm that everything is right?