diff mbox series

[master/kirkstone,61/65] conf: machine: Make multi-certificate image the default

Message ID 20220913035541.2364351-62-denis@denix.org
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Latest 2022.09 sync-up with Dunfell #1 | expand

Commit Message

Denys Dmytriyenko Sept. 13, 2022, 3:55 a.m. UTC
From: Andrew Davis <afd@ti.com>

Only the first two K3 devices do not support multi-cert boot so
lets make multi-cert the default and only add back sysfw.itb
for these two devices.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: lines be preserved?
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 meta-ti-bsp/conf/machine/include/am62xx.inc | 3 ---
 meta-ti-bsp/conf/machine/include/am64xx.inc | 3 ---
 meta-ti-bsp/conf/machine/include/am65xx.inc | 5 ++++-
 meta-ti-bsp/conf/machine/include/k3.inc     | 5 +----
 meta-ti-bsp/conf/machine/j7200-evm.conf     | 3 ---
 meta-ti-bsp/conf/machine/j721e-evm.conf     | 3 +++
 meta-ti-bsp/conf/machine/j721e-hs-evm.conf  | 1 -
 meta-ti-bsp/conf/machine/j721s2-evm.conf    | 3 ---
 8 files changed, 8 insertions(+), 18 deletions(-)

Comments

Andrew Davis Oct. 4, 2022, 7:38 p.m. UTC | #1
On 9/12/22 10:55 PM, Denys Dmytriyenko wrote:
> From: Andrew Davis <afd@ti.com>
> 
> Only the first two K3 devices do not support multi-cert boot so
> lets make multi-cert the default and only add back sysfw.itb
> for these two devices.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> Reviewed-by: lines be preserved?

By who?..

> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
> ---
Denys Dmytriyenko Oct. 4, 2022, 7:42 p.m. UTC | #2
On Tue, Oct 04, 2022 at 02:38:11PM -0500, Andrew Davis wrote:
> On 9/12/22 10:55 PM, Denys Dmytriyenko wrote:
> >From: Andrew Davis <afd@ti.com>
> >
> >Only the first two K3 devices do not support multi-cert boot so
> >lets make multi-cert the default and only add back sysfw.itb
> >for these two devices.
> >
> >Signed-off-by: Andrew Davis <afd@ti.com>
> >Reviewed-by: lines be preserved?
> 
> By who?..

That's how the original patch got merged :)

https://git.yoctoproject.org/meta-ti/commit/?h=dunfell&id=038148a6d018c971e15a89c80192179fc04cf170

I'm guessing patchwork picked up part of our discussion.

https://patchwork.yoctoproject.org/project/ti/patch/20220801214007.25463-1-afd@ti.com/


> >Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> >Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Andrew Davis Oct. 4, 2022, 7:46 p.m. UTC | #3
On 10/4/22 2:42 PM, Denys Dmytriyenko wrote:
> On Tue, Oct 04, 2022 at 02:38:11PM -0500, Andrew Davis wrote:
>> On 9/12/22 10:55 PM, Denys Dmytriyenko wrote:
>>> From: Andrew Davis <afd@ti.com>
>>>
>>> Only the first two K3 devices do not support multi-cert boot so
>>> lets make multi-cert the default and only add back sysfw.itb
>>> for these two devices.
>>>
>>> Signed-off-by: Andrew Davis <afd@ti.com>
>>> Reviewed-by: lines be preserved?
>>
>> By who?..
> 
> That's how the original patch got merged :)
> 
> https://git.yoctoproject.org/meta-ti/commit/?h=dunfell&id=038148a6d018c971e15a89c80192179fc04cf170
> 
> I'm guessing patchwork picked up part of our discussion.
> 
> https://patchwork.yoctoproject.org/project/ti/patch/20220801214007.25463-1-afd@ti.com/
> 

Ah, yup there it is :)

Also looks like this forward port dropped the removal of some lines in
j7.inc, but at this point I'll just clean that up after, this has been
in -next long enough and should just go in already..

Andrew

> 
>>> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
>>> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
>
Denys Dmytriyenko Oct. 4, 2022, 7:49 p.m. UTC | #4
On Tue, Oct 04, 2022 at 02:46:24PM -0500, Andrew Davis wrote:
> On 10/4/22 2:42 PM, Denys Dmytriyenko wrote:
> >On Tue, Oct 04, 2022 at 02:38:11PM -0500, Andrew Davis wrote:
> >>On 9/12/22 10:55 PM, Denys Dmytriyenko wrote:
> >>>From: Andrew Davis <afd@ti.com>
> >>>
> >>>Only the first two K3 devices do not support multi-cert boot so
> >>>lets make multi-cert the default and only add back sysfw.itb
> >>>for these two devices.
> >>>
> >>>Signed-off-by: Andrew Davis <afd@ti.com>
> >>>Reviewed-by: lines be preserved?
> >>
> >>By who?..
> >
> >That's how the original patch got merged :)
> >
> >https://git.yoctoproject.org/meta-ti/commit/?h=dunfell&id=038148a6d018c971e15a89c80192179fc04cf170
> >
> >I'm guessing patchwork picked up part of our discussion.
> >
> >https://patchwork.yoctoproject.org/project/ti/patch/20220801214007.25463-1-afd@ti.com/
> >
> 
> Ah, yup there it is :)
> 
> Also looks like this forward port dropped the removal of some lines in
> j7.inc,

There's batch #2 with remaining dunfell commits pending.


> but at this point I'll just clean that up after, this has been
> in -next long enough and should just go in already..

Ryan?


> Andrew
> 
> >
> >>>Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> >>>Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Ryan Eatmon Oct. 5, 2022, 12:02 p.m. UTC | #5
On 10/4/2022 14:49, Denys Dmytriyenko wrote:
> On Tue, Oct 04, 2022 at 02:46:24PM -0500, Andrew Davis wrote:
>> On 10/4/22 2:42 PM, Denys Dmytriyenko wrote:
>>> On Tue, Oct 04, 2022 at 02:38:11PM -0500, Andrew Davis wrote:
>>>> On 9/12/22 10:55 PM, Denys Dmytriyenko wrote:
>>>>> From: Andrew Davis <afd@ti.com>
>>>>>
>>>>> Only the first two K3 devices do not support multi-cert boot so
>>>>> lets make multi-cert the default and only add back sysfw.itb
>>>>> for these two devices.
>>>>>
>>>>> Signed-off-by: Andrew Davis <afd@ti.com>
>>>>> Reviewed-by: lines be preserved?
>>>>
>>>> By who?..
>>>
>>> That's how the original patch got merged :)
>>>
>>> https://git.yoctoproject.org/meta-ti/commit/?h=dunfell&id=038148a6d018c971e15a89c80192179fc04cf170
>>>
>>> I'm guessing patchwork picked up part of our discussion.
>>>
>>> https://patchwork.yoctoproject.org/project/ti/patch/20220801214007.25463-1-afd@ti.com/
>>>
>>
>> Ah, yup there it is :)
>>
>> Also looks like this forward port dropped the removal of some lines in
>> j7.inc,
> 
> There's batch #2 with remaining dunfell commits pending.
> 
> 
>> but at this point I'll just clean that up after, this has been
>> in -next long enough and should just go in already..
> 
> Ryan?

Going in today.


