]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Fix generating, verifying and extracting SDIO kwbimage
authorPali Rohár <pali@kernel.org>
Sun, 8 Jan 2023 12:22:03 +0000 (13:22 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commite3ed7f1095e6ac8d82dd46f7ae29b58d1a567718
tree09d1624f16f5a176ace6821cf37e8bc8972cceaa
parentd3ed0a132d43013af5337cb4c3e7506d26c5e027
tools: kwbimage: Fix generating, verifying and extracting SDIO kwbimage

Despite the official specification, Marvell BootROM does not interpret
srcaddr from SDIO image as offset in number of sectors (like for SATA
image), but as offset in bytes (like for all other images except SATA).

To generate SDIO kwbimage compatible with Marvell BootROM, it is needed to
have srcaddr in bytes. This change fixes SDIO images for Armada 38x SoCs.

Fixes: 524291a06058 ("tools: kwbimage: Fix generation of SATA, SDIO and PCIe images")
Fixes: 994f545998bf ("tools: kwbimage: Properly set srcaddr in kwbimage v0")
Fixes: 727cc2256b87 ("tools: kwbimage: Validate data checksum of v1 images")
Fixes: cd7773ade104 ("kwbimage: Add support for extracting images via dumpimage tool")
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c