summaryrefslogtreecommitdiff
path: root/include/part_efi.h
diff options
context:
space:
mode:
authorUrja Rannikko <urjaman@gmail.com>2019-04-11 20:27:51 +0000
committerKever Yang <kever.yang@rock-chips.com>2019-08-23 18:15:50 +0800
commit0557d46b63cc1d871f3752ed771a9fc13d0c9786 (patch)
tree271b4d31b3e58026c65582e2ab360d9705406f28 /include/part_efi.h
parent20c568cae6e95c727bb97ba55a558916dc42baf4 (diff)
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 <urjaman@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/part_efi.h')
-rw-r--r--include/part_efi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/part_efi.h b/include/part_efi.h
index 7170b61c95..eb5797af74 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