tools: env: Add support for direct read/write UBI volumes
authorS. Lockwood-Childs <sjl@vctlabs.com>
Wed, 15 Nov 2017 07:01:26 +0000 (23:01 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 30 Nov 2017 03:30:50 +0000 (22:30 -0500)
commit34255b92e6e68941ab1134299faa86acc5a1abc8
tree5d55e951e6fbe88f4eff9e6fc81a6009853e73e4
parentd36a27adbbee6f80135642a046901cc6f8c703de
tools: env: Add support for direct read/write UBI volumes

Up to now we were able to read/write environment data from/to UBI
volumes only indirectly by gluebi driver. This driver creates NAND MTD
on top of UBI volumes, which is quite a workaroung for this use case.

Add support for direct read/write UBI volumes in order to not use
obsolete gluebi driver.

Forward-ported from this patch:
http://patchwork.ozlabs.org/patch/619305/

Original patch:
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Forward port:
Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
tools/env/fw_env.c
tools/env/fw_env.config