diff --git a/uboot-mtk-20250711/board/mediatek/common/mmc_helper.c b/uboot-mtk-20250711/board/mediatek/common/mmc_helper.c index fab01ae79..840ac59e6 100644 --- a/uboot-mtk-20250711/board/mediatek/common/mmc_helper.c +++ b/uboot-mtk-20250711/board/mediatek/common/mmc_helper.c @@ -767,8 +767,8 @@ static int mmc_set_fdtargs_basic(struct mmc *mmc) ulong len; int ret; -#if defined(CONFIG_ENV_MMC_PARTITION) - env_part_name = CONFIG_ENV_MMC_PARTITION; +#if defined(CONFIG_ENV_MMC_SW_PARTITION) + env_part_name = CONFIG_ENV_MMC_SW_PARTITION; #else env_part_name = ofnode_conf_read_str("u-boot,mmc-env-partition"); #endif diff --git a/uboot-mtk-20250711/env/Kconfig b/uboot-mtk-20250711/env/Kconfig index 710206e3a..a554029a2 100644 --- a/uboot-mtk-20250711/env/Kconfig +++ b/uboot-mtk-20250711/env/Kconfig @@ -738,7 +738,7 @@ config ENV_MMC_USE_SW_PARTITION depends on ENV_IS_IN_MMC config ENV_MMC_SW_PARTITION - bool "SD/MMC environment software partition name" + string "SD/MMC environment software partition name" depends on ENV_MMC_USE_SW_PARTITION help SD/MMC software partition name used to save environment variables.