[U-Boot] [RFC] tools/env: Support UBI devices
Heiko Schocher
hs at denx.de
Wed Jun 1 07:07:46 CEST 2016
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 at elecsyscorp.com>
> Cc: Michael Heimpold <mhei at heimpold.de>
> Cc: Joe Hershberger <joe.hershberger at 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
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list