]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Fix generation of SATA, SDIO and PCIe images
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:13:59 +0000 (11:13 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:31 +0000 (09:49 +0200)
commit501a54a29cc20ce7df70f290fa274b8e2ea9d6f4
tree9442fc25f77ecb1275330373f514273e4382952a
parentbd487ce0813553fecd41fe1c24a111193cf563ba
tools: kwbimage: Fix generation of SATA, SDIO and PCIe images

SATA and SDIO images must be aligned to sector size (which in most cases
is 512 bytes) and Source Address in main header is stored in number of
sectors from the beginning of the drive. SATA image must be stored at
sector 1 and SDIO image at sector 0. Source Address for PCIe image is
not used and must be set to 0xFFFFFFFF.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
tools/kwbimage.c