1. 11 7月, 2018 1 次提交
    • T
      vboot: Add FIT_SIGNATURE_MAX_SIZE protection · 72239fc8
      Teddy Reed 提交于
      This adds a new config value FIT_SIGNATURE_MAX_SIZE, which controls the
      max size of a FIT header's totalsize field. The field is checked before
      signature checks are applied to protect from reading past the intended
      FIT regions.
      
      This field is not part of the vboot signature so it should be sanity
      checked. If the field is corrupted then the structure or string region
      reads may have unintended behavior, such as reading from device memory.
      A default value of 256MB is set and intended to support most max storage
      sizes.
      Suggested-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NTeddy Reed <teddy.reed@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      72239fc8
  2. 24 5月, 2018 2 次提交
    • M
      spl: Add full fitImage support · 8a9dc16e
      Marek Vasut 提交于
      Add support for loading U-Boot and optionally FDT from a fitImage
      in SPL by using the full fitImage support from U-Boot. While we do
      have limited SPL loading support in SPL with a small footprint, it
      is missing a lot of important features, like checking signatures.
      This support has all the fitImage features, while the footprint is
      obviously larger.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      8a9dc16e
    • M
      fit: Fix CONFIG_FIT_SPL_PRINT · b527b9c6
      Marek Vasut 提交于
      Rename CONFIG_FIT_SPL_PRINT to CONFIG_SPL_FIT_PRINT and add Kconfig
      entry for it.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      b527b9c6
  3. 07 5月, 2018 1 次提交
  4. 28 4月, 2018 3 次提交
  5. 17 4月, 2018 1 次提交
    • S
      Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX · 90e407ae
      Sjoerd Simons 提交于
      Since commit 8e14ba7b ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC
      flag") omap GPIO gets bound before relocation.  Unfortunately due to
      this, on at least the beaglebone black, the pre-relocation memory pool
      gets exhausted before probing the serial port. This then causes u-boot
      to panic as CONFIG_REQUIRE_SERIAL_CONSOLE is set...
      
      Resolve this by resizing the default size of the pre-relocation malloc
      pool for AM335X platforms.
      Signed-off-by: NSjoerd Simons <sjoerd.simons@collabora.co.uk>
      90e407ae
  6. 14 4月, 2018 4 次提交
  7. 14 3月, 2018 1 次提交
  8. 28 2月, 2018 1 次提交
  9. 24 2月, 2018 1 次提交
  10. 23 2月, 2018 1 次提交
  11. 11 2月, 2018 1 次提交
    • T
      configs: Migrate CONFIG_SYS_TEXT_BASE · 278b90ce
      Tom Rini 提交于
      On the NIOS2 and Xtensa architectures, we do not have
      CONFIG_SYS_TEXT_BASE set.  This is a strict migration of the current
      values into the defconfig and removing them from the headers.
      
      I did not attempt to add more default values in and for now will leave
      that to maintainers.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      278b90ce
  12. 09 2月, 2018 1 次提交
  13. 31 1月, 2018 1 次提交
  14. 18 11月, 2017 1 次提交
  15. 24 10月, 2017 1 次提交
  16. 19 10月, 2017 1 次提交
    • H
      x86: provide CONFIG_BUILD_ROM · 871aa41d
      Heinrich Schuchardt 提交于
      Up to now we depended on an exported variable to build u-boot.rom.
      We should be able to specify it in the configuration file, too.
      
      With this patch this becomes possible using the new Kconfig option
      CONFIG_BUILD_ROM.
      
      This option depends on CONFIG_X86 and is selected in
      qemu-x86_defconfig and qemu-x86_64_defconfig.
      
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      871aa41d
  17. 16 10月, 2017 1 次提交
  18. 09 10月, 2017 1 次提交
  19. 02 9月, 2017 1 次提交
  20. 15 8月, 2017 1 次提交
  21. 13 8月, 2017 1 次提交
  22. 05 8月, 2017 1 次提交
  23. 27 7月, 2017 1 次提交
  24. 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
  25. 18 5月, 2017 3 次提交
  26. 09 4月, 2017 1 次提交
  27. 06 4月, 2017 1 次提交
  28. 17 3月, 2017 1 次提交
  29. 09 2月, 2017 2 次提交
    • E
      kconfig: Add API kconfig file · 4db98d3d
      Emmanuel Vadot 提交于
      Add kconfig file to enable API support
      Signed-off-by: NEmmanuel Vadot <manu@bidouilliste.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4db98d3d
    • M
      cmd: add a new command "config" to show .config contents · 61304dbe
      Masahiro Yamada 提交于
      This feature is inspired by /proc/config.gz of Linux.  In Linux,
      if CONFIG_IKCONFIG is enabled, the ".config" file contents are
      embedded in the kernel image.  If CONFIG_IKCONFIG_PROC is also
      enabled, the ".config" contents are exposed to /proc/config.gz.
      Users can do "zcat /proc/config.gz" to check which config options
      are enabled on the running kernel image.
      
      The idea is almost the same here; if CONFIG_CMD_CONFIG is enabled,
      the ".config" contents are compressed and saved in the U-Boot image,
      then printed by the new command "config".
      
      The usage is quite simple.  Enable CONFIG_CMD_CONFIG, then run
       > config
      from the command line interface.  The ".config" contents will be
      printed on the console.
      
      This feature increases the U-Boot image size by about 4KB (this is
      mostly due to the gzip-compressed .config file).  By default, it is
      enabled only for Sandbox because we do not care about the memory
      footprint on it.  Of course, this feature is architecture agnostic,
      so you can enable it on any board if the image size increase is
      acceptable for you.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      61304dbe
  30. 28 1月, 2017 1 次提交