Skip to content
Snippets Groups Projects
  1. Sep 10, 2022
  2. Sep 08, 2022
  3. 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
  4. Aug 08, 2022
  5. Jul 05, 2022
  6. Jul 04, 2022
  7. 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
  8. Jun 28, 2022
  9. Jun 06, 2022
  10. May 18, 2022
  11. May 12, 2022
    • Jerome Forissier's avatar
      qemu_v8: build Xen with Buildroot · 9b6a7a2a
      Jerome Forissier authored
      
      Commit 8b808915 ("qemu_v8: xen: apply patch to fix issue with RPC
      buffer release") really did only one part of the job. Only the Xen tools
      are built with Buildroot; the hypervisor itself (which needs the patch
      mentioned in the commit) is actually built from the top-level xen/
      directory. As a result the issue is stil present.
      This commit changes the QEMUv8 makefiles as well as the Buildroot
      configuration for Xen so that both the hypervisor and the tools are
      built. As for the Xen configuration (enabling OP-TEE support), it is
      introduced via a patch to the defconfig file.
      
      Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      Acked-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      9b6a7a2a
    • Jerome Forissier's avatar
      xen: add patch to fix a regression with OP-TEE · 9f6dbc8e
      Jerome Forissier authored
      
      Adds a patch to revert a Xen commit [1] which causes a regression with
      OP-TEE. There is no more logs to the secure console after these lines:
      
       I/TC: Added guest 1
       D/TC:2   tee_entry_exchange_capabilities:100 Asynchronous notifications are disabled
       D/TC:2   tee_entry_exchange_capabilities:109 Dynamic shared memory is enabled
      
      ...and TAs fail to open sessions with TEEC_ERROR_COMMUNICATION.
      
      This is to prepare building Xen with Buildroot. The version of Xen
      pulled by $(ROOT)/buildroot/package/xen is 4.14.3 and is affected by this
      issue while the one we are currently using in $(ROOT)/xen is 4.14.1
      and doesn't have the regression.
      
      Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      Acked-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      9f6dbc8e
  12. May 06, 2022
  13. May 05, 2022
  14. May 04, 2022
  15. May 03, 2022
  16. Apr 11, 2022
  17. Apr 01, 2022
  18. Feb 15, 2022
  19. Feb 10, 2022
  20. Feb 03, 2022
  21. Jan 25, 2022
    • Ruchika Gupta's avatar
      qemu-v8: Use cpu as cortex-a57 for XEN_BOOT · 6a868e30
      Ruchika Gupta authored
      
      XEN fails to boot linux when cpu is selected as max with following
      kernel crash. Hence revert to using cortex-a57 when XEN_BOOT is
      selected.
      
      [    0.000000] ------------[ cut here ]------------
      [    0.000000] kernel BUG at arch/arm64/kernel/traps.c:498!
      [    0.000000] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
      [    0.000000] Modules linked in:
      [    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.16.0-gdbeb6ea978fc #1
      [    0.000000] Hardware name: linux,dummy-virt (DT)
      [    0.000000] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      [    0.000000] pc : do_undefinstr+0x2bc/0x2e0
      [    0.000000] lr : do_undefinstr+0x2c8/0x2e0
      [    0.000000] sp : ffffd399cddc3c60
      [    0.000000] x29: ffffd399cddc3c60 x28: ffffd399cddd34c0 x27: 0000000000000000
      [    0.000000] x26: 0000000000000000 x25: 0000000000000000 x24: ffffd399cd830008
      [    0.000000] x23: 00000000000000c5 x22: ffffd399cd7810bc x21: ffffd399cddc3e30
      [    0.000000] x20: 00000000d5182101 x19: ffffd399cddc3ce0 x18: 0000000000000014
      [    0.000000] x17: 0000000049426f60 x16: 0000000056a84232 x15: 0000000099ac15ae
      [    0.000000] x14: 00000000ab810c49 x13: 501bac190a4c3eb1 x12: 89c8a6a0aab2e7c5
      [    0.000000] x11: 00000000c16d9c19 x10: 00000000e4fb46a5 x9 : 00000000d78a73db
      [    0.000000] x8 : 0000000000000014 x7 : 501bac190a4c3eb1 x6 : 89c8a6a0aab2e7c5
      [    0.000000] x5 : ffffd399cddd5910 x4 : 0000000000000000 x3 : ffffd399ce0e70f8
      [    0.000000] x2 : 0000000000000000 x1 : ffffd399cddd34c0 x0 : 00000000000000c5
      [    0.000000] Call trace:
      [    0.000000]  do_undefinstr+0x2bc/0x2e0
      [    0.000000]  el1_undef+0x2c/0x4c
      [    0.000000]  el1h_64_sync_handler+0x84/0xd0
      [    0.000000]  el1h_64_sync+0x78/0x7c
      [    0.000000]  start_kernel+0x4c4/0x664
      [    0.000000]  __primary_switched+0xc0/0xc8
      [    0.000000] Code: 17ffff8d a9425bf5 17ffffb1 a9025bf5 (d4210000)
      [    0.000000] ---[ end trace 32823fcd1957a64b ]---
      [    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
      [    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
      
      Signed-off-by: default avatarRuchika Gupta <ruchika.gupta@linaro.org>
      Reviewed-by: default avatarJerome Forissier <jerome@forissier.org>
      3.16.0
      6a868e30
  22. Jan 14, 2022
  23. Jan 12, 2022
Loading