env: export fdt_blob to the environment variable

Export fdt_blob to the environment variable. So that we may
use it to boot Linux.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Thomas Chou
2015-10-16 08:44:51 +08:00
committed by Simon Glass
parent 2419cd16a1
commit 545dfd1014
2 changed files with 7 additions and 1 deletions

View File

@@ -446,6 +446,9 @@ static int initr_env(void)
env_relocate();
else
set_default_env(NULL);
#ifdef CONFIG_OF_CONTROL
setenv_addr("fdtcontroladdr", gd->fdt_blob);
#endif
/* Initialize from environment */
load_addr = getenv_ulong("loadaddr", 16, load_addr);