]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7a9725b218cfaa7e5def8b6e8a768a06a1c0d03f
tree840d05be38ffc1690c7e9aedc291c067c0731189
parent10924747ef5c21a9a64372c39181437957c92b47
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