From 0557d46b63cc1d871f3752ed771a9fc13d0c9786 Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Thu, 11 Apr 2019 20:27:51 +0000 Subject: disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCs Some ChromeOS devices (atleast veyron speedy) have the first 8MiB of the eMMC write protected and equipped with a dummy 'IGNOREME' GPT header - instead of spewing error messages about it, just silently try the backup GPT. Note: this does not touch the gpt cmd writing/verifying functions, those will still complain. Signed-off-by: Urja Rannikko Reviewed-by: Kever Yang --- include/part_efi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/part_efi.h b/include/part_efi.h index 7170b61c955..eb5797af745 100644 --- a/include/part_efi.h +++ b/include/part_efi.h @@ -25,6 +25,8 @@ #define EFI_PMBR_OSTYPE_EFI_GPT 0xEE #define GPT_HEADER_SIGNATURE_UBOOT 0x5452415020494645ULL +#define GPT_HEADER_CHROMEOS_IGNORE 0x454d45524f4e4749ULL // 'IGNOREME' + #define GPT_HEADER_REVISION_V1 0x00010000 #define GPT_PRIMARY_PARTITION_TABLE_LBA 1ULL #define GPT_ENTRY_NUMBERS CONFIG_EFI_PARTITION_ENTRIES_NUMBERS -- cgit v1.3.1