diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-01-08 12:26:44 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-08 11:00:45 -0500 |
commit | b349abbfe95972ee7770d8ffef0eaf45cc84f419 (patch) | |
tree | 4f9e1e781ae9ad07fd977c449b6eef0b82253f22 /common/cmd_source.c | |
parent | b6b1b44586778885f37e1a2f2b17da7ddb04d565 (diff) | |
download | u-boot-imx-b349abbfe95972ee7770d8ffef0eaf45cc84f419.zip u-boot-imx-b349abbfe95972ee7770d8ffef0eaf45cc84f419.tar.gz u-boot-imx-b349abbfe95972ee7770d8ffef0eaf45cc84f419.tar.bz2 |
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: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'common/cmd_source.c')
0 files changed, 0 insertions, 0 deletions