Hello Kevin,

Sorry for the late reply

Am 17.05.2016 um 00:07 schrieb Kevin Smith:
Instead of requiring gluebi to update u-boot environments from
Linux, directly support writing to an UBI device.  The
fw_env.config file will look something like this:

Device          Offset  Envsize         LEB Size        Count
/dev/ubi0_0     0       0x10000         0x1f000         1

It is important to use LEB size instead of PEB size when using
UBI.

Signed-off-by: Kevin Smith <[email protected]>
Cc: Michael Heimpold <[email protected]>
Cc: Joe Hershberger <[email protected]>
---
  tools/env/fw_env.c | 71 ++++++++++++++++++++++++++++++++++++------------------
  1 file changed, 48 insertions(+), 23 deletions(-)

Did you looked at the patches from Marcin. He also did such an
approach here:

[U-Boot,1/2] tools: env: Fix format warnings in debug
http://patchwork.ozlabs.org/patch/619306/

[U-Boot,2/2] tools: env: Add support for direct read/write UBI volumes
http://patchwork.ozlabs.org/patch/619305/

I like his approach more, as with it we can also use UBI Volumes
by name and the config file looks cleaner to me ...

bye,
Heiko
--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to