]> git.ipfire.org Git - thirdparty/openwrt.git/commit
uboot-airoha: fix eMMC boot failure caused by redundant env 24397/head
authorYalei Zang <yalei.zang@airoha.com>
Fri, 24 Jul 2026 06:39:11 +0000 (14:39 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 2 Aug 2026 20:59:57 +0000 (22:59 +0200)
commit5b05779b90c31e9a84f34b10a422958a64bc1dd6
treec3e30ced5e68689ba593ca936a5f42906454fc3c
parent4797e145b34434fd53d3decc700e77bbacbe67d3
uboot-airoha: fix eMMC boot failure caused by redundant env

The an7581/an7583 configs enable redundant environment support,
but do not define CONFIG_ENV_OFFSET_REDUND.

When running `saveenv`, U-Boot tries to write the redundant environment
to MMC. Without a valid redundant environment offset, the data may be
written to an incorrect location and overwrite critical boot data such
as the GPT, BL2/preloader or BL31+U-Boot FIP.

This causes the board to fail booting after saving the environment.

Define CONFIG_ENV_OFFSET_REDUND so the redundant environment is stored
at a valid eMMC offset and no longer corrupts the bootchain.

Signed-off-by: Yalei Zang <yalei.zang@airoha.com>
Link: https://github.com/openwrt/openwrt/pull/24397
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/boot/uboot-airoha/patches/904-configs-airoha-add-missing-config-env-offset-redund.patch [new file with mode: 0644]