Hello
I was trying to flash my custom board eMMC through MFGTool utility. I finally get it working after many different struggles. One of them was finding the partitioning system from eMMC. This post was at the same time useful and misleading:
Changing eMMC boot images via Linux on Sabre SDB
Several conclusions:
eMMC has internal registers and can be configured (I did not do it consciously)
To my kernel, my eMMC is configured to present itself as three differents hard disk devices
mmcblk0
mmcblk0boot0
mmcblk0boot1
I can write a u-boot-1 in mmcblk0
I can write another u-boot-2 in mmcblk0boot0
If mmcblk0boot0 hard disk eMMC drive is not configured as boot partition, imx6 starts from u-boot-1
If mmcblk0boot0 hard disk eMMC drive is configured as boot partition, imx6 starts from u-boot-2
The MFGTool-ucl2.xml I have been using is writing the u-boot inside mmcblk0boot0 and activating this partition as boot partition
The u-boot.bin and the u-boot.imx are different. The command to write each one of them have different.parameters
Please correct me, if I got something wrong.
Thank you,
Jose