summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2023-01-08 13:38:27 +0100
committerStefan Roese <[email protected]>2023-03-01 06:39:17 +0100
commit7665ed2fa04e0726e142e13bcd77b738e912357f (patch)
tree03dbe107ba8b5eeceeb09e2ad25faf7ab6b78037 /include/linux/linux_string.h
parentfa03279e198d220d05898e2d35a139fd599b4acf (diff)
tools: kwboot: Fix parsing UART image without data checksum
The 32-bit data checksum in UART image is not checked by the BootROM and also Marvell tools do not generate it. So if data checksum stored in UART image does not match calculated checksum from the image then treat those checksum bytes as part of the executable image code (and not as the checksum) and for compatibility with the rest of the code manually insert data checksum into the in-memory image after the executable code, without overwriting it. This should allow to boot UART images generated by Marvell tools. Signed-off-by: Pali Rohár <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions