]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
colibri-imx6ull: specify MTD partitions on command line
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Mon, 6 Feb 2023 22:48:38 +0000 (23:48 +0100)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 16 Apr 2023 12:19:27 +0000 (14:19 +0200)
Disable fdt_fixup_mtdparts() and pass MTD partition on the command
line. Dynamically editing the fdt with a static partitions configuration
is not required and there is no advantages compared to using the command
line. This change should prevent boot failures as the one in [0].

Cc: Marek Vasut <marex@denx.de>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/all/Y4dgBTGNWpM6SQXI@francesco-nb.int.toradex.com/
Link: https://lore.kernel.org/all/20230105123334.7f90c289@xps-13/
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/all/20230206224838.75963-4-francesco@dolcini.it/
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
board/toradex/colibri-imx6ull/colibri-imx6ull.c
configs/colibri-imx6ull_defconfig
include/configs/colibri-imx6ull.h

index 6007f110e4ba28a98957c04f9666c9cdc4c8f62e..48fdb1e0971296756e6fbf62122bb97d03a430be 100644 (file)
@@ -212,17 +212,6 @@ int checkboard(void)
 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
-#if defined(CONFIG_FDT_FIXUP_PARTITIONS)
-       static struct node_info nodes[] = {
-               { "fsl,imx6ull-gpmi-nand", MTD_DEV_TYPE_NAND, },
-               { "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, },
-       };
-
-       /* Update partition nodes using info from mtdparts env var */
-       puts("   Updating MTD partitions...\n");
-       fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-#endif
-
        return ft_common_board_setup(blob, bd);
 }
 #endif
index b50577f9068e775fb539bd84e4be049beedcff7b..2f1a201919cc15062f1e92d75bde02469c15bc40 100644 (file)
@@ -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
index ba45ee4efd37879f205aca599370773116e07fec..561a61ebc03c532711469eb3e199b28dcf4c3027 100644 (file)
@@ -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} " \