commit | eebdc21e600fbe53a23dc934c3581bb887274796 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Wed Mar 29 21:25:57 2023 +0200 |
committer | Stefan Roese <sr@denx.de> | Thu Apr 13 11:34:47 2023 +0200 |
tree | 3f4782310844fe827d91887ff5d9227d859f7dc1 | |
parent | 15c8937818591698fb9247f97638e48826e7722c [diff] |
tools: kwboot: Add support for parsing SATA images with non-512 block size Currently kwboot expected that sector size for SATA image is always 512 bytes. If SATA image cannot be parsed with sector size of 512 bytes, try larger sector sizes which are power of two and up to the 32 kB. Maximal theoretical value is 32 kB because ATA IDENTIFY command returns sector size as 16-bit number. Signed-off-by: Pali Rohár <pali@kernel.org>