]> git.dujemihanovic.xyz Git - u-boot.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)
commit14b866e6d650645881cac041db64f67158ced24e
tree09d1624f16f5a176ace6821cf37e8bc8972cceaa
parentf10905b4b7b9b6888e2532cdfb3536d2244676cb
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: 501a54a29cc2 ("tools: kwbimage: Fix generation of SATA, SDIO and PCIe images")
Fixes: 5c61710c9880 ("tools: kwbimage: Properly set srcaddr in kwbimage v0")
Fixes: e0c243c398a7 ("tools: kwbimage: Validate data checksum of v1 images")
Fixes: aa6943ca3122 ("kwbimage: Add support for extracting images via dumpimage tool")
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c