1. 26 Mar, 2020 1 commit
  2. 27 Dec, 2019 1 commit
  3. 17 Nov, 2019 2 commits
  4. 07 May, 2018 1 commit
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      
      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: Tom Rini's avatarTom Rini <trini@konsulko.com>
      83d290c5
  5. 21 Nov, 2017 2 commits
  6. 30 Sep, 2017 1 commit
  7. 13 Aug, 2017 1 commit
  8. 11 Jul, 2017 1 commit
  9. 23 Jun, 2017 2 commits
  10. 12 Jun, 2017 1 commit
  11. 07 Jun, 2017 3 commits
  12. 10 May, 2017 5 commits
  13. 27 Apr, 2017 1 commit
  14. 05 Apr, 2017 2 commits
    • Philipp Tomsich's avatar
      rockchip: mkimage: update rkimage to support pre-padded payloads · 30827756
      Philipp Tomsich authored and Simon Glass's avatar Simon Glass committed
      
      
      To simplify the creation of AArch64 SPL images for the RK3399, we
      use the ENABLE_ARM_SOC_BOOT0_HOOK option and prepend 4 bytes of
      padding at the start of the text section. This makes it easy for
      mkimage to rewrite this word with the 'RK33' boot magic.
      
      This change brings logic to calculate the header size and allocate
      the header back in sync. For the RK3399 we now limit the header to
      before the payload (i.e. the 'header0' and the padding up to the
      actual image) and overwrite the first word (inserted by the
      boot0-hook for this purpose) with the 'RK33' magic in-place.
      
      X-AffectedPlatforms: RK3399-Q7
      Signed-off-by: Philipp Tomsich's avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Tested-by: default avatarKlaus Goger <klaus.goger@theobroma-systems.com>
      30827756
    • Philipp Tomsich's avatar
      rockchip: mkimage: pad the header to 8-bytes (using a 'nop') for RK3399 · 111bcc4f
      Philipp Tomsich authored and Simon Glass's avatar Simon Glass committed
      
      
      The RK3399 boot code (running as AArch64) poses a bit of a challenge
      for SPL image generation:
       * The BootROM will start execution right after the 4-byte header (at
         the odd instruction word loaded into SRAM at 0xff8c2004, with the
         'RK33' boot magic residing at 0xff8c2000).
       * The default padding (during ELF generation) for AArch64 is 0x0,
         which is an illegal instruction and the .text section needs to be
         naturally aligned (someone might locate a 64bit constant relative
         to the section start and unaligned loads trigger a fault for all
         privileged modes of an ARMv8)... so we can't simply define the
         CONFIG_SPL_TEXT_BASE option to the odd address (0xff8c2004).
       * Finally, we don't want to change the values used for padding of
         the SPL .text section for all ARMv8 targets to the instruction
         word encoding 'nop', as this would affect all padding in this
         section and might hide errors that would otherwise quickly trigger
         an illegal insn exception.
      
      To deal with this situation, we modify the rkimage generation to
       - understand the fact that the RK3399 needs to pad the header to an
         8 byte boundary using an AArch64 'nop'
       - the necessary logic to adjust the header_size (which controls the
         location where the payload is copied into the image) and to insert
         this padding (AArch64 insn words are always little-endian) into
         the image following the 4-byte header magic.
      
      X-AffectedPlatforms: RK3399-Q7
      Signed-off-by: Philipp Tomsich's avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Tested-by: default avatarKlaus Goger <klaus.goger@theobroma-systems.com>
      111bcc4f
  15. 16 Mar, 2017 2 commits
  16. 26 Jul, 2016 2 commits
  17. 14 Dec, 2015 2 commits
  18. 01 Dec, 2015 2 commits
  19. 03 Sep, 2015 1 commit