
Dear Sam,
In message CAKaJLVveZcdD-OCCRXCSJT0KVeWD1M9G+AqPxX9pSs4MRoLoaw@mail.gmail.com you wrote:
My question is: do we rely on environment to be the same after doing "env default -f -a", comparing to environment after reboot? If so, should I provide some sort of env callback to run corresponding routines on "env default" event (like [1])?
We should rather not rely on this.
I think many boards contain board-specific code to manipulate the environment, especially on first boot (and resetting the env usually makes the next boot a "first" one). You cannot scan all board specific code for such actions, or implement any generic handler for this.
[Well yes, maybe one could rewrite all such board-specific code into some common "first boot handler" that could be called from a central place, but who should do that?
Best regards,
Wolfgang Denk