Skip to content
Snippets Groups Projects
  1. Sep 28, 2020
  2. Sep 22, 2020
  3. Sep 01, 2020
  4. Aug 27, 2020
  5. Aug 14, 2020
  6. Aug 13, 2020
  7. Aug 12, 2020
    • Jerome Forissier's avatar
      qemu-check.exp: clean assertion failure message · a4a259e9
      Jerome Forissier authored
      
      The message displayed by "make check" when an assertion failure is
      detected is as follows:
      
       $ PATH=~/work/clang-10.0.0/bin:$PATH make -j10 COMPILER=clang check
       [...]
       Starting QEMU... done, guest is booted.
       Running: xtest...
       '##########!!! TEE core assertion failed: 'assertion 'maps[map_idx].sz == sz' failed at ldelf/ta_elf.c:1351 in ta_elf_print_mappings()
       make: *** [Makefile:221: check] Error 1
       $
      
      The "TEE core assertion failed:' part is not needed and possibly
      misleading (in this case the assertion occurred in ldelf which is
      arguably not "TEE core"). Remove it.
      
      Signed-off-by: default avatarJerome Forissier <jerome@forissier.org>
      Acked-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      a4a259e9
  8. Jun 29, 2020
  9. Jun 10, 2020
  10. Jun 05, 2020
    • Etienne Carriere's avatar
      stm32mp1: initial support · bba5972e
      Etienne Carriere authored
      
      Build OP-TEE for STM32MP1 based platforms. Currently supports platforms
      STM32MP157A-DK1, STM32MP157C-DK2 and STM32MP157C-EV1 using a SDcard as
      boot media.
      
      Default build targets board STM32MP157C-DK2:
      # make
      
      One can specify a target board with PLATFORM configuration switch:
      # make PLATFORM=stm32mp1-157A_DK1
      # make PLATFORM=stm32mp1-157C_DK2
      # make PLATFORM=stm32mp1-157C_EV1
      
      Refer to br-ext/board/stmicroelectronics/stm32mp1-tz/readme.txt for
      mode information.
      
      TF-A, OP-TEE OS, U-Boot and Linux kernel are built outside Builrdoot.
      All other embedded components are built through Buildroot.
      Buildroot generates the final SDcard binary image file to be loaded
      raw in the target SD card. The image includes a GPT partition table.
      See br-ext/board/stmicroelectronics/stm32mp1-tz/genimage-*.cfg
      for more details.
      
      Note on U-Boot defconfig: from v2019.10 up to v2020.07-rc2, one shall
      use stm32mp15_optee_defconfig. From v2020-rc3 onward, one shall use
      stm32mp15_trusted_defconfig. For flexibility, stm32mp1.mk supports both.
      
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      Reviewed-by: default avatarJoakim Bech <joakim.bech@linaro.org>
      bba5972e
  11. Jun 02, 2020
  12. May 29, 2020
  13. May 26, 2020
  14. May 12, 2020
  15. May 06, 2020
  16. Mar 09, 2020
    • Igor Opaniuk's avatar
      verdin-imx8mm: add initial setup · 3bf187d6
      Igor Opaniuk authored
      
      Add initial verdin.mk for the minimal setup for OP-TEE testing.
      This setup uses latest mainline TF-A (v.2.2) / U-Boot (v2020.03) /
      Linux (5.6-rc).
      
      Verdin i.MX8M Mini boot sequence:
      
      BootROM -> SPL -> TF-A (BL31) -> OP-TEE (BL32)
                         |
                         -> U-Boot (BL33) -> Linux
      
      TF-A(bl31.bin), U-Boot proper and OP-TEE (tee.bin) are packed in FIT image,
      which is parsed by SPL.
      
      Deploying:
      
      1. Flasing flash.bin (IMX ready-to-boot image):
      > dhcp && tftpboot ${loadaddr} flash.bin
      > setexpr blkcnt ${filesize} + 0x1ff
      > setexpr blkcnt ${blkcnt} / 0x200
      > mmc dev 0 1 && mmc write ${loadaddr} 0x2 ${blkcnt}
      
      2. Boot Linux kernel via TFTP/NFS:
      
      -> setenv serverip <ip_of_your_server>
      -> setenv nfsroot /path/to/nfs/root
      -> setenv fdt_file fsl-imx8mm-verdin-dev.dtb
      -> setenv bootargs "console=${console},${baudrate} root=/dev/nfs \
                  ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp"
      -> tftp ${loadaddr} ${image}; tftp ${fdt_addr} ${fdt_file};
      -> booti ${loadaddr} - ${fdt_addr}
      
      Test results:
      
      +-----------------------------------------------------
      24600 subtests of which 0 failed
      98 test cases of which 0 failed
      0 test cases were skipped
      TEE test application done!
      
      Acked-by: default avatarJerome Forissier <jerome@forissier.org>
      Signed-off-by: default avatarIgor Opaniuk <igor.opaniuk@gmail.com>
      3bf187d6
  17. Feb 25, 2020
  18. Jan 31, 2020
  19. Jan 13, 2020
  20. Jan 09, 2020
  21. Jan 08, 2020
  22. Jan 07, 2020
  23. Dec 17, 2019
    • Jerome Forissier's avatar
      hikey960: fix EDK2 build with GCC 9.x · 1e8d0b5a
      Jerome Forissier authored
      The current EDK2 code fails to build with GCC 9.x:
      
       make[3]: Entering directory '/home/jerome/work/optee_repo_hikey960/edk2/BaseTools/Source/C/GenVtf'
       gcc  -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -O2 GenVtf.c -o GenVtf.o
       In file included from /usr/include/string.h:494,
                        from ../Common/FvLib.h:21,
                        from GenVtf.c:19:
       In function ‘strncpy’,
           inlined from ‘ConvertVersionInfo’ at GenVtf.c:132:7:
       /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
         106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
             |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       GenVtf.c: In function ‘ConvertVersionInfo’:
       GenVtf.c:130:14: note: length computed here
         130 |     Length = strlen(Str);
             |              ^~~~~~~~~~~
       In file included from /usr/include/string.h:494,
                        from ../Common/FvLib.h:21,
                        from GenVtf.c:19:
       In function ‘strncpy’,
           inlined from ‘CreateFitTableAndInitialize’ at GenVtf.c:1532:3:
       /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation]
         106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
             |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       cc1: all warnings being treated as errors
       make[3]: *** [../Makefiles/footer.makefile:27: GenVtf.o] Error 1
      
      This error was found with Ubuntu 19.10 (comes with GCC 9.2.1).
      
      The HiKey960 EDK2 repository [1] has not received any update in the
      past year, I am not sure it is still maintained. There is apparently
      some support for HiKey960 in the upstream EDK2 repositories [2] and
      [3], but I could not get my board to boot with upstream code.
      
      So, a quick fix seems in order.
      
      [1] https://github.com/96boards-hikey/edk2.git
      [2] https://github.com/tianocore/edk2.git
      [3] https://github.com/tianocore/edk2-platforms.git
      
      
      
      Signed-off-by: default avatarJerome Forissier <jerome@forissier.org>
      Acked-by: default avatarVictor Chong <victor.chong@linaro.org>
      1e8d0b5a
  24. Nov 22, 2019
Loading