smegw01: Pass 'mmcpart' to the kernel command line
authorFabio Estevam <festevam@denx.de>
Tue, 24 Aug 2021 10:58:46 +0000 (07:58 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Oct 2021 15:45:00 +0000 (17:45 +0200)
When using SWUpdate, it is necessary to toggle between partitions.

Use the 'mmcpart' environment variable to accomplish that.

Signed-off-by: Fabio Estevam <festevam@denx.de>
include/configs/smegw01.h

index cf80801bd8418f4bf6753ef7194f00eead6a5543..55ca801985118a7c52230f779109e78423544bf2 100644 (file)
@@ -26,9 +26,8 @@
        "bootm_size=0x10000000\0" \
        "mmcdev=0\0" \
        "mmcpart=1\0" \
-       "mmcroot=/dev/mmcblk0p1 rootwait rw\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
-               "root=${mmcroot}\0" \
+               "root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
        "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
        "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
        "mmcboot=echo Booting from mmc ...; " \