Motivated by the the SPL layout for SD/MMC devices on Allwinner SoCs (the SPL code needs to reside an 8K offset into the device), we add support for leaving a gap between the MBR (LBA#0), GPT header (LBA#1) and GPT partition entries (linked from field in the GPT header).
Note that this affects the creation of partition from U-Boot only and has no effect on reading existing partition tables. If defined, EFI_PARTITION_ENTRIES_OFF specifies a byte-offset into a device and the parititon entries will be located starting at the next LBA folling this offset. In the latest incarnation of this change, we also allow the byte offset to be read from the 'u-boot,efi-partition-entries-offset' property of the '/config' node in the device-tree. There's a similar change for gparted floating around the internet: http://lists.alioth.debian.org/pipermail/parted-devel/2016-March/004826.html This change has been in production use on our modules for a while (over a year) both with a Linux and Android userspace. Philipp Tomsich (2): part_efi: support padding between the GPT header and partition entries sunxi-common: add EFI_PARTITION_ENTRIES_OFF, CONFIG_RANDOM_UUID and CONFIG_CMD_GPT disk/part_efi.c | 41 ++++++++++++++++++++++++++++++++++++++--- include/configs/sunxi-common.h | 5 ++++- scripts/config_whitelist.txt | 1 + 3 files changed, 43 insertions(+), 4 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot