* [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support
@ 2022-10-13 6:49 Neal Frager via buildroot
2022-10-13 13:18 ` Luca Ceresoli via buildroot
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Neal Frager via buildroot @ 2022-10-13 6:49 UTC (permalink / raw)
To: buildroot
Cc: luca.ceresoli, Neal Frager, kris.chaplin, wesley, giulio.benetti,
michal.simek, yann.morin.1998
This patch adds support for zynqmp pmufw.elf files.
It will allow buildroot to use pmufw.elf binaries directly
from the Xilinx git repository built by petalinux in
addition to still supporting pmufw.bin binaries built
by the zynqmp-pmufw-builder.
https://github.com/Xilinx/ubuntu-firmware/tree/v2022.1_22.04_1/xlnx-firmware
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
V1->V2:
- corrected objcopy instruction for converting elf to bin
V2->V3:
- removed unnecessary spaces
- simplified if statement to check for a pmufw.elf file
V3->V4:
- added spaces around = sign of UBOOT_ZYNQMP_PMUFW_BASENAME definition
---
boot/uboot/uboot.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index a9f9b1bf16..0439ec5e4b 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -391,9 +391,12 @@ UBOOT_ZYNQMP_PMUFW_PATH = $(UBOOT_DL_DIR)/$(notdir $(UBOOT_ZYNQMP_PMUFW))
else ifneq ($(UBOOT_ZYNQMP_PMUFW),)
UBOOT_ZYNQMP_PMUFW_PATH = $(shell readlink -f $(UBOOT_ZYNQMP_PMUFW))
endif
+UBOOT_ZYNQMP_PMUFW_BASENAME = $(basename $(UBOOT_ZYNQMP_PMUFW_PATH))
define UBOOT_ZYNQMP_KCONFIG_PMUFW
- $(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_PATH)")
+ $(if $(filter %.elf,$(UBOOT_ZYNQMP_PMUFW_PATH)),
+ objcopy -O binary -I elf32-little $(UBOOT_ZYNQMP_PMUFW_BASENAME).elf $(UBOOT_ZYNQMP_PMUFW_BASENAME).bin)
+ $(call KCONFIG_SET_OPT,CONFIG_PMUFW_INIT_FILE,"$(UBOOT_ZYNQMP_PMUFW_BASENAME).bin")
endef
UBOOT_ZYNQMP_PM_CFG = $(call qstrip,$(BR2_TARGET_UBOOT_ZYNQMP_PM_CFG))
--
2.17.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support
2022-10-13 6:49 [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support Neal Frager via buildroot
@ 2022-10-13 13:18 ` Luca Ceresoli via buildroot
2022-10-13 13:54 ` Frager, Neal via buildroot
2022-10-15 16:41 ` Peter Korsgaard
2022-11-02 6:53 ` Peter Korsgaard
2 siblings, 1 reply; 5+ messages in thread
From: Luca Ceresoli via buildroot @ 2022-10-13 13:18 UTC (permalink / raw)
To: Neal Frager
Cc: buildroot, kris.chaplin, wesley, giulio.benetti, michal.simek,
yann.morin.1998
Hello Neal,
On Thu, 13 Oct 2022 00:49:31 -0600
Neal Frager <neal.frager@amd.com> wrote:
> This patch adds support for zynqmp pmufw.elf files.
> It will allow buildroot to use pmufw.elf binaries directly
> from the Xilinx git repository built by petalinux in
> addition to still supporting pmufw.bin binaries built
> by the zynqmp-pmufw-builder.
>
> https://github.com/Xilinx/ubuntu-firmware/tree/v2022.1_22.04_1/xlnx-firmware
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Thank you very much for working on a solution to this unpleasant
situation. I still would like to address it, but spare time is not
easily available... however I'm always happy to received patches for
zynqmp-pmufw-builder! ;-)
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support
2022-10-13 13:18 ` Luca Ceresoli via buildroot
@ 2022-10-13 13:54 ` Frager, Neal via buildroot
0 siblings, 0 replies; 5+ messages in thread
From: Frager, Neal via buildroot @ 2022-10-13 13:54 UTC (permalink / raw)
To: Luca Ceresoli
Cc: buildroot@buildroot.org, Chaplin, Kris, wesley@sonifex.co.uk,
giulio.benetti@benettiengineering.com, Simek, Michal,
yann.morin.1998@free.fr
Hello Luca,
> This patch adds support for zynqmp pmufw.elf files.
> It will allow buildroot to use pmufw.elf binaries directly from the
> Xilinx git repository built by petalinux in addition to still
> supporting pmufw.bin binaries built by the zynqmp-pmufw-builder.
>
> https://github.com/Xilinx/ubuntu-firmware/tree/v2022.1_22.04_1/xlnx-fi
> rmware
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> Thank you very much for working on a solution to this unpleasant situation. I still would like to address it, but spare time is not easily available... however I'm always happy to received patches for zynqmp-pmufw-builder! ;-)
Thank you for your understanding. As you can see with this patch, pmufw.bin files are still accepted. The moment zynqmp-pmufw-builder is fixed, developers can use it with buildroot again.
I understand the lack of spare time. If I ever get some, I will take a closer look at how to patch the zynqmp-pmufw-builder microblaze compiler.
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support
2022-10-13 6:49 [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support Neal Frager via buildroot
2022-10-13 13:18 ` Luca Ceresoli via buildroot
@ 2022-10-15 16:41 ` Peter Korsgaard
2022-11-02 6:53 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2022-10-15 16:41 UTC (permalink / raw)
To: Neal Frager
Cc: luca.ceresoli, buildroot, kris.chaplin, wesley, giulio.benetti,
michal.simek, yann.morin.1998
>>>>> "Neal" == Neal Frager <neal.frager@amd.com> writes:
> This patch adds support for zynqmp pmufw.elf files.
> It will allow buildroot to use pmufw.elf binaries directly
> from the Xilinx git repository built by petalinux in
> addition to still supporting pmufw.bin binaries built
> by the zynqmp-pmufw-builder.
> https://github.com/Xilinx/ubuntu-firmware/tree/v2022.1_22.04_1/xlnx-firmware
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
V1-> V2:
> - corrected objcopy instruction for converting elf to bin
V2-> V3:
> - removed unnecessary spaces
> - simplified if statement to check for a pmufw.elf file
V3-> V4:
> - added spaces around = sign of UBOOT_ZYNQMP_PMUFW_BASENAME definition
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support
2022-10-13 6:49 [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support Neal Frager via buildroot
2022-10-13 13:18 ` Luca Ceresoli via buildroot
2022-10-15 16:41 ` Peter Korsgaard
@ 2022-11-02 6:53 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2022-11-02 6:53 UTC (permalink / raw)
To: Neal Frager
Cc: luca.ceresoli, buildroot, kris.chaplin, wesley, giulio.benetti,
michal.simek, yann.morin.1998
>>>>> "Neal" == Neal Frager <neal.frager@amd.com> writes:
> This patch adds support for zynqmp pmufw.elf files.
> It will allow buildroot to use pmufw.elf binaries directly
> from the Xilinx git repository built by petalinux in
> addition to still supporting pmufw.bin binaries built
> by the zynqmp-pmufw-builder.
> https://github.com/Xilinx/ubuntu-firmware/tree/v2022.1_22.04_1/xlnx-firmware
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
> V1-> V2:
> - corrected objcopy instruction for converting elf to bin
> V2-> V3:
> - removed unnecessary spaces
> - simplified if statement to check for a pmufw.elf file
> V3-> V4:
> - added spaces around = sign of UBOOT_ZYNQMP_PMUFW_BASENAME definition
Committed to 2022.08.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-02 6:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 6:49 [Buildroot] [PATCH v4 1/1] boot/uboot/uboot.mk: add pmufw.elf support Neal Frager via buildroot
2022-10-13 13:18 ` Luca Ceresoli via buildroot
2022-10-13 13:54 ` Frager, Neal via buildroot
2022-10-15 16:41 ` Peter Korsgaard
2022-11-02 6:53 ` Peter Korsgaard
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.