All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neha Malcom Francis <n-francis@ti.com>
To: Simon Glass <sjg@chromium.org>
Cc: <u-boot@lists.denx.de>, <trini@konsulko.com>, <afd@ti.com>,
	<vigneshr@ti.com>, <rogerq@kernel.org>,
	<alpernebiyasak@gmail.com>, <nm@ti.com>, <bb@ti.com>
Subject: Re: [PATCH 00/21] Migration to using binman to generate bootloader
Date: Mon, 23 Jan 2023 18:01:27 +0530	[thread overview]
Message-ID: <beead3b6-73e7-e508-b6ff-4bd1d8b07511@ti.com> (raw)
In-Reply-To: <CAPnjgZ0e9FgpvBDfFaQD4Z3JhHzOc_HVXHMQz2D+qx2k22OfFQ@mail.gmail.com>

Hi Simon

On 21/01/23 01:16, Simon Glass wrote:
> Hi Neha,
> 
> On Fri, 20 Jan 2023 at 03:19, Neha Malcom Francis <n-francis@ti.com> wrote:
>>
>> This series aims to eliminate the use of additional custom repositories
>> such as k3-image-gen (K3 Image Generation) repo that was plumbed into
>> the U-Boot build flow to generate boot images for TI K3 platform devices.
>> And instead, we move towards using binman that aligns better with the
>> community standard build flow.
>>
>> This series uses binman for all K3 platforms supported on U-Boot currently;
>> both HS (High Security) and GP (General Purpose) devices.
>>
>> Background on using k3-image-gen:
>>          * TI K3 devices require a SYSFW (System Firmware) image consisting
>>          of a signed system firmware image and board configuration binaries,
>>          this is needed to bring up system firmware during U-Boot R5 SPL
>>          startup.
>>          * Board configuration data contain board-specific information
>>          such as resource management, power management and security.
>>
>> Series intends to use binman to take over the packaging and signing for
>> the R5 bootloader images tiboot3.bin (and sysfw.itb, for non-combined
>> boot flow) instead of k3-image-gen.
>>
>> Series also packages the A72/A53 bootloader images (tispl.bin and
>> u-boot.img) using ATF, OPTEE and DM (Device Manager)
>>
>> Neha Malcom Francis (21):
>>    ti: tools: config: Add board config class to generate config binaries
>>    tools: sysfw: Add script for generating configuration blobs
>>    tools: binman: add ti-secure entry type
>>    ti: sysfw: tiboot3: Add support for packaging sysfw.itb and
>>      tiboot3.bin
>>    j721e: schema: yaml: Add general schema and J721E board config files
>>    j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
>>      u-boot.img
>>    j7200: yaml: Add J7200 board config files
>>    j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
>>    am65x: yaml: Add AM65x board config files
>>    am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
>>      u-boot.img
>>    config: am64x: Add board config for AM64x
>>    am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img
>>    Makefile: Add DM, SYSFW_PATH, SYSFW_HS_INNER_CERT_PATH to
>>      BINMAN_INDIRS
>>    j721s2: yaml: Add board config for J721S2
>>    j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
>>    am62: yaml: Add board config for AM62
>>    am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
>>    am62a: yaml: Add board config for AM62ax
>>    am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
>>    k3: tools: config.mk: Update makefile and remove scripts
>>    doc: board: ti: Update documentation for binman flow
>>
>>   Makefile                                      |   17 +
>>   arch/arm/dts/k3-am625-r5-sk.dts               |    1 +
>>   arch/arm/dts/k3-am625-sk-binman.dtsi          |  377 ++
>>   arch/arm/dts/k3-am625-sk-u-boot.dtsi          |    2 +
>>   arch/arm/dts/k3-am62a-sk-binman.dtsi          |  377 ++
>>   arch/arm/dts/k3-am62a7-r5-sk.dts              |    1 +
>>   arch/arm/dts/k3-am62a7-sk.dts                 |    1 +
>>   arch/arm/dts/k3-am642-evm-u-boot.dtsi         |    2 +
>>   arch/arm/dts/k3-am642-r5-evm.dts              |    1 +
>>   arch/arm/dts/k3-am64x-binman.dtsi             |  440 +++
>>   arch/arm/dts/k3-am654-base-board-u-boot.dtsi  |    1 +
>>   .../dts/k3-am654-r5-base-board-u-boot.dtsi    |    1 +
>>   arch/arm/dts/k3-am65x-binman.dtsi             |  482 +++
>>   arch/arm/dts/k3-j7200-binman.dtsi             |  377 ++
>>   .../k3-j7200-common-proc-board-u-boot.dtsi    |    2 +
>>   arch/arm/dts/k3-j721e-binman.dtsi             |  605 +++
>>   .../k3-j721e-common-proc-board-u-boot.dtsi    |    1 +
>>   .../arm/dts/k3-j721e-r5-common-proc-board.dts |    1 +
>>   arch/arm/dts/k3-j721s2-binman.dtsi            |  377 ++
>>   .../k3-j721s2-common-proc-board-u-boot.dtsi   |    2 +
>>   .../dts/k3-j721s2-r5-common-proc-board.dts    |    1 +
>>   arch/arm/mach-k3/config.mk                    |  102 +-
>>   board/ti/am62ax/Kconfig                       |    2 +
>>   board/ti/am62ax/config.yaml                   | 1553 ++++++++
>>   board/ti/am62x/Kconfig                        |    2 +
>>   board/ti/am62x/config.yaml                    | 1490 ++++++++
>>   board/ti/am64x/Kconfig                        |    2 +
>>   board/ti/am64x/config.yaml                    | 1805 +++++++++
>>   board/ti/am65x/Kconfig                        |    2 +
>>   board/ti/am65x/config.yaml                    | 2469 ++++++++++++
>>   board/ti/common/schema.yaml                   |  355 ++
>>   board/ti/j721e/Kconfig                        |    4 +
>>   board/ti/j721e/config.yaml                    | 3162 ++++++++++++++++
>>   board/ti/j721e/config_j7200.yaml              | 2467 ++++++++++++
>>   board/ti/j721s2/Kconfig                       |    2 +
>>   board/ti/j721s2/config.yaml                   | 3303 +++++++++++++++++
>>   doc/board/ti/am62x_sk.rst                     |   22 +-
>>   doc/board/ti/j721e_evm.rst                    |   35 +-
>>   doc/board/ti/k3.rst                           |   50 +-
> 
> Please move all of that into a separate patch. The binman changes
> should be in their own 'binman:' patch, with tests and docs related
> just to binman.
> 
>>   include/binman_sym.h                          |    2 +
>>   scripts/Makefile.spl                          |    2 +
>>   test/py/requirements.txt                      |    1 +
>>   tools/binman/entries.rst                      |   15 +
>>   tools/binman/etype/ti_secure.py               |  133 +
>>   tools/binman/ftest.py                         |    8 +
>>   tools/k3_fit_atf.sh                           |  123 -
>>   tools/k3_gen_x509_cert.sh                     |  262 --
>>   tools/k3_sysfw_boardcfg_blob_creator.py       |  116 +
>>   tools/tibcfg_gen.py                           |  117 +
>>   49 files changed, 20146 insertions(+), 529 deletions(-)
>>   create mode 100644 arch/arm/dts/k3-am625-sk-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-am62a-sk-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-am64x-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-am65x-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-j7200-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-j721e-binman.dtsi
>>   create mode 100644 arch/arm/dts/k3-j721s2-binman.dtsi
>>   create mode 100644 board/ti/am62ax/config.yaml
>>   create mode 100644 board/ti/am62x/config.yaml
>>   create mode 100644 board/ti/am64x/config.yaml
>>   create mode 100644 board/ti/am65x/config.yaml
>>   create mode 100644 board/ti/common/schema.yaml
>>   create mode 100644 board/ti/j721e/config.yaml
>>   create mode 100644 board/ti/j721e/config_j7200.yaml
>>   create mode 100644 board/ti/j721s2/config.yaml
>>   create mode 100644 tools/binman/etype/ti_secure.py
>>   delete mode 100755 tools/k3_fit_atf.sh
>>   delete mode 100755 tools/k3_gen_x509_cert.sh
>>   create mode 100755 tools/k3_sysfw_boardcfg_blob_creator.py
>>   create mode 100644 tools/tibcfg_gen.py
>>
>> --
>> 2.34.1
>>
> 
> It is great to see this and thank you for working on it.
> 
> My general comments are:
> 
> - we need to avoid adding new scripts (they should go into binman) so
> please let me know what is needed there and how we can adjust it
> - needs some work in testing - e.g. 'binman test' and 'binman test -T'
> need to pass without errors
> 
> Regards,
> Simon

