Skip to content
Snippets Groups Projects
  1. Jan 10, 2023
  2. Jan 05, 2023
  3. Dec 12, 2022
  4. Dec 09, 2022
  5. Dec 05, 2022
  6. Nov 30, 2022
  7. Nov 19, 2022
  8. Nov 16, 2022
  9. Nov 09, 2022
  10. Oct 17, 2022
  11. Sep 30, 2022
  12. Sep 29, 2022
  13. Sep 20, 2022
  14. Sep 15, 2022
    • Jorge Ramirez-Ortiz's avatar
      Add support for Versal ACAP VCK190 · 853b714e
      Jorge Ramirez-Ortiz authored
      System install:
      
      The Versal ACAP user will need to download and install Petalinux and
      the Versal ACAP BSP package [1]
      
        $ ls
          xilinx-vck190-v2022.1-04191534.bsp
      
        $ mkdir -p optee-project
        $ cd optee-project
        $ repo init -u https://github.com/OP-TEE/manifest.git -m versal.xml
        $ repo sync -j4 --no-clone-bundle
        $ cd build
        $ make -j8 toolchains
        $ make -j8
      
      The BSP will need to be upacked somewhere in the filesystem; to do that, once
      Petalinux has been installed do the following:
      
        $ cd ../../
        $  . /path/to/petalinux.2022.1/settings.sh
        $  petalinux-create --type project -s xilinx-vck190-v2022.1-04191534.bsp
        $ ls
          xilinx-vck190-2022.1
      
      To build the Versal ACAP image, versal/bootImage-versal-vck190.bif needs to be
      manually modified so some of the firmware files can be reached from the BSP.
      
      Once done
      
        $ cd optee-project/build
        $ make -f versal.mk image
      
      At that point the images are in optee-project/build/versal
      
      To boot from JTAG:
        $ cd versal
        $ ./boot_jtag.sh
      
      To boot from SD card create a big enough bootable partition on the SD and copy
      the images
        $ cp BOOT.BIN  /mnt/usr/boot_partition/
        $ cp versal-vck190.ub  /mnt/usr/boot_partition/
      
      Plug it in the device, set the boot switches and power up the board
      
        At the u-boot shell stop, load the itb and boot it.
      
        uboot> mmc dev 0
        uboot> fatload mmc 0:1 0x20000000 versal-vck190.ub
        uboot> bootm 0x20000000
      
        At the login prompt type "root" to enter and execute xtests
      
        [    2.391905] mmc0: new high speed SDHC card at address aaaa
        [    2.397907] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
        OP-TEE embedded distrib for versal-vck190
        buildroot login: root
        # xtest
        Run test suite with level=0
        TEE test application started over default TEE instance
        [...]
      
      [1] https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/2347204609/2022.1+Release
      
      
      
      Signed-off-by: default avatarJorge Ramirez-Ortiz <jorge@foundries.io>
      Acked-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      853b714e
  15. Sep 13, 2022
  16. Sep 11, 2022
  17. Sep 10, 2022
  18. Sep 08, 2022
  19. Aug 22, 2022
    • Jerome Forissier's avatar
      common.mk: buildroot: force make -j1 in buildroot when not per-package · 243e5701
      Jerome Forissier authored
      Buildroot parallel build is allowed when BR2_PER_PACKAGE_DIRECTORIES is
      'y', see commit e9bff1c8 ("common.mk: buildroot: enable top-level
      parallel build"). When disabled, Buildroot is not supposed to spawn
      several make jobs simultaneously. However for some reason it seems it
      can happen, see the IBART failure at [1]. The steps:
       >>> optee_client_ext 1.0 Fixing libtool files
      and:
       >>> pcsc-lite 1.9.4 Fixing libtool files
      ...seem to be running simultaneously and touching the same path (since
      per-package is disabled), which results in:
       mv: cannot stat '/home/optee/devel/qemu/out-br/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libpcsclite.la.fixed': No such file or directory
       package/pkg-generic.mk:331: recipe for target '/home/optee/devel/qemu/out-br/build/pcsc-lite-1.9.4/.stamp_staging_installed' failed
      
      I confirmed the fact by adding a 'sleep 5' after "Fixing libtool files"
      in package/pkg-generic.mk, as well as a 'ps -ef | grep sleep | grep -v
      grep || :' just before the sleep. Then when building with
      'make -j32 BR2_PER_PACKAGE_DIRECTORIES=n' (32 core machine) the 'sleep 5'
      is displayed occasionally.
      
      To avoid that, let's explicitly invoke make with -j1 when
      BR2_PER_PACKAGE_DIRECTORIES is disabled.
      
      Link: [1] https://optee.mooo.com:5000/logs/OP-TEE/optee_os/5487/1027234243/9147c347fb53612f62bf7de1c17e47a246d61ef2#02-qemu-build
      
       line 16398:
      Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      Reviewed-by: default avatarJoakim Bech <joakim.bech@linaro.org>
      243e5701
  20. Aug 08, 2022
  21. Jul 05, 2022
  22. Jul 04, 2022
  23. Jun 29, 2022
    • Etienne Carriere's avatar
      stm32mp1: rely on stm32mp15_defconfig · 3e2f82cd
      Etienne Carriere authored
      
      Configures U-Boot with stm32mp15_defconfig that was introduced in
      U-Boot tag v2021.10 for devices booted with OP-TEE and U-Boot stored
      in TF-A FIP container. From U-Boot v2021.10 onward,
      stm32mp15_trusted_defconfig is dedicated to boot scheme that do not
      use TF-A FIP format.
      
      Acked-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      3e2f82cd
    • Jerome Forissier's avatar
      qemu-check.exp: match core assert/panic strings on a single line · a16b1595
      Jerome Forissier authored
      
      The regular expression used to detect TEE core panics or assertion
      failures must not allow multi-line text to match, otherwise the following
      input may trigger it (test case: xtest 1007 with "make COMPILER=clang").
      
      E/TC:? 0 TA panicked with code 0xbeef
      E/LD:  Status of TA 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b
      E/LD:   arch: arm
      E/LD:  region  0: va 0x00102000 pa 0x0e300000 size 0x002000 flags rw-s (ldelf)
      E/LD:  region  1: va 0x00104000 pa 0x0e302000 size 0x00e000 flags r-xs (ldelf)
      E/LD:  region  2: va 0x00112000 pa 0x0e310000 size 0x001000 flags rw-s (ldelf)
      E/LD:  region  3: va 0x00113000 pa 0x0e311000 size 0x004000 flags rw-s (ldelf)
      E/LD:  region  4: va 0x00117000 pa 0x0e315000 size 0x001000 flags r--s
      E/LD:  region  5: va 0x00118000 pa 0x0e410000 size 0x003000 flags rw-s (stack)
      E/LD:  region  6: va 0x00184000 pa 0x00001000 size 0x015000 flags r-xs [0]
      E/LD:  region  7: va 0x00199000 pa 0x00016000 size 0x0e5000 flags rw-s [0]
      E/LD:  assertion 'maps[map_idx].sz == sz' failed at ldelf/ta_elf.c:1451 in ta_elf_print_mappings()
      
      In addition to using '[^n]*' instead of '.*', a couple of things need
      fixing too:
      
      - In Expect, `^` and `$` are the beginning and end of the current matching
      buffer, not the beginning and end of a line. Therefore `^` is not
      appropriate here.
      - `\n` should not be matched because if it is consumed for example at the
      end of an expression to mean "end of line", then it cannot be available to
      another expression to mean "beginning of line".
      
      Fixes: 09900ef9 ("qemu-check.exp: trap only OP-TEE Core assert or panic")
      Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      Reviewed-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      Acked-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
      a16b1595
  24. Jun 28, 2022
Loading