Skip to contentSkip to conversation

arm/qemuarm64-secureboot: Enable kernel TEE drivers

PATCH In review Sumit Garg 2 participants 5 messages May 19, 2021 – Jul 22, 2021

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

PATCH 1/1 arm/qemuarm64-secureboot: Enable kernel TEE drivers

Add a config fragment to enable kernel TEE drivers.

---
 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg      | 10 ++++++++++
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file +10 -0
new file mode 100644
index 0000000..3de03bf
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +4 -1
index b9995e0..3c3d36a 100644
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
     "
 
 FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+    file://zone_dma_revert.patch \
+    file://tee.cfg \
+    "
Signature · 1 line
2.25.1
#1 lore raw
Quoted 3 lines · Sumit Garg

Add a config fragment to enable kernel TEE drivers.

Added to master branch

Thanks,
Jon

Quoted 42 lines
---
 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg      | 10 ++++++++++
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file +10 -0
new file mode 100644
index 0000000..3de03bf
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +4 -1
index b9995e0..3c3d36a 100644
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
     "
 
 FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+    file://zone_dma_revert.patch \
+    file://tee.cfg \
+    "
Signature · 1 line
2.25.1
author
#2 lore raw
Quoted 8 lines · Jon Mason
Quoted 3 lines · Sumit Garg

Add a config fragment to enable kernel TEE drivers.

Added to master branch

Thanks Jon, can you apply this to the hardknott branch as well?

-Sumit

Quoted 46 lines

Thanks,
Jon

Quoted 42 lines
---
 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg      | 10 ++++++++++
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file +10 -0
new file mode 100644
index 0000000..3de03bf
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +4 -2
index b9995e0..3c3d36a 100644
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
     "
 
 FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+    file://zone_dma_revert.patch \
+    file://tee.cfg \
+    "
--

2.25.1

#3 lore raw
Quoted 11 lines · Sumit Garg
Quoted 8 lines · Jon Mason
Quoted 3 lines · Sumit Garg

Add a config fragment to enable kernel TEE drivers.

Added to master branch

Thanks Jon, can you apply this to the hardknott branch as well?

I had to rework it a little, due to the zone dma hacks ever changing. It's in hardknott-next branch and I'll push after it passes CI.

Thanks,
Jon

Quoted 49 lines

-Sumit

Quoted 46 lines

Thanks,
Jon

Quoted 42 lines
---
 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg      | 10 ++++++++++
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file +10 -0
new file mode 100644
index 0000000..3de03bf
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +4 -2
index b9995e0..3c3d36a 100644
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
     "
 
 FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+    file://zone_dma_revert.patch \
+    file://tee.cfg \
+    "
--

2.25.1

author
#4 lore raw
Quoted 9 lines · Jon Mason
Quoted 7 lines · Sumit Garg
Quoted 6 lines · Jon Mason
Quoted 3 lines · Sumit Garg

Add a config fragment to enable kernel TEE drivers.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Added to master branch

Thanks Jon, can you apply this to the hardknott branch as well?

I had to rework it a little, due to the zone dma hacks ever changing. It's in hardknott-next branch and I'll push after it passes CI.

Thanks.

-Sumit

Quoted 52 lines

Thanks,
Jon

Quoted 49 lines

-Sumit

Quoted 46 lines

Thanks,
Jon

Quoted 42 lines
---
 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg      | 10 ++++++++++
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file +10 -0
new file mode 100644
index 0000000..3de03bf
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +4 -2
index b9995e0..3c3d36a 100644
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
     "
 
 FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+    file://zone_dma_revert.patch \
+    file://tee.cfg \
+    "
--

2.25.1