From: Neha Malcom Francis <n-francis@ti.com>
To: Dhruva Gole <d-gole@ti.com>, <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>, Vibhore Vardhan <vibhore@ti.com>,
Kamlesh Gurudasani <kamlesh@ti.com>
Subject: Re: [PATCH 2/2] arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images
Date: Thu, 4 Apr 2024 10:20:21 +0530 [thread overview]
Message-ID: <967ef615-58f8-48e7-bb8e-1c9903e771db@ti.com> (raw)
In-Reply-To: <20240403120309.4026170-3-d-gole@ti.com>
Hi Dhruva
On 03/04/24 17:33, Dhruva Gole wrote:
> From: Kamlesh Gurudasani <kamlesh@ti.com>
>
> Add support for signing of TIFSSTUB images for HSSE, HSFS and GP devices
> and include them in tispl.bin and tispl.bin_unsigned.
>
> Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
> Signed-off-by: Dhruva Gole <d-gole@ti.com>
> ---
> arch/arm/dts/k3-am625-sk-binman.dtsi | 141 ++++++++++++++++++++++++++-
> 1 file changed, 139 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/dts/k3-am625-sk-binman.dtsi b/arch/arm/dts/k3-am625-sk-binman.dtsi
> index 5b058bd03a07..dfd38d64f638 100644
> --- a/arch/arm/dts/k3-am625-sk-binman.dtsi
> +++ b/arch/arm/dts/k3-am625-sk-binman.dtsi
> @@ -151,11 +151,107 @@
> filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
> };
> };
> +
> + tifsstub-hs {
> + filename = "tifsstub.bin_hs";
> + ti-secure-rom {
> + content = <&tifsstub_hs_cert>;
> + core = "secure";
> + load = <0x40000>;
> + sw-rev = <CONFIG_K3_X509_SWRV>;
> + keyfile = "custMpk.pem";
> + countersign;
> + tifsstub;
> + };
> + tifsstub_hs_cert: tifsstub-hs-cert.bin {
> + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
> + type = "blob-ext";
> + optional;
> + };
> + tifsstub_hs_enc: tifsstub-hs-enc.bin {
> + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
> + type = "blob-ext";
> + optional;
> + };
> + };
> +
> + tifsstub-fs {
> + filename = "tifsstub.bin_fs";
> + tifsstub_fs_cert: tifsstub-fs-cert.bin {
> + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
> + type = "blob-ext";
> + optional;
> + };
> + tifsstub_fs_enc: tifsstub-fs-enc.bin {
> + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
> + type = "blob-ext";
> + optional;
> + };
> +
> + };
> +
> + tifsstub-gp {
> + filename = "tifsstub.bin_gp";
> + ti-secure-rom {
> + content = <&tifsstub_gp>;
> + core = "secure";
> + load = <0x60000>;
> + sw-rev = <CONFIG_K3_X509_SWRV>;
> + keyfile = "ti-degenerate-key.pem";
> + tifsstub;
> + };
> + tifsstub_gp: tifsstub-gp.bin {
> + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
> + type = "blob-ext";
> + optional;
> + };
> + };
> +
> ti-spl {
> insert-template = <&ti_spl_template>;
>
> fit {
> images {
> +
> + tifsstub-hs {
> + description = "TIFSSTUB";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-hs";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_hs";
> + };
> + };
> +
> + tifsstub-fs {
> + description = "TIFSSTUB";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-fs";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_fs";
> + };
> + };
> +
> + tifsstub-gp {
> + description = "TIFSSTUB";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-gp";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_gp";
> + };
> + };
> +
> dm {
> ti-secure {
> content = <&dm>;
> @@ -189,7 +285,8 @@
> conf-0 {
> description = "k3-am625-sk";
> firmware = "atf";
> - loadables = "tee", "dm", "spl";
> + loadables = "tee", "tifsstub-hs", "tifsstub-fs",
> + "tifsstub-gp", "dm", "spl";
> fdt = "fdt-0";
> };
> };
> @@ -247,6 +344,45 @@
> fit {
> images {
>
> + tifsstub-hs {
> + description = "tifsstub";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-hs";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_hs";
> + };
> + };
> +
> + tifsstub-fs {
> + description = "tifsstub";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-fs";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_fs";
> + };
> + };
> +
> + tifsstub-gp {
> + description = "tifsstub";
> + type = "firmware";
> + arch = "arm32";
> + compression = "none";
> + os = "tifsstub-gp";
> + load = <0x9dc00000>;
> + entry = <0x9dc00000>;
> + blob-ext {
> + filename = "tifsstub.bin_gp";
> + };
> + };
> +
> dm {
> ti-dm {
> filename = "ti-dm.bin";
> @@ -270,7 +406,8 @@
> conf-0 {
> description = "k3-am625-sk";
> firmware = "atf";
> - loadables = "tee", "dm", "spl";
> + loadables = "tee", "tifsstub-hs", "tifsstub-fs",
> + "tifsstub-gp", "dm", "spl";
> fdt = "fdt-0";
> };
> };
If there are multiple boards that will support TIFSSTUB in future, I would
prefer templating these out and putting them in k3-binman.dtsi. However
considering there's a lot of movement currently (cleanup and OF_STREAM) in that
file, you can maybe take this up when adding support for the next board.
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
--
Thanking You
Neha Malcom Francis
next prev parent reply other threads:[~2024-04-04 4:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-03 12:03 [PATCH 0/2] Add TIFS Stub support in AM62x Dhruva Gole
2024-04-03 12:03 ` [PATCH 1/2] arm: mach-k3: add support for detecting TIFSSTUB images Dhruva Gole
2024-04-04 4:24 ` Neha Malcom Francis
2024-04-03 12:03 ` [PATCH 2/2] arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images Dhruva Gole
2024-04-04 4:50 ` Neha Malcom Francis [this message]
2024-04-04 8:07 ` Francesco Dolcini
2024-04-04 8:22 ` Dhruva Gole
2024-04-12 14:19 ` [PATCH 0/2] Add TIFS Stub support in AM62x Tom Rini
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=967ef615-58f8-48e7-bb8e-1c9903e771db@ti.com \
--to=n-francis@ti.com \
--cc=d-gole@ti.com \
--cc=kamlesh@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vibhore@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.