public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew Davis <afd@ti.com>
To: Jon Humphreys <j-humphreys@ti.com>,
	Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Roger Quadros <rogerq@kernel.org>,
	Kamlesh Gurudasani <kamlesh@ti.com>,
	Manorit Chawdhry <m-chawdhry@ti.com>,
	Simon Glass <sjg@chromium.org>,
	Neha Malcom Francis <n-francis@ti.com>,
	Bryan Brattlof <bb@ti.com>,
	Robert Nelson <robertcnelson@gmail.com>,
	Nishanth Menon <nm@ti.com>, Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>
Subject: Re: [PATCH 3/7] dts: j721e: binman: Include firmware capsules binman nodes
Date: Wed, 10 Apr 2024 13:38:25 -0500	[thread overview]
Message-ID: <b2dc3d0f-799c-4e4b-bd7d-e2464cefcf01@ti.com> (raw)
In-Reply-To: <86ttk9yt2h.fsf@udb0321960.dhcp.ti.com>

On 4/10/24 1:24 PM, Jon Humphreys wrote:
> Andrew Davis <afd@ti.com> writes:
> 
>> On 4/8/24 5:17 PM, Jonathan Humphreys wrote:
>>> Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
>>> ---
>>>    arch/arm/dts/k3-j721e-binman.dtsi | 32 +++++++++++++++++++++++++++++++
>>>    1 file changed, 32 insertions(+)
>>>
>>> diff --git a/arch/arm/dts/k3-j721e-binman.dtsi b/arch/arm/dts/k3-j721e-binman.dtsi
>>> index 75a6e9599b9..9169551c422 100644
>>> --- a/arch/arm/dts/k3-j721e-binman.dtsi
>>> +++ b/arch/arm/dts/k3-j721e-binman.dtsi
>>> @@ -207,6 +207,29 @@
>>>    		};
>>>    	};
>>>    };
>>> +
>>> +#include "k3-binman-capsule-r5.dtsi"
>>> +
>>> +// Capsue update GUIDs.  See ti_armv7_common.h.
>>> +#define K3_SYSFW_IMAGE_UUID_STR "6fd10680-361b-431f-80aa-899455819e11"
>>> +
>>> +&binman {
>>> +	capsule-sysfw {
>>> +		filename = "sysfw-capsule.bin";
>>> +		efi-capsule {
>>> +			image-index = <0x4>;
>>> +			image-guid = K3_SYSFW_IMAGE_UUID_STR;
>>> +			private-key = "arch/arm/mach-k3/keys/custMpk.pem";
>>> +			public-key-cert = "arch/arm/mach-k3/keys/custMpk.crt";
>>> +			monotonic-count = <0x1>;
>>> +
>>> +			blob {
>>> +				filename = "sysfw.itb";
>>> +			};
>>> +		};
>>> +	};
>>> +};
>>> +
>>>    #endif
>>>    
>>>    #ifdef CONFIG_TARGET_J721E_A72_EVM
>>> @@ -585,4 +608,13 @@
>>>    		};
>>>    	};
>>>    };
>>> +
>>> +#include "k3-binman-capsule.dtsi"
>>> +&tispl_name {
>>> +	filename = "tispl.bin_unsigned";
>>
>> Why use the _unsigned images here? HS devices cannot boot unsigned GP images,
>> but both GP and HS devices *can* boot the normal signed images (GP just strips
>> the signatures off). So no need to use the _unsigned images anymore (I'm
>> planning to just remove them at some point to prevent this confusion).
>>
> I can do that.
> 
> Note that you will then see warnings on GP devices during boot:
> 
>    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
> 

True, I'll send a fix for that.

Andrew

> Jon
> 
>> Andrew
>>
>>> +};
>>> +&uboot_name {
>>> +	filename = "u-boot.img_unsigned";
>>> +};
>>> +
>>>    #endif

  reply	other threads:[~2024-04-10 18:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 22:17 [PATCH 0/7] binman: ti: create binman nodes for EFI capsules Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 1/7] dts: ti: binman: Add base K3 firmware capsule nodes Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 2/7] dts: am64x: binman: Include base K3 firmware capsule binman nodes Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 3/7] dts: j721e: binman: Include firmware capsules " Jonathan Humphreys
2024-04-09 21:40   ` Andrew Davis
2024-04-10 18:24     ` Jon Humphreys
2024-04-10 18:38       ` Andrew Davis [this message]
2024-04-08 22:17 ` [PATCH 4/7] dts: beagleplay: " Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 5/7] dts: am62px: binman: Include base K3 firmware capsule " Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 6/7] dts: am62x: " Jonathan Humphreys
2024-04-08 22:17 ` [PATCH 7/7] dts: beagleboneai64: binman: Include firmware capsules " Jonathan Humphreys

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=b2dc3d0f-799c-4e4b-bd7d-e2464cefcf01@ti.com \
    --to=afd@ti.com \
    --cc=bb@ti.com \
    --cc=j-humphreys@ti.com \
    --cc=kamlesh@ti.com \
    --cc=m-chawdhry@ti.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=n-francis@ti.com \
    --cc=nm@ti.com \
    --cc=robertcnelson@gmail.com \
    --cc=rogerq@kernel.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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