* [PATCH] ARM: i.MX6: support HABv4 Fast Authentication
@ 2026-11-30 13:25 Roland Hieber
0 siblings, 0 replies; only message in thread
From: Roland Hieber @ 2026-11-30 13:25 UTC (permalink / raw)
To: barebox; +Cc: Roland Hieber
Recent i.MX6 silicon revisions contain HAB ≥ v4.1.2 and therefore
support Fast Authentication (refer to NXP AN4581 Appendix A for a
mapping of ROM revisions to HAB versions), but the i.MX6 flash header
template didn't set up Fast Auth yet. Do the same for i.MX6 as commit
086d01264d9a (2026-05-18, "ARM: i.MX: add support for fast
authentication") did for i.MX8.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
include/mach/imx/habv4-imx6-gencsf-template.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/mach/imx/habv4-imx6-gencsf-template.h b/include/mach/imx/habv4-imx6-gencsf-template.h
index c24bf84b851d..a48c4686b79e 100644
--- a/include/mach/imx/habv4-imx6-gencsf-template.h
+++ b/include/mach/imx/habv4-imx6-gencsf-template.h
@@ -27,9 +27,14 @@ hab File = CONFIG_HABV4_TABLE_BIN
hab # SRK index within SRK-Table 0..3
hab Source index = CONFIG_HABV4_SRK_INDEX
+#if defined(CONFIG_HABV4_FAST_AUTH)
+hab [Install NOCAK]
+hab File = CONFIG_HABV4_SRK_CRT_PEM
+#else
hab [Install CSFK]
/* target key index in keystore 1 */
hab File = CONFIG_HABV4_CSF_CRT_PEM
+#endif
hab [Authenticate CSF]
@@ -46,12 +51,14 @@ hab Features = FIELD RETURN
hab UID = HABV4_CSF_UNLOCK_UID
#endif
+#if !defined(CONFIG_HABV4_FAST_AUTH)
hab [Install Key]
/* verification key index in key store (0, 2...4) */
hab Verification index = 0
/* target key index in key store (2...4) */
hab Target index = 2
hab File = CONFIG_HABV4_IMG_CRT_PEM
+#endif
hab [Authenticate Data]
/* verification key index in key store (2...4) */
--
2.47.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 13:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:25 [PATCH] ARM: i.MX6: support HABv4 Fast Authentication Roland Hieber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox