1. 06 10月, 2020 1 次提交
    • S
      bloblist: Add a command · 4aed2276
      Simon Glass 提交于
      It is helpful to be able to see basic statistics about the bloblist and
      also to list its contents. Add a 'bloblist' command to handle this.
      
      Put the display functions in the bloblist modules rather than in the
      command code itself. That allows showing a list from SPL, where commands
      are not available.
      
      Also make bloblist_first/next_blob() static as they are not used outside
      this file.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      4aed2276
  2. 10 9月, 2020 1 次提交
  3. 15 8月, 2020 1 次提交
  4. 08 8月, 2020 1 次提交
  5. 05 8月, 2020 1 次提交
    • J
      cmd: add clone command · 4a4830cf
      John Chau 提交于
      This patch adds a feature for block device cloning similar to dd
      command, this should be useful for boot-strapping a device where
      usb gadget or networking is not available. For instance one can
      clone a factory image into a blank emmc from an external sd card.
      Signed-off-by: NJohn Chau <john@harmon.hk>
      4a4830cf
  6. 29 7月, 2020 1 次提交
  7. 16 7月, 2020 1 次提交
  8. 09 7月, 2020 2 次提交
  9. 08 7月, 2020 1 次提交
  10. 30 4月, 2020 1 次提交
  11. 18 4月, 2020 1 次提交
  12. 04 2月, 2020 1 次提交
  13. 25 1月, 2020 1 次提交
  14. 21 1月, 2020 1 次提交
  15. 18 1月, 2020 1 次提交
  16. 11 1月, 2020 1 次提交
    • E
      dtimg/am57xx_evm_defconfig: Rename dtimg to adtimg · b84acf10
      Eugeniu Rosca 提交于
      Rename the existing 'dtimg' command to 'adtimg', in order to:
       - Suggest the Android origins and scope
       - Be consistent with the upcoming 'abootimg' command (naming
         suggested by Simon [*])
      
      The change in _not_ backward compatible, but its benefits outweigh its
      downsides, given that we don't expect active users of 'dtimg' today.
      
      Perform the rename in several steps:
       1. Rename *.c file and Kconfig symbol. This should allow
          'git log --follow' to properly track the history of 'adtimg.c'
       2. 's/dtimg/adtimg/g' in the internal namespace of 'adtimg.c'
      
      ELF comparison [**] before and after shows no functional change.
      
      [*] https://patchwork.ozlabs.org/patch/1182212/#2291600
      [**] diff -u <(objdump -d cmd/dtimg.o) <(objdump -d cmd/adtimg.o)
      
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      Reviewed-by: Simon Glass<sjg@chromium.org>
      Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
      b84acf10
  17. 08 1月, 2020 1 次提交
  18. 15 12月, 2019 1 次提交
  19. 09 12月, 2019 1 次提交
  20. 07 12月, 2019 2 次提交
  21. 05 12月, 2019 1 次提交
    • M
      cmd: nand/sf: isolate legacy code · eb446ef6
      Miquel Raynal 提交于
      The 'sf' command is not supposed to rely on the MTD stack, but both
      'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite
      their location, these functions do not depend at all on the MTD
      stack.
      
      This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is
      selected, which is inconsistent with the current situation. Solve this
      by moving these three functions (which are only used by the above two
      commands) out of mtd_uboot.c and put them in a C file only compiled
      with cmd/sf.c and cmd/nand.c.
      Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
      [trini: Don't export get_part function now]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      eb446ef6
  22. 03 12月, 2019 1 次提交
    • T
      blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more · 4df23e58
      Tom Rini 提交于
      When we do not have CONFIG_BLK (or SPL/TPL) enabled there are very few
      cases where we need the blk_legacy code linked in. To catch these, build
      when we have CONFIG_HAVE_BLOCK_DEVICE set.  In addition, we only need
      cmd/blk_common.o to be linked in when we have CONFIG_HAVE_BLOCK_DEVICE
      set, so make use of that directly.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      4df23e58
  23. 24 10月, 2019 1 次提交
  24. 05 9月, 2019 1 次提交
  25. 12 8月, 2019 1 次提交
  26. 25 7月, 2019 1 次提交
  27. 15 7月, 2019 1 次提交
  28. 12 7月, 2019 1 次提交
    • E
      cmd: Add 'bcb' command to read/modify/write BCB fields · db7b7a05
      Eugeniu Rosca 提交于
      'Bootloader Control Block' (BCB) is a well established term/acronym in
      the Android namespace which refers to a location in a dedicated raw
      (i.e. FS-unaware) flash (e.g. eMMC) partition, usually called "misc",
      which is used as media for exchanging messages between Android userspace
      (particularly recovery [1]) and an Android-capable bootloader.
      
      On higher level, this allows implementing a subset of Android Bootloader
      Requirements [2], amongst which is the Android-specific bootloader
      flow [3]. Regardless how the latter is implemented in U-Boot ([3] being
      the most memorable example), reading/writing/dumping the BCB fields in
      the development process from inside the U-Boot is a convenient feature.
      Hence, make it available to the users.
      
      Some usage examples of the new command recorded on R-Car H3ULCB-KF
      ('>>>' is an overlay on top of the original console output):
      
      => bcb
      bcb - Load/set/clear/test/dump/store Android BCB fields
      
      Usage:
      bcb load  <dev> <part>       - load  BCB from mmc <dev>:<part>
      bcb set   <field> <val>      - set   BCB <field> to <val>
      bcb clear [<field>]          - clear BCB <field> or all fields
      bcb test  <field> <op> <val> - test  BCB <field> against <val>
      bcb dump  <field>            - dump  BCB <field>
      bcb store                    - store BCB back to mmc
      
      Legend:
      <dev>   - MMC device index containing the BCB partition
      <part>  - MMC partition index or name containing the BCB
      <field> - one of {command,status,recovery,stage,reserved}
      <op>    - the binary operator used in 'bcb test':
                '=' returns true if <val> matches the string stored in <field>
                '~' returns true if <val> matches a subset of <field>'s string
      <val>   - string/text provided as input to bcb {set,test}
                NOTE: any ':' character in <val> will be replaced by line feed
                during 'bcb set' and used as separator by upper layers
      
      => bcb dump command
      Error: Please, load BCB first!
       >>> Users must specify mmc device and partition before any other call
      
      => bcb load 1 misc
      => bcb load 1 1
       >>> The two calls are equivalent (assuming "misc" has index 1)
      
      => bcb dump command
      00000000: 62 6f 6f 74 6f 6e 63 65 2d 73 68 65 6c 6c 00 72    bootonce-shell.r
      00000010: 79 00 72 00 00 00 00 00 00 00 00 00 00 00 00 00    y.r.............
       >>> The output is in binary/string format for convenience
       >>> The output size matches the size of inspected BCB field
       >>> (32 bytes in case of 'command')
      
      => bcb test command = bootonce-shell && echo true
      true
      => bcb test command = bootonce-shell- && echo true
      => bcb test command = bootonce-shel && echo true
       >>> The '=' operator returns 'true' on perfect match
      
      => bcb test command ~ bootonce-shel && echo true
      true
      => bcb test command ~ bootonce-shell && echo true
      true
       >>> The '~' operator returns 'true' on substring match
      
      => bcb set command recovery
      => bcb dump command
      00000000: 72 65 63 6f 76 65 72 79 00 73 68 65 6c 6c 00 72    recovery.shell.r
      00000010: 79 00 72 00 00 00 00 00 00 00 00 00 00 00 00 00    y.r.............
       >>> The new value is NULL-terminated and stored in the BCB field
      
      => bcb set recovery "msg1:msg2:msg3"
      => bcb dump recovery
      00000040: 6d 73 67 31 0a 6d 73 67 32 0a 6d 73 67 33 00 00    msg1.msg2.msg3..
      00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
      00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
       >>> --- snip ---
       >>> Every ':' is replaced by line-feed '\n' (0xA). The latter is used
       >>> as separator between individual commands by Android userspace
      
      => bcb store
       >>> Flush/store the BCB structure to MMC
      
      [1] https://android.googlesource.com/platform/bootable/recovery
      [2] https://source.android.com/devices/bootloader
      [3] https://patchwork.ozlabs.org/patch/746835/
          ("[U-Boot,5/6] Initial support for the Android Bootloader flow")
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      db7b7a05
  29. 29 5月, 2019 1 次提交
  30. 23 4月, 2019 1 次提交
    • H
      cmd: add exception command · dab8788a
      Heinrich Schuchardt 提交于
      The 'exception' command allows to test exception handling.
      
      This implementation supports ARM, x86, RISC-V and the following exceptions:
      * 'breakpoint' - prefetch abort exception (ARM 32bit only)
      * 'unaligned'  - data abort exception (ARM only)
      * 'undefined'  - undefined instruction exception
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      dab8788a
  31. 12 4月, 2019 1 次提交
  32. 25 2月, 2019 2 次提交
  33. 20 2月, 2019 1 次提交
  34. 16 12月, 2018 1 次提交
  35. 05 12月, 2018 1 次提交
  36. 26 11月, 2018 1 次提交
    • S
      sandbox: Add a new 'sb' command · d66ddafa
      Simon Glass 提交于
      The old 'sb' command was deprecated in 2015 and replaced with 'host'. It
      is useful to be able to access some internal sandbox state, particularly
      for testing.
      
      Resurrect the old command and provide a way to print some basic state
      information (currently just the arguments to sandbox).
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d66ddafa
  37. 17 11月, 2018 1 次提交