Skip to content
Snippets Groups Projects
  1. Nov 09, 2020
  2. Oct 30, 2020
  3. Oct 28, 2020
    • Pratyush Yadav's avatar
      cmd: Add a mux command · 05115abe
      Pratyush Yadav authored and Tom Rini's avatar Tom Rini committed
      
      This command lets the user list, select, and deselect mux controllers
      introduced with the mux framework on the fly. It has 3 subcommands:
      list, select, and deselect.
      
      List: Lists all the mux present on the system. The muxes are listed for
      each chip. The chip is identified by its device name. Each chip can have
      a number of mux controllers. Each is listed in sequence and is assigned
      a sequential ID based on its position in the mux chip. It lists details
      like ID, whether the mux is currently selected or not, the current
      state, the idle state, and the number of states.
      
      A sample output would look something like:
      
      => mux list
      a-mux-controller:
      	ID	Selected	Current State	Idle State	Num States
      	0	no        	unknown   	as-is     	0x4
      	1	no        	0x2       	0x2       	0x10
      	2	no        	0x73      	0x73      	0x100
      
      another-mux-controller:
      	ID	Selected	Current State	Idle State	Num States
              0       no              0x1             0x1             0x4
              1       no              0x2             0x2             0x4
      
      Select: Selects a given mux and puts it in the specified state. This
      subcommand takes 3 arguments: mux chip, mux ID, state to set
      the mux in. The arguments mux chip and mux ID are used to identify which
      mux needs to be selected, and then it is selected to the given state.
      The mux needs to be deselected before it can be selected again in
      another state. The state should be a hexadecimal number.
      
      For example:
      => mux list
      a-mux-controller:
              ID      Selected        Current State   Idle State      Num States
              0       no              0x1             0x1             0x4
              1       no              0x1             0x1             0x4
      => mux select a-mux-controller 0 0x3
      => mux list
      a-mux-controller:
              ID      Selected        Current State   Idle State      Num States
              0       yes             0x3             0x1             0x4
              1       no              0x1             0x1             0x4
      
      Deselect: Deselects a given mux and puts it in its idle state. This
      subcommand takes 2 arguments: the mux chip and mux ID to identify which
      mux needs to be deselected. So in the above example, we can deselect mux
      0 using:
      
      => mux deselect a-mux-controller 0
      => mux list
      a-mux-controller:
              ID      Selected        Current State   Idle State      Num States
              0       no              0x1             0x1             0x4
              1       no              0x1             0x1             0x4
      
      Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      05115abe
  4. Oct 23, 2020
  5. Oct 22, 2020
  6. Oct 14, 2020
    • Heinrich Schuchardt's avatar
      cmd/button: return button status · a6bfd71a
      Heinrich Schuchardt authored and Tom Rini's avatar Tom Rini committed
      
      To make the button command useful in a shell script it should return the
      status of the button:
      
      * 0 (true) - pressed, on
      * 1 (false) - not pressed, off
      
      The button command takes only one argument. Correct maxargs.
      
      Adjust the Python unit test.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarPhilippe Reynes <philippe.reynes@softathome.com>
      a6bfd71a
    • Frédéric Danis's avatar
      cmd: Fixup DT to pass PStore Ramoops parameters · 9ea0a1ee
      Frédéric Danis authored and Tom Rini's avatar Tom Rini committed
      
      To simplify configuration and keep synchronized the PStore/Ramoops between
      U-Boot and the Linux kernel, this commit dynamically adds the Ramoops
      parameters defined in the U-Boot session to the Device Tree.
      
      Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      9ea0a1ee
    • Frédéric Danis's avatar
      cmd: Add command to display or save Linux PStore dumps · 9744d1a5
      Frédéric Danis authored and Tom Rini's avatar Tom Rini committed
      
      This patch adds a new pstore command allowing to display or save ramoops
      logs (oops, panic, console, ftrace and user) generated by a previous
      kernel crash.
      PStore parameters can be set in U-Boot configuration file, or at run-time
      using "pstore set" command. Records size should be the same as the ones
      used by kernel, and should be a power of 2.
      This command allows:
      - to display uncompressed logs
      - to save compressed or uncompressed logs, compressed logs are saved as a
        compressed stream, it may need some work to be able to decompress it,
        e.g. adding a fake header:
        "printf "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x00" |
        cat - dmesg-ramoops-0.enc.z | gzip -dc"
      - ECC part is not used to check memory corruption
      - only 1st FTrace log is displayed or saved
      
      Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
      [trini: Minor updates for current design, correct spacing in rST]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      9744d1a5
  7. Oct 09, 2020
  8. Oct 06, 2020
    • Simon Glass's avatar
      bloblist: Add a command · 4aed2276
      Simon Glass authored
      
      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: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      4aed2276
    • Heinrich Schuchardt's avatar
      efi_loader: consider no-map property of reserved memory · 4cbb2930
      Heinrich Schuchardt authored
      The device tree may contain a /reserved-memory node. The no-map property
      of the sub-nodes signals if the memory may be accessed by the UEFI payload
      or not.
      
      In the EBBR specification (https://github.com/arm-software/ebbr
      
      ) the
      modeling of the reserved memory has been clarified.
      
      If a reserved memory node in the device tree has the no-map property map,
      create a EfiReservedMemoryType memory map entry else use
      EfiBootServicesData.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      4cbb2930
  9. Sep 30, 2020
  10. Sep 27, 2020
  11. Sep 25, 2020
  12. Sep 23, 2020
  13. Sep 21, 2020
    • Andy Shevchenko's avatar
      cmd: acpi: Print revisions in hex format · 4364a3f8
      Andy Shevchenko authored and Bin Meng's avatar Bin Meng committed
      
      The revisions are usually dates in hex-decimal format representing
      YYYYmmdd. Print them in hex to see this clearly.
      
      Before:
        ...
        FACP 000e5420 0000f4 (v06 U-BOOT U-BOOTBL 538970376 INTL 0)
        DSDT 000e4780 000ba0 (v02 U-BOOT U-BOOTBL 65536 INTL 538968870)
        ...
      After:
        ...
        FACP 000e5420 0000f4 (v06 U-BOOT U-BOOTBL 20200908 INTL 0)
        DSDT 000e4780 000ba0 (v02 U-BOOT U-BOOTBL 10000 INTL 20200326)
        ...
      
      Fixes: 0b885bcf ("acpi: Add an acpi command")
      Cc: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      4364a3f8
  14. Sep 18, 2020
    • Maxim Uvarov's avatar
      efi: change 'env -e -i' usage syntax · 8f0ac536
      Maxim Uvarov authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      'env -e -i' syntax was changed from "," to ":". Account for this also
      in the documentation.
      
      Fixes: 2b3fbcb5 ("efi_loader: use ':' as separator for setenv -i")
      Signed-off-by: default avatarMaxim Uvarov <maxim.uvarov@linaro.org>
      Correct the usage description for setenv -e too.
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      8f0ac536
    • Ralph Siemsen's avatar
      cmd: mem: fix range of bitflip test · 9989fb18
      Ralph Siemsen authored and Tom Rini's avatar Tom Rini committed
      
      The bitflip test uses two equal sized memory buffers. This is achieved
      by splitting the range of memory into two pieces. The address of the
      second buffer, as well as the length of each buffer, were not correctly
      calculated. This caused bitflip test to access beyond the end of range.
      This patch fixes the pointer arithmetic problem.
      
      A second problem arises because u-boot "mtest" command expects the
      ending address to be inclusive. When computing (end - start) this
      results in missing 1 byte of the requested length. The bitflip test
      expects a count rather than an "ending" address. Thus it fails to test
      the last word of the requested range. Fixed by using (end - start + 1).
      
      Added Kconfig option to optionally disable the bitflip test, since it
      does add significantly to the time taken for "mtest".
      
      Fixes: 8e434cb7 ("cmd: mem: Add bitflip
      memory test to alternate mtest")
      
      Signed-off-by: default avatarRalph Siemsen <ralph.siemsen@linaro.org>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      9989fb18
  15. Sep 11, 2020
  16. Sep 09, 2020
  17. Sep 06, 2020
Loading