Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Clayton Casciato <majortomtosourcecontrol@gmail.com>
To: Denys Dmytriyenko <denis@denix.org>
Cc: steve@sakoman.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [BACKPORT] uboot-sign: fix U-Boot binary with public key
Date: Mon, 9 Dec 2024 20:30:16 -0700	[thread overview]
Message-ID: <07df4d74-e0b2-48c3-b9a0-95c762b267ca@gmail.com> (raw)
In-Reply-To: <20241206233052.GD23825@denix.org>

On 12/6/24 4:30 PM, Denys Dmytriyenko wrote:
> Clayton,

Hi, Denys

> 
> This is not the way to request backports. Please just read the list for past 
> submissions and it will be clear how those should be made.

Steve has previously communicated this is an acceptable format.
Please see https://lists.openembedded.org/g/openembedded-core/message/207185

I take it you would prefer to see a distinct request for each branch.

> 
> 
> Steve,
> 
> Please do NOT backport this change to stable releases, as it seems incorrect 
> and causes issues downstream and should probably get reverted from master.

I agree given the feedback.

> 
> Thanks.

Thank you!

> 
> 
> 
> On Tue, Nov 26, 2024 at 08:17:34AM -0700, Clayton Casciato via lists.openembedded.org wrote:
>> Hi, Steve!
>>
>> I would like to backport this from master to Styhead and Scarthgap.
>>
>> Thank you!
>>
>> Clayton Casciato
>>
>> --
>>
>> commit 0d14e99aa18ee38293df63d585fafc270a4538be
>> Author: Clayton Casciato <majortomtosourcecontrol@gmail.com>
>> Date:   Fri Nov 22 08:00:00 2024 -0700
>>
>>     uboot-sign: fix U-Boot binary with public key
>>     
>>     Fixes [YOCTO #15649]
>>     
>>     The U-Boot binary in the "deploy" directory is missing the public key
>>     when the removed logic branch is used.
>>     
>>     The simple concatenation of the binary and DTB with public key works as
>>     expected on a BeagleBone Black.
>>     
>>     Given:
>>     MACHINE = beaglebone-yocto
>>     UBOOT_SIGN_KEYNAME = "dev"
>>     
>>     Post-patch (poky/build/tmp/deploy/images/beaglebone-yocto):
>>     $ hexdump -e "16 \"%_p\" \"\\n\"" u-boot-beaglebone-yocto.dtb \
>>     | tr -d '\n' | grep -o 'key-dev'
>>     key-dev
>>     
>>     $ hexdump -e "16 \"%_p\" \"\\n\"" u-boot.img \
>>     | tr -d '\n' | grep -o 'key-dev'
>>     key-dev
>>     
>>     Non-Poky BeagleBone Black testing (Scarthgap):
>>     U-Boot 2024.01 [...]
>>     [...]
>>     Using 'conf-ti_omap_am335x-boneblack.dtb' configuration
>>     Verifying Hash Integrity ... sha256,rsa4096:dev+ OK
>>     Trying 'kernel-1' kernel subimage
>>     [...]
>>     
>>     Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
>>     Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>
>> diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass
>> index a17be745ce..7ee73b872a 100644
>> --- a/meta/classes-recipe/uboot-sign.bbclass
>> +++ b/meta/classes-recipe/uboot-sign.bbclass
>> @@ -122,13 +122,7 @@ concat_dtb() {
>>  	# If we're not using a signed u-boot fit, concatenate SPL w/o DTB & U-Boot DTB
>>  	# with public key (otherwise U-Boot will be packaged by uboot_fitimage_assemble)
>>  	if [ "${SPL_SIGN_ENABLE}" != "1" ] ; then
>> -		if [ "x${UBOOT_SUFFIX}" = "ximg" -o "x${UBOOT_SUFFIX}" = "xrom" ] && \
>> -			[ -e "${UBOOT_DTB_BINARY}" ]; then
>> -			oe_runmake EXT_DTB="${UBOOT_DTB_SIGNED}" ${UBOOT_MAKE_TARGET}
>> -			if [ -n "${binary}" ]; then
>> -				cp ${binary} ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
>> -			fi
>> -		elif [ -e "${UBOOT_NODTB_BINARY}" -a -e "${UBOOT_DTB_BINARY}" ]; then
>> +		if [ -e "${UBOOT_NODTB_BINARY}" -a -e "${UBOOT_DTB_BINARY}" ]; then
>>  			if [ -n "${binary}" ]; then
>>  				cat ${UBOOT_NODTB_BINARY} ${UBOOT_DTB_SIGNED} | tee ${binary} > \
>>  					${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
>>



      reply	other threads:[~2024-12-10 12:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26 15:17 [BACKPORT] uboot-sign: fix U-Boot binary with public key Clayton Casciato
2024-11-26 16:01 ` Patchtest results for " patchtest
2024-11-26 16:18   ` Clayton Casciato
2024-12-06 23:30 ` [OE-core] " Denys Dmytriyenko
2024-12-10  3:30   ` Clayton Casciato [this message]

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=07df4d74-e0b2-48c3-b9a0-95c762b267ca@gmail.com \
    --to=majortomtosourcecontrol@gmail.com \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=steve@sakoman.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox