From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Sai Sree Kartheek Adivi <s-adivi@ti.com>, Zhihang Wei <wzh@ilbers.de>
Subject: [PATCH] initramfs-tee-ftpm-hook: Restore waiting for tpm device
Date: Thu, 27 Nov 2025 17:49:04 +0100 [thread overview]
Message-ID: <de3d0bc3-4d3f-4bf1-a8a9-47bb6c985670@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
It was wrong to assume that there is no need to wait for the tpm device
anymore when using in-kernel supplicant. Also in that case, there can
still be some delay in probing the eMMC storage device and, thus, also
the ftpm which depends on it. Restore our waiting loop, just updating
its comment accordingly.
Fixes: a1893507e495 ("initramfs-tee-ftpm-hook: Skip local-top hook without userland supplicant")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
This will also allow to fix the OVERRIDES mistake on top.
.../recipes-initramfs/initramfs-tee-ftpm-hook/files/local-top | 4 ++--
.../initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/local-top b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/local-top
index 989bf288..7683cc41 100644
--- a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/local-top
+++ b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/local-top
@@ -9,8 +9,8 @@
FTPM_DEV=/dev/tpmrm0
-# The tee-supplicant would take some time to be discovered, 30 seconds should
-# be enough
+# The backing storage device and/or the tee-supplicant can take some time to
+# be discovered, 30 seconds should be enough
wait_sec=30
until test $wait_sec -eq 0 || test -c "${FTPM_DEV}" ; do
wait_sec=$((wait_sec-1))
diff --git a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
index 94399374..0a7cd560 100644
--- a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
+++ b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
@@ -8,14 +8,14 @@
require recipes-initramfs/initramfs-hook/hook.inc
+SRC_URI += "file://local-top"
+
# Can be disabled with kernel 6.12 and above
# NOTE: default will eventually be flipped
TEE_SUPPLICANT_IN_USERLAND ?= "1"
OVERRIDES .= "${@'supp-user' if bb.utils.to_boolean(d.getVar('TEE_SUPPLICANT_IN_USERLAND')) else ''}"
-SRC_URI:supp-user += "file://local-top"
-
HOOK_PREREQ:supp-user = "tee-supplicant"
HOOK_ADD_MODULES = "amdtee arm-tstee optee qcomtee tpm_ftpm_tee"
SCRIPT_PREREQ:supp-user = "tee-supplicant"
--
2.51.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/de3d0bc3-4d3f-4bf1-a8a9-47bb6c985670%40siemens.com.
reply other threads:[~2025-11-27 16:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=de3d0bc3-4d3f-4bf1-a8a9-47bb6c985670@siemens.com \
--to=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=s-adivi@ti.com \
--cc=wzh@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox