mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/4] ARM: boards: i.MX8M: add HAB support
Date: Tue,  2 Jan 2024 12:01:15 +0100	[thread overview]
Message-ID: <20240102110118.280032-1-m.felsch@pengutronix.de> (raw)

The gencsf header is required to build HAB (secure-boot) compatible
images. This commit add the support for this for all i.MX8M boards.

To finally build HAB compatible images the CONFIG_HABV4 and
CONFIG_HABV4_IMAGE_SIGNED must be enabled.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 .../boards/innocomm-imx8mm-wb15/flash-header-imx8mm-wb15.imxcfg | 2 ++
 .../flash-header-imx8mm-phyboard-polis-rdk.imxcfg               | 2 ++
 .../boards/phytec-som-imx8mq/flash-header-phycore-imx8mq.imxcfg | 2 ++
 arch/arm/boards/polyhex-debix/flash-header-polyhex-debix.imxcfg | 2 ++
 arch/arm/boards/protonic-imx8m/flash-header-prt8mm.imxcfg       | 2 ++
 arch/arm/boards/skov-imx8mp/flash-header-skov-imx8mp.imxcfg     | 2 ++
 arch/arm/boards/tqma8mpxl/flash-header-tqma8mpxl.imxcfg         | 2 ++
 .../flash-header-imx8mp-dart.imxcfg                             | 2 ++
 .../boards/zii-imx8mq-dev/flash-header-zii-imx8mq-dev.imxcfg    | 2 ++
 9 files changed, 18 insertions(+)

diff --git a/arch/arm/boards/innocomm-imx8mm-wb15/flash-header-imx8mm-wb15.imxcfg b/arch/arm/boards/innocomm-imx8mm-wb15/flash-header-imx8mm-wb15.imxcfg
index 10606ce29c96..8aff991618ec 100644
--- a/arch/arm/boards/innocomm-imx8mm-wb15/flash-header-imx8mm-wb15.imxcfg
+++ b/arch/arm/boards/innocomm-imx8mm-wb15/flash-header-imx8mm-wb15.imxcfg
@@ -5,3 +5,5 @@ soc imx8mm
 loadaddr 0x007e1000
 max_load_size 0x3f000
 ivtofs 0x400
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/phytec-som-imx8mm/flash-header-imx8mm-phyboard-polis-rdk.imxcfg b/arch/arm/boards/phytec-som-imx8mm/flash-header-imx8mm-phyboard-polis-rdk.imxcfg
index 10606ce29c96..8aff991618ec 100644
--- a/arch/arm/boards/phytec-som-imx8mm/flash-header-imx8mm-phyboard-polis-rdk.imxcfg
+++ b/arch/arm/boards/phytec-som-imx8mm/flash-header-imx8mm-phyboard-polis-rdk.imxcfg
@@ -5,3 +5,5 @@ soc imx8mm
 loadaddr 0x007e1000
 max_load_size 0x3f000
 ivtofs 0x400
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/phytec-som-imx8mq/flash-header-phycore-imx8mq.imxcfg b/arch/arm/boards/phytec-som-imx8mq/flash-header-phycore-imx8mq.imxcfg
index 93cf14f26ba5..f82759f8499a 100644
--- a/arch/arm/boards/phytec-som-imx8mq/flash-header-phycore-imx8mq.imxcfg
+++ b/arch/arm/boards/phytec-som-imx8mq/flash-header-phycore-imx8mq.imxcfg
@@ -5,3 +5,5 @@ soc imx8mq
 loadaddr 0x007E1000
 max_load_size 0x3F000
 ivtofs 0x400
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/polyhex-debix/flash-header-polyhex-debix.imxcfg b/arch/arm/boards/polyhex-debix/flash-header-polyhex-debix.imxcfg
index 663bd102e9a2..6ea2e6c68ed7 100644
--- a/arch/arm/boards/polyhex-debix/flash-header-polyhex-debix.imxcfg
+++ b/arch/arm/boards/polyhex-debix/flash-header-polyhex-debix.imxcfg
@@ -5,3 +5,5 @@ soc imx8mp
 loadaddr 0x920000
 max_load_size 0x3f000
 ivtofs 0x0
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/protonic-imx8m/flash-header-prt8mm.imxcfg b/arch/arm/boards/protonic-imx8m/flash-header-prt8mm.imxcfg
index 10606ce29c96..8aff991618ec 100644
--- a/arch/arm/boards/protonic-imx8m/flash-header-prt8mm.imxcfg
+++ b/arch/arm/boards/protonic-imx8m/flash-header-prt8mm.imxcfg
@@ -5,3 +5,5 @@ soc imx8mm
 loadaddr 0x007e1000
 max_load_size 0x3f000
 ivtofs 0x400
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/skov-imx8mp/flash-header-skov-imx8mp.imxcfg b/arch/arm/boards/skov-imx8mp/flash-header-skov-imx8mp.imxcfg
index 663bd102e9a2..6ea2e6c68ed7 100644
--- a/arch/arm/boards/skov-imx8mp/flash-header-skov-imx8mp.imxcfg
+++ b/arch/arm/boards/skov-imx8mp/flash-header-skov-imx8mp.imxcfg
@@ -5,3 +5,5 @@ soc imx8mp
 loadaddr 0x920000
 max_load_size 0x3f000
 ivtofs 0x0
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/tqma8mpxl/flash-header-tqma8mpxl.imxcfg b/arch/arm/boards/tqma8mpxl/flash-header-tqma8mpxl.imxcfg
index 663bd102e9a2..6ea2e6c68ed7 100644
--- a/arch/arm/boards/tqma8mpxl/flash-header-tqma8mpxl.imxcfg
+++ b/arch/arm/boards/tqma8mpxl/flash-header-tqma8mpxl.imxcfg
@@ -5,3 +5,5 @@ soc imx8mp
 loadaddr 0x920000
 max_load_size 0x3f000
 ivtofs 0x0
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/variscite-dt8mcustomboard-imx8mp/flash-header-imx8mp-dart.imxcfg b/arch/arm/boards/variscite-dt8mcustomboard-imx8mp/flash-header-imx8mp-dart.imxcfg
index 2b104edfb741..c3149a197f7d 100644
--- a/arch/arm/boards/variscite-dt8mcustomboard-imx8mp/flash-header-imx8mp-dart.imxcfg
+++ b/arch/arm/boards/variscite-dt8mcustomboard-imx8mp/flash-header-imx8mp-dart.imxcfg
@@ -5,3 +5,5 @@ soc imx8mp
 loadaddr 0x918000
 max_load_size 0x3f000
 ivtofs 0x0
