1. 27 8月, 2019 1 次提交
  2. 26 8月, 2019 1 次提交
    • L
      spl: support booting via RISC-V OpenSBI · 5e30e45c
      Lukas Auer 提交于
      RISC-V OpenSBI is an open-source implementation of the RISC-V Supervisor
      Binary Interface (SBI) specification. It is required by Linux and U-Boot
      running in supervisor mode. This patch adds support for booting via the
      OpenSBI FW_DYNAMIC firmware. It supports OpenSBI version 0.4 and higher.
      
      In this configuration, U-Boot SPL starts in machine mode. After loading
      OpenSBI and U-Boot proper, it will start OpenSBI. All necessary
      parameters are generated by U-Boot SPL and are passed to OpenSBI. U-Boot
      proper is started in supervisor mode by OpenSBI. Support for OpenSBI is
      enabled with CONFIG_SPL_OPENSBI. An additional configuration entry,
      CONFIG_SPL_OPENSBI_LOAD_ADDR, is used to specify the load address of the
      OpenSBI firmware binary. It is not used directly in U-Boot and instead
      is intended to make the value available to scripts such as FIT
      configuration generators.
      
      The header file include/opensbi.h is based on header files from the
      OpenSBI project. They are recent, as of commit bae54f764570 ("firmware:
      Add fw_dynamic firmware").
      Signed-off-by: NLukas Auer <lukas.auer@aisec.fraunhofer.de>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      Tested-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NAnup Patel <anup.patel@wdc.com>
      5e30e45c
  3. 12 8月, 2019 3 次提交
  4. 29 7月, 2019 1 次提交
  5. 12 7月, 2019 1 次提交
  6. 23 4月, 2019 1 次提交
    • S
      Support boot Android image without address on bootm command · 5e218862
      Shawn Guo 提交于
      It works perfectly fine to boot an Android boot.img with bootm command
      followed by an explicit address argument that holds the image.  But if
      we have boot.img downloaded into default 'loadaddr', and then boot it
      using bootm command without the address argument, we will run into
      problem, because U-Boot fails to find ramdisk and fdt (second area) in
      boot.img.
      
      The current Android image support assumes there is always an address
      argument on bootm command.  However just like booting any other images,
      'loadaddr' should be used when address argument is missing from bootm
      command.  It patches boot_get_ramdisk() and boot_get_fdt() a bit to
      support this quite common usage of bootm command for Android image.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      5e218862
  7. 01 1月, 2019 1 次提交
  8. 29 11月, 2018 1 次提交
  9. 22 10月, 2018 1 次提交
    • P
      tools: add i.MX8/8X image support · a2b96ece
      Peng Fan 提交于
      i.MX8/8X bootable image type is container type.
      The bootable image, containers a container set which supports two
      container. The 1st container is for SECO firmware, the 2nd container
      needs to include scfw, m4_0/1 image, ACore images per your requirement.
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      a2b96ece
  10. 13 6月, 2018 1 次提交
  11. 11 5月, 2018 1 次提交
    • A
      tools: zynqmpimage: Add bif support · 6915dcf3
      Alexander Graf 提交于
      The officially described way to generate boot.bin files for ZynqMP is to
      describe the contents of the target binary using a file of the "bif"
      format.  This file then links to other files that all get packed into a
      bootable image.
      
      This patch adds support to read such a .bif file and generate a respective
      ZynqMP boot.bin file that can include the normal image and pmu files, but
      also supports image partitions now. This makes it a handy replacement for
      the proprietary "bootgen" utility that is currently used to generate
      boot.bin files with FSBL.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      6915dcf3
  12. 09 5月, 2018 1 次提交
    • M
      image: socfpga: Add SFP image version 1 definition · 662abc4f
      Marek Vasut 提交于
      Add support for the SoCFPGA header v1, which is used on Arria 10.
      The layout of the v0 and v1 header is similar, yet there are a few
      differences which make it incompatible with previous v0 header, so
      add a new entry.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      662abc4f
  13. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  14. 30 3月, 2018 1 次提交
  15. 20 3月, 2018 2 次提交
    • B
      image: Add IH_OS_TEE for TEE chain-load boot · 45b55712
      Bryan O'Donoghue 提交于
      This patch adds a new type IH_OS_TEE. This new OS type will be used for
      chain-loading to Linux via a TEE.
      
      With this patch in-place you can generate a bootable OPTEE image like this:
      
      mkimage -A arm -T kernel -O tee -C none -d tee.bin uTee.optee
      
      where "tee.bin" is the input binary prefixed with an OPTEE header and
      uTee.optee is the output prefixed with a u-boot wrapper header.
      
      This image type "-T kernel -O tee" is differentiated from the existing
      IH_TYPE_TEE "-T tee" in that the IH_TYPE is installed by u-boot (flow
      control returns to u-boot) whereas for the new IH_OS_TEE control passes to
      the OPTEE firmware and the firmware chainloads onto Linux.
      
      Andrew Davis gave the following ASCII diagram:
      
      IH_OS_TEE: (mkimage -T kernel -O tee)
      Non-Secure       Secure
      
                       BootROM
                         |
            -------------
           |
           v
          SPL
           |
           v
         U-Boot ------>
                <-----  OP-TEE
            |
            V
          Linux
      
      IH_TYPE_TEE: (mkimage -T tee)
      Non-Secure       Secure
      
                       BootROM
                         |
            -------------
           |
           v
          SPL ------->
               <-----  OP-TEE
           |
           v
         U-Boot
            |
            V
          Linux
      Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org>
      Suggested-by: NAndrew F. Davis <afd@ti.com>
      Cc: Harinarayan Bhatta <harinarayan@ti.com>
      Cc: Andrew F. Davis <afd@ti.com>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Kever Yang <kever.yang@rock-chips.com>
      Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Link: http://mrvan.github.io/optee-imx6ul
      45b55712
    • P
      tools/mkimage: add support for STM32 image format · 81260e33
      Patrick Delaunay 提交于
      STM32MP157 bootrom needs a specific header for first boot stage.
      This patch adds support of this header in mkimage.
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      81260e33
  16. 05 3月, 2018 1 次提交
  17. 19 12月, 2017 1 次提交
  18. 14 12月, 2017 1 次提交
  19. 08 12月, 2017 1 次提交
  20. 26 11月, 2017 1 次提交
  21. 16 10月, 2017 2 次提交
  22. 13 9月, 2017 1 次提交
  23. 16 8月, 2017 2 次提交
  24. 21 1月, 2017 1 次提交
  25. 20 1月, 2017 1 次提交
    • R
      bootm: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set · c2e7e72b
      Rick Altherr 提交于
      In 35fc84fa, bootm was refactored so plain 'bootm' and
      'bootm <subcommand>' shared a common implementation.
      The 'bootm ramdisk' command implementation is now part of the common
      implementation but not invoke by plain 'bootm' since the original
      implementation never did ramdisk relocation.  Instead, ramdisk
      relocation happened in image_setup_linux() which is typically called
      during the OS portion of 'bootm'.
      
      On ARM, parameters to the Linux kernel can either be passed by FDT or
      ATAGS. When using FDT, image_setup_linux() is called which also triggers
      ramdisk relocation.  When using ATAGS, image_setup_linux() is _not_
      called because it mostly does FDT setup.
      
      Instead of calling image_setup_linux() in both FDT and ATAGS cases,
      include BOOTM_STATE_RAMDISK in the requested states during a plain
      'bootm' if CONFIG_SYS_BOOT_RAMDISK_HIGH is set and remove the ramdisk
      relocation from image_setup_linux().  This causes ramdisk relocation to
      happen on any system where CONFIG_SYS_BOOT_RAMDISK_HIGH regardless of
      the OS being booted. Also remove IMAGE_ENABLE_RAMDISK_HIGH as it was
      only used by the now-removed code from image_setup_linux().
      Signed-off-by: NRick Altherr <raltherr@google.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      c2e7e72b
  26. 03 1月, 2017 1 次提交
  27. 20 12月, 2016 1 次提交
  28. 04 12月, 2016 2 次提交
  29. 05 11月, 2016 1 次提交
  30. 14 10月, 2016 1 次提交
    • S
      libfdt: Bring in upstream stringlist functions · b02e4044
      Simon Glass 提交于
      These have now landed upstream. The naming is different and in one case the
      function signature has changed. Update the code to match.
      
      This applies the following upstream commits by
      Thierry Reding <treding@nvidia.com> :
      
         604e61e fdt: Add functions to retrieve strings
         8702bd1 fdt: Add a function to get the index of a string
         2218387 fdt: Add a function to count strings
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b02e4044
  31. 06 10月, 2016 1 次提交
  32. 24 9月, 2016 1 次提交
  33. 22 9月, 2016 1 次提交
    • P
      image-fit: Fix fit_get_node_from_config semantics · bd86ef11
      Paul Burton 提交于
      Commit bac17b78 ("image-fit: switch ENOLINK to ENOENT") changed
      fit_get_node_from_config to return -ENOENT when a property doesn't
      exist, but didn't change any of its callers which check return values.
      Notably it didn't change boot_get_ramdisk, which leads to U-Boot failing
      to boot FIT images which don't include ramdisks with the following
      message:
      
        Ramdisk image is corrupt or invalid
      
      It also didn't take into account that by returning -ENOENT to denote the
      lack of a property we lost the ability to determine from the return
      value of fit_get_node_from_config whether it was the property or the
      configuration node that was missing, which may potentially lead callers
      to accept invalid FIT images.
      
      Fix this by having fit_get_node_from_config return -EINVAL when the
      configuration node isn't found and -ENOENT when the property isn't
      found, which seems to make semantic sense. Callers that previously
      checked for -ENOLINK are adjusted to check for -ENOENT, which fixes the
      breakage introduced by commit bac17b78 ("image-fit: switch ENOLINK
      to ENOENT").
      
      The only other user of the return fit_get_node_from_config return value,
      indirectly, is bootm_find_os which already checked for -ENOENT. From a
      read-through of the code I suspect it ought to have been checking for
      -ENOLINK prior to bac17b78 ("image-fit: switch ENOLINK to ENOENT")
      anyway, which would make it right after this patch, but this would be
      good to get verified by someone who knows this x86 code or is able to
      test it.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Jonathan Gray <jsg@jsg.id.au>
      Cc: Marek Vasut <marex@denx.de>
      Acked-by: NMarek Vasut <marex@denx.de>
      Acked-by: NStefan Roese <sr@denx.de>
      Acked-by: NGeorge McCollister <george.mccollister@gmail.com>
      Tested-by: NGeorge McCollister <george.mccollister@gmail.com>
      bd86ef11
  34. 16 8月, 2016 1 次提交