Plugin Mode with eMMC on iMX6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Plugin Mode with eMMC on iMX6

1,203 Views
richogrady
Contributor II

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)?

Labels (2)
0 Kudos
3 Replies

753 Views
OtavioSalvador
Senior Contributor II

You seem to be intending to use the SPL as U-Boot mainline does to support multiple versions.

You can see Wandboard and SobreSD as examples in U-Boot mainline. Be careful to use the SPL versions for test/evaluation.

0 Kudos

753 Views
richogrady
Contributor II

Those implementations use plugin mode but then they let the spl loader do the copying to DDR.  This would be OK but coaxing them to do the copying from eMMC boot partitions is not obvious.  They use the eMMC user partition by default.

The implementation I referenced in myinitial question uses the ROM API to do the copying, since the ROM already did the plugin copy from the eMMC boot partition it should know how to copy the rest from the eMMC boot partition to the DDR.  But alas the pu_irom_hwcfg_setup callworks from an SD card but not from the eMMC.

0 Kudos

753 Views
Yuri
NXP Employee
NXP Employee

Hello,

  pu_irom_hwcnfg_setup is called by hab_rvt.authenticate_image function.

Sorry, but the information you are requesting is treated as confidential info at this time and 
we cannot discuss this with you in public anyway.

Have a great day,
Yuri

-------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-------------------------------------------------------------------------------

0 Kudos