Skip to content

Add support for booting qemu with TFA and optee

Joshua Watt yocto-meta-arm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesIn review
  2. v23 patches 13 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

* Remove subshell in optee-client: do_install
* Changes assignements for compiling optee/TF-A for qemu to be weak
* Fixed optee-os install path to respect ${BUILD_PLAT}

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3optee-{os,examples,client,test}: Build out of treemeta-arm/recipes-security/optee/optee-client_git.bb meta-arm/recipes-security/optee/optee-examples_git.bb meta-arm/recipes-security/optee/optee-os_git.bb +1 more+31 -112 replies
2/3optee-client: Add sysVinit servicemeta-arm/recipes-security/optee/optee-client/tee-supplicant.service meta-arm/recipes-security/optee/optee-client/tee-supplicant.sh meta-arm/recipes-security/optee/optee-client_git.bb+65 -92 replies
3/3Add support for booting qemu with TFA and opteemeta-arm/conf/machine/qemuarm64-secureboot.conf meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc meta-arm/recipes-bsp/u-boot/u-boot/qemuarm64.cfg +6 more+80 -131 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDiego SueiroDenys Dmytriyenko
1/3R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [meta-arm][PATCH v3 0/3] Add support for booting qemu with TFA and optee

Adds support for booting AArch64 Qemu machines using TF-A + optee + u-boot. Most of the changes are applicable to any AArch64 qemu target, and a reference machine called qemuarm64-secureboot has been added that show how to enable support for it.

Testing of op-tee can be done using the qemuarm64-secureboot machine with the following commands:

$ cat >> conf/local.conf <<HEREDOC
MACHINE = "qemuarm64-secureboot"
CORE_IMAGE_EXTRA_INSTALL += "optee-test kernel-modules"
HEREDOC
$ bitbake core-image-minimal
$ runqemu nographic serialstdio slirp
...
root@qemuarm64-secureboot:~# xtest

V3:
* Remove subshell in optee-client: do_install
* Changes assignements for compiling optee/TF-A for qemu to be weak
* Fixed optee-os install path to respect ${BUILD_PLAT}

Joshua Watt (3):
optee-{os,examples,client,test}: Build out of tree
optee-client: Add sysVinit service
Add support for booting qemu with TFA and optee

 .../conf/machine/qemuarm64-secureboot.conf    | 26 +++++++++++
 .../trusted-firmware-a/trusted-firmware-a.inc | 44 ++++++++++++------
 .../recipes-bsp/u-boot/u-boot/qemuarm64.cfg   |  4 ++
 meta-arm/recipes-bsp/u-boot/u-boot_%.bbappend |  3 ++
 .../linux/linux-yocto-dev.bbappend            |  4 ++
 .../linux/linux-yocto-dev/tee.cfg             |  4 ++
 .../optee/optee-client/tee-supplicant.service |  4 +-
 .../optee/optee-client/tee-supplicant.sh      | 46 +++++++++++++++++++
 .../optee/optee-client_git.bb                 | 38 +++++++++++----
 .../optee/optee-examples_git.bb               |  8 +++-
 .../recipes-security/optee/optee-os_git.bb    | 13 ++++--
 .../recipes-security/optee/optee-test_git.bb  |  8 +++-
 meta-arm/recipes-security/optee/optee.inc     |  1 +
 meta-arm/wic/qemuarm64.wks                    |  4 ++
 14 files changed, 175 insertions(+), 32 deletions(-)
 create mode 100644 meta-arm/conf/machine/qemuarm64-secureboot.conf
 create mode 100644 meta-arm/recipes-bsp/u-boot/u-boot/qemuarm64.cfg
 create mode 100644 meta-arm/recipes-bsp/u-boot/u-boot_%.bbappend
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto-dev.bbappend
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto-dev/tee.cfg
 create mode 100644 meta-arm/recipes-security/optee/optee-client/tee-supplicant.sh
 create mode 100644 meta-arm/wic/qemuarm64.wks
Signature · 1 line
2.17.1