Skip to content
Snippets Groups Projects
  1. May 29, 2020
  2. May 26, 2020
  3. May 12, 2020
  4. May 06, 2020
  5. 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
  6. Feb 25, 2020
  7. Jan 31, 2020
  8. Jan 13, 2020
  9. Jan 09, 2020
  10. Jan 08, 2020
  11. Jan 07, 2020
  12. 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
  13. Nov 22, 2019
  14. Nov 08, 2019
  15. Oct 11, 2019
  16. Oct 10, 2019
  17. Oct 09, 2019
  18. Oct 08, 2019
  19. Oct 07, 2019
  20. Sep 10, 2019
  21. Sep 04, 2019
    • Jerome Forissier's avatar
      common.mk: buildroot: append BR2_ variables to config automatically · 7fbd6ce2
      Jerome Forissier authored
      
      To set additional BR2_ variables, the user currently needs to edit
      common.mk and modify the buildroot recipe. It is inconvenient,
      especially since a line with a cumbersome syntax has to be added. One
      would expect to be able to specify the desired value on the make
      command line or directly in the Makefile. For instance, to enable
      debug mode: make BR2_ENABLE_DEBUG=y.
      
      This patch updates the buildroot recipe to enumerate all the Makefile
      variables that start with BR2_, and each such variable is automatically
      added to ../out-br/extra.conf.
      
      As a result the existing BR2_ variables can be set in a simpler way.
      
      Tested on QEMU, results in the same ../out-br/.config except for the
      line order.
      
      Signed-off-by: default avatarJerome Forissier <jerome@forissier.org>
      Suggested-by: default avatarHeino Madsen <heino.madsen@huawei.com>
      Reviewed-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      7fbd6ce2
  22. Aug 13, 2019
  23. Aug 07, 2019
  24. Jun 28, 2019
Loading