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 Sep, 2017

1 commit


05 Aug, 2017

1 commit

  • This patch provides support in u-boot for renaming GPT
    partitions. The renaming is accomplished via new 'gpt swap'
    and 'gpt rename' commands.

    The 'swap' mode returns an error if no matching partition names
    are found, or if the number of partitions with one name does not equal
    the number with the second name. The 'rename' variant always
    succeeds as long as a partition with the provided number exists.

    Rewriting the partition table has the side-effect that all partitions
    end up with "msftdata" flag set. The reason is that partition type
    PARTITION_BASIC_DATA_GUID is hard-coded in the gpt_fill_pte()
    function. This does not appear to cause any harm.

    Signed-off-by: Alison Chaiken

    Alison Chaiken
     

04 Aug, 2017

3 commits

  • In order to read the GPT, modify the partition name strings, and then
    write out a new GPT, the disk GUID is needed. While there is an
    existing accessor for the partition UUIDs, there is none yet for the
    disk GUID.

    Changes since v6: none.

    Signed-off-by: Alison Chaiken

    Alison Chaiken
     
  • Make minor changes to README.gpt and sandbox_defconfig to support
    testing of the gpt command's functionality in the sandbox.

    Changes since v6: none.

    Signed-off-by: Alison Chaiken

    Alison Chaiken
     
  • The existing partitions-list parsing in cmd/gpt.c passes a value
    from gpt_default() to set_gpt_info() that README.gpt suggests
    should begin with 'partitions='. Partition-list strings should
    in fact begin with 'uuid_disk', as otherwise the call from
    set_gpt_info() to extract_val() to find 'uuid_disk' will fail.
    Change README.gpt accordingly.

    Changes since v6: none.

    Signed-off-by: Alison Chaiken

    Alison Chaiken
     

12 Jul, 2017

1 commit


16 Jul, 2016

1 commit

  • Fix a number of typos, including:

    * "compatble" -> "compatible"
    * "eanbeld" -> "enabled"
    * "envrionment" -> "environment"
    * "FTD" -> "FDT" (for "flattened device tree")
    * "ommitted" -> "omitted"
    * "overriden" -> "overridden"
    * "partiton" -> "partition"
    * "propogate" -> "propagate"
    * "resourse" -> "resource"
    * "rest in piece" -> "rest in peace"
    * "suport" -> "support"
    * "varible" -> "variable"

    Signed-off-by: Robert P. J. Day

    Robert P. J. Day
     

24 Nov, 2015

1 commit

  • The optional parameter bootable is added in gpt command to set the
    partition attribute flag "Legacy BIOS bootable"

    This flag is used in extlinux and so in with distro to select
    the boot partition where is located the configuration file
    (please check out doc/README.distro for details).

    With this parameter, U-Boot can be used to create the boot partition
    needed for device using distro.

    example of use:

    setenv partitions "name=u-boot,size=60MiB;name=boot,size=60Mib,bootable;\
    name=rootfs,size=0"

    > gpt write mmc 0 $partitions

    > part list mmc 0

    Partition Map for MMC device 0 -- Partition Type: EFI

    Part Start LBA End LBA Name
    Attributes
    Type GUID
    Partition GUID
    1 0x00000022 0x0001e021 "u-boot"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: cceb0b18-39cb-d547-9db7-03b405fa77d4
    2 0x0001e022 0x0003c021 "boot"
    attrs: 0x0000000000000004
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: d4981a2b-0478-544e-9607-7fd3c651068d
    3 0x0003c022 0x003a9fde "rootfs"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: 6d6c9a36-e919-264d-a9ee-bd00379686c7

    > part list mmc 0 -bootable devplist

    > printenv devplist

    devplist=2

    Then the distro scripts will search extlinux in partition 2
    and not in the first partition.

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

23 Nov, 2015

1 commit


13 Nov, 2015

3 commits

  • short strings can be used in type parameter of gpt command
    to replace the guid string for the types known by u-boot

    partitions = name=boot,size=0x6bc00,type=data; \
    name=root,size=0x7538ba00,type=linux;
    gpt write mmc 0 $partitions

    and they are also used to display the type of partition
    in "part list" command

    Partition Map for MMC device 0 -- Partition Type: EFI

    Part Start LBA End LBA Name
    Attributes
    Type GUID
    Partition GUID
    1 0x00000022 0x0000037f "boot"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    type: data
    guid: d117f98e-6f2c-d04b-a5b2-331a19f91cb2
    2 0x00000380 0x003a9fdc "root"
    attrs: 0x0000000000000000
    type: 0fc63daf-8483-4772-8e79-3d69d8477de4
    type: linux
    guid: 25718777-d0ad-7443-9e60-02cb591c9737

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • code under flag CONFIG_PARTITION_TYPE_GUID
    add parameter "type" to select partition type guid

    example of use with gpt command :

    partitions = uuid_disk=${uuid_gpt_disk}; \
    name=boot,size=0x6bc00,uuid=${uuid_gpt_boot}; \
    name=root,size=0x7538ba00,uuid=${uuid_gpt_root}, \
    type=0fc63daf-8483-4772-8e79-3d69d8477de4;

    gpt write mmc 0 $partitions

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • 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
     

06 Mar, 2015

1 commit


13 May, 2014

1 commit


03 Apr, 2014

1 commit


15 Oct, 2013

1 commit


24 Jul, 2013

1 commit


14 Dec, 2012

1 commit