[U-Boot] [PATCH 2/3] warp7: Handle mmcroot for mainline and NXP

Fabio Estevam festevam at gmail.com
Thu Aug 25 22:57:44 CEST 2016


From: Fabio Estevam <fabio.estevam at nxp.com>

The rootfs appears at mmcblk2 in the NXP kernel and at mmcblk1 in mainline
kernel.

Load the correct mmcblk device depending on the selection of the
CONFIG_ARMV7_BOOT_SEC_DEFAULT variable.

CONFIG_ARMV7_BOOT_SEC_DEFAULT is selected in warp7_secure_defconfig, which
is used to boot a NXP kernel.

Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
---
 include/configs/warp7.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/configs/warp7.h b/include/configs/warp7.h
index e59b16c..f089247 100644
--- a/include/configs/warp7.h
+++ b/include/configs/warp7.h
@@ -113,7 +113,11 @@
 
 #define CONFIG_SYS_MMC_ENV_DEV		0
 #define CONFIG_SYS_MMC_ENV_PART		0
-#define CONFIG_MMCROOT			"/dev/mmcblk2p2"
+#ifdef CONFIG_ARMV7_BOOT_SEC_DEFAULT
+#define CONFIG_MMCROOT			"/dev/mmcblk2p2" /* NXP kernel */
+#else
+#define CONFIG_MMCROOT			"/dev/mmcblk1p2" /* Mainline kernel */
+#endif
 
 /* USB Configs */
 #define CONFIG_USB_STORAGE
-- 
1.9.1



More information about the U-Boot mailing list