commit | b393da503158040c4b2dfc5ec2202bbe5b68ff1c | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Mon Aug 14 01:48:45 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 22 15:17:52 2023 -0400 |
tree | f3a78e90fa17789164827111b166804ad3cea042 | |
parent | f23e8e7fa7f59bdd8d2146c7f3011ef49572ce0a [diff] |
disk: dos: Infer MBR partition sector size from underlying drive sector size Block devices with 4k sectors imply the MBR sectors are also 4k instead of regular 512B. Avoid hard-coding the 512B sector size and isntead read the current block device sector size from it, and if the sector size is larger than 512B, use the block device sector size. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>