summaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-11-18 19:58:50 +0300
committerAlexander Graf <agraf@suse.de>2018-12-02 23:59:37 +0300
commitf980c99985dda829f4300bfec32695dfe4731849 (patch)
tree75b0741f160b42314a020503969061dd628072d1 /common/board_r.c
parentc3772ca1e38f36f2486b44c27094421442414e5e (diff)
downloadu-boot-f980c99985dda829f4300bfec32695dfe4731849.tar.xz
fdt: sandbox: correct use of ${fdtcontroladdr}
The sandbox uses a virtual address space that is neither the physical nor the virtual address space of the operating system. All address used on the command line live in this address space. So also the environment variable ${fdtcontroladdr} has to be in this address space. Commands like bootefi and booti receive the fdt address as parameter. Without the patch ${fdtcontroladdr} cannot be used as parameter value on the sandbox. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index c55e33eec2..745212be71 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -453,7 +453,8 @@ static int initr_env(void)
else
set_default_env(NULL, 0);
#ifdef CONFIG_OF_CONTROL
- env_set_addr("fdtcontroladdr", gd->fdt_blob);
+ env_set_hex("fdtcontroladdr",
+ (unsigned long)map_to_sysmem(gd->fdt_blob));
#endif
/* Initialize from environment */