1. 01 4月, 2018 1 次提交
  2. 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
  3. 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
  4. 05 3月, 2018 1 次提交
  5. 08 2月, 2018 2 次提交
  6. 16 1月, 2018 1 次提交
  7. 12 1月, 2018 1 次提交
  8. 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
  9. 26 11月, 2017 1 次提交
  10. 16 10月, 2017 1 次提交
  11. 06 10月, 2017 1 次提交
  12. 15 9月, 2017 1 次提交
  13. 13 9月, 2017 1 次提交
  14. 16 8月, 2017 2 次提交
  15. 11 7月, 2017 2 次提交
  16. 10 6月, 2017 1 次提交
  17. 22 5月, 2017 2 次提交
    • T
      lib: move hash CONFIG options to Kconfig · 089df18b
      Tom Rini 提交于
      Commit 94e3c8c4 ("crypto/fsl - Add progressive hashing support
      using hardware acceleration.") created entries for CONFIG_SHA1,
      CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
      However, no defconfig has migrated to it.  Complete the move by first
      adding additional logic to various Kconfig files to select this when
      required and then use the moveconfig tool.  In many cases we can select
      these because they are required to implement other drivers.  We also
      correct how we include the various hashing algorithms in SPL.
      
      This commit was generated as follows (after Kconfig additions):
      
      [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
      [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL
      
      Note:
      We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
      because there is dependency between them.
      
      Cc: Poonam Aggrwal <poonam.aggrwal@freescale.com>
      Cc: Naveen Burmi <NaveenBurmi@freescale.com>
      Cc: Po Liu <po.liu@freescale.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Cc: Priyanka Jain <Priyanka.Jain@freescale.com>
      Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
      Cc: Chunhe Lan <Chunhe.Lan@freescale.com>
      Cc: Chander Kashyap <k.chander@samsung.com>
      Cc: Steve Rae <steve.rae@raedomain.com>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Feng Li <feng.li_2@nxp.com>
      Cc: Alison Wang <alison.wang@freescale.com>
      Cc: Sumit Garg <sumit.garg@nxp.com>
      Cc: Mingkai Hu <Mingkai.Hu@freescale.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      Cc: Akshay Saraswat <akshay.s@samsung.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      089df18b
    • T
      FIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORT · 0db7f685
      Tom Rini 提交于
      We rename CONFIG_FIT_DISABLE_SHA256 to CONFIG_FIT_ENABLE_SHA256_SUPPORT which
      is enabled by default and now a positive option.  Convert the handful of boards
      that were disabling it before to save space.
      
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Lukasz Dalek <luk0104@gmail.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0db7f685
  18. 09 4月, 2017 1 次提交
  19. 17 3月, 2017 1 次提交
  20. 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
  21. 15 1月, 2017 1 次提交
  22. 14 1月, 2017 1 次提交
  23. 03 1月, 2017 1 次提交
  24. 04 12月, 2016 2 次提交
  25. 22 11月, 2016 4 次提交
  26. 06 10月, 2016 1 次提交
  27. 16 8月, 2016 1 次提交
  28. 21 7月, 2016 1 次提交
    • M
      image: fix IH_ARCH_... values for uImage compatibility · ff87b081
      Masahiro Yamada 提交于
      Commit 555f45d8 ("image: Convert the IH_... values to enums")
      accidentally changed some IH_ARCH_... values.
      
      Prior to that commit, there existed a gap between IH_ARCH_M68K and
      IH_ARCH_MICROBLAZE, like follows.
      
        #define IH_ARCH_SPARC64         11      /* Sparc 64 Bit */
        #define IH_ARCH_M68K            12      /* M68K         */
        #define IH_ARCH_MICROBLAZE      14      /* MicroBlaze   */
        #define IH_ARCH_NIOS2           15      /* Nios-II      */
      
      The enum conversion broke the compatibility with existing uImage
      files.  Reverting 555f45d8 will cause build error unfortunately,
      so here is a more easy fix.
      
      I dug the git history and figured out the gap was introduced by
      commit 1117cbf2 ("nios: remove nios-32 arch").  So, I revived
      IH_ARCH_NIOS just for filling the gap.
      
      I added comments to each enum block.  Once we assign a value to
      IH_... it is not allowed to change it.
      Acked-by: NMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      ff87b081
  29. 15 7月, 2016 3 次提交