From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 18 Feb 2013 13:27:29 -0500 Subject: [U-Boot] [PATCH 0/5] Add support for using an UBI volume for environment In-Reply-To: <1360354046-32392-1-git-send-email-joe.hershberger@ni.com> References: <1360354046-32392-1-git-send-email-joe.hershberger@ni.com> Message-ID: <20130218182729.GC30970@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Feb 08, 2013 at 02:07:21PM -0600, Joe Hershberger wrote: > NAND is not good at handling absolute addresses to sectors for storing > particular data. The current implementation of the NAND env support > works around this in several ways such as storing a pointer to the > sector in the OOB of the first sector (interferes with some CRC) or > supporting a range of sectors (which unless it is huge is not > guaranteed to be safe). None of these options address wear-leveling > concerns or bad block handling. > > Accessing the u-boot env from UBI eliminates these concerns. However, > it does require some of the basic settings for finding the UBI env to > be in the default u-boot env. > > > Joe Hershberger (5): > ubi: Expose a few simple functions from the cmd_ubi > ubi: ubifs: Turn off verbose prints > mtd: Make mtdparts work with pre-reloc env > env: Add support for UBI environment > env: Add redundant env support to UBI env > > README | 21 +++++ > common/Makefile | 1 + > common/cmd_mtdparts.c | 23 +++++- > common/cmd_nvedit.c | 7 +- > common/cmd_ubi.c | 149 +++++++++++++++++++--------------- > common/env_ubi.c | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++ > drivers/mtd/mtdpart.c | 14 ++-- > drivers/mtd/ubi/ubi.h | 3 +- > fs/ubifs/ubifs.h | 2 +- > include/environment.h | 18 +++++ > include/ubi_uboot.h | 3 + > tools/env/fw_env.c | 6 +- > 12 files changed, 387 insertions(+), 78 deletions(-) > create mode 100644 common/env_ubi.c Please add a patch 6 which enables all of these options for some board, preferably the one you've been testing this with. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: