All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: Simon Glass <sjg@chromium.org>
Cc: Neha Malcom Francis <n-francis@ti.com>,
	u-boot@lists.denx.de, afd@ti.com,  vigneshr@ti.com,
	rogerq@kernel.org, alpernebiyasak@gmail.com, nm@ti.com,
	bb@ti.com, u-kumar1@ti.com, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow
Date: Tue, 25 Apr 2023 07:38:25 +0200	[thread overview]
Message-ID: <323f74e2-4c31-130f-df9c-6d5517c6f34e@gmx.de> (raw)
In-Reply-To: <20230424204915.GM1134230@bill-the-cat>

On 4/24/23 22:49, Tom Rini wrote:
> On Mon, Apr 24, 2023 at 01:42:17PM -0600, Simon Glass wrote:
>> Hi Neha,
>>
>> On Fri, 21 Apr 2023 at 06:33, Neha Malcom Francis <n-francis@ti.com> wrote:
>>>
>>> Earlier documentation specified builds for generating bootloader images
>>> using an external TI repository k3-image-gen and core-secdev-k3. Modify
>>> this to using the binman flow so that user understands how to build the
>>> final boot images.
>>>
>>> Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
>>> ---
>>>   doc/board/ti/am62x_sk.rst  | 20 ++++--------
>>>   doc/board/ti/j721e_evm.rst | 37 ++++++++-------------
>>>   doc/board/ti/k3.rst        | 67 ++++++++++----------------------------
>>>   3 files changed, 36 insertions(+), 88 deletions(-)
>>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>
>>>
>>> diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_sk.rst
>>> index b1b7d99bef..f5e0774899 100644
>>> --- a/doc/board/ti/am62x_sk.rst
>>> +++ b/doc/board/ti/am62x_sk.rst
>>> @@ -115,23 +115,19 @@ Below is the pictorial representation of boot flow:
>>>
>>>   Sources:
>>>   --------
>>> -1. SYSFW:
>>> -       Tree: git://git.ti.com/k3-image-gen/k3-image-gen.git
>>> -       Branch: master
>>> -
>>> -2. ATF:
>>> +1. ATF:
>>>          Tree: https://github.com/ARM-software/arm-trusted-firmware.git
>>>          Branch: master
>>>
>>> -3. OPTEE:
>>> +2. OPTEE:
>>>          Tree: https://github.com/OP-TEE/optee_os.git
>>>          Branch: master
>>>
>>> -4. U-Boot:
>>> +3. U-Boot:
>>>          Tree: https://source.denx.de/u-boot/u-boot
>>>          Branch: master
>>>
>>> -5. TI Linux Firmware:
>>> +4. TI Linux Firmware:
>>>          Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git
>>>          Branch: ti-linux-firmware
>>>
>>> @@ -156,18 +152,14 @@ Build procedure:
>>>   .. code-block:: text
>>>
>>>    $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/tmp/r5
>>> - $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/tmp/r5
>>> - $ cd <k3-image-gen>
>>> - $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- SOC=am62x SBL=/tmp/r5/spl/u-boot-spl.bin SYSFW_PATH=<path to ti-linux-firmware>/ti-sysfw/ti-fs-firmware-am62x-gp.bin
>>> -
>>> -Use the tiboot3.bin generated from last command
>>> + $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/tmp/r5 BINMAN_INDIRS=<path/to/ti-linux-firmware>
>>>
>>>   * 3.2 A53:
>>>
>>>   .. code-block:: text
>>>
>>>    $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- am62x_evm_a53_defconfig O=/tmp/a53
>>> - $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=<path to ATF dir>/build/k3/lite/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<path to ti-linux-firmware>/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f O=/tmp/a53
>>> + $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- BL31=<path to ATF dir>/build/k3/lite/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin BINMAN_INDIRS=<path/to/ti-linux-firmware>
>>>
>>>   Target Images
>>>   --------------
>>> diff --git a/doc/board/ti/j721e_evm.rst b/doc/board/ti/j721e_evm.rst
>>> index e898601c41..c90e2b8279 100644
>>> --- a/doc/board/ti/j721e_evm.rst
>>> +++ b/doc/board/ti/j721e_evm.rst
>>> @@ -130,67 +130,56 @@ support. Below is the pictorial representation of boot flow:
>>>
>>>   Sources:
>>>   --------
>>> -1. SYSFW:
>>> -       Tree: git://git.ti.com/k3-image-gen/k3-image-gen.git
>>> -       Branch: master
>>> -
>>> -2. ATF:
>>> +1. ATF:
>>>          Tree: https://github.com/ARM-software/arm-trusted-firmware.git
>>>          Branch: master
>>>
>>> -3. OPTEE:
>>> +2. OPTEE:
>>>          Tree: https://github.com/OP-TEE/optee_os.git
>>>          Branch: master
>>>
>>> -4. DM Firmware:
>>> -       Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git
>>> -       Branch: ti-linux-firmware
>>> -
>>> -5. U-Boot:
>>> +3. U-Boot:
>>>          Tree: https://source.denx.de/u-boot/u-boot
>>>          Branch: master
>>>
>>> +4. TI Linux Firmware:
>>> +       Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git
>>> +       Branch: ti-linux-firmware
>>> +
>>>   Build procedure:
>>>   ----------------
>>> -1. SYSFW:
>>> -
>>> -.. code-block:: bash
>>> -
>>> -    make CROSS_COMPILE=arm-linux-gnueabihf- SOC=j721e
>>> -
>>> -2. ATF:
>>> +1. ATF:
>>>
>>>   .. code-block:: bash
>>>
>>>       make CROSS_COMPILE=aarch64-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=generic SPD=opteed
>>>
>>> -3. OPTEE:
>>> +2. OPTEE:
>>>
>>>   .. code-block:: bash
>>>
>>>       make PLATFORM=k3-j721e CFG_ARM64_core=y
>>>
>>> -4. U-Boot:
>>> +3. U-Boot:
>>>
>>>   * 4.1 R5:
>>>
>>>   .. code-block:: bash
>>>
>>>       make CROSS_COMPILE=arm-linux-gnueabihf- j721e_evm_r5_defconfig O=build/r5

CROSS_COMPILE is superfluous here.

>>> -    make CROSS_COMPILE=arm-linux-gnueabihf- O=build/r5
>>> +    make CROSS_COMPILE=arm-linux-gnueabihf- O=build/r5 BINMAN_INDIRS=<path/to/ti-linux-firmware>

Don't we have to indicate the locations of the TF-A binary and SYSFW_PATH?

>>>
>>>   * 4.2 A72:
>>>
>>>   .. code-block:: bash
>>>
>>>       make CROSS_COMPILE=aarch64-linux-gnu- j721e_evm_a72_defconfig O=build/a72

CROSS_COMPILE is superfluous here.

>>> -    make CROSS_COMPILE=aarch64-linux-gnu- ATF=<ATF dir>/build/k3/generic/release/bl31.bin TEE=<OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<DM firmware>/ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f O=build/a72
>>> +    make CROSS_COMPILE=aarch64-linux-gnu- BL31=<ATF dir>/build/k3/generic/release/bl31.bin TEE=<OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin BINMAN_INDIRS=<path/to/ti-linux-firmware>

Where do we indicate SYSFW_PATH?

>>
>> Is there an 'O=build/a72' missing there?
>
> Not strictly missing, no. One of those style things for Heinrich is, we
> should be consistent in our examples both in terms of O= (when not
> strictly required, it is for the _r5 variant since you must keep some of
> that build for the Cortex-A part, so that you can get something that
> boots the physical machine, in the end).
>
>> You can combine these as well, by using 'j721e_evm_a72_defconfig all'
>> to both configure and build.
>>
>> Also it might be nice to keep the line length shorter if you can.
>
> Other parts for Heinrich to chime in, to have consistent on all the
> board examples.
>

O= is not really needed outside of 'make tests'.
So I think dropping it from examples is fine if the document in itself
stays consistent.

