Hi, Thanks for your remark.
I did not plan to mention this in the documentation patch, as I think it is outside the scope of these patches, which only create the binary format of the existing u-boot-initial-env file. Besides, from my comprehension, all these approaches use the same environment source from the default_environment structure declared in the env_default.h file, which enforces consistency. However, this is not prevent users from installing a different default environment from the one compiled in U-Boot. If wanted, I can explicitly mention this matter in my documentation patch. Regards, Pierre-Loup On Mon, Dec 1, 2025 at 6:59 PM <[email protected]> wrote: > Hi > > Just a few thoughts on the matter. There are several ways to transfer > the default environment to a target device: > > * Compile the environment in u-boot and run env default -a on the > target device, as documented at > > https://docs.u-boot.org/en/latest/usage/environment.html#text-based-environment > . > * Install the file in /etc/u-boot-initial-env, which is used by > libubootenv as the initial environment on the target device. > * Install it as suggested in this patch, e.g., via wic or another flash > approach during device manufacturing. > > It is important to enforce some consistency between all these different > approaches. Ideally, all approaches should use the same environment > source, which should be the file referenced by CONFIG_ENV_SOURCE_FILE. > If this is not the case, when the user executes, for example, env > default -a, they will get a different environment than the one > initialized by wic for fw_setenv. > > Will this be mentioned in the documentation, or will it not be taken > into account in these patches? > > Thank you for the patches. > Regards, > Adrian > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#227548): https://lists.openembedded.org/g/openembedded-core/message/227548 Mute This Topic: https://lists.openembedded.org/mt/116405112/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
