diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-22 17:46:02 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-09-01 14:47:43 +0200 |
commit | 73f4ebb659df4996e154b17f14866fb166447be0 (patch) | |
tree | 840d05be38ffc1690c7e9aedc291c067c0731189 /include | |
parent | 9337037518e7a1fb8d2e16e1eaacfea8b1fb5b01 (diff) |
dfu: fix dfu tftp on sandbox
The environment variable loadaddr is in the virtual address space of the
sandbox. To get the actual memory address where the FIT image has been
loaded we have to convert this address according to the memory mapping of
the sandbox.
Equally the addresses in the *.its file have to be converted when used in
the dfu_ram driver.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/dfu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dfu.h b/include/dfu.h index 6fa4505936..84abdc79ac 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -79,7 +79,7 @@ struct nand_internal_data { }; struct ram_internal_data { - void *start; + unsigned long start; unsigned int size; }; |