All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@smile.fr>
To: Andreas Dannenberg <dannenberg@ti.com>
Cc: Dario Binacchi <dario.binacchi@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,
	Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
	Alexander Sverdlin <alexander.sverdlin@gmail.com>,
	bryce@redpinelabs.com, Anand Gadiyar <gadiyar@ti.com>
Subject: Re: [Buildroot] [PATCH v4 00/20] Add support for AM62x-SK HS-FS devices
Date: Tue, 20 Feb 2024 22:36:51 +0100	[thread overview]
Message-ID: <1a7ab8e6-bd43-4191-ad95-12e40f3a5c51@smile.fr> (raw)
In-Reply-To: <20240220200414.2bsvqvaeltqhsulc@dasso>

Hi Andreas,

Le 20/02/2024 à 21:04, Andreas Dannenberg a écrit :
> Hi Romain,
> 
> On Tue, Feb 20, 2024 at 11:03:54AM +0100, Romain Naour wrote:
>> Hello Andreas,
>>
>> Le 20/02/2024 à 01:41, Andreas Dannenberg a écrit :
>>> On Mon, Feb 19, 2024 at 12:24:52PM +0100, Romain Naour wrote:
>>>> Hello Michael,
>>>>
>>>> Le 19/02/2024 à 12:02, Michael Nazzareno Trimarchi a écrit :
>>>>> Hi Romain
>>>>>
>>>>> On Mon, Feb 19, 2024 at 10:30 AM Romain Naour <romain.naour@smile.fr> wrote:
>>>>>>
>>>>>> Hello Dario,
>>>>>>
>>>>>> Le 17/02/2024 à 17:02, Dario Binacchi a écrit :
>>>>>>> The SK-AM62B-P1 is the newest version of SK-AM62 which includes
>>>>>>> high-security field-securable (HS-FS) silicon to optionally customize keys
>>>>>>> and encryption for security applications.
>>>>>>> This requires enabling the BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS option,
>>>>>>> which, however, was buggy. This series fixes the errors and bumps the Linux
>>>>>>> kernel and U-Boot required for such a new device.
>>>>>>>
>>>>>>> This series, which in my humble opinion, should have been immediately
>>>>>>> considered to correct the compilation errors in case of HS-FS devcies, has
>>>>>>> seen an increase in patches in version 4 to remove the ti-k3-image-gen
>>>>>>> package thanks to Binman. Additionally, it shares some modifications and
>>>>>>> views on how to implement certain changes with the series
>>>>>>> https://patchwork.ozlabs.org/project/buildroot/list/?series=394840.
>>>>>>> Therefore, I think it is necessary not to run them in parallel but to decide
>>>>>>> whether to merge one before the other or to consider a single series where
>>>>>>> the patches can be coherent with each other. I am available for both solutions.
>>>>>>> Let me know.
>>>>>>
>>>>>> Thanks for this new version. I beleive both series should be merged into one
>>>>>> since we want to follow u-boot switch to binman, add more TI K3 SoC support and
>>>>>> keeping exising am62x ans am64x working in GP or HS/HS-FS.
>>>>>>
>>>>>
>>>>> Because the Dario patchset was sent before (end of November), it's
>>>>> reasonable to review and adjust that one
>>>>> and apply your changes for ti_j721e_sk on top of it. It think that is
>>>>> a standard way to make people happy about
>>>>> their work and contribution.
>>>>
>>>> Actually, the two series are about the same topic: TI K3 SoC support (GP, HS,
>>>> HS-FS) not only AM62x-SK HS-FS devices
>>>>
>>>> But due to the complexity of the BSP, the boot flow (4 way to boot!) and the
>>>> switch from custom tool to binman... this series is really difficult to review
>>>> without having a good understanding of TI K3 architecture peculiarity and having
>>>> one of each TI evaluation boards 🙂
>>>
>>> Although I helped conceive some of this and the associated tooling early
>>> on, some of the what may look strange architectural decisions were driven
>>> by different use cases and requirements for the different devices
>>> (especially around automotive fast/early boot, but also security) in
>>> combination with limited on-chip SRAM... So this where we are at now. A
>>> future AM6x device variant will have yet another boot flow, but I can
>>> already say it will be very much simplified over what we have today :)
>>
>> About existing boot flow, I found two recent commit in u-boot that state that
>> the "Split binary" (that requires sysfw.itb) is already a legacy boot flow:
> 
> It's called "legacy boot flow" because it was the boot flow used on the
> first K3 devices that were released (AM65x, J721E). This boot flow was
> not used on follow-on devices. The characteristics of this boot flow is
> that the initial FW image that gets loaded (tiboot3.bin) doesn't contain
> any device firmwares, but only a bootloader (such as U-Boot SPL). Then
> this boot loader will load the System Firmware firmware + config data
> blob (sysfw.itb) into the dedicated core (called "DMSC" = Device Manager
> and Security Controller). And then addiitonal boot stages will be
> loaded. These devices require this boot flow, and with this it is
> required to be supported by U-Boot (and any Linux distribution or build
> systems that build on that).
> 
> TI is still making/selling those "legacy boot flow" devices, and will
> continue to do so for a very long time. One promiment community
> incarnation that you are probably aware of is the BeagleBone AI-64.

