diff options
author | Ilya Yanok <ilya.yanok@cogentembedded.com> | 2012-06-26 11:22:47 +0400 |
---|---|---|
committer | khasim <khasim@khasim-desktop.(none)> | 2012-07-11 15:08:06 +0530 |
commit | 3bcb272c9b2e1beffeb669e44a885a805be922d1 (patch) | |
tree | 30611181a6697afa3ee0b790bd7e560d7a5e28bc /common | |
parent | 39d6ee8935d2eb40ec8b94e19aa379fe08093139 (diff) | |
download | u-boot-beaglebone-3bcb272c9b2e1beffeb669e44a885a805be922d1.tar.gz |
net-spl: fix "Bad ebvironment CRC" error
In SPL we always use RAM based environment so we should behave
as if CONFIG_ENV_IS_NOWHERE is defined.
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/env_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/env_common.c b/common/env_common.c index 19149b513..e1e468b96 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -235,7 +235,8 @@ void env_relocate (void) env_reloc(); #endif if (gd->env_valid == 0) { -#if defined(CONFIG_ENV_IS_NOWHERE) /* Environment not changable */ +#if defined(CONFIG_ENV_IS_NOWHERE) || defined(CONFIG_SPL_BUILD) + /* Environment not changable */ set_default_env(NULL); #else show_boot_progress (-60); |