]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Patch source address in image header
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:06:58 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commit792e42355083a7d57c156b45ce6701243989c495
treea484cc7a3e408bc638f0bb618778b26d4c49ca56
parent550c93085aac67e88486355121e71678c41c38e1
tools: kwboot: Patch source address in image header

Some image types have source address in non-bytes unit; for example for
SATA images, it is in 512 B units.

We need to multiply by unit size when patching image type to UART.

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