From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Romain Naour <romain.naour@smile.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v3] configs/beagleboneai64_defconfig: new defconfig
Date: Thu, 9 May 2024 22:09:01 +0200 [thread overview]
Message-ID: <20240509220901.1ee254c0@windsurf> (raw)
In-Reply-To: <20240507122513.724138-1-romain.naour@smile.fr>
On Tue, 7 May 2024 14:25:13 +0200
Romain Naour <romain.naour@smile.fr> wrote:
> Adds support for BeagleBone AI-64 board by introducing the
> beagleboneai64_defconfig file and related support files.
>
> The BeagleBone AI-64 uses the TI J721E SoC, also known as DRA829, also
> known as TDA4VM.
>
> Retrieve BSP settings from meta-ti (may be useful for other TI boards):
>
> - This defconfig requires u-boot binman support added in u-boot since
> 2023.10.
> See FOSDEM 2024 talk by TI folks about Binman and how it simplify
> the overall boot-loader build flow [1].
>
> - Set BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD = "generic"
> meta-ti]$ git grep TFA_BOARD
> meta-ti-bsp/conf/machine/beagleplay.conf:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/am62axx.inc:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/am62pxx.inc:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/am62xx.inc:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/am64xx.inc:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/am65xx.inc:TFA_BOARD = "generic"
> meta-ti-bsp/conf/machine/include/j7200.inc:TFA_BOARD = "generic"
> meta-ti-bsp/conf/machine/include/j721e.inc:TFA_BOARD = "generic"
> meta-ti-bsp/conf/machine/include/j721s2.inc:TFA_BOARD = "generic"
> meta-ti-bsp/conf/machine/include/j722s.inc:TFA_BOARD = "lite"
> meta-ti-bsp/conf/machine/include/j784s4.inc:TFA_BOARD = "j784s4"
>
> - Set BR2_TARGET_UBOOT_NEEDS_ATF_BL31 to provide BL31 variable pointing
> to ATF bl31.bin to the U-Boot build process [2].
>
> - Set BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE to OP-TEE as BL32
> secure payload. meta-ti set "SPD=opteed" to build ATF [3].
>
> - Set BR2_TARGET_OPTEE_OS_PLATFORM to "k3-j721e".
> meta-ti uses the OPTEEMACHINE to set optee-os platform [4].
> meta-ti]$ git grep OPTEEMACHINE
> meta-ti-bsp/conf/machine/am437x-hs-evm.conf:OPTEEMACHINE = "ti-am43xx"
> meta-ti-bsp/conf/machine/am57xx-hs-evm.conf:OPTEEMACHINE = "ti-am57xx"
> meta-ti-bsp/conf/machine/beagleplay.conf:OPTEEMACHINE = "k3-am62x"
> meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf:OPTEEMACHINE = "ti-dra7xx"
> meta-ti-bsp/conf/machine/include/am62axx.inc:OPTEEMACHINE = "k3-am62x"
> meta-ti-bsp/conf/machine/include/am62pxx.inc:OPTEEMACHINE = "k3-am62x"
> meta-ti-bsp/conf/machine/include/am62xx.inc:OPTEEMACHINE = "k3-am62x"
> meta-ti-bsp/conf/machine/include/am64xx.inc:OPTEEMACHINE = "k3-am64x"
> meta-ti-bsp/conf/machine/include/am65xx.inc:OPTEEMACHINE = "k3-am65x"
> meta-ti-bsp/conf/machine/include/j7200.inc:OPTEEMACHINE = "k3-j721e"
> meta-ti-bsp/conf/machine/include/j721e.inc:OPTEEMACHINE = "k3-j721e"
> meta-ti-bsp/conf/machine/include/j721s2.inc:OPTEEMACHINE = "k3-j784s4"
> meta-ti-bsp/conf/machine/include/j722s.inc:OPTEEMACHINE = "k3-am62x"
> meta-ti-bsp/conf/machine/include/j784s4.inc:OPTEEMACHINE = "k3-j784s4"
>
> - Use j721e_beagleboneai64_a72 and j721e_beagleboneai64_r5 u-boot
> defconfigs introduced in u-boot v2024.04.
>
> - u-boot distroboot (bootflow) detect extlinux.conf file from the first
> SDcard partition, se we have to install the kernel and its dtb file.
> Use devicetreedir instead of devicetree in extlinux.conf file to
> avoid hardcoding the devicetree file name. TI boards are able to
> retrieve dtb file name from an EEPROM (see TI_I2C_BOARD_DETECT in
> uboot).
>
> - Provide a hash file for all custom package version
> (arm-trusted-firmware, linux, ti-k3-r5-loader, uboot) to enable
> BR2_DOWNLOAD_FORCE_CHECK_HASHES.
>
> [1] https://fosdem.org/2024/schedule/event/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/
> [2] https://git.yoctoproject.org/meta-ti/commit/?id=e74b9a1746d4d04757c87c1920a0f743e55ff096
> [3] https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc?h=09.02.00.004#n7
> [4] https://git.yoctoproject.org/meta-arm/tree/meta-arm/recipes-security/optee/optee-os.inc?h=4.0.3#n23
>
> More information about the board can be found at:
> https://www.beagleboard.org/boards/beaglebone-ai-64
>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
> Add "beagleboneai64" directory to board/beagleboard/ since we could
> move all other Beagleboard's boards (beagleboardx15, beaglebone,
> beagleboneai and beaglev) to the same subdirectory.
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2024-05-09 20:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 12:25 [Buildroot] [PATCH v3] configs/beagleboneai64_defconfig: new defconfig Romain Naour
2024-05-09 20:09 ` Thomas Petazzoni via buildroot [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=20240509220901.1ee254c0@windsurf \
--to=buildroot@buildroot.org \
--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