]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix inserting UART data checksum without -B option
authorPali Rohár <pali@kernel.org>
Thu, 23 Mar 2023 19:57:53 +0000 (20:57 +0100)
committerStefan Roese <sr@denx.de>
Fri, 24 Mar 2023 12:13:41 +0000 (13:13 +0100)
commitdb949ef41bfc82a616ce0ae566a3b13c7af259a6
treeef90557b4a1eaf125c8b1a7295ee3b124a5b4694
parent94e3df5843149ace304316f704d2f512cf9fcd23
tools: kwboot: Fix inserting UART data checksum without -B option

Commit 83a1a335bc84 ("tools: kwboot: Fix parsing UART image without data
checksum") added fixup code to insert place for data checksum if UART image
does not have it. Together with option -B (change baudrate), kwboot
calculates this checksum. Without option -B, it inserts only place for
checksum but does not calculate it.

This commit fix above logic and calculate data checksum also when kwboot is
used without -B option.

Fixes: 83a1a335bc84 ("tools: kwboot: Fix parsing UART image without data checksum")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c