]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Patch destination address to DDR area for SPI image
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:06:59 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitf97c5733fbe699e7f6d0c9be448bc822e0cbb8ab
tree8f4f55892cf52cbd95f2f5c99ebc15f74bd0aa81
parent90084caf87f82cd4a1bb3d681ed01c426e04c85a
tools: kwboot: Patch destination address to DDR area for SPI image

SPI/NOR kwbimage may have destination address set to 0xFFFFFFFF, which
means that the image is not downloaded to DDR but rather it is executed
directly from SPI/NOR. In this case execution address is set to SPI/NOR
area.

When patching image to UART type, change destination and execution
addresses from SPI/NOR XIP area to DDR area 0x00800000 (which is default
for A38x).

Signed-off-by: Pali Rohár <pali@kernel.org>
[ refactored ]
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c