[U-Boot] [PATCH v2] imx: Fix regression with CONFIG_DM_MMC=y

Sébastien Szymanski sebastien.szymanski at armadeus.com
Fri Oct 20 13:34:59 UTC 2017


Hello Fabio,

On 10/20/2017 01:41 PM, Fabio Estevam wrote:
> When CONFIG_DM_MMC=y, CONFIG_BLK should be selected, otherwise the
> SD/eMMC card cannot be used.
> 
> Also, select CONFIG_DM_USB=y when CONFIG_USB=y to avoid build failure.
> 
> Tested on mx6slevk, mx7dsabresd and mx6ullevk.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
> ---
> Changes since v1:
> - Cover all imx boards
> 
>  configs/imx6q_logic_defconfig             | 1 -
>  configs/imx6qdl_icore_nand_defconfig      | 1 -
>  configs/imx6ul_geam_mmc_defconfig         | 1 -
>  configs/imx6ul_geam_nand_defconfig        | 1 -
>  configs/imx6ul_isiot_emmc_defconfig       | 1 -
>  configs/imx6ul_isiot_mmc_defconfig        | 1 -
>  configs/imx6ul_isiot_nand_defconfig       | 1 -
>  configs/mx6slevk_defconfig                | 2 +-
>  configs/mx6slevk_spinor_defconfig         | 2 +-
>  configs/mx6sllevk_defconfig               | 1 -
>  configs/mx6sllevk_plugin_defconfig        | 1 -
>  configs/mx6sxsabreauto_defconfig          | 2 +-
>  configs/mx6ull_14x14_evk_defconfig        | 1 -
>  configs/mx6ull_14x14_evk_plugin_defconfig | 1 -
>  configs/mx7dsabresd_defconfig             | 1 -
>  configs/mx7dsabresd_secure_defconfig      | 1 -
>  configs/mx7ulp_evk_defconfig              | 1 -
>  configs/mx7ulp_evk_plugin_defconfig       | 1 -
>  configs/opos6uldev_defconfig              | 1 -
>  19 files changed, 3 insertions(+), 19 deletions(-)
>

The compilation fails for the opos6uldev board. The following change is
needed to fix it:

diff --git a/include/configs/opos6uldev.h b/include/configs/opos6uldev.h
index d018984..04fc602 100644
--- a/include/configs/opos6uldev.h
+++ b/include/configs/opos6uldev.h
@@ -17,6 +17,7 @@
 #ifdef CONFIG_SPL_BUILD
 #undef CONFIG_DM_GPIO
 #undef CONFIG_DM_MMC
+#undef CONFIG_BLK

 #define CONFIG_MXC_UART_BASE           UART1_BASE
 #endif


Otherwise, your change fixes the eMMC on the board.

Tested-by: Sébastien Szymanski <sebastien.szymanski at armadeus.com>

Thanks.

Regards,

-- 
Sébastien Szymanski
Software engineer, Armadeus Systems
Tel: +33 (0)9 72 29 41 44
Fax: +33 (0)9 72 28 79 26


More information about the U-Boot mailing list