Skip to content
Snippets Groups Projects
  1. Jul 06, 2021
    • Tim Harvey's avatar
      cmd: net: add a 'net list' command to list network devs · 8a3987f4
      Tim Harvey authored and Ramon Fried's avatar Ramon Fried committed
      
      In a system with multiple network controllers it can be difficult
      to know the names of the various devices available. This is especially
      true for USB ether devices as they do not display device names upon
      detection.
      
      This is being added as a net sub-system in case other commands may
      want to be added or moved here.
      
      Note that this is only enabled for DM_ETH
      
      Example:
      U-Boot > net
      net - NET sub-system
      
      Usage:
      net list - list available devices
      
      U-Boot > net list
      eth0 : ethernet@2188000 00:d0:12:98:f5:47 active
      eth1 : e1000#0 00:d0:12:98:f5:48
      eth2 : asix_eth 8c:ae:4c:f5:84:9d
      eth3 : asix_eth 8c:ae:4c:f9:41:e3
      
      Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
      8a3987f4
  2. Jul 05, 2021
  3. Jun 30, 2021
  4. Jun 28, 2021
  5. Jun 24, 2021
  6. Jun 22, 2021
  7. Jun 18, 2021
  8. Jun 11, 2021
  9. Jun 08, 2021
  10. May 25, 2021
  11. May 24, 2021
  12. May 16, 2021
  13. May 13, 2021
    • Kory Maincent's avatar
      cmd: add support for a new "extension" command · 2f84e9cf
      Kory Maincent authored and Tom Rini's avatar Tom Rini committed
      
      This patch adds a new "extension" command, which aims at detecting
      extension boards connected to the hardware platform, and apply the
      Device Tree overlays that describe the hardware present on those
      extension boards.
      
      In order to enable this mechanism, board-specific code must implement
      the extension_board_scan() function that fills in a linked list of
      "struct extension", each describing one extension board. In addition,
      the board-specific code must select the SUPPORT_EXTENSION_SCAN Kconfig
      boolean.
      
      Based on this:
      
       - "extension scan" makes the generic code call the board-specific
         extension_board_scan() function to retrieve the list of detected
         extension boards.
      
       - "extension list" allows to list the detected extension boards.
      
       - "extension apply <number>|all" allows to apply the Device Tree
         overlay(s) corresponding to one, or all, extension boards
      
      The latter requires two environment variables to exist and set one variable
      to run:
      
       - extension_overlay_addr: the RAM address where to load the Device
         Tree overlays
      
       - extension_overlay_cmd: the U-Boot command to load one overlay.
         Indeed, the location and mechanism to load DT overlays is very setup
         specific.
      
       - extension_overlay_name: set by the command: the name of the DT which
         will be load during the execution.
      
      When calling the command described in the extension_overlay_cmd
      variable, the variable extension_overlay_name will be defined. So a
      typical extension_overlay_cmd will look like this:
      
        extension_overlay_cmd=load mmc 0:1 $extension_overlay_addr /boot/$extension_overlay_name
      
      Here is an example on how to use it:
      => run loadfdt
      => fdt addr $fdtaddr
      => setenv extension_overlay_addr 0x1000
      => setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}'
      => extension scan
      Found 1 extension board(s).
      => extension apply 0
      519 bytes read in 3 ms (168.9 KiB/s)
      
      Signed-off-by: default avatarKory Maincent <kory.maincent@bootlin.com>
      Reviewed-by: default avatarMaxime Ripard <maxime@cerno.tech>
      2f84e9cf
    • Kory Maincent's avatar
      fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c · bbdbcaf5
      Kory Maincent authored and Tom Rini's avatar Tom Rini committed
      
      Move the fdt_valid function to fdt_support.
      This changes allow to be able to test the validity of a devicetree in
      other c files.
      
      Update code syntax.
      
      Signed-off-by: default avatarKory Maincent <kory.maincent@bootlin.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarMaxime Ripard <maxime@cerno.tech>
      bbdbcaf5
  14. May 10, 2021
  15. May 05, 2021
  16. May 04, 2021
    • Farhan Ali's avatar
      cmd: gpt: Add option to write GPT partitions to environment variable · 653cd92d
      Farhan Ali authored and Tom Rini's avatar Tom Rini committed
      
      This change would enhance the existing 'gpt read' command to allow
      (optionally) writing of the read GPT partitions to an environment
      variable in the UBOOT partitions layout format. This would allow users
      to easily change the overall partition settings by editing said variable
      and then using the variable in the 'gpt write' and 'gpt verify' commands.
      
      Signed-off-by: default avatarFarhan Ali <farhan.ali@broadcom.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Corneliu Doban <cdoban@broadcom.com>
      Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
      Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      653cd92d
  17. Apr 29, 2021
  18. Apr 23, 2021
  19. Apr 20, 2021
  20. Apr 12, 2021
  21. Apr 10, 2021
  22. Apr 08, 2021
Loading