Skip to content
Snippets Groups Projects
Commit b349abbf authored by Maxime Ripard's avatar Maxime Ripard Committed by Tom Rini
Browse files

gpt: Fix the protective MBR partition size


According to the UEFI Spec (Table 16, section 5.2.3 of the version 2.4 Errata
B), the protective MBR partition record size must be set to the size of the
disk minus one, in LBAs.

However, the current code was setting the size as the total number of LBAs on
the disk, resulting in an off-by-one error.

This confused the AM335x ROM code, and will probably confuse other tools as
well.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent b6b1b445
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment