public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries
@ 2017-02-17 17:31 Philipp Tomsich
  2017-02-17 17:31 ` [U-Boot] [PATCH v1 1/2] part_efi: support padding between the GPT header and " Philipp Tomsich
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Philipp Tomsich @ 2017-02-17 17:31 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-22 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 17:31 [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries Philipp Tomsich
2017-02-17 17:31 ` [U-Boot] [PATCH v1 1/2] part_efi: support padding between the GPT header and " Philipp Tomsich
2017-02-22  3:59   ` Simon Glass
2017-02-17 17:31 ` [U-Boot] [PATCH v1 2/2] sunxi-common: add EFI_PARTITION_ENTRIES_OFF, CONFIG_RANDOM_UUID and CONFIG_CMD_GPT Philipp Tomsich
2017-02-21 17:45 ` [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries Maxime Ripard
2017-02-21 18:10   ` Dr. Philipp Tomsich
2017-02-21 18:21   ` Dr. Philipp Tomsich
2017-02-22 17:38     ` Maxime Ripard
2017-02-22  6:11 ` Rask Ingemann Lambertsen
2017-02-22 10:08   ` Dr. Philipp Tomsich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox