[PATCH v1 3/3] colibri-imx6ull: specify MTD partitions on command line

Francesco Dolcini francesco at dolcini.it
Fri Jan 13 19:45:47 CET 2023


From: Francesco Dolcini <francesco.dolcini at toradex.com>

Disable fdt_fixup_mtdparts(), instead pass MTD partition on the command
line. This is the preferred method to be used when partitions are not
statically defined into the DTS according the Linux MTD subsystem
maintainer.

Cc: Marek Vasut <marex at denx.de>
Cc: Miquel Raynal <miquel.raynal at bootlin.com>
Link: https://lore.kernel.org/all/20230105123334.7f90c289@xps-13/
Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
---
 configs/colibri-imx6ull_defconfig | 1 -
 include/configs/colibri-imx6ull.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/configs/colibri-imx6ull_defconfig b/configs/colibri-imx6ull_defconfig
index f2a0d79ccca9..fbab687f5ab8 100644
--- a/configs/colibri-imx6ull_defconfig
+++ b/configs/colibri-imx6ull_defconfig
@@ -104,4 +104,3 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT_OVERLAY=y
-CONFIG_FDT_FIXUP_PARTITIONS=y
diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h
index ba45ee4efd37..561a61ebc03c 100644
--- a/include/configs/colibri-imx6ull.h
+++ b/include/configs/colibri-imx6ull.h
@@ -99,7 +99,7 @@
 		"${board}/flash_blk.img && source ${loadaddr}\0" \
 	"setup=setenv setupargs " \
 		"console=tty1 console=${console}" \
-		",${baudrate}n8 ${memargs} consoleblank=0\0" \
+		",${baudrate}n8 ${memargs} ${mtdparts} consoleblank=0\0" \
 	"setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \
 	"setusbupdate=usb start && setenv interface usb && " \
 		"fatload ${interface} 0:1 ${loadaddr} " \
-- 
2.25.1



More information about the U-Boot mailing list