]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix patching of SPI/NOR XIP images
authorPali Rohár <pali@kernel.org>
Sat, 21 Jan 2023 11:59:20 +0000 (12:59 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commite752aaa7227ce211fe357795b76c1e24c36a83c5
treee25d57068b87b0d2eafeea83adbbe8c86fcf20bb
parent71542ae264f91a5a893b99795dc6233e0d111aba
tools: kwboot: Fix patching of SPI/NOR XIP images

Marvell BootROM interprets execaddr of SPI/NOR XIP images as relative byte
offset from the from the beginning of the flash device. So if data image
offset and execute offset are not same then it is needed to adjust them
also in DDR RAM.

Fixes: f97c5733fbe6 ("tools: kwboot: Patch destination address to DDR area for SPI image")
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwboot.c