+
+#include <mach/imx/habv4-imx8-gencsf.h>
diff --git a/arch/arm/boards/zii-imx8mq-dev/flash-header-zii-imx8mq-dev.imxcfg b/arch/arm/boards/zii-imx8mq-dev/flash-header-zii-imx8mq-dev.imxcfg
index 93cf14f26ba5..f82759f8499a 100644
--- a/arch/arm/boards/zii-imx8mq-dev/flash-header-zii-imx8mq-dev.imxcfg
+++ b/arch/arm/boards/zii-imx8mq-dev/flash-header-zii-imx8mq-dev.imxcfg
@@ -5,3 +5,5 @@ soc imx8mq
 loadaddr 0x007E1000
 max_load_size 0x3F000
 ivtofs 0x400
+
+#include <mach/imx/habv4-imx8-gencsf.h>
-- 
2.39.2




             reply	other threads:[~2024-01-02 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-02 11:01 Marco Felsch [this message]
2024-01-02 11:01 ` [PATCH 2/4] ARM: boars: i.MX8MQ: align SPDX header with other imxcfg files Marco Felsch
2024-01-02 11:04   ` Marco Felsch
2024-01-02 11:01 ` [PATCH 3/4] images: Makefile.imx: add i.MX9 comment Marco Felsch
2024-01-02 11:01 ` [PATCH 4/4] ARM: boards: polyhex-debix: fix file mode for 8g-lpddr4-timing.c Marco Felsch
2024-01-03 11:19 ` [PATCH 1/4] ARM: boards: i.MX8M: add HAB support Sascha Hauer

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=20240102110118.280032-1-m.felsch@pengutronix.de \
    --to=m.felsch@pengutronix.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