summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@cogentembedded.com>2012-06-26 11:22:47 +0400
committerkhasim <khasim@khasim-desktop.(none)>2012-07-11 15:08:06 +0530
commit3bcb272c9b2e1beffeb669e44a885a805be922d1 (patch)
tree30611181a6697afa3ee0b790bd7e560d7a5e28bc /common
parent39d6ee8935d2eb40ec8b94e19aa379fe08093139 (diff)
downloadu-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.c3
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);