]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Recalculate 4-byte data checksum after injecting baudrate code
authorPali Rohár <pali@kernel.org>
Mon, 25 Oct 2021 13:12:57 +0000 (15:12 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
commit82c5a0ac713500f4da9d8562cd4764c733b65e56
tree13f4b5a5b73cc0f6dde5b8b513141f7e79e0aa30
parent063cb352814b5363aebb4c733a41b951787b1f5f
tools: kwboot: Recalculate 4-byte data checksum after injecting baudrate code

If data part of image is modified, update 4-byte data checksum.

It looks like A385 BootROM does not verify this checksum for image
loaded via UART, but we do not know if other BootROMs are also ignoring
it. It is always better to provide correct checksum.

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