public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rask Ingemann Lambertsen <rask@formelder.dk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries
Date: Wed, 22 Feb 2017 07:11:15 +0100	[thread overview]
Message-ID: <20170222061115.yw3opsnaeb26n345@localhost> (raw)
In-Reply-To: <cover.1487337727.git.philipp.tomsich@theobroma-systems.com>

On Fri, Feb 17, 2017 at 06:31:29PM +0100, Philipp Tomsich wrote:
> 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 principle, this isn't really EFI specific, because all partition table
formats will need to avoid the SPL area, so the configuration string
shouldn't include the word EFI. EFI just happens to be the only(?) partition
table format which is bloated enough to not easily fit into the space before
the SPL area.

Also, it seems to me that there should also be a way of specifying how much
room is available before the SPL area. So you could have
CONFIG_SPL_AREA_START and CONFIG_SPL_AREA_SIZE, which added together gives
the same value as your EFI_PARTITION_ENTRIES_OFF.

-- 
Rask Ingemann Lambertsen

  parent reply	other threads:[~2017-02-22  6:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-02-22 10:08   ` Dr. Philipp Tomsich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170222061115.yw3opsnaeb26n345@localhost \
    --to=rask@formelder.dk \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox