From: Andreas Dannenberg via buildroot <buildroot@buildroot.org>
To: Romain Naour <romain.naour@smile.fr>
Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com,
Asaf Kahlon <asafka7@gmail.com>,
Xuanhao Shi <X15000177@gmail.com>,
James Hilliard <james.hilliard1@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
buildroot@buildroot.org,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alexander Sverdlin <alexander.sverdlin@gmail.com>,
bryce@redpinelabs.com, Anand Gadiyar <gadiyar@ti.com>
Subject: Re: [Buildroot] [PATCH v4 14/20] boot/uboot: set BINMAN_INDIRS for TI K3 DM
Date: Mon, 19 Feb 2024 20:00:11 -0600 [thread overview]
Message-ID: <20240220020011.x7mfxcs5oxbr5s3d@dasso> (raw)
In-Reply-To: <63d28259-ff96-4450-bdc5-e1bc209d8e59@smile.fr>
On Mon, Feb 19, 2024 at 10:34:52PM +0100, Romain Naour wrote:
> Hello Andreas,
>
> Le 19/02/2024 à 21:51, Andreas Dannenberg a écrit :
> > On Sat, Feb 17, 2024 at 09:44:29PM +0100, Alexander Sverdlin wrote:
> >> Hi Dario,
> >>
> >> On Sat, 2024-02-17 at 17:02 +0100, Dario Binacchi wrote:
> >>> As explained in [1], adding support for AM62x LP SK in U-Boot, requires
> >>> binman for building bootloader images. The BINMAN_INDIRS environment
> >>> variable is used to provide a space-separated list of directories to
> >>> search for binary blobs.
> >>>
> >>> [1] https://patchwork.ozlabs.org/project/uboot/patch/20231030110138.1347603-3-n-yadav@ti.com/
> >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> >>>
> >>> ---
> >>>
> >>> no changes since v1:
> >>>
> >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> >>> ---
> >>> boot/uboot/uboot.mk | 3 ++-
> >>> 1 file changed, 2 insertions(+), 1 deletion(-)
> >>>
> >>> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> >>> index dda606a88059..cf70f86a4132 100644
> >>> --- a/boot/uboot/uboot.mk
> >>> +++ b/boot/uboot/uboot.mk
> >>> @@ -189,7 +189,8 @@ endif
> >>> ifeq ($(BR2_TARGET_UBOOT_NEEDS_TI_K3_DM),y)
> >>> UBOOT_TI_K3_DM_SOCNAME = $(call qstrip,$(BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME))
> >>> UBOOT_DEPENDENCIES += ti-k3-boot-firmware
> >>> -UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f
> >>> +UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f \
> >>
> >> Is the above actually still required with binman?
> >> The names are hardcoded in U-Boot in arch/arm/dts/k3-am625-sk-binman.dtsi
> >>
> >>> + BINMAN_INDIRS=$(BINARIES_DIR)
> >>
> >> This seems to be the only required part.
> >
> > Correct. 'DM=' is no longer used, also see the official U-Boot build
> > instructions for TI platforms in the SDK documentation [1] (technically
> > speaking this documentation is for the U-Boot vendor tree, but the same
> > principle applies to upstream U-Boot builds).
> >
> > Reviewed-by: Andreas Dannenberg <dannenberg@ti.com>
> >
> > [1] https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-General-Info.html
>
> It means that we can remove BR2_TARGET_UBOOT_NEEDS_TI_K3_DM and
> UBOOT_TI_K3_DM_SOCNAME too.
>
> meta-ti still use DM= but probably to support u-boot-ti-staging_2023.04 that is
> still available [1].
>
> The u-boot documentation also contains a similar note [2].
Yes you are right, this option is still available as an override. But
best will be to standardize on the new way of doing things, which is
BINMAN_INDIRS.
> In the end we only need an option to select which SoC type we want to use
> (GP,HS,HS-FS).
Yes. There's one small twist to that, technically for HS devices (a.k.a.
"HS-SE" devices), which is what an HS-FS device turns into _after_ the
fuses are burned with a custom key, the end user will need to provide
their own key for signing the boot image, which will then be used
instead of './board/ti/keys/custMpk.pem' in the U-Boot tree. Let me
think about some more if there isn't a good way that can be done through
Builroot, based on how actual end customers manage their private keys
(which can be very elaborate, even involving HSMs in some cases). It
might be helpful to expose such an override using a config option that
can be used to point to an external key. Anyways just food for thought,
this shouldn't gate anything on Dario's series here.
--
Andreas Dannenberg
Texas Instruments Inc
>
> [1]
> https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc?h=cicd.master.202402130100#n52
>
> [2]
> https://gitlab.com/u-boot/u-boot/-/blob/master/doc/board/ti/k3.rst?ref_type=heads&plain=1#L372
>
> Best regards,
> Romain
>
> >
> >
> >
> >>
> >>> endif
> >>>
> >>> ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y)
> >>
> >> --
> >> Alexander Sverdlin.
> >>
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-02-20 2:00 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 16:02 [Buildroot] [PATCH v4 00/20] Add support for AM62x-SK HS-FS devices Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 01/20] configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting Dario Binacchi
2024-02-17 20:06 ` Alexander Sverdlin
2024-02-19 9:36 ` Romain Naour
2024-02-17 16:02 ` [Buildroot] [PATCH v4 02/20] configs/ti_am64x_sk_defconfig: " Dario Binacchi
2024-02-17 20:08 ` Alexander Sverdlin
2024-02-17 16:02 ` [Buildroot] [PATCH v4 03/20] configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader version Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 04/20] configs/ti_am64x_sk_defconfig: " Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 05/20] boot/ti-k3-r5-loader: bump to version 2024.01 Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 06/20] boot/ti-k3-core-secdev: new package Dario Binacchi
2024-02-17 17:06 ` Alexander Sverdlin
2024-02-18 13:20 ` Dario Binacchi
2024-02-19 9:48 ` Romain Naour
2024-02-19 20:15 ` Andreas Dannenberg via buildroot
2024-02-17 16:02 ` [Buildroot] [PATCH v4 07/20] boot/ti-k3-image-gen: manage HS hardware Dario Binacchi
2024-02-17 23:45 ` Alexander Sverdlin
2024-02-18 14:01 ` Dario Binacchi
2024-02-19 10:42 ` Romain Naour
2024-02-19 10:47 ` Alexander Sverdlin
2024-02-19 20:36 ` Andreas Dannenberg via buildroot
2024-02-19 20:42 ` Alexander Sverdlin
2024-02-19 9:58 ` Romain Naour
2024-02-19 20:19 ` Andreas Dannenberg via buildroot
2024-02-17 16:02 ` [Buildroot] [PATCH v4 08/20] package/python-jsonschema: add host variant Dario Binacchi
2024-02-19 10:03 ` Romain Naour
2024-02-17 16:02 ` [Buildroot] [PATCH v4 09/20] package/python-attrs: " Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 10/20] package/python-referencing: " Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 11/20] package/python-rpds-py: " Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 12/20] package/python-jsonschema-specifications: " Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 13/20] boot/ti-k3-r5-loader: set binman environment Dario Binacchi
2024-02-17 20:38 ` Alexander Sverdlin
2024-02-19 10:40 ` Romain Naour
2024-02-19 10:15 ` Romain Naour
2024-02-21 10:19 ` Dario Binacchi
2024-02-21 15:29 ` Romain Naour
2024-02-21 20:09 ` Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 14/20] boot/uboot: set BINMAN_INDIRS for TI K3 DM Dario Binacchi
2024-02-17 20:44 ` Alexander Sverdlin
2024-02-18 13:55 ` Dario Binacchi
2024-02-19 20:51 ` Andreas Dannenberg via buildroot
2024-02-19 21:34 ` Romain Naour
2024-02-20 2:00 ` Andreas Dannenberg via buildroot [this message]
2024-02-19 10:19 ` Romain Naour
2024-02-17 16:02 ` [Buildroot] [PATCH v4 15/20] configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 Dario Binacchi
2024-02-17 20:20 ` Alexander Sverdlin
2024-02-18 13:49 ` Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 16/20] configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.1 Dario Binacchi
2024-02-17 20:27 ` Alexander Sverdlin
2024-02-18 13:50 ` Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 17/20] boot: move ti-k3-* packages to 'ti-k3' directory Dario Binacchi
2024-02-17 21:05 ` François Perrad
2024-02-18 13:59 ` Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 18/20] boot/ti-k3: move TI_K3_{SECTYPE, SOC} out of the image-gen scope Dario Binacchi
2024-02-17 20:33 ` Alexander Sverdlin
2024-02-18 13:52 ` Dario Binacchi
2024-02-19 10:28 ` Romain Naour
2024-02-20 1:28 ` Andreas Dannenberg via buildroot
2024-02-20 9:05 ` Dario Binacchi
2024-02-20 9:32 ` Romain Naour
2024-02-20 20:32 ` Andreas Dannenberg via buildroot
2024-02-20 22:06 ` Romain Naour
2024-02-21 15:48 ` Andreas Dannenberg via buildroot
2024-02-17 16:02 ` [Buildroot] [PATCH v4 19/20] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin Dario Binacchi
2024-02-17 17:28 ` Alexander Sverdlin
2024-02-18 13:30 ` Dario Binacchi
2024-02-18 13:38 ` Dario Binacchi
2024-02-19 10:47 ` Romain Naour
2024-02-20 22:34 ` Andreas Dannenberg via buildroot
2024-02-21 20:11 ` Dario Binacchi
2024-02-17 16:02 ` [Buildroot] [PATCH v4 20/20] configs/ti_am62x_sk_defconfig: don't use ti-k3-image-gen anymore Dario Binacchi
2024-02-19 10:31 ` Romain Naour
2024-02-17 17:40 ` [Buildroot] [PATCH v4 00/20] Add support for AM62x-SK HS-FS devices Alexander Sverdlin
2024-02-19 10:35 ` Romain Naour
2024-02-19 22:42 ` Patrick Oppenlander
2024-02-17 21:14 ` Alexander Sverdlin
2024-02-19 9:30 ` Romain Naour
2024-02-19 11:02 ` Michael Nazzareno Trimarchi
2024-02-19 11:24 ` Romain Naour
2024-02-20 0:41 ` Andreas Dannenberg via buildroot
2024-02-20 10:03 ` Romain Naour
2024-02-20 20:04 ` Andreas Dannenberg via buildroot
2024-02-20 21:36 ` Romain Naour
2024-02-23 19:31 ` Andreas Dannenberg via buildroot
2024-02-25 16:58 ` Romain Naour
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=20240220020011.x7mfxcs5oxbr5s3d@dasso \
--to=buildroot@buildroot.org \
--cc=X15000177@gmail.com \
--cc=alexander.sverdlin@gmail.com \
--cc=asafka7@gmail.com \
--cc=bryce@redpinelabs.com \
--cc=dannenberg@ti.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=gadiyar@ti.com \
--cc=james.hilliard1@gmail.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=michael@amarulasolutions.com \
--cc=romain.naour@smile.fr \
--cc=thomas.petazzoni@bootlin.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