Skip to content
Snippets Groups Projects
  1. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      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: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  2. Sep 07, 2017
  3. Aug 05, 2017
    • Alison Chaiken's avatar
      GPT: provide commands to selectively rename partitions · 203f9b48
      Alison Chaiken authored
      
      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: default avatarAlison Chaiken <alison@peloton-tech.com>
      203f9b48
  4. Aug 04, 2017
  5. Jul 11, 2017
  6. Jul 16, 2016
    • Robert P. J. Day's avatar
      Various, unrelated tree-wide typo fixes. · 62a3b7dd
      Robert P. J. Day authored
      
          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: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      62a3b7dd
  7. Nov 23, 2015
    • Patrick Delaunay's avatar
      part:efi: add bootable parameter in gpt command · cfdaf4ca
      Patrick Delaunay authored
      
      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: default avatarPatrick Delaunay <patrick.delaunay73@gmail.com>
      cfdaf4ca
    • Lukasz Majewski's avatar
      gpt: doc: README: Update README entry for gpt verify extension · dd445879
      Lukasz Majewski authored
      
      ./doc/README.gpt entry has been updated to explain usage of "gpt verify"
      command.
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@majess.pl>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      dd445879
  8. Nov 12, 2015
    • Patrick Delaunay's avatar
      uuid: add selection by string for known partition type GUID · bcb41dca
      Patrick Delaunay authored
      
      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: default avatarPatrick Delaunay <patrick.delaunay73@gmail.com>
      bcb41dca
    • Patrick Delaunay's avatar
      gpt: add optional parameter type in gpt command · 7561b258
      Patrick Delaunay authored
      
      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: default avatarPatrick Delaunay <patrick.delaunay73@gmail.com>
      7561b258
    • Patrick Delaunay's avatar
      part:efi: add GUID for linux file system data · b38c108a
      Patrick Delaunay authored
      
      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: default avatarPatrick Delaunay <patrick.delaunay73@gmail.com>
      b38c108a
  9. Mar 05, 2015
  10. May 12, 2014
  11. Apr 02, 2014
  12. Oct 14, 2013
  13. Jul 24, 2013
  14. Dec 13, 2012
Loading