[U-Boot] [PATCH] ARM: omapl138_lcdk: Setup MTDIDS and MTDPARTS

Adam Ford aford173 at gmail.com
Sun Sep 1 11:53:43 UTC 2019


The schematic shows the NAND to be a 256M part, and the device
tree shows the partition mapping.  This patch defines MTDIDS
and MTDPARTS to match the partition mapping found in the device
tree.

Signed-off-by: Adam Ford <aford173 at gmail.com>

diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
index 326ac9372b..c69b9b15c4 100644
--- a/configs/omapl138_lcdk_defconfig
+++ b/configs/omapl138_lcdk_defconfig
@@ -31,6 +31,8 @@ CONFIG_MX_CYCLIC=y
 CONFIG_CMD_NAND=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=nand256"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=nand256:128k(u-boot env),512k(u-boot),-(free space)"
 CONFIG_CMD_DIAG=y
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
-- 
2.17.1



More information about the U-Boot mailing list