[PATCH 2/2] env: add CONFIG_ENV_SECT_SIZE_AUTO

Rasmus Villemoes rasmus.villemoes at prevas.dk
Wed May 6 11:37:04 CEST 2020


On 06/05/2020 11.21, Joakim Tjernlund wrote:

> I can test NOR Flash ,I am on an older u-boot ATM but fw_setenv stuff should be simple to backport
> How would fw_env.config be dealt with? Just ignored when auto size?

AFAIK, the U-Boot configuration doesn't affect the userspace fw_env
tools, so auto size has to be opt-in separately in fw_env.config, which
is where I did use 0 to mean auto (see the referenced commit
e282c422e0). You should be able to test that part already with just
fw_setenv built from master and an appropriate fw_env.config [or perhaps
you need to add another "mtdinfo.type == ..." condition first].

Rasmus


More information about the U-Boot mailing list