1. 29 10月, 2019 1 次提交
  2. 27 8月, 2019 1 次提交
  3. 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
  4. 29 7月, 2019 1 次提交
  5. 12 7月, 2019 1 次提交
  6. 11 5月, 2019 1 次提交
  7. 10 5月, 2019 1 次提交
  8. 05 5月, 2019 1 次提交
    • A
      Refactor IMAGE_ENABLE_VERIFY to handle builds without SPL verification · 89665f2e
      Alex Kiernan 提交于
      If building with SPL_LOAD_FIT_FULL and FIT_SIGNATURE, but without
      SPL_FIT_SIGNATURE then the build fails with:
      
        common/built-in.o: In function `fit_image_verify_with_data':
        common/image-fit.c:1220: undefined reference to `fit_image_verify_required_sigs'
        common/image-fit.c:1244: undefined reference to `fit_image_check_sig'
        common/built-in.o: In function `fit_image_load':
        common/image-fit.c:1857: undefined reference to `fit_config_verify'
      
      Refactor so that host builds still depend on FIT_SIGNATURE, but target
      builds check FIT_SIGNATURE/SPL_FIT_SIGNATURE dependent on the build.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      89665f2e
  9. 24 4月, 2019 1 次提交
    • E
      image: android: allow booting lz4-compressed kernels · 829ceb28
      Eugeniu Rosca 提交于
      According to Android image format [1], kernel image resides at 1 page
      offset from the boot image address. Grab the magic number from there
      and allow U-Boot to handle LZ4-compressed KNL binaries instead of
      hardcoding compression type to IH_COMP_NONE. Other compression types,
      if needed, can be added later.
      
      Tested on H3ULCB-KF using the image detailed in [2].
      
      [1] Excerpt from include/android_image.h
          +-----------------+
          | boot header     | 1 page
          +-----------------+
          | kernel          | n pages
          +-----------------+
          | ramdisk         | m pages
          +-----------------+
          | second stage    | o pages
          +-----------------+
      
      [2] => iminfo 4c000000
          ## Checking Image at 4c000000 ...
          Android image found
          kernel size:      85b9d1
          kernel address:   48080000
          ramdisk size:     54ddbc
          ramdisk addrress: 4a180000
          second size:      0
          second address:   48000800
          tags address:     48000100
          page size:        800
          os_version:       1200012a (ver: 0.9.0, level: 2018.10)
          name:
          cmdline:          buildvariant=userdebug
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      829ceb28
  10. 01 1月, 2019 1 次提交
  11. 17 12月, 2018 1 次提交
  12. 03 12月, 2018 2 次提交
  13. 29 11月, 2018 1 次提交
  14. 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
  15. 11 7月, 2018 1 次提交
  16. 19 6月, 2018 1 次提交
    • M
      ARM: image: Add option for ignoring ep bit 3 · 7f13b374
      Marek Vasut 提交于
      Add option to the booti_setup() which indicates to it that the caller
      requires the image to be relocated to the beginning of the RAM and
      that the information whether the image can be located anywhere in RAM
      at 2 MiB aligned boundary or not is to be ignored. This is useful ie.
      in case the Image is wrapped in another envelope, ie. fitImage and not
      relocating it but moving it would corrupt the envelope.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Bin Chen <bin.chen@linaro.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Tom Rini <trini@konsulko.com>
      Reviewed-By: NBin Chen <bin.chen@linaro.org>
      7f13b374
  17. 27 5月, 2018 1 次提交
  18. 24 5月, 2018 2 次提交
  19. 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
  20. 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
  21. 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
  22. 07 4月, 2018 1 次提交
  23. 01 4月, 2018 1 次提交
  24. 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
  25. 19 3月, 2018 1 次提交
    • J
      SPL: Add signature verification when loading image · 5c643db4
      Jun Nie 提交于
      U-boot proper signature is not verified by SPL on most platforms
      even config SPL_FIT_SIGNATURE is enabled. Only fsl-layerscape
      platform support secure boot in platform specific code. So
      verified boot cannot be achieved if u-boot proper is loaded by
      SPL.
      
      This patch add signature verification to u-boot proper images
      when loading FIT image in SPL. It is tested on Allwinner bananapi
      zero board with H2+ SoC.
      Signed-off-by: NJun Nie <jun.nie@linaro.org>
      5c643db4
  26. 05 3月, 2018 1 次提交
  27. 08 2月, 2018 2 次提交
  28. 16 1月, 2018 1 次提交
  29. 12 1月, 2018 1 次提交
  30. 13 12月, 2017 1 次提交
    • P
      SPL: Add FIT data-position property support · a1be94b6
      Peng Fan 提交于
      For external data, FIT has a optional property "data-position" which
      can set the external data to a fixed offset to FIT beginning.
      Add the support for this property in SPL FIT.
      Signed-off-by: NYe Li <ye.li@nxp.com>
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NTomas Melin <tomas.melin@vaisala.com>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Cc: "Andrew F. Davis" <afd@ti.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: "tomas.melin@vaisala.com" <tomas.melin@vaisala.com>
      Cc: Kever Yang <kever.yang@rock-chips.com>
      Cc: Andre Przywara <andre.przywara@arm.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: "Cooper Jr., Franklin" <fcooper@ti.com>
      Cc: George McCollister <george.mccollister@gmail.com>
      Cc: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Rick Altherr <raltherr@google.com>
      Cc: Tom Rini <trini@konsulko.com>
      Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
      Reviewed-by: NYork Sun <york.sun@nxp.com>
      a1be94b6
  31. 26 11月, 2017 1 次提交
  32. 16 10月, 2017 1 次提交
  33. 06 10月, 2017 1 次提交
  34. 15 9月, 2017 1 次提交
  35. 13 9月, 2017 1 次提交
  36. 16 8月, 2017 1 次提交