[U-Boot] gpt: Fix the protective MBR partition size

Tom Rini trini at ti.com
Fri Jan 9 14:34:24 CET 2015


On Thu, Jan 08, 2015 at 12:26:44PM +0100, Maxime Ripard wrote:

> 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 at free-electrons.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150109/9aa3b759/attachment.pgp>


More information about the U-Boot mailing list