Skip to content
Snippets Groups Projects
  1. 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
    • Alison Chaiken's avatar
      GPT: read partition table from device into a data structure · 09a49930
      Alison Chaiken authored
      
      Make the partition table available for modification by reading it from
      the user-specified device into a linked list.   Provide an accessor
      function for command-line testing.
      
      Signed-off-by: default avatarAlison Chaiken <alison@peloton-tech.com>
      [trini: Make this depend on CMD_GPT_RENAME, as it is the user of this
      code]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      09a49930
  2. Aug 04, 2017
  3. Aug 03, 2017
  4. Aug 02, 2017
Loading