Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dannenberg via buildroot <buildroot@buildroot.org>
To: Romain Naour <romain.naour@smile.fr>
Cc: Alexander Sverdlin <alexander.sverdlin@gmail.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 00/21] Add ti_j721e_sk_defconfig
Date: Fri, 16 Feb 2024 14:13:01 -0600	[thread overview]
Message-ID: <20240216201301.ftcjsjgepmcvd3pm@dasso> (raw)
In-Reply-To: <63114771-4fb0-4b6f-bdac-e4363b4e9e52@smile.fr>

On Thu, Feb 15, 2024 at 12:23:21PM +0100, Romain Naour wrote:
> Hi Alexander,
> 
> Le 15/02/2024 à 11:13, Alexander Sverdlin a écrit :
> > Hi Romain,
> > 
> > On Tue, 2024-02-13 at 18:27 +0100, Romain Naour wrote:
> >>> This series aim to add the SK-TDA4VM board support based on TI K3 j721e SoC.
> >>>
> >>> This series start by adding U-boot binman support already submitted in the
> >>> preview series "Add support for AM62x-SK HS-FS devices" from Dario Binacchi
> >>> [1], with small improvements.
> >>> See the FOSDEM 2024 talk "Standardizing the generation and signing of boot images" [2]
> >>>
> >>> With binman support, we can add the TI K3 j721e SoC support by
> >>> providing all required firmware generated by the build.
> >>>
> >>> Add the new ti_j721e_sk_defconfig file to build a basic SD card image to
> >>> boot the board (serial debug and ethernet working).
> >>>
> >>> Thanks to binman support, we can remove the ti-k3-image-gen tool from
> >>> Buildroot. To do that, we have to update existing defconfig (am62, am64).
> >>>
> >>> Followup commits can improve TI K3 HS-FS devices based on binman instead
> >>> of legacy core-secdev-k3 tool.
> >>>
> >>> [1] http://lists.busybox.net/pipermail/buildroot/2023-December/681139.html
> >>> [2] https://fosdem.org/2024/events/attachments/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/slides/22808/FOSDEM24_Speaker_Slides_y7FsIKM.pdf
> >>>
> >>> Best regards,
> >>> Romain
> > 
> > I have mixed feelings after testing the patchset on SK-AM62B...
> > It doesn't quite boot, refer to the boot log [1].
> > Seems that U-Boot env is missing, maybe I'm missing some installation
> > step, but I do not see it mentioned in the documetation (for instance
> > of original commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig").
> > 
> > I'm not sure if this is a result of U-Boot update or if the current
> > master is broken as well. I'll be retesting it today and will get back to
> > you.
> 
> It seems you are testing on a HS-FS device "AM62X SR1.0 HS-FS" while I only
> runtime tested this series on a SK-TDA4VM (GP: general pupose).
> 
> Also the ti_am62x_sk_defconfig is expecting a GP SoC so you may have to
> customize the image generated in a post-build script?
> 
> Maybe you have to replace the tiboot3.bin binary included by genimage with the
> one for the HS-FS variant ?
> 
> for j721e:
>     285449 13 févr. 17:27 tiboot3.bin
>     285449 13 févr. 17:27 tiboot3-j721e-gp-evm.bin
>     286224 13 févr. 17:27 tiboot3-j721e_sr1_1-hs-evm.bin
>     286224 13 févr. 17:27 tiboot3-j721e_sr2-hs-fs-evm.bin
> 
> for am62x:
>     tiboot3.bin << should be the gp variant by default
>     tiboot3-am62x-gp-evm.bin
>     tiboot3-am62x-hs-fs-evm.bin
> 
> Also, did you have the ti-k3-core-secdev package locally, it seems it's required
> for HS-FS SoC but the package is currently missing:
> 
> http://lists.busybox.net/pipermail/buildroot/2024-February/685383.html
> 
> Is ti-k3-core-secdev really required fllowing the switch to binman?
> (binman should sign all firmware binaries itself).

We should see that we can remove/obsolete the ti-k3-core-secdev package
alongside the ti-k3-image-gen package, those are no longer needed since
we started using binman for the building the initial boot stage.

--
Andreas Dannenberg
Texas Instruments Inc

> 
> > 
> > Fortunately this patchset is actually about building the images differently
> > and this part actually went smoothly, which is good.
> 
> Thank you for testing, it help a lot!
> 
> Maybe something is missing in this series to handle HS-FS device properly.
> 
> > 
> >>> Dario Binacchi (5):
> >>>   package/python-attrs: add host variant
> >>>   package/python-rpds-py: add host variant
> >>>   package/python-referencing: add host variant
> >>>   package/python-jsonschema-specifications: add host variant
> >>>   package/python-jsonschema: add host variant
> >>>
> >>> Romain Naour (16):
> >>>   DEVELOPERS: add Romain Naour for am574x_idk_defconfig
> >>>   configs/ti_am62x_sk_defconfig: fix optee-os plateform
> >>>   configs/ti_am64x_sk_defconfig: fix optee-os plateform
> >>>   boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option
> >>>   boot/ti-k3-r5-loader: add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
> >>>   boot/ti-k3-r5-loader: install tiboot3.bin and sysfw.itb to
> >>>     BINARIES_DIR
> >>>   boot/ti-k3-boot-firmware: introduce
> >>>     BR2_TARGET_TI_K3_BOOT_FIRMWARE_SOC_{AM62AX,AM62X,AM64X,AM65X}
> >>>   boot/uboot: use DM firmware name defined by ti-k3-boot-firmware
> >>>     package
> >>>   boot/ti-k3-boot-firmware: add BR2_TARGET_TI_K3_BOOT_FIRMWARE_SOC_J721E
> >>>   boot/uboot: replace ti-k3-image-gen options by ti-k3-firmware options
> >>>   boot/uboot: enable TI K3 Device Manager (DM) for j721e
> >>>   boot/ti-k3-boot-firmware: bump to version 09.02.00.004
> >>>   configs/ti_j721e_sk_defconfig: new defconfig
> >>>   configs/ti_am62x_sk_defconfig: update to uboot 2024.01 to use binman
> >>>     tool
> >>>   configs/ti_am64x_sk_defconfig: update to uboot 2024.01 to use binman
> >>>     tool
> >>>   boot/ti-k3-image-gen: remove package
> >>>
> >>>  Config.in.legacy                              |  7 ++
> >>>  DEVELOPERS                                    |  6 +-
> >>>  board/ti/j721e-sk/genimage.cfg                | 28 +++++++
> >>>  board/ti/j721e-sk/post-build.sh               | 16 ++++
> >>>  board/ti/j721e-sk/readme.txt                  | 34 ++++++++
> >>>  boot/Config.in                                |  1 -
> >>>  boot/ti-k3-boot-firmware/Config.in            | 39 ++++++++++
> >>>  .../ti-k3-boot-firmware.hash                  |  2 +-
> >>>  .../ti-k3-boot-firmware.mk                    | 16 ++--
> >>>  boot/ti-k3-image-gen/Config.in                | 77 -------------------
> >>>  boot/ti-k3-image-gen/ti-k3-image-gen.hash     |  3 -
> >>>  boot/ti-k3-image-gen/ti-k3-image-gen.mk       | 54 -------------
> >>>  boot/ti-k3-r5-loader/Config.in                |  8 ++
> >>>  boot/ti-k3-r5-loader/ti-k3-r5-loader.mk       | 23 ++++++
> >>>  boot/uboot/Config.in                          | 27 ++++---
> >>>  boot/uboot/uboot.mk                           | 10 ++-
> >>>  configs/ti_am62x_sk_defconfig                 | 14 ++--
> >>>  configs/ti_am64x_sk_defconfig                 | 14 ++--
> >>>  ...62x_sk_defconfig => ti_j721e_sk_defconfig} | 34 ++++----
> >>>  package/python-attrs/python-attrs.mk          |  6 ++
> >>>  .../python-jsonschema-specifications.mk       | 10 +++
> >>>  .../python-jsonschema/python-jsonschema.mk    | 14 ++++
> >>>  .../python-referencing/python-referencing.mk  | 11 +++
> >>>  package/python-rpds-py/python-rpds-py.mk      |  1 +
> >>>  24 files changed, 275 insertions(+), 180 deletions(-)
> >>>  create mode 100644 board/ti/j721e-sk/genimage.cfg
> >>>  create mode 100755 board/ti/j721e-sk/post-build.sh
> >>>  create mode 100644 board/ti/j721e-sk/readme.txt
> >>>  delete mode 100644 boot/ti-k3-image-gen/Config.in
> >>>  delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash
> >>>  delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk
> >>>  copy configs/{ti_am62x_sk_defconfig => ti_j721e_sk_defconfig} (54%)
> >>>
> >>> --
> >>> 2.43.0
> >>>
> >>> _______________________________________________
> >>> buildroot mailing list
> >>> buildroot@buildroot.org
> >>> https://lists.buildroot.org/mailman/listinfo/buildroot
> > 
> > 1. Boot log:
> > 
> > U-Boot SPL 2024.01 (Feb 15 2024 - 01:42:12 +0100)
> > SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
> > SPL initial stack usage: 13400 bytes
> > Trying to boot from MMC2
> > Authentication passed
> > Authentication passed
> > Authentication passed
> > Authentication passed
> > Authentication passed
> > Starting ATF on ARM64 core...
> > 
> > NOTICE:  BL31: v2.10.0  (release):v2.10
> > NOTICE:  BL31: Built : 01:28:38, Feb 15 2024
> > I/TC: 
> > I/TC: OP-TEE version: Unknown_4.0 (gcc version 12.3.0 (Buildroot 2023.11-1198-g18ff6d2643)) #1 Thu Feb 15 00:28:27 UTC 2024 aarch64
> > I/TC: WARNING: This OP-TEE configuration might be insecure!
> > I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
> > I/TC: Primary CPU initializing
> > I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
> > I/TC: HUK Initialized
> > I/TC: Activated SA2UL device
> > I/TC: Enabled firewalls for SA2UL TRNG device
> > I/TC: SA2UL TRNG initialized
> > I/TC: SA2UL Drivers initialized
> > I/TC: Primary CPU switching to normal world boot
> > 
> > U-Boot SPL 2024.01 (Feb 15 2024 - 01:43:17 +0100)
> > SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
> > SPL initial stack usage: 1872 bytes
> > Trying to boot from MMC2
> > Authentication passed
> > Authentication passed
> > 
> > 
> > U-Boot 2024.01 (Feb 15 2024 - 01:43:17 +0100)
> > 
> > SoC:   AM62X SR1.0 HS-FS
> > Model: Texas Instruments AM625 SK
> > DRAM:  2 GiB
> > Core:  56 devices, 23 uclasses, devicetree: separate
> > MMC:   mmc@fa10000: 0, mmc@fa00000: 1
> > Loading Environment from nowhere... OK
> > In:    serial@2800000
> > Out:   serial@2800000
> > Err:   serial@2800000
> > Net:   eth0: ethernet@8000000port@1
> > Hit any key to stop autoboot:  0 
> > switch to partitions #0, OK
> > mmc1 is current device
> > SD/MMC found on device 1
> > Failed to load 'uEnv.txt'
> 
> Can you access to the mmc1 content manually ?
> I had to create a symlink due to "dtb" subdirectory expected by u-boot
> u-boot is looking at /boot/dtb/ti for devicetree.
> 
> Best regards,
> Romain
> 
> 
> > Scanning for bootflows in all bootdevs
> > Seq  Method       State   Uclass    Part  Name                      Filename
> > ---  -----------  ------  --------  ----  ------------------------  ----------------
> > Scanning global bootmeth 'efi_mgr':
> > No EFI system partition
> > No EFI system partition
> > Failed to persist EFI variables
> > Scanning bootdev 'mmc@fa00000.bootdev':
> > Scanning bootdev 'mmc@fa10000.bootdev':
> > Unknown uclass 'usb' in label
> > link up on port 1, speed 100, full duplex
> > BOOTP broadcast 1
> > BOOTP broadcast 2
> > BOOTP broadcast 3
> > BOOTP broadcast 4
> > BOOTP broadcast 5
> > BOOTP broadcast 6
> > BOOTP broadcast 7
> > BOOTP broadcast 8
> > BOOTP broadcast 9
> > BOOTP broadcast 10
> > BOOTP broadcast 11
> > BOOTP broadcast 12
> > BOOTP broadcast 13
> > BOOTP broadcast 14
> > BOOTP broadcast 15
> > BOOTP broadcast 16
> > BOOTP broadcast 17
> > 
> > Retry time exceeded; starting again
> > 
> > 
> > 
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2024-02-16 20:13 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 17:27 [Buildroot] [PATCH 00/21] Add ti_j721e_sk_defconfig Romain Naour
2024-02-13 17:27 ` [Buildroot] [PATCH 01/21] DEVELOPERS: add Romain Naour for am574x_idk_defconfig Romain Naour
2024-02-13 17:27 ` [Buildroot] [PATCH 02/21] configs/ti_am62x_sk_defconfig: fix optee-os plateform Romain Naour
2024-02-13 18:45   ` Alexander Sverdlin
2024-02-13 17:27 ` [Buildroot] [PATCH 03/21] configs/ti_am64x_sk_defconfig: " Romain Naour
2024-02-13 18:56   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 04/21] package/python-attrs: add host variant Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 05/21] package/python-rpds-py: " Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 06/21] package/python-referencing: " Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 07/21] package/python-jsonschema-specifications: " Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 08/21] package/python-jsonschema: " Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 09/21] boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option Romain Naour
2024-02-14 10:58   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 10/21] boot/ti-k3-r5-loader: add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option Romain Naour
2024-02-14 10:58   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 11/21] boot/ti-k3-r5-loader: install tiboot3.bin and sysfw.itb to BINARIES_DIR Romain Naour
2024-02-14 10:58   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 12/21] boot/ti-k3-boot-firmware: introduce BR2_TARGET_TI_K3_BOOT_FIRMWARE_SOC_{AM62AX, AM62X, AM64X, AM65X} Romain Naour
2024-02-14 11:20   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 13/21] boot/uboot: use DM firmware name defined by ti-k3-boot-firmware package Romain Naour
2024-02-14 11:29   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 14/21] boot/ti-k3-boot-firmware: add BR2_TARGET_TI_K3_BOOT_FIRMWARE_SOC_J721E Romain Naour
2024-02-13 20:23   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 15/21] boot/uboot: replace ti-k3-image-gen options by ti-k3-firmware options Romain Naour
2024-02-14 11:37   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 16/21] boot/uboot: enable TI K3 Device Manager (DM) for j721e Romain Naour
2024-02-14 10:58   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 17/21] boot/ti-k3-boot-firmware: bump to version 09.02.00.004 Romain Naour
2024-02-14 11:25   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 18/21] configs/ti_j721e_sk_defconfig: new defconfig Romain Naour
2024-02-14 12:06   ` Alexander Sverdlin
2024-02-16  1:19   ` Alexander Sverdlin
2024-02-16  1:44   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 19/21] configs/ti_am62x_sk_defconfig: update to uboot 2024.01 to use binman tool Romain Naour
2024-02-14 10:59   ` Alexander Sverdlin
2024-02-14 15:24     ` Romain Naour
2024-02-13 17:28 ` [Buildroot] [PATCH 20/21] configs/ti_am64x_sk_defconfig: " Romain Naour
2024-02-14 11:05   ` Alexander Sverdlin
2024-02-13 17:28 ` [Buildroot] [PATCH 21/21] boot/ti-k3-image-gen: remove package Romain Naour
2024-02-13 19:05   ` Alexander Sverdlin
2024-02-13 21:35     ` Romain Naour
2024-02-14 10:58   ` Alexander Sverdlin
2024-02-15 10:20   ` Alexander Sverdlin
2024-02-15 11:26     ` Romain Naour
2024-02-15 18:50       ` Alexander Sverdlin
2024-02-15 22:32         ` Romain Naour
2024-02-15 22:36           ` Alexander Sverdlin
2024-02-16 20:06     ` Andreas Dannenberg via buildroot
2024-02-16 21:38       ` Romain Naour
2024-02-19 19:42         ` Andreas Dannenberg via buildroot
2024-02-19 22:27           ` Romain Naour
2024-02-15 10:13 ` [Buildroot] [PATCH 00/21] Add ti_j721e_sk_defconfig Alexander Sverdlin
2024-02-15 11:23   ` Romain Naour
2024-02-15 21:14     ` Alexander Sverdlin
2024-02-15 22:13       ` Romain Naour
2024-02-15 22:22         ` Alexander Sverdlin
2024-02-16 20:13     ` Andreas Dannenberg via buildroot [this message]
2024-02-16 21:17       ` Romain Naour
2024-02-16 20:19 ` Andreas Dannenberg via buildroot
2024-02-16 21:52   ` Romain Naour
2024-02-16 22:20     ` Andreas Dannenberg via buildroot
2024-02-17  3:13       ` Alexander Sverdlin
2024-02-19 19:59         ` Andreas Dannenberg via buildroot

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=20240216201301.ftcjsjgepmcvd3pm@dasso \
    --to=buildroot@buildroot.org \
    --cc=alexander.sverdlin@gmail.com \
    --cc=dannenberg@ti.com \
    --cc=romain.naour@smile.fr \
    /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