Plugin Mode with eMMC on iMX6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Plugin Mode with eMMC on iMX6

1,438 次查看
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)?

标签 (2)
0 项奖励
回复
3 回复数

988 次查看
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 项奖励
回复

988 次查看
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 项奖励
回复

988 次查看
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 项奖励
回复