Thank you for the detailed explanation!

I previouly worked on a AM57xx SoC that is nowaday legacy SoC, the latest
ti-kernel 6.1 doesn't support some of the driver that where available in
ti-kernel 5.10 (prueth 100M, RPMsg Sockets over virtio-rpmsg transport (use for
ARM-DSP IPC3.x), TI-RTOS (the csl-common package was also removed from meta-ti)).

Also the TI SDK on this plateform doesn't seems very active [1].

So, I'm worried when I read "legacy" :)

[1]
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1290197/processor-sdk-am57x-legacy-processor-s-linux-update-plan

> 
>> arm: dts: k3-binman: Add support for FIT templates
>>
>>     Add templates for FIT images used extensively across K3 boards with most
>>     of the code common. This includes the FIT portions of:
>>     	- tispl.bin
>>     	- u-boot.img
>>     	- sysfw.itb (in case of legacy boot flow)
>>
>> https://gitlab.com/u-boot/u-boot/-/commit/b153bad0f14168d5fcc02ba6bf1a2cd98daba9b5
>>
>>     arm: dts: k3-*-binman: Move to using templated FITs
>>
>>     Reduce redundancy in code by using templates to generate the A72 boot
>>     binaries (tispl.bin and u-boot.img) as well as R5 boot binary sysfw.itb
>>     (for legacy boot following devices J721E and AM65x).
>>
>> https://gitlab.com/u-boot/u-boot/-/commit/4509b9ff0b8cb26907f9e9c3571b43565c859275
>>
>> Which one should be recommended or avoided for a new design?
> 
> Those commits are just a simplification to reduce duplication. As per
> earlier comment the "legacy boot flow" is something we continue needing
> to support. It isn't supposed to imply that those devices are about to
> disappear.
> 
> Not sure if this answered your question; please let me know.

Yes, thank you.

Best regards,
Romain


> 
> --
> Andreas Dannenberg
> Texas Instruments Inc
> 
> 
>>
>> Best regards,
>> Romain
>>
>>
>>>
>>>> The series (based on Dario's work) about ti_j721e_sk suggested to remove TI
>>>> custom tools replaced by binman along with other improvements.
>>>>
>>>> I'll way for v5 and rebase the ti_j721e_sk on top of it.
>>>
>>> Thank you Romain for your buy-in. Let's focus on getting Dario's series
>>> in good shape and then move onto yours. I'd also like to re-introduce
>>> graphics (I had that working before) but I need to wait for all the
>>> "baseline" stuff to settle first.
>>>
>>>
>>> --
>>> Andreas Dannenberg
>>> Texas Instruments Inc
>>>
>>>
>>>
>>>>
>>>> Best regards,
>>>> Romain
>>>>
>>>>
>>>>>
>>>>> Michael
>>>>>
>>>>>> My main concern is to avoid adding a new package for a tool that is already
>>>>>> deprecated ti-k3-image-gen (not sure if ti-k3-core-secdev is really deprecated) [1].
>>>>>>
>>>>>> Also the topic is not only "AM62x-SK HS-FS devices" but "TI K3 HS-FS devices".
>>>>>>
>>>>>> [1] http://lists.busybox.net/pipermail/buildroot/2024-February/685820.html
>>>>>>
>>>>>> Best regards,
>>>>>> Romain
>>>>>>
>>>>>>>
>>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-02-20 21:37 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
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 [this message]
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=1a7ab8e6-bd43-4191-ad95-12e40f3a5c51@smile.fr \
    --to=romain.naour@smile.fr \
    --cc=X15000177@gmail.com \
    --cc=alexander.sverdlin@gmail.com \
    --cc=asafka7@gmail.com \
    --cc=bryce@redpinelabs.com \
    --cc=buildroot@buildroot.org \
    --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=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 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.