binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing
PATCH 1/2 binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing
Add new binman etype which allows signing both the SPL and fitImage sections of i.MX8M flash.bin using CST. There are multiple DT properties which govern the signing process, nxp,loader-address is the only mandatory one which sets the SPL signature start address without the imx8mimage header, this should be SPL text base. The key material can be configured using optional DT properties nxp,srk-table, nxp,csf-key, nxp,img-key, all of which default the key material names generated by CST tool scripts. The nxp,unlock property can be used to unlock CAAM access in SPL section.
Minimal signing description example:
diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-u-boot.dtsi
index c4c1a177102..ccd44bf9d0b 100644
--- a/arch/arm/dts/imx8mp-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-u-boot.dtsi
@@ -86,6 +86,12 @@
section {
pad-byte = <0x00>;
+ nxp-imx8mcst@0 {
+ filename = "u-boot-spl-mkimage.signed.bin";
+ nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
+ nxp,unlock;
+ args; /* Needed by mkimage etype superclass */
+
nxp-imx8mimage {
filename = "u-boot-spl-mkimage.bin";
nxp,boot-from = "sd";
@@ -129,6 +135,14 @@
};
};
+ };
+
+ nxp-imx8mcst@1 {
+ filename = "u-boot-fit.signed.bin";
+ nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
+ offset = <0x58000>;
+ args; /* Needed by mkimage etype superclass */
+
fit {
description = "Configuration to load ATF before U-Boot";
#ifndef CONFIG_IMX_HAB
@@ -191,5 +205,6 @@
};
};
};
+ };
};
};---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Adam Ford <[email protected]>
Cc: Alper Nebi Yasak <[email protected]>
Cc: Andrejs Cainikovs <[email protected]>
Cc: Angus Ainslie <[email protected]>
Cc: Emanuele Ghidoli <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Eichenberger <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- tools/binman/btool/cst.py | 48 +++++++++++ tools/binman/etype/nxp_imx8mcst.py | 133 +++++++++++++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 tools/binman/btool/cst.py create mode 100644 tools/binman/etype/nxp_imx8mcst.py
tools/binman/btool/cst.py new file +48 -0
@@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2024 Marek Vasut <[email protected]> +# +"""Bintool implementation for cst""" + +import re + +from binman import bintool + +class Bintoolcst(bintool.Bintool): + """Image generation for U-Boot + + This bintool supports running `cst` with some basic parameters as + needed by binman. + """ + def __init__(self, name): + super().__init__(name, 'Sign NXP i.MX image') + + # pylint: disable=R0913 + def run(self, output_fname=None): + """Run cst + + Args: + output_fname: Output filename to write to + """ + args = [] + if output_fname: + args += ['-o', output_fname] + return self.run_cmd(*args) + + def fetch(self, method): + """Fetch handler for cst + + This installs cst using the apt utility. + + Args: + method (FETCH_...): Method to use + + Returns: + True if the file was fetched and now installed, None if a method + other than FETCH_BIN was requested + + Raises: + Valuerror: Fetching could not be completed + """ + if method != bintool.FETCH_BIN: + return None + return self.apt_install('imx-code-signing-tool')
tools/binman/etype/nxp_imx8mcst.py new file +133 -0
133 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH 2/2 imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Update documentation and use nxp_imx8mcst binman etype for signing of flash.bin instead of previous horrible shell scripting.
---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Adam Ford <[email protected]>
Cc: Alper Nebi Yasak <[email protected]>
Cc: Andrejs Cainikovs <[email protected]>
Cc: Angus Ainslie <[email protected]>
Cc: Emanuele Ghidoli <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Eichenberger <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- doc/imx/habv4/csf_examples/mx8m/csf.sh | 92 ------------ doc/imx/habv4/csf_examples/mx8m/csf_fit.txt | 30 ---- doc/imx/habv4/csf_examples/mx8m/csf_spl.txt | 33 ---- doc/imx/habv4/guides/mx8m_spl_secure_boot.txt | 141 +++++++----------- 4 files changed, 55 insertions(+), 241 deletions(-) delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf.sh delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf_fit.txt delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf_spl.txt
doc/imx/habv4/csf_examples/mx8m/csf.sh deleted +0 -92
@@ -1,92 +0,0 @@ -#!/bin/sh - -# 0) Generate keys -# -# WARNING: ECDSA keys are only supported by HAB 4.5 and newer (i.e. i.MX8M Plus) -# -# cd /path/to/cst-3.3.1/keys/ -# ./hab4_pki_tree.sh -existing-ca n -use-ecc n -kl 4096 -duration 10 -num-srk 4 -srk-ca y -# cd /path/to/cst-3.3.1/crts/ -# ../linux64/bin/srktool -h 4 -t SRK_1_2_3_4_table.bin -e SRK_1_2_3_4_fuse.bin -d sha256 -c ./SRK1_sha256_4096_65537_v3_ca_crt.pem,./SRK2_sha256_4096_65537_v3_ca_crt.pem,./SRK3_sha256_4096_65537_v3_ca_crt.pem,./SRK4_sha256_4096_65537_v3_ca_crt.pem -f 1 - -# 1) Build U-Boot (e.g. for i.MX8MM) -# -# cp -Lv /path/to/arm-trusted-firmware/build/imx8mm/release/bl31.bin . -# cp -Lv /path/to/firmware-imx-8.14/firmware/ddr/synopsys/ddr3* . -# make -j imx8mm_board_defconfig -# make -j`nproc` flash.bin - -# 2) Sign SPL and DRAM blobs - -cp doc/imx/habv4/csf_examples/mx8m/csf_spl.txt csf_spl.tmp -cp doc/imx/habv4/csf_examples/mx8m/csf_fit.txt csf_fit.tmp - -# update File Paths from env vars -if ! [ -r $CSF_KEY ]; then - echo "Error: \$CSF_KEY not found" - exit 1 -fi -if ! [ -r $IMG_KEY ]; then - echo "Error: \$IMG_KEY not found" - exit 1 -fi -if ! [ -r $SRK_TABLE ]; then - echo "Error: \$SRK_TABLE not found" - exit 1 -fi -sed -i "s:\$CSF_KEY:$CSF_KEY:" csf_spl.tmp -sed -i "s:\$IMG_KEY:$IMG_KEY:" csf_spl.tmp -sed -i "s:\$SRK_TABLE:$SRK_TABLE:" csf_spl.tmp -sed -i "s:\$CSF_KEY:$CSF_KEY:" csf_fit.tmp -sed -i "s:\$IMG_KEY:$IMG_KEY:" csf_fit.tmp -sed -i "s:\$SRK_TABLE:$SRK_TABLE:" csf_fit.tmp - -# update SPL Blocks -spl_block_base=$(printf "0x%x" $(( $(sed -n "/CONFIG_SPL_TEXT_BASE=/ s@.*=@@p" .config) - 0x40)) ) -spl_block_size=$(printf "0x%x" $(stat -tc %s u-boot-spl-ddr.bin)) -sed -i "/Blocks = / s@.*@ Blocks = $spl_block_base 0x0 $spl_block_size \"flash.bin\"@" csf_spl.tmp - -# Generate CSF blob -cst -i csf_spl.tmp -o csf_spl.bin - -# Patch CSF blob into flash.bin -spl_csf_offset=$(xxd -s 24 -l 4 -e flash.bin | cut -d " " -f 2 | sed "s@^@0x@") -spl_bin_offset=$(xxd -s 4 -l 4 -e flash.bin | cut -d " " -f 2 | sed "s@^@0x@") -spl_dd_offset=$((${spl_csf_offset} - ${spl_bin_offset} + 0x40)) -dd if=csf_spl.bin of=flash.bin bs=1 seek=${spl_dd_offset} conv=notrunc - -# 3) Sign u-boot.itb - -# fitImage -fit_block_base=$(printf "0x%x" $(sed -n "/CONFIG_SPL_LOAD_FIT_ADDRESS=/ s@.*=@@p" .config) ) -fit_block_offset=$(printf "0x%s" $(fdtget -t x u-boot.dtb /binman/imx-boot/uboot offset)) -fit_block_size=$(printf "0x%x" $(( ( ( $(stat -tc %s u-boot.itb) + 0x1000 - 0x1 ) & ~(0x1000 - 0x1)) + 0x20 )) ) -sed -i "/Blocks = / s@.*@ Blocks = $fit_block_base $fit_block_offset $fit_block_size \"flash.bin\"@" csf_fit.tmp - -# IVT -ivt_ptr_base=$(printf "%08x" ${fit_block_base} | sed "s@\(..\)\(..\)\(..\)\(..\)@0x\4\3\2\1@") -ivt_block_base=$(printf "%08x" $(( ${fit_block_base} + ${fit_block_size} - 0x20 )) | sed "s@\(..\)\(..\)\(..\)\(..\)@0x\4\3\2\1@") -csf_block_base=$(printf "%08x" $(( ${fit_block_base} + ${fit_block_size} )) | sed "s@\(..\)\(..\)\(..\)\(..\)@0x\4\3\2\1@") -ivt_block_offset=$((${fit_block_offset} + ${fit_block_size} - 0x20)) -csf_block_offset=$((${ivt_block_offset} + 0x20)) - -echo "0xd1002041 ${ivt_block_base} 0x00000000 0x00000000 0x00000000 ${ivt_block_base} ${csf_block_base} 0x00000000" | xxd -r -p > ivt.bin -dd if=ivt.bin of=flash.bin bs=1 seek=${ivt_block_offset} conv=notrunc - -# Generate CSF blob -cst -i csf_fit.tmp -o csf_fit.bin - -# When loading flash.bin via USB, we must ensure that the file being -# served is as large as the target expects (see -# board_spl_fit_size_align()), otherwise the target will hang in -# rom_api_download_image() waiting for the remaining bytes. -# -# Note that in order for dd to actually extend the file, one must not -# pass conv=notrunc here. With a non-zero seek= argument, dd is -# documented to preserve the contents of the file seeked past; in -# particular, dd does not open the file with O_TRUNC. -CSF_SIZE=$(sed -n "/CONFIG_CSF_SIZE=/ s@.*=@@p" .config) -dd if=/dev/null of=csf_fit.bin bs=1 seek=$((CSF_SIZE - 0x20)) count=0 - -# Patch CSF blob into flash.bin -dd if=csf_fit.bin of=flash.bin bs=1 seek=${csf_block_offset} conv=notrunc
doc/imx/habv4/csf_examples/mx8m/csf_fit.txt deleted +0 -30
@@ -1,30 +0,0 @@ -[Header] - Version = 4.3 - Hash Algorithm = sha256 - Engine = CAAM - Engine Configuration = 0 - Certificate Format = X509 - Signature Format = CMS - -[Install SRK] - # SRK_TABLE is full path to SRK_1_2_3_4_table.bin - File = "$SRK_TABLE" - Source index = 0 - -[Install CSFK] - # CSF_KEY is full path to CSF1_1_sha256_4096_65537_v3_usr_crt.pem - File = "$CSF_KEY" - -[Authenticate CSF] - -[Install Key] - Verification index = 0 - Target Index = 2 - # IMG_KEY is full path to IMG1_1_sha256_4096_65537_v3_usr_crt.pem - File = "$IMG_KEY" - -[Authenticate Data] - Verification index = 2 - # FIXME: - # Line 1 -- fitImage - Blocks = CONFIG_SPL_LOAD_FIT_ADDRESS 0x57c00 0xffff "flash.bin"
doc/imx/habv4/csf_examples/mx8m/csf_spl.txt deleted +0 -33
@@ -1,33 +0,0 @@ -[Header] - Version = 4.3 - Hash Algorithm = sha256 - Engine = CAAM - Engine Configuration = 0 - Certificate Format = X509 - Signature Format = CMS - -[Install SRK] - # SRK_TABLE is full path to SRK_1_2_3_4_table.bin - File = "$SRK_TABLE" - Source index = 0 - -[Install CSFK] - # CSF_KEY is full path to CSF1_1_sha256_4096_65537_v3_usr_crt.pem - File = "$CSF_KEY" - -[Authenticate CSF] - -[Unlock] - Engine = CAAM - Features = MID - -[Install Key] - Verification index = 0 - Target Index = 2 - # IMG_KEY is full path to IMG1_1_sha256_4096_65537_v3_usr_crt.pem - File = "$IMG_KEY" - -[Authenticate Data] - Verification index = 2 - # FIXME: Adjust start (first column) and size (third column) here - Blocks = 0x7e0fc0 0x0 0x306f0 "flash.bin"
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt +55 -86
153 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Quoted 3 lines · Marek Vasut
Update documentation and use
nxp_imx8mcstbinman etype for signing of flash.bin instead of previous horrible shell scripting.
Hi Marek,
To be completely fair we are just replacing a shell script and template file with a python script (tools/binman/etype/nxp_imx8mcst.py) which also creates the template file.
I could care less about shell vs python but do put huge value in the idea of making signing easier and doing so without modification of U-Boot code. The current implementation requires a couple of things to be enabled in defconfig which can be done with a seperate 'out-of-tree' defconfig but this new proposed implementation requires changing a u-boot.dtsi which is a tracked file.
Quoted 31 lines
Signed-off-by Marek Vasut <[email protected]>---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Adam Ford <[email protected]>
Cc: Alper Nebi Yasak <[email protected]>
Cc: Andrejs Cainikovs <[email protected]>
Cc: Angus Ainslie <[email protected]>
Cc: Emanuele Ghidoli <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Eichenberger <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- doc/imx/habv4/csf_examples/mx8m/csf.sh | 92 ------------ doc/imx/habv4/csf_examples/mx8m/csf_fit.txt | 30 ---- doc/imx/habv4/csf_examples/mx8m/csf_spl.txt | 33 ---- doc/imx/habv4/guides/mx8m_spl_secure_boot.txt | 141 +++++++----------- 4 files changed, 55 insertions(+), 241 deletions(-) delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf.sh delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf_fit.txt delete mode 100644 doc/imx/habv4/csf_examples/mx8m/csf_spl.txt
<snip>
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt build configuration: · line 145
Quoted 9 lines
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt +9
-0+to authenticate, which keys to install, use and etc. The CSF is generated +using the CST Code Signing Tool based on input configuration file. This tool +input configuration file is generated using binman, and the tool is invoked +from binman as well. + +The SPL and fitImage sections of the generated image are signed separately. +The signing is activated by wrapping SPL and fitImage sections into nxp-imx8mcst +etype, by adding the following modification into the binman node: +
Can we avoid having to modify code to sign an image? If we add a Kconfig then you can wrap the following changes with an ifdef.
I've run into a similar issues enabling OPTEE and was able to wrap the entries with ifdefs with the exception of one that requires a unique load address which I guess requires another Kconfig to solve [1]
Best Regards,
Tim
[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Quoted 49 lines
+"
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt +42
-1+ diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-u-boot.dtsi + index c4c1a177102..ccd44bf9d0b 100644 + --- a/arch/arm/dts/imx8mp-u-boot.dtsi + +++ b/arch/arm/dts/imx8mp-u-boot.dtsi + @@ -86,6 +86,12 @@ + section { + pad-byte = <0x00>; + + + nxp-imx8mcst@0 { + + filename = "u-boot-spl-mkimage.signed.bin"; + + nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; + + nxp,unlock; + + args; /* Needed by mkimage etype superclass */ + + + nxp-imx8mimage { + filename = "u-boot-spl-mkimage.bin"; + nxp,boot-from = "sd"; + @@ -129,6 +135,14 @@ + }; + }; + + + }; + + + + nxp-imx8mcst@1 { + + filename = "u-boot-fit.signed.bin"; + + nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; + + offset = <0x58000>; + + args; /* Needed by mkimage etype superclass */ + + + fit { + description = "Configuration to load ATF before U-Boot"; + #ifndef CONFIG_IMX_HAB + @@ -191,5 +205,6 @@ + }; + }; + }; + + }; + }; + }; +" + +Build of flash.bin target then produces a signed flash.bin automatically. 1.4 Closing the device ----------------------- --2.43.0
Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Quoted 12 lines · Tim Harvey
Quoted 3 lines · Marek Vasut
Update documentation and use
nxp_imx8mcstbinman etype for signing of flash.bin instead of previous horrible shell scripting.Hi Marek,
To be completely fair we are just replacing a shell script and template file with a python script (
tools/binman/etype/nxp_imx8mcst.py) which also creates the template file.
Quoted 6 lines
I could care less about shell vs python but do put huge value in the idea of making signing easier and doing so without modification of U-Boot code. The current implementation requires a couple of things to be enabled in defconfig which can be done with a seperate 'out-of-tree' defconfig but this new proposed implementation requires changing a
u-boot.dtsiwhich is a tracked file.
A counter-point is that with using binman for signing we start eliminating differences between different semiconductors on how to get something signed.
Signature · 1 line
Tom
Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Quoted 21 lines · Tom Rini
Quoted 12 lines · Tim Harvey
Quoted 3 lines · Marek Vasut
Update documentation and use
nxp_imx8mcstbinman etype for signing of flash.bin instead of previous horrible shell scripting.Hi Marek,
To be completely fair we are just replacing a shell script and template file with a python script (
tools/binman/etype/nxp_imx8mcst.py) which also creates the template file.Quoted 6 lines
I could care less about shell vs python but do put huge value in the idea of making signing easier and doing so without modification of U-Boot code. The current implementation requires a couple of things to be enabled in defconfig which can be done with a seperate 'out-of-tree' defconfig but this new proposed implementation requires changing a
u-boot.dtsiwhich is a tracked file.
Quoted 3 lines
A counter-point is that with using binman for signing we start eliminating differences between different semiconductors on how to get something signed.
Hi Tom,
I agree... I'm a huge fan of binman. I just don't want to replace current constructs that use env and/or config items on a clean code directory with replacements that require code diffs to do the same.
I'm simply wanting to wrap binman sections with Kconfig items. Is there a way to use environment variables within binman sections (ie to wrap sections or override filenames)?
Best Regards,
Tim
Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Quoted 28 lines · Tim Harvey
Quoted 21 lines · Tom Rini
Quoted 12 lines · Tim Harvey
Quoted 3 lines · Marek Vasut
Update documentation and use
nxp_imx8mcstbinman etype for signing of flash.bin instead of previous horrible shell scripting.Hi Marek,
To be completely fair we are just replacing a shell script and template file with a python script (
tools/binman/etype/nxp_imx8mcst.py) which also creates the template file.Quoted 6 lines
I could care less about shell vs python but do put huge value in the idea of making signing easier and doing so without modification of U-Boot code. The current implementation requires a couple of things to be enabled in defconfig which can be done with a seperate 'out-of-tree' defconfig but this new proposed implementation requires changing a
u-boot.dtsiwhich is a tracked file.Quoted 3 lines
A counter-point is that with using binman for signing we start eliminating differences between different semiconductors on how to get something signed.
Hi Tom,
Quoted 7 lines
I agree... I'm a huge fan of binman. I just don't want to replace current constructs that use env and/or config items on a clean code directory with replacements that require code diffs to do the same.
I'm simply wanting to wrap binman sections with
Kconfigitems. Is there a way to use environment variables within binman sections (ie to wrap sections or override filenames)?
I'm honestly not sure if everyone is happy just yet with how integration and support for production use cases of signing features is integrated with binman just yet.
Signature · 1 line
Tom
Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing
Quoted 33 lines · Tom Rini
Quoted 32 lines · Tim Harvey
Quoted 21 lines · Tom Rini
Quoted 12 lines · Tim Harvey
Quoted 3 lines · Marek Vasut
Update documentation and use
nxp_imx8mcstbinman etype for signing of flash.bin instead of previous horrible shell scripting.Hi Marek,
To be completely fair we are just replacing a shell script and template file with a python script (
tools/binman/etype/nxp_imx8mcst.py) which also creates the template file.Quoted 6 lines
I could care less about shell vs python but do put huge value in the idea of making signing easier and doing so without modification of U-Boot code. The current implementation requires a couple of things to be enabled in defconfig which can be done with a seperate 'out-of-tree' defconfig but this new proposed implementation requires changing a
u-boot.dtsiwhich is a tracked file.Quoted 3 lines
A counter-point is that with using binman for signing we start eliminating differences between different semiconductors on how to get something signed.
Hi Tom,
I agree... I'm a huge fan of binman. I just don't want to replace current constructs that use env and/or config items on a clean code directory with replacements that require code diffs to do the same.
Quoted 7 lines
Quoted 3 lines
I'm simply wanting to wrap binman sections with
Kconfigitems. Is there a way to use environment variables within binman sections (ie to wrap sections or override filenames)?I'm honestly not sure if everyone is happy just yet with how integration and support for production use cases of signing features is integrated with binman just yet.
I am sort-of on the fence with the Kconfig option, I did consider it before sending this patch, because we already have #ifdef ...IMX_HAB in that .dtsi file, but we would need new Kconfig option for this and the binman node is starting to be cluttered with ifdeffery.
The other option would be to add a wrapper section around both the SPL and FIT nodes, and for signing the type= of the section could be overridden to nxp_mx8mcst , that would work too, but that impact all the non-signing users.
So ... thoughts ?