]> git.baikalelectronics.ru Git - uboot.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)
commit90084caf87f82cd4a1bb3d681ed01c426e04c85a
treea484cc7a3e408bc638f0bb618778b26d4c49ca56
parentb671da2c886aa729c209ec6bdaa9b4fa9c6511d1
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