summaryrefslogtreecommitdiff
path: root/tools/env
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2013-04-08 10:32:51 +0000
committerTom Rini <trini@ti.com>2013-04-11 15:52:55 -0400
commit2b74433f365fa677a60431a80e524b5d8d04e995 (patch)
tree4f33620eb0534e8861010fb6d8945d3da3b455a7 /tools/env
parenta7eb1d66c704c884584bf00548cfdf68abfe68bb (diff)
downloadu-boot-imx-2b74433f365fa677a60431a80e524b5d8d04e995.zip
u-boot-imx-2b74433f365fa677a60431a80e524b5d8d04e995.tar.gz
u-boot-imx-2b74433f365fa677a60431a80e524b5d8d04e995.tar.bz2
env: Add support for UBI environment
UBI is a better place for the environment on NAND devices because it handles wear-leveling and bad blocks. Gluebi is needed in Linux to access the env as an MTD partition. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/env')
-rw-r--r--tools/env/fw_env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index bf30234..0dee682 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -968,7 +968,8 @@ static int flash_read (int fd)
}
if (mtdinfo.type != MTD_NORFLASH &&
mtdinfo.type != MTD_NANDFLASH &&
- mtdinfo.type != MTD_DATAFLASH) {
+ mtdinfo.type != MTD_DATAFLASH &&
+ mtdinfo.type != MTD_UBIVOLUME) {
fprintf (stderr, "Unsupported flash type %u on %s\n",
mtdinfo.type, DEVNAME(dev_current));
return -1;