We currently use DCD mode to boot imx6. This works fine for either our SD card or our eMMC (with boot partition).
We want to use plugin mode to allow 1 bootloader to support booting both the imx6s and the imx6d. We found a plugin example at imx-plugin/plugin.c at master · ArtecDesign/imx-plugin · GitHub and got it to work fine with the SD card. When we try it on the eMMC it seems like its working but it doesnt copy all the data on the pu_irom_hwcfg_setup call. The loaded size comes back like it has copied it all but it came back to quickly to have copied so much and the expected data isnt there.
Its really not clear how these API functions work. Should there be a difference between how the API works for the SD card and how it works for the eMMC (boot partition)?