diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2013-04-08 14:32:51 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-11 23:52:55 +0400 |
commit | 2b74433f365fa677a60431a80e524b5d8d04e995 (patch) | |
tree | 4f33620eb0534e8861010fb6d8945d3da3b455a7 /common/cmd_nvedit.c | |
parent | a7eb1d66c704c884584bf00548cfdf68abfe68bb (diff) | |
download | u-boot-2b74433f365fa677a60431a80e524b5d8d04e995.tar.xz |
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 'common/cmd_nvedit.c')
-rw-r--r-- | common/cmd_nvedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index fab8694621..afa128ece2 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -62,9 +62,10 @@ DECLARE_GLOBAL_DATA_PTR; !defined(CONFIG_ENV_IS_IN_ONENAND) && \ !defined(CONFIG_ENV_IS_IN_SPI_FLASH) && \ !defined(CONFIG_ENV_IS_IN_REMOTE) && \ + !defined(CONFIG_ENV_IS_IN_UBI) && \ !defined(CONFIG_ENV_IS_NOWHERE) # error Define one of CONFIG_ENV_IS_IN_{EEPROM|FLASH|DATAFLASH|ONENAND|\ -SPI_FLASH|NVRAM|MMC|FAT|REMOTE} or CONFIG_ENV_IS_NOWHERE +SPI_FLASH|NVRAM|MMC|FAT|REMOTE|UBI} or CONFIG_ENV_IS_NOWHERE #endif /* |