
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 kevin.smith@elecsyscorp.com Cc: Michael Heimpold mhei@heimpold.de Cc: Joe Hershberger joe.hershberger@ni.com
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