dfu: fix dfu tftp on sandbox
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 22 Jul 2020 15:46:02 +0000 (17:46 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit73f4ebb659df4996e154b17f14866fb166447be0
tree840d05be38ffc1690c7e9aedc291c067c0731189
parent9337037518e7a1fb8d2e16e1eaacfea8b1fb5b01
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>
common/update.c
drivers/dfu/dfu_ram.c
include/dfu.h