Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli via buildroot <buildroot@buildroot.org>
To: "Frager, Neal" <neal.frager@amd.com>
Cc: "Maier,
	Brandon L                            Collins"
	<Brandon.Maier@collins.com>,
	"buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [External] Re: [PATCH 1/1] boot/uboot/uboot.mk: support binary pm_cfg_obj
Date: Thu, 29 Dec 2022 23:42:57 +0100	[thread overview]
Message-ID: <20221229234257.345ab5fc@booty> (raw)
In-Reply-To: <CH2PR12MB50049E8BC94D43962394656BF0E89@CH2PR12MB5004.namprd12.prod.outlook.com>

Hello,

On Thu, 22 Dec 2022 14:37:52 +0000
"Frager, Neal" <neal.frager@amd.com> wrote:

> Hi Brandon, Luca,
> 
> > Can you describe a use case where this would be useful? While I 
> > intuitively understand there _might_ be some, I cannot find any good 
> > example based on my experience.
> > 
> > Building the pm_cfg_obj from source code is very easily done by 
> > Buildroot, unlike building the PMUFW. Additionally one PMUFW binary 
> > can be used on multiple zynqmp hardware, while the cfg obj is very 
> > likely to change across different projects, and a somewhat readable 
> > text file is way more understandable than a binary blob.  
>  
> > One of our developers was having issues getting their pm_cfg_obj.c to compile with zynqmp_pm_cfg_obj_convert.py, so they decided to compile it manually instead. This patch set was the result when they asked why Buildroot wouldn't accept their bin file. However for our team this patch is now moot, as I ported your U-Boot fix for building Vivado 2021.x to their U-Boot and that fixed the issue ;)  
> 
> > I decided to send this patch anyway, as I already tested it and it seems like a reasonable thing to support anyway.  
> 
> As this patch is still pending, I thought I would change my neutral position on it.
> 
> At the moment, the defines and format of the pm_cfg_obj.c file could change from one Xilinx release to the next.  zynqmp should
> be mature enough that these changes are minor, but even a single new define being added to the pm_cfg_obj.c could potentially 
> break the zynqmp_pm_cfg_obj_convert.py.  Since users might use any version of the Xilinx tools with buildroot, there always could
> be an issue as Brandon has experienced.
> 
> For this reason, I believe it is worth having the support for users to supply a pre-compiled pm_cfg_obj.bin, and I would like to see
> Brandon's patch included in buildroot.

As you wrote, "zynqmp should be mature enough that these changes are
minor", so I think we should optimistically predict that no breaking
changes are going to happen. We should reconsider this only in case
such issues will start happening in the future creating a major
annoyance.

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2022-12-29 22:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 19:40 [Buildroot] [PATCH 1/1] boot/uboot/uboot.mk: support binary pm_cfg_obj Brandon Maier via buildroot
2022-12-10  9:55 ` Frager, Neal via buildroot
2022-12-12  9:35   ` Luca Ceresoli via buildroot
2022-12-12  9:43     ` Frager, Neal via buildroot
2022-12-12  9:31 ` Luca Ceresoli via buildroot
2022-12-12 12:52   ` Frager, Neal via buildroot
2022-12-13  8:23     ` Luca Ceresoli via buildroot
2022-12-12 15:41   ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
2022-12-13  8:21     ` Luca Ceresoli via buildroot
2022-12-22 14:37     ` Frager, Neal via buildroot
2022-12-29 22:42       ` Luca Ceresoli 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=20221229234257.345ab5fc@booty \
    --to=buildroot@buildroot.org \
    --cc=Brandon.Maier@collins.com \
    --cc=luca.ceresoli@bootlin.com \
    --cc=neal.frager@amd.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