08 Jan, 2020

1 commit


23 Aug, 2019

1 commit

  • 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
    Reviewed-by: Kever Yang

    Urja Rannikko
     

09 Oct, 2018

1 commit


05 Jun, 2018

1 commit

  • In commit e163a931af34 ("cmd: gpt: backup boot code before writing MBR")
    there was added the procedure for storing old boot code when doing "gpt
    write". But instead of storing just backup code, the whole MBR was
    stored, and only specific fields were replaced further, keeping
    everything else intact. That's obviously not what we want.

    Fix the code to actually store only old boot code and zero out
    everything else. This fixes next testing case:

    => mmc write $loadaddr 0x0 0x7b
    => gpt write mmc 1 $partitions

    In case when $loadaddr address and further memory contains 0xff, the
    board was bricked (ROM-code probably didn't like partition entries that
    were clobbered with 0xff). With this patch applied, commands above don't
    brick the board.

    Signed-off-by: Sam Protsenko
    Cc: Alejandro Hernandez
    Tested-by: Andy Shevchenko

    Sam Protsenko
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

07 Dec, 2017

1 commit


20 Sep, 2017

1 commit


02 Oct, 2016

1 commit

  • Move FASTBOOT_MBR_NAME and FASTBOOT_GPT_NAME into Kconfig.
    Add dependency on the FASTBOOT_FLASH setting (also for FASTBOOT_MBR_NAME).
    Remove the now redundant GPT_ENTRY_NAME.

    Signed-off-by: Petr Kulhavy
    Reviewed-by: Tom Rini
    Acked-by: Steve Rae
    Reviewed-by: Simon Glass
    [trini: Add FIXME about xxx_PARTITION needing to be in Kconfig]
    Signed-off-by: Tom Rini

    Petr Kulhavy
     

13 Nov, 2015

1 commit

  • Previously, Linux used the same GUID for the data partitions as Windows
    (Basic data partition: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7).
    This created problems when dual-booting Linux and Windows in UEFI-GPT
    Setup, so a new GUID (Linux filesystem data:
    0FC63DAF-8483-4772-8E79-3D69D8477DE4) was defined jointly by GPT fdisk
    and GNU Parted developers.

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

05 Aug, 2015

1 commit

  • When running as an EFI application, U-Boot must request memory from EFI,
    and provide access to the boot services U-Boot needs.

    Add library code to perform these tasks. This includes efi_main() which is
    the entry point from EFI. U-Boot is built as a shared library.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

15 Oct, 2013

1 commit


24 Jul, 2013

1 commit


02 May, 2013

1 commit


14 Dec, 2012

2 commits