From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 1 Jun 2016 07:07:46 +0200 Subject: [U-Boot] [RFC] tools/env: Support UBI devices In-Reply-To: <1463436437-15254-1-git-send-email-kevin.smith@elecsyscorp.com> References: <1463436437-15254-1-git-send-email-kevin.smith@elecsyscorp.com> Message-ID: <574E6DA2.1010406@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Michael Heimpold > Cc: Joe Hershberger > --- > 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