[PATCH] ARM: i.MX6: support HABv4 Fast Authentication

Roland Hieber rhi at pengutronix.de
Mon Nov 30 05:25:01 PST 2026


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 at 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




More information about the barebox mailing list