mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Albert Schwarzkopf <a.schwarzkopf@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH] mach-imx: hab: Unlock CAAM MID for OP-TEE
Date: Wed, 22 Apr 2020 13:44:07 +0200	[thread overview]
Message-ID: <20200422114407.10351-1-a.schwarzkopf@phytec.de> (raw)

The current CSF config used by barebox does not allow a successful
bootup of OP-TEE within a closed HAB configuration. As specified
in section 2.1 of the application notes [1], OP-TEE requires that
the "UNLOCK MID" HAB command is present in the CSF file for
this case.

This patch adds the mentioned command if support for OP-TEE is
enabled in the configuration. It's based on the discussion
in [2].

[1] https://www.nxp.com/docs/en/application-note/AN12056.pdf
[2] https://github.com/OP-TEE/optee_os/issues/3609

Signed-off-by: Albert Schwarzkopf <a.schwarzkopf@phytec.de>
---
 arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h b/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h
index 581887960..0e6c7e2dd 100644
--- a/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h
+++ b/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h
@@ -29,7 +29,11 @@ hab [Authenticate CSF]
 
 hab [Unlock]
 hab Engine = CAAM
+#if defined(CONFIG_BOOTM_OPTEE) || defined(CONFIG_PBL_OPTEE)
+hab Features = MID,RNG
+#else
 hab Features = RNG
+#endif
 
 hab [Install Key]
 /* verification key index in key store (0, 2...4) */
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2020-04-22 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 11:44 Albert Schwarzkopf [this message]
2020-04-22 12:34 ` Rouven Czerwinski
2020-04-23  7:08   ` Sascha Hauer
2020-04-23  7:09     ` Rouven Czerwinski

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=20200422114407.10351-1-a.schwarzkopf@phytec.de \
    --to=a.schwarzkopf@phytec.de \
    --cc=barebox@lists.infradead.org \
    /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