1. 16 1月, 2021 35 次提交
  2. 15 1月, 2021 5 次提交
    • T
      Merge branch '2021.04-rc' of https://github.com/lftan/u-boot · 83e13c34
      Tom Rini 提交于
      - Add ATF flow for SoC64 devices
      - Update socfpgaimage to support print header and update padding flow
      83e13c34
    • L
      tools: socfpgaimage: update padding flow · 40551cf9
      Ley Foon Tan 提交于
      The existing socfpgaimage always pads the image to the maximum size of
      OCRAM size. This will break in the encryption flow where it expects the
      image to be un-padded. The encryption tool will do the encryption for
      the whole image and append the signature key at end of the image.
      The signature key will append to beyond the size of OCRAM if the image
      is padded with the maximum size before encryption.
      
      Move the padding step from socfpgaimage to Makefile and pads with objcopy
      command.
      
      socfpgaimage will pad the image with 16 bytes aligned (including CRC word),
      this is a requirement in encryption flow.
      Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
      40551cf9
    • L
      configs: socfpga: Add CONFIG_SPL_PAD_TO · 53b59290
      Ley Foon Tan 提交于
      Add CONFIG_SPL_PAD_TO for Gen5 and Arria 10. CONFIG_SPL_PAD_TO is set to
      size of OCRAM.
      
      This is preparation for image padding change in socfpgaimage.
      Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
      53b59290
    • L
      tools: socfpgaimage: Print image header information · bcf33fac
      Ley Foon Tan 提交于
      Print image header information if the header is verified.
      
      Example output from mkimage "-l" option:
      
      $ ./tools/mkimage -l spl/u-boot-spl.sfp
      Image Type      : Cyclone V / Arria V SoC Image
      Validation word : 0x31305341
      Version         : 0x00000000
      Flags           : 0x00000000
      Program length  : 0x00003a59
      Header checksum : 0x00000188
      
      $ ./tools/mkimage -l spl/u-boot-spl.sfp
      Image Type      : Arria 10 SoC Image
      Validation word : 0x31305341
      Version         : 0x00000001
      Flags           : 0x00000000
      Header length   : 0x00000014
      Program length  : 0x000138e0
      Program entry   : 0x00000014
      Header checksum : 0x00000237
      Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
      bcf33fac
    • C
      configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF support · 7d8890d8
      Chee Hong Ang 提交于
      Booting Agilex and Stratix 10 with ATF support.
      
      SPL now loads ATF (BL31), U-Boot proper and DTB from FIT
      image. The new boot flow with ATF support is as follow:
      
      SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux)
      
      U-Boot proper now starts at 0x200000 (CONFIG_SYS_TEXT_BASE).
      ATF will occupy the address range starting from 0x1000.
      Signed-off-by: NChee Hong Ang <chee.hong.ang@intel.com>
      Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
      7d8890d8