> 
>> Andrew
>>
>>>
>>>>> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
>>>>> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
>>>>>
>>>>>
>>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>> Links: You receive all messages sent to this group.
>>>>> View/Reply Online (#15108): https://lists.yoctoproject.org/g/meta-ti/message/15108
>>>>> Mute This Topic: https://lists.yoctoproject.org/mt/93648962/6551054
>>>>> Group Owner: meta-ti+owner@lists.yoctoproject.org
>>>>> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [reatmon@ti.com]
>>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>>
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/am62xx.inc b/meta-ti-bsp/conf/machine/include/am62xx.inc
index 80df1844..a5aad994 100644
--- a/meta-ti-bsp/conf/machine/include/am62xx.inc
+++ b/meta-ti-bsp/conf/machine/include/am62xx.inc
@@ -12,9 +12,6 @@  PREFERRED_PROVIDER_virtual/libgles2 ?= "ti-img-rogue-umlibs"
 PREFERRED_PROVIDER_virtual/libgbm ?= "ti-img-rogue-umlibs"
 PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
 
-# AM62 supports multi-certificate images, use the same
-IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
-
 do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 
diff --git a/meta-ti-bsp/conf/machine/include/am64xx.inc b/meta-ti-bsp/conf/machine/include/am64xx.inc
index 87791ef7..297d6007 100644
--- a/meta-ti-bsp/conf/machine/include/am64xx.inc
+++ b/meta-ti-bsp/conf/machine/include/am64xx.inc
@@ -14,9 +14,6 @@  KERNEL_DEVICETREE = " \
     ti/k3-am642-evm-nand.dtbo \
 "
 
-# AM64 supports multi-certificate images, use the same
-IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
-
 do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 
diff --git a/meta-ti-bsp/conf/machine/include/am65xx.inc b/meta-ti-bsp/conf/machine/include/am65xx.inc
index d6bd9810..80aa6d27 100644
--- a/meta-ti-bsp/conf/machine/include/am65xx.inc
+++ b/meta-ti-bsp/conf/machine/include/am65xx.inc
@@ -28,9 +28,12 @@  KERNEL_DEVICETREE = " \
 
 BBMULTICONFIG += "k3r5-sr2"
 
-# Use default IMAGE_BOOT_FILES_LEGACY files
+# Since J721e does not support multi-cert tiboot3.bin add standalone sysfw.itb
+IMAGE_BOOT_FILES += "sysfw.itb"
+
 # Since default sysfw.itb on AM65x is for SR2.0, add a version for SR1.0
 IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb"
+
 do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
 
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index 5b5fb1b6..8a32e0fe 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -39,10 +39,7 @@  MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci"
 
 IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
 
-IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
-IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
-
-IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
+IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
 IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
 
 EFI_PROVIDER ?= "grub-efi"
diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
index 175d30f8..303ec182 100644
--- a/meta-ti-bsp/conf/machine/j7200-evm.conf
+++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
@@ -13,8 +13,5 @@  KERNEL_DEVICETREE = " \
 
 UBOOT_MACHINE = "j7200_evm_a72_config"
 
-# J7200 supports multi-certificate images, use the same
-IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
-
 do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
index fe28e6f5..d28d16d1 100644
--- a/meta-ti-bsp/conf/machine/j721e-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
@@ -7,6 +7,9 @@  require conf/machine/include/j721e.inc
 SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
+# Since J721e does not support multi-cert tiboot3.bin add standalone sysfw.itb
+IMAGE_BOOT_FILES += "sysfw.itb"
+
 KERNEL_DEVICETREE = " \
     ti/k3-j721e-common-proc-board.dtb \
     ti/k3-j721e-common-proc-board-infotainment.dtbo \
diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
index 56eaa64e..a24a986b 100644
--- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
@@ -20,7 +20,6 @@  UBOOT_SYMLINK = "u-boot.img"
 
 BBMULTICONFIG += "k3r5-sr1-1"
 
-# Use default IMAGE_BOOT_FILES_LEGACY files
 # Since default sysfw.itb on J721e is for SR1.1, add a version for SR1.0
 IMAGE_BOOT_FILES += "sysfw-j721e-evm.itb"
 do_image_wic[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
index bbe011c0..77fc3e66 100644
--- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
@@ -16,8 +16,5 @@  KERNEL_DEVICETREE = " \
 
 UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
 
-# J721S2 supports multi-certificate images, use the same
-IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
-
 do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"