Files
u-boot/cmd
Patrick Delaunay 6762c8dd89 cmd: mtdparts: add SYS_MTDPARTS_RUNTIME dependency on CONFIG_MTDIDS/MTDPARTS_DEFAULT
The two configuration CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT
are not needed with mtd configuration CONFIG_SYS_MTDPARTS_RUNTIME which
allows the MTDIDS and MTDPARTS to be configured at runtime.

This patch has no defconfig impacts because CONFIG_SYS_MTDPARTS_RUNTIME
is only used by two platforms (stm32mp and igep00x0) which don't define
CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPARTS_DEFAULT.

This patch solves an UBI environment load issue for NAND boot for
stm32mp15 platform. In mtd_uboot.c, when GD_FLG_ENV_READY is not set,
env_get_f() return a EMPTY string, define in default_environment[]
because CONFIG_MTDIDS_DEFAULT="" and CONFIG_MTDPARTS_DEFAULT="",
but a NULL pointer is expected to allow call of board_mtdparts_default.
Without mtdparts, the env partition [CONFIG_ENV_UBI_PART="UBI"] is not
found in env/ubi.c [CONFIG_ENV_IS_IN_UBI].

It is not a problem when env becomes ready, as these empty variables are
removed form U-Boot environment in env_import() / himport_r().

Fixes: a331017c23 ("Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2023-01-11 11:54:50 -05:00
..
2022-09-19 16:07:12 -04:00
2022-10-20 15:22:15 +08:00
2022-09-25 08:30:05 -06:00
2022-10-30 20:07:17 +01:00
2022-09-24 11:34:38 -04:00
2022-04-25 10:00:04 -04:00
2022-09-29 16:07:57 -04:00
2022-10-17 21:17:12 -06:00
2022-09-29 16:07:57 -04:00
2020-05-18 18:36:55 -04:00
2022-10-11 15:40:48 -04:00
2022-02-25 01:41:04 -05:00
2020-05-18 18:36:55 -04:00
2022-08-04 16:18:47 -04:00
2022-08-04 16:18:47 -04:00
2020-05-18 18:36:55 -04:00
2022-09-29 16:07:57 -04:00
2022-08-26 16:32:59 -06:00
2022-01-15 10:57:22 +01:00
2022-09-24 11:34:38 -04:00
2022-03-15 16:19:29 -04:00
2020-05-18 18:36:55 -04:00
2022-03-10 08:28:36 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-10-23 13:33:07 -04:00
2022-08-04 16:18:47 -04:00
2022-09-29 16:07:57 -04:00
2022-05-06 14:39:15 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2022-09-16 11:05:16 -04:00
2020-05-18 18:36:55 -04:00
2022-08-04 16:18:47 -04:00
2022-09-25 08:30:05 -06:00
2020-05-18 18:36:55 -04:00
2021-11-28 16:51:51 -07:00
2022-06-22 21:29:47 -04:00
2022-09-25 08:30:05 -06:00
2020-10-28 11:49:31 -04:00
2022-12-07 16:04:17 -05:00
2022-10-06 22:54:57 +02:00
2022-09-16 11:05:16 -04:00
2022-05-05 15:06:02 -04:00
2020-07-08 17:21:46 -04:00
2022-01-15 10:57:22 +01:00
2022-09-02 13:40:42 -04:00
2022-01-19 18:11:34 +01:00
2020-05-18 18:36:55 -04:00
2022-09-16 11:05:16 -04:00
2022-09-16 11:05:16 -04:00
2022-09-16 11:05:16 -04:00
2022-01-19 18:11:34 +01:00
2021-09-24 14:30:46 -04:00
2020-08-07 22:31:32 -04:00
2022-10-11 15:40:48 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2021-10-21 07:39:05 +02:00
2021-10-09 13:09:56 -04:00
2022-12-07 16:04:17 -05:00
2022-10-31 11:04:00 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2022-09-29 16:07:57 -04:00
2022-10-11 15:40:48 -04:00