Skip to content
Snippets Groups Projects
  1. Jun 10, 2017
  2. Jun 07, 2017
  3. Jun 02, 2017
  4. May 31, 2017
    • Patrick Wildt's avatar
      arm: mvebu: kwbimage: inline function to fix use-after-free · 6cbf7eda
      Patrick Wildt authored
      
      image_version_file()'s only use is to return the version number of the
      specified image, and it's only called by kwbimage_generate().  This
      version function mallocs "image_cfg" and reads the contents of the image
      into that buffer.  Before return to its caller it frees the buffer.
      
      After extracting the version, kwb_image_generate() tries to calculate
      the header size by calling image_headersz_v1().  This function now
      accesses "image_cfg", which has already been freed.
      
      Since image_version_file() is only used by a single function, inline it
      into kwbimage_generate() and only free the buffer after it is no longer
      needed.  This also improves code readability since the code is mostly
      equal to kwbimage_set_header().
      
      Signed-off-by: default avatarPatrick Wildt <patrick@blueri.se>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      6cbf7eda
  5. May 17, 2017
    • Siarhei Siamashka's avatar
      sunxi: Store the device tree name in the SPL header · 7f0ef5a9
      Siarhei Siamashka authored
      
      This patch updates the mksunxiboot tool to optionally add
      the default device tree name string to the SPL header. This
      information can be used by the firmware upgrade tools to
      protect users from harming themselves by trying to upgrade
      to an incompatible bootloader.
      
      The primary use case here is a non-removable bootable media
      (such as NAND, eMMC or SPI flash), which already may have
      a properly working, but a little bit outdated bootloader
      installed. For example, the user may download or build a
      new U-Boot image for "Cubieboard", and then attemept to
      install it on a "Cubieboard2" hardware by mistake as a
      replacement for the already existing bootloader. If this
      happens, the flash programming tool can identify this
      problem and warn the user.
      
      The size of the SPL header is also increased from 64 bytes
      to 96 bytes to provide enough space for the device tree name
      string.
      [Andre: split patch to remove OF_LIST hash feature]
      
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      7f0ef5a9
    • Andre Przywara's avatar
      tools: mksunxiboot: allow larger SPL binaries · 45e2d067
      Andre Przywara authored
      
      mksunxiboot limits the size of the resulting SPL binaries to pretty
      conservative values to cover all SoCs and all boot media (NAND).
      It turns out that we have limit checks in place in the build process,
      so mksunxiboot can be relaxed and allow packaging binaries up to the
      actual 32KB the mask boot ROM actually imposes.
      This allows to have a bigger SPL, which is crucial for AArch64 builds.
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
      45e2d067
  6. May 12, 2017
  7. May 10, 2017
  8. May 08, 2017
  9. May 05, 2017
  10. Apr 27, 2017
  11. Apr 18, 2017
Loading