[PATCH v2] env: mmc: fix offsets relative to the end of the partition
Javier Viguera
javier.viguera at digi.com
Fri Jun 6 14:34:06 CEST 2025
On 5/6/25 9:46, Michael Walle wrote:
> According to the help text, you can set negative offsets to indicated
> that the offset is relative to the end of the parition. But kconfig
> doesn't let you specify negative hex values. I think this fell through
> the cracks when converting the symbol from a '#define' to a kconfig
> option.
Not sure with u-boot upstream master, but with a downstream NXP-based
tree (version v2024.04) I think it just works with something like:
ccimx91-dvk_defconfig:CONFIG_ENV_OFFSET=0xFFFFFFFFFFFFC000
ccimx91-dvk_defconfig:CONFIG_ENV_OFFSET_REDUND=0xFFFFFFFFFFFFC000
ccimx93-dvk_defconfig:CONFIG_ENV_OFFSET=0xFFFFFFFFFFFFC000
ccimx93-dvk_defconfig:CONFIG_ENV_OFFSET_REDUND=0xFFFFFFFFFFFFC000
After all, the symbol gets translated to a signed s64 variable.
--
Javier Viguera
Digi International Inc.
More information about the U-Boot
mailing list