Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

disk

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Reform / reform-boundary-uboot
    Loading
    user avatar
    Philipp Tomsich authored
    Some architectures require their SPL loader at a fixed address within
    the first 16KB of the disk. To avoid an overlap with the partition
    entries of the EFI partition table, the first safe offset (in bytes,
    from the start of the device) for the entries can be set through
    CONFIG_EFI_PARTITION_ENTRIES_OFF (via Kconfig)
    
    When formatting a device with an EFI partition table, we may need to
    leave a gap between the GPT header (always in LBA 1) and the partition
    entries. The GPT header already contains a field to specify the
    on-disk location, which has so far always been set to LBA 2. With this
    change, a configurable offset will be translated into a LBA address
    indicating where to put the entries.
    
    Now also allows an override via device-tree using a config-node (see
    doc/device-tree-bindings/config.txt for documentation).
    
    Tested (exporting an internal MMC formatted with this) against Linux,
    MacOS X and Windows.
    
    Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    [trini: __maybe_unused on config_offset to avoid warning]
    Signed-off-by: default avatarTom Rini <trini@konsulko.com>
    02e43537
    History