From patchwork Mon Jan 6 08:04:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 239134 List-Id: U-Boot discussion From: peng.fan at nxp.com (Peng Fan) Date: Mon, 6 Jan 2020 08:04:33 +0000 Subject: [PATCH 2/3] imx: imx8mn_evk: add board_mmc_get_env_dev In-Reply-To: <20200106082403.26268-1-peng.fan@nxp.com> References: <20200106082403.26268-1-peng.fan@nxp.com> Message-ID: <20200106082403.26268-2-peng.fan@nxp.com> Add board_mmc_get_env_dev, otherwise, Loading Environment from MMC... MMC Device 0 not found *** Warning - No MMC card found, using default environment Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c index b22a2a6bd1..4f33c0e7c9 100644 --- a/board/freescale/imx8mn_evk/imx8mn_evk.c +++ b/board/freescale/imx8mn_evk/imx8mn_evk.c @@ -19,6 +19,11 @@ int board_init(void) return 0; } +int board_mmc_get_env_dev(int devno) +{ + return devno; +} + int board_late_init(void) { #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG