[U-Boot] [PATCH 11/13] colibri_t20: enable mtdparts support
Marcel Ziswiler
marcel at ziswiler.com
Mon Jul 6 10:20:37 CEST 2015
From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Enable mtdparts aka dynamic MTD partition support.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
---
include/configs/colibri_t20.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index 6dc1c3a..1ac7a41 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -67,6 +67,17 @@
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_SYS_NAND_ONFI_DETECTION
+/* Dynamic MTD partition support */
+#define CONFIG_CMD_MTDPARTS /* Enable 'mtdparts' command line support */
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
+#define MTDIDS_DEFAULT "nand0=tegra_nand"
+#define MTDPARTS_DEFAULT "mtdparts=tegra_nand:" \
+ "2m(u-boot)ro," \
+ "1m(u-boot-env)," \
+ "1m(cfgblock)ro," \
+ "-(ubi)"
+
/* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_OFFSET (SZ_2M)
--
1.9.3
More information about the U-Boot
mailing list