
On Wed, 14 Sep 2016, Wolfgang Denk wrote:
Dear Robert,
In message alpine.LFD.2.20.1609140524480.27791@localhost.localdomain you wrote:
Why not simply putting this as text (or wrapped with an uImage header) into some storage (or even a file) and then use "env import" to load it?
the problem is that that additional "environment" info is on the target board because of a legacy non-linux OS -- it's at a well-known address in flash, and we have no freedom to change it, we can only read it, make some adjustments, then incorporate it into the current environment.
Which format is used? Can it not be made to work with "env import" using this well-known address? I mean, if it's plain text, it should just work. If it's some other, more exotic format, you could probably implement a custom import format?
it needs to be done programatically, and i *believe* himport_r() can handle it, as the string is space-separated and null-terminated, so i'm about to test that.
rday