Thanks for the review comments! I am working on it and will reach out if 
I need any help.

-- 
Thanking You
Neha Malcom Francis

      reply	other threads:[~2023-01-23 12:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20 10:18 [PATCH 00/21] Migration to using binman to generate bootloader Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 01/21] ti: tools: config: Add board config class to generate config binaries Neha Malcom Francis
2023-01-20 19:46   ` Simon Glass
2023-01-20 10:18 ` [PATCH 02/21] tools: sysfw: Add script for generating configuration blobs Neha Malcom Francis
2023-01-23 14:19   ` Neha Malcom Francis
2023-01-23 18:42     ` Simon Glass
2023-01-24 10:04       ` Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 03/21] tools: binman: add ti-secure entry type Neha Malcom Francis
2023-01-20 19:46   ` Simon Glass
2023-01-20 10:18 ` [PATCH 04/21] ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 05/21] j721e: schema: yaml: Add general schema and J721E board config files Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 06/21] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 07/21] j7200: yaml: Add J7200 board config files Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 08/21] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 09/21] am65x: yaml: Add AM65x board config files Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 10/21] am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 11/21] config: am64x: Add board config for AM64x Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 12/21] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 13/21] Makefile: Add DM, SYSFW_PATH, SYSFW_HS_INNER_CERT_PATH to BINMAN_INDIRS Neha Malcom Francis
2023-01-20 19:46   ` Simon Glass
2023-01-20 10:18 ` [PATCH 14/21] j721s2: yaml: Add board config for J721S2 Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 15/21] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img Neha Malcom Francis
2023-01-20 19:46   ` Simon Glass
2023-01-20 10:18 ` [PATCH 16/21] am62: yaml: Add board config for AM62 Neha Malcom Francis
2023-01-20 10:18 ` [PATCH 17/21] am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img Neha Malcom Francis
2023-01-20 10:19 ` [PATCH 18/21] am62a: yaml: Add board config for AM62ax Neha Malcom Francis
2023-01-20 10:19 ` [PATCH 19/21] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img Neha Malcom Francis
2023-01-20 10:19 ` [PATCH 20/21] k3: tools: config.mk: Update makefile and remove scripts Neha Malcom Francis
2023-01-20 10:19 ` [PATCH 21/21] doc: board: ti: Update documentation for binman flow Neha Malcom Francis
2023-01-20 19:46 ` [PATCH 00/21] Migration to using binman to generate bootloader Simon Glass
2023-01-23 12:31   ` Neha Malcom Francis [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=beead3b6-73e7-e508-b6ff-4bd1d8b07511@ti.com \
    --to=n-francis@ti.com \
    --cc=afd@ti.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=bb@ti.com \
    --cc=nm@ti.com \
    --cc=rogerq@kernel.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.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.