From: Mikhail Kshevetskiy Date: Mon, 27 Apr 2026 13:53:26 +0000 (+0300) Subject: configs: airoha: an7581: disable ENV_IS_IN_MTD to avoid boot panic X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fcbe38192a809a7f0f67ce557d6826dcd49413d;p=thirdparty%2Fu-boot.git configs: airoha: an7581: disable ENV_IS_IN_MTD to avoid boot panic Booting image generated with make an7581_evb_defconfig will results in U-Boot 2026.04-00924-gfb815bd8793b (Apr 27 2026 - 15:08:30 +0300) CPU: Airoha AN7581 DRAM: 512 MiB Core: 35 devices, 19 uclasses, devicetree: separate MMC: mmc@1fa0e000: 0 Loading Environment from MMC... *** Warning - No block device, using default environment Loading Environment from MTD... *** Warning - get_mtd_device_nm() failed, using default environment BUG at drivers/mtd/mtdcore.c:898/__put_mtd_device()! BUG! resetting ... This happens because no any mtd partition defined in dts/mtdparts. Disabling of ENV_IS_IN_MTD fixes an issue. Signed-off-by: Mikhail Kshevetskiy --- diff --git a/configs/an7581_evb_defconfig b/configs/an7581_evb_defconfig index 16100d00f98..a0afe249ce5 100644 --- a/configs/an7581_evb_defconfig +++ b/configs/an7581_evb_defconfig @@ -43,6 +43,7 @@ CONFIG_CMD_LOG=y CONFIG_OF_UPSTREAM=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_MMC=y +# CONFIG_ENV_IS_IN_MTD is not set CONFIG_ENV_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_NET_RANDOM_ETHADDR=y