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>
This commit is contained in:
committed by
Tom Rini
parent
a7eb1d66c7
commit
2b74433f36
@@ -96,6 +96,21 @@ extern unsigned long nand_env_oob_offset;
|
||||
# endif
|
||||
#endif /* CONFIG_ENV_IS_IN_NAND */
|
||||
|
||||
#if defined(CONFIG_ENV_IS_IN_UBI)
|
||||
# ifndef CONFIG_ENV_UBI_PART
|
||||
# error "Need to define CONFIG_ENV_UBI_PART when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
# ifndef CONFIG_ENV_UBI_VOLUME
|
||||
# error "Need to define CONFIG_ENV_UBI_VOLUME when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
# ifndef CONFIG_ENV_SIZE
|
||||
# error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
# ifndef CONFIG_CMD_UBI
|
||||
# error "Need to define CONFIG_CMD_UBI when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
#endif /* CONFIG_ENV_IS_IN_UBI */
|
||||
|
||||
/* Embedded env is only supported for some flash types */
|
||||
#ifdef CONFIG_ENV_IS_EMBEDDED
|
||||
# if !defined(CONFIG_ENV_IS_IN_FLASH) && \
|
||||
|
||||
Reference in New Issue
Block a user