From: Luca Ceresoli via buildroot <buildroot@buildroot.org>
To: Neal Frager <neal.frager@amd.com>
Cc: ibai.erkiaga-elorza@amd.com, buildroot@buildroot.org,
brandon.maier@collins.com, ju.o@free.fr,
thomas.petazzoni@bootlin.com, romain.naour@smile.fr,
michal.simek@amd.com, romain.naour@gmail.com
Subject: Re: [Buildroot] [PATCH v1 1/1] boot/xilinx-embeddedsw: add family variant choice
Date: Wed, 9 Jul 2025 17:08:40 +0200 [thread overview]
Message-ID: <20250709170840.347d5738@booty> (raw)
In-Reply-To: <20250617205801.2440300-1-neal.frager@amd.com>
On Tue, 17 Jun 2025 21:58:01 +0100
Neal Frager <neal.frager@amd.com> wrote:
> This patch adds a family variant choice to xilinx-embeddedsw for two reasons.
>
> 1. It does not make sense to build a zynqmp_pmufw for a versal platform or
> versal_plm and versal_psmfw applications for a zynqmp platform. With this
> solution, users can only select applications which are targeted for their
> device family.
I think ZynqmMP is based on Cortex-A53 and Versal on Cortex-A72, so
could the various Kconfig symbols depend on either BR2_cortex_a53
or BR2_cortex_a72, without additional symbols?
> 2. Buildroot will soon be adding support for the versal_2ve_2vm second gen
> family. This family has a plm boot application that generates a plm.elf just
> like the current versal platform. If a user was to select both the versal_plm
> and the versal_2ve_2vm_plm, two different plm.elf files will be generated
> causing a conflict at the installation step and a run-time failure when the
> wrong plm.elf gets included in the boot.bin. By having a family variant,
> only one plm.elf can be built at a time depending on the choice of family
> variant being "versal" or "versal_2ve_2vm".
Is this new family based on A53 or A72? If it is, clearly the above
idea won't work for the new family, so in that case see my discussion
below.
> The issue can be seen by comparing the two Makefiles which both create a
> plm.elf.
>
> versal plm:
> https://github.com/Xilinx/embeddedsw/tree/master/lib/sw_apps/versal_plm/src/versal
>
> versal_2ve_2vm plm:
> https://github.com/Xilinx/embeddedsw/tree/master/lib/sw_apps/versal_plm/src/versal_2ve_2vm
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
> boot/xilinx-embeddedsw/Config.in | 15 +++++++++++++++
> configs/versal_vck190_defconfig | 1 +
> configs/versal_vek280_defconfig | 1 +
> configs/versal_vpk180_defconfig | 1 +
> 4 files changed, 18 insertions(+)
>
> diff --git a/boot/xilinx-embeddedsw/Config.in b/boot/xilinx-embeddedsw/Config.in
> index 0dd6433608..7af8d59929 100644
> --- a/boot/xilinx-embeddedsw/Config.in
> +++ b/boot/xilinx-embeddedsw/Config.in
> @@ -28,8 +28,21 @@ config BR2_TARGET_XILINX_EMBEDDEDSW_VERSION
> Release version of Xilinx/embeddedsw.
> Must be xilinx_v2023.1 or newer.
>
> +choice
> + bool "family variant"
> + default BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP
> +
> +config BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL
> + bool "versal"
> +
> +config BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP
> + bool "zynqmp"
> +
> +endchoice
I agree about the overall idea. I'm not sure the xilinx-embeddedsw
package is the ideal place, though. We already have
BR2_TARGET_UBOOT_ZYNQMP in the u-boot options, and similar
setting might be needed in the future for other packages. Users are in
charge of configuring all those consistently, in different sub-menus.
So I wonder whether it might make sense to add a family selection in a
global place, and then have both uboot and xilinx-embeddedsw follow it.
I'm not sure where that might be added, though. The "Target options"
menu looks like the obvious place, but currently it is used only for
core-specific options, not SoC-specific ones.
Another possible place is the "Bootloaders" menu. While less ambitious,
the need for family selection is limited to bootloader-related packages.
Other opinions?
Best regards,
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-07-09 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 20:58 [Buildroot] [PATCH v1 1/1] boot/xilinx-embeddedsw: add family variant choice Neal Frager via buildroot
2025-07-09 15:08 ` Luca Ceresoli via buildroot [this message]
2025-07-09 23:13 ` Frager, Neal via buildroot
2025-08-13 8:20 ` Luca Ceresoli via buildroot
2025-08-13 10:33 ` Thomas Petazzoni 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=20250709170840.347d5738@booty \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=ibai.erkiaga-elorza@amd.com \
--cc=ju.o@free.fr \
--cc=luca.ceresoli@bootlin.com \
--cc=michal.simek@amd.com \
--cc=neal.frager@amd.com \
--cc=romain.naour@gmail.com \
--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