We should try to stick to 80 characters per line in documentation for
the sake of readers who read the source (as described in
https://u-boot.readthedocs.io/en/latest/develop/docstyle.html). Even in
HTML pages it is not nice if you have to scroll horizontally to read the
complete command.

Please, use \ to split the bash command over multiple lines.

Best regards

Heinrich

  reply	other threads:[~2023-04-25  5:38 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 12:31 [PATCH v3 00/19] Migration to using binman for bootloader Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 01/19] binman: ti-board-config: Add support for TI board config binaries Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-25  6:24     ` Neha Malcom Francis
2023-04-25 18:01       ` Simon Glass
2023-04-26 19:44   ` [PATCH 1/2] buildman: Create a requirements.txt file Tom Rini
2023-04-26 19:44     ` [PATCH 2/2] CI: Make use of buildman requirements.txt Tom Rini
2023-04-27 16:25       ` Simon Glass
2023-05-03  5:57       ` Neha Malcom Francis
2023-05-03 13:04         ` Tom Rini
2023-05-04  4:12           ` Neha Malcom Francis
2023-05-04 13:02             ` Tom Rini
2023-05-05  5:02               ` Neha Malcom Francis
2023-04-27 16:25     ` [PATCH 1/2] buildman: Create a requirements.txt file Simon Glass
2023-04-21 12:31 ` [PATCH v3 02/19] binman: ti-secure: Add support for TI signing Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 03/19] ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-25  7:20     ` Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 04/19] j721e: schema: yaml: Add general schema and J721E board config files Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 05/19] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 06/19] j7200: yaml: Add J7200 board config files Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 07/19] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 08/19] am65x: yaml: Add AM65x board config files Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 09/19] am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-25  7:26     ` Neha Malcom Francis
2023-04-25 18:01       ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 10/19] am64x: yaml: Add board configs for AM64x Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 11/19] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-25  7:31     ` Neha Malcom Francis
2023-04-25 18:46       ` Andrew Davis
2023-04-25 19:23       ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 12/19] j721s2: yaml: Add board configs for J721S2 Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 13/19] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:31 ` [PATCH v3 14/19] am62: yaml: Add board configs for AM62 Neha Malcom Francis
2023-04-21 12:31 ` [PATCH v3 15/19] am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:32 ` [PATCH v3 16/19] am62a: yaml: Add board configs for AM62ax Neha Malcom Francis
2023-04-21 12:32 ` [PATCH v3 17/19] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:32 ` [PATCH v3 18/19] k3: tools: config.mk: Update makefile and remove scripts Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-21 12:32 ` [PATCH v3 19/19] doc: board: ti: Update documentation for binman flow Neha Malcom Francis
2023-04-24 19:42   ` Simon Glass
2023-04-24 20:49     ` Tom Rini
2023-04-25  5:38       ` Heinrich Schuchardt [this message]
2023-04-25  7:36         ` Neha Malcom Francis
2023-04-25  6:23     ` Neha Malcom Francis
2023-04-26 22:37 ` [PATCH v3 00/19] Migration to using binman for bootloader Tom Rini
2023-05-03  7:27   ` Neha Malcom Francis
2023-05-03 12:56     ` Neha Malcom Francis
2023-05-03 16:34       ` Jan Kiszka
2023-05-04  4:43         ` Neha Malcom Francis
2023-05-04  6:13           ` Neha Malcom Francis
2023-05-04  7:45             ` Jan Kiszka
2023-05-07 12:11             ` Jan Kiszka
2023-05-08  5:05               ` Neha Malcom Francis
2023-05-09  8:58                 ` Jan Kiszka
2023-05-03 13:57     ` Tom Rini
2023-05-04  5:40       ` Manorit Chawdhry
2023-05-16  4:59         ` Neha Malcom Francis
2023-05-04  8:38 ` Christian Gmeiner
2023-05-04  9:37   ` Neha Malcom Francis
2023-05-05 18:29     ` Christian Gmeiner

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=323f74e2-4c31-130f-df9c-6d5517c6f34e@gmx.de \
    --to=xypron.glpk@gmx.de \
    --cc=afd@ti.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=bb@ti.com \
    --cc=n-francis@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=u-kumar1@ti.com \
    --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.