Skip to content
Snippets Groups Projects
  1. Feb 13, 2023
    • André Przywara's avatar
      cmd: fdt: allow standalone "fdt move" · 4ee85df9
      André Przywara authored and Simon Glass's avatar Simon Glass committed
      
      At the moment every subcommand of "fdt", except "addr" itself, requires
      the DT address to be set first. We explicitly check for that before even
      comparing against the subcommands' string.
      This early bailout also affects the "move" subcommand, even though that
      does not require or rely on a previous call to "fdt addr". In fact it
      even sets the FDT address to the target of the move command, so is a
      perfect beginning for a sequence of fdt commands.
      
      Move the check for a previously set FDT address to after we handle the
      "move" command also, so we don't need a dummy call to "fdt addr" first,
      before being able to move the devicetree.
      
      This skips one pointless "fdt addr" call in scripts which aim to alter
      the control DT, but need to copy it to a safe location first (for
      instance to $fdt_addr_r).
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      4ee85df9
    • André Przywara's avatar
      cmd: fdt: move: Use map_sysmem to convert pointers · 64597346
      André Przywara authored and Simon Glass's avatar Simon Glass committed
      
      The "fdt move" subcommand was using the provided DTB addresses directly,
      without trying to "map" them into U-Boot's address space. This happened
      to work since on the vast majority of "real" platforms there is a simple
      1:1 mapping of VA to PAs, so either value works fine.
      
      However this is not true on the sandbox, so the "fdt move" command fails
      there miserably:
      => fdt addr $fdtcontroladdr
      => cp.l $fdtcontroladdr $fdt_addr_r 40  # simple memcpy works
      => fdt move $fdtcontroladdr $fdt_addr_r
      Segmentation fault
      
      Use the proper "map_sysmem" call to convert PAs to VAs, to make this
      more robust in general and to enable operation in the sandbox.
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      64597346
  2. Feb 12, 2023
  3. Feb 10, 2023
  4. Feb 09, 2023
  5. Feb 07, 2023
  6. Feb 06, 2023
    • Linus Walleij's avatar
      cmd: Add a SEAMA image load command · 41a29f28
      Linus Walleij authored and Tom Rini's avatar Tom Rini committed
      
      Add a command to load SEAMA (Seattle Image), a NAND flash
      on-flash storage format.
      
      This type of flash image is found in some D-Link routers such
      as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and
      DCH-M225, as well as in WD and NEC routers on the ath79
      (MIPS), Broadcom BCM53xx, and RAMIPS platforms.
      
      This U-Boot command will read and decode a SEAMA image from
      raw NAND flash on any platform. As it is always using big endian
      format for the data decoding is always necessary on platforms
      such as ARM.
      
      The command is needed to read a SEAMA-encoded boot image on the
      D-Link DIR-890L router for boot from NAND flash in an upcoming
      port of U-Boot to the Broadcom Northstar (BCM4709, BCM53xx)
      architecture.
      
      A basic test and documentation is added as well. The test must
      be run on a target with NAND flash support and at least one
      resident SEAMA image in flash.
      
      Cc: Rafał Miłecki <rafal@milecki.pl>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      41a29f28
    • Simon Glass's avatar
      qemu: Move qfw kernel setup into a common file · 00fa989e
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      This is currently in the cmd/ file but we want to call it from a driver.
      Move it into a common place. Tidy up the header-file order while we are
      here.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      00fa989e
    • Simon Glass's avatar
      qemu: Update qfw command to use addresses · e08e6ea6
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      This uses casts all over the place. Use the correct type so that these
      can be avoided, as is done with other commands. Also simplify a few
      conditionals.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      e08e6ea6
    • Simon Glass's avatar
      bootstd: Allow enabling BOOTSTD_FULL without needing EXPO · 0041b1c0
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      It is sometimes useful to have one without the other, e.g. on a device
      without a display, since at present the expo feature requires CONFIG_VIDEO
      to be enabled.
      
      Update the Makefile and bootflow command to support this, as well as the
      EXPO dependency.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      0041b1c0
  7. Jan 31, 2023
  8. Jan 27, 2023
  9. Jan 26, 2023
  10. Jan 23, 2023
Loading