* [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
@ 2023-09-21 21:56 Brandon Maier via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
` (5 more replies)
0 siblings, 6 replies; 13+ messages in thread
From: Brandon Maier via buildroot @ 2023-09-21 21:56 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
The NXP arm-trusted-firmware forks use an older version of ATF that will
error with "LOAD segment with RWX permissions". Similar patches are
present in boot/arm-trusted-firmware/ for older ATF versions.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
...dd-support-for-new-binutils-versions.patch | 61 +++++++++++++++++++
configs/freescale_imx8mmevk_defconfig | 1 +
configs/freescale_imx8mnevk_defconfig | 1 +
configs/freescale_imx8mpevk_defconfig | 1 +
configs/freescale_imx8mqevk_defconfig | 1 +
configs/freescale_imx8qmmek_defconfig | 1 +
configs/freescale_imx8qxpmek_defconfig | 1 +
configs/ls1028ardb_defconfig | 3 +
8 files changed, 70 insertions(+)
create mode 100644 board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
diff --git a/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch b/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
new file mode 100644
index 0000000000..335c18553a
--- /dev/null
+++ b/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
@@ -0,0 +1,61 @@
+From 0f75b03c008eacb9818af3a56dc088e72a623d17 Mon Sep 17 00:00:00 2001
+From: Marco Felsch <m.felsch@pengutronix.de>
+Date: Wed, 9 Nov 2022 12:59:09 +0100
+Subject: [PATCH] feat(build): add support for new binutils versions
+
+Users of GNU ld (BPF) from binutils 2.39+ will observe multiple instaces
+of a new warning when linking the bl*.elf in the form:
+
+ ld.bfd: warning: stm32mp1_helper.o: missing .note.GNU-stack section implies executable stack
+ ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
+ ld.bfd: warning: bl2.elf has a LOAD segment with RWX permissions
+ ld.bfd: warning: bl32.elf has a LOAD segment with RWX permissions
+
+These new warnings are enbaled by default to secure elf binaries:
+ - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
+ - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0d38576a34ec64a1b4500c9277a8e9d0f07e6774
+
+Fix it in a similar way to what the Linux kernel does, see:
+https://lore.kernel.org/all/20220810222442.2296651-1-ndesaulniers@google.com/
+
+Following the reasoning there, we set "-z noexecstack" for all linkers
+(although LLVM's LLD defaults to it) and optional add
+--no-warn-rwx-segments since this a ld.bfd related.
+
+Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
+Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
+Change-Id: I9430f5fa5036ca88da46cd3b945754d62616b617
+Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
+Upstream: https://github.com/ARM-software/arm-trusted-firmware/commit/1f49db5f25cdd4e43825c9bcc0575070b80f628c
+---
+ Makefile | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 1ddb7b844..470956b19 100644
+--- a/Makefile
++++ b/Makefile
+@@ -416,6 +416,8 @@ endif
+
+ GCC_V_OUTPUT := $(shell $(CC) -v 2>&1)
+
++TF_LDFLAGS += -z noexecstack
++
+ # LD = armlink
+ ifneq ($(findstring armlink,$(notdir $(LD))),)
+ TF_LDFLAGS += --diag_error=warning --lto_level=O1
+@@ -442,7 +444,10 @@ TF_LDFLAGS += $(subst --,-Xlinker --,$(TF_LDFLAGS_$(ARCH)))
+
+ # LD = gcc-ld (ld) or llvm-ld (ld.lld) or other
+ else
+-TF_LDFLAGS += --fatal-warnings -O1
++# With ld.bfd version 2.39 and newer new warnings are added. Skip those since we
++# are not loaded by a elf loader.
++TF_LDFLAGS += $(call ld_option, --no-warn-rwx-segments)
++TF_LDFLAGS += -O1
+ TF_LDFLAGS += --gc-sections
+ # ld.lld doesn't recognize the errata flags,
+ # therefore don't add those in that case
+--
+2.30.2
+
diff --git a/configs/freescale_imx8mmevk_defconfig b/configs/freescale_imx8mmevk_defconfig
index dcb4b42540..ca5c308da6 100644
--- a/configs/freescale_imx8mmevk_defconfig
+++ b/configs/freescale_imx8mmevk_defconfig
@@ -1,6 +1,7 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV3=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mm-evk.dtb"
diff --git a/configs/freescale_imx8mnevk_defconfig b/configs/freescale_imx8mnevk_defconfig
index 0653978d91..ac73bea769 100644
--- a/configs/freescale_imx8mnevk_defconfig
+++ b/configs/freescale_imx8mnevk_defconfig
@@ -1,6 +1,7 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV3=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mn-ddr4-evk.dtb"
diff --git a/configs/freescale_imx8mpevk_defconfig b/configs/freescale_imx8mpevk_defconfig
index 5a72406b67..913c190d87 100644
--- a/configs/freescale_imx8mpevk_defconfig
+++ b/configs/freescale_imx8mpevk_defconfig
@@ -1,6 +1,7 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV3=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mp-evk.dtb"
diff --git a/configs/freescale_imx8mqevk_defconfig b/configs/freescale_imx8mqevk_defconfig
index e3f88dc44c..79375d7f88 100644
--- a/configs/freescale_imx8mqevk_defconfig
+++ b/configs/freescale_imx8mqevk_defconfig
@@ -1,6 +1,7 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV3=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mq-evk.dtb"
diff --git a/configs/freescale_imx8qmmek_defconfig b/configs/freescale_imx8qmmek_defconfig
index 75777646df..0fc3fe7b07 100644
--- a/configs/freescale_imx8qmmek_defconfig
+++ b/configs/freescale_imx8qmmek_defconfig
@@ -1,6 +1,7 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV4=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/fsl-imx8qm-mek.dtb"
BR2_LINUX_KERNEL=y
diff --git a/configs/freescale_imx8qxpmek_defconfig b/configs/freescale_imx8qxpmek_defconfig
index ce8f6b7c84..47a2104d5b 100644
--- a/configs/freescale_imx8qxpmek_defconfig
+++ b/configs/freescale_imx8qxpmek_defconfig
@@ -2,6 +2,7 @@ BR2_aarch64=y
BR2_cortex_a35=y
BR2_ARM_FPU_VFPV3=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttyLP0"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/fsl-imx8qxp-mek.dtb"
diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig
index a46b94511a..d92c543b44 100644
--- a/configs/ls1028ardb_defconfig
+++ b/configs/ls1028ardb_defconfig
@@ -2,6 +2,9 @@
BR2_aarch64=y
BR2_cortex_a72=y
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
+
# Toolchain
# Linux headers same as kernel, a 5.10 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
@ 2023-09-21 21:56 ` Brandon Maier via buildroot
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-13 6:03 ` Peter Korsgaard
2023-09-21 21:56 ` [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode Brandon Maier via buildroot
` (4 subsequent siblings)
5 siblings, 2 replies; 13+ messages in thread
From: Brandon Maier via buildroot @ 2023-09-21 21:56 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
The arm-trusted-firmware package for IMX boards fails due to a GCC bug.
See the attached patch description for detail.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
...Makefile-Suppress-array-bounds-error.patch | 51 +++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 board/freescale/common/patches/arm-trusted-firmware/0002-LF-7968-01-fix-Makefile-Suppress-array-bounds-error.patch
diff --git a/board/freescale/common/patches/arm-trusted-firmware/0002-LF-7968-01-fix-Makefile-Suppress-array-bounds-error.patch b/board/freescale/common/patches/arm-trusted-firmware/0002-LF-7968-01-fix-Makefile-Suppress-array-bounds-error.patch
new file mode 100644
index 0000000000..7a7a7bbc28
--- /dev/null
+++ b/board/freescale/common/patches/arm-trusted-firmware/0002-LF-7968-01-fix-Makefile-Suppress-array-bounds-error.patch
@@ -0,0 +1,51 @@
+From b2a94de52ae4a940a87d569815b19d3fa92dd32a Mon Sep 17 00:00:00 2001
+From: Tom Hochstein <tom.hochstein@nxp.com>
+Date: Mon, 16 May 2022 13:45:16 -0500
+Subject: [PATCH] LF-7968-01 fix(Makefile): Suppress array-bounds error
+
+The array-bounds error is triggered now in cases where it was silent
+before, causing errors like:
+
+```
+plat/imx/imx8m/hab.c: In function 'imx_hab_handler':
+plat/imx/imx8m/hab.c:64:57: error: array subscript 0 is outside array bounds of 'uint32_t[0]' {aka 'unsigned int[]'} [-Werror=array-bounds]
+ 64 | #define HAB_RVT_CHECK_TARGET_ARM64 ((unsigned long)*(uint32_t *)(HAB_RVT_BASE + 0x18))
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+```
+
+The error is a false-positive and is entered as a bug [1]. The problem
+is fixed partially in GCC 12 and fully in GCC 13 [2].
+
+The partial fix does not work here because the constant addresses used
+are less than the 4kB boundary chosen for the partial fix, so suppress
+the error until GCC is upgraded to 13.
+
+[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578
+[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578#c39
+
+Upstream-Status: Inappropriate [other]
+Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
+Signed-off-by: Jacky Bai <ping.bai@nxp.com>
+Reviewed-by: Ye Li <ye.li@nxp.com>
+Signed-off-by: Brandon Maier <brandon.maier@collins.com>
+Upstream: https://github.com/nxp-imx/imx-atf/commit/058bf0f104115037d03e277f079825ef3659c5b9
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index c87c3ae08..2d6b90f47 100644
+--- a/Makefile
++++ b/Makefile
+@@ -346,7 +346,7 @@ WARNINGS += -Wshift-overflow -Wshift-sign-overflow \
+ endif
+
+ ifneq (${E},0)
+-ERRORS := -Werror
++ERRORS := -Werror -Wno-error=array-bounds
+ endif
+
+ CPPFLAGS = ${DEFINES} ${INCLUDES} ${MBEDTLS_INC} -nostdinc \
+--
+2.41.0
+
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
@ 2023-09-21 21:56 ` Brandon Maier via buildroot
2023-09-30 15:58 ` Thomas Petazzoni via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig Brandon Maier via buildroot
` (3 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Brandon Maier via buildroot @ 2023-09-21 21:56 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
This package provides firmware needed for the LS1046A-FRWY Ethernet.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/qoriq-fm-ucode/Config.in | 21 +++++++++++++++++++++
package/qoriq-fm-ucode/qoriq-fm-ucode.hash | 3 +++
package/qoriq-fm-ucode/qoriq-fm-ucode.mk | 20 ++++++++++++++++++++
5 files changed, 46 insertions(+)
create mode 100644 package/qoriq-fm-ucode/Config.in
create mode 100644 package/qoriq-fm-ucode/qoriq-fm-ucode.hash
create mode 100644 package/qoriq-fm-ucode/qoriq-fm-ucode.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index e8b78a8d46..e1f0c1cf1b 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -513,6 +513,7 @@ F: package/iftop/
F: package/ncdu/
N: Brandon Maier <brandon.maier@collins.com>
+F: package/qoriq-fm-ucode/
F: package/vmtouch/
N: Brock Williams <brock@cottonwoodcomputer.com>
diff --git a/package/Config.in b/package/Config.in
index e8dbadadf3..41ead47fac 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -443,6 +443,7 @@ menu "Firmware"
source "package/murata-cyw-fw/Config.in"
source "package/odroidc2-firmware/Config.in"
source "package/qcom-db410c-firmware/Config.in"
+ source "package/qoriq-fm-ucode/Config.in"
source "package/rcw-smarc-sal28/Config.in"
source "package/rpi-firmware/Config.in"
source "package/sunxi-boards/Config.in"
diff --git a/package/qoriq-fm-ucode/Config.in b/package/qoriq-fm-ucode/Config.in
new file mode 100644
index 0000000000..224e7fde32
--- /dev/null
+++ b/package/qoriq-fm-ucode/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_QORIQ_FM_UCODE
+ bool "qoriq-fm-ucode"
+ help
+ These are the microcode families of the Frame Manager hardware
+ block in QorIQ products. Specific platforms require specific
+ binaries, and those also have to further match specific
+ software versions (Frame Manager Driver -- FMD).
+
+ https://github.com/nxp-qoriq/qoriq-fm-ucode
+
+if BR2_PACKAGE_QORIQ_FM_UCODE
+
+config BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM
+ string "Platform"
+ help
+ This option specifies which platform's microcode to use.
+
+ This string should match a file in qoriq-fm-ucode of the form
+ "fsl_fman_ucode_${PLATFORM}*.bin".
+
+endif
diff --git a/package/qoriq-fm-ucode/qoriq-fm-ucode.hash b/package/qoriq-fm-ucode/qoriq-fm-ucode.hash
new file mode 100644
index 0000000000..5c664356c0
--- /dev/null
+++ b/package/qoriq-fm-ucode/qoriq-fm-ucode.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 2e431dd726c4aa1db558931d80b318149abdf71fec6e39de9d5aa33399df1fb1 qoriq-fm-ucode-LSDK-21.08.tar.gz
+sha256 7a223031d76339df0e4e5a94d193a270fb9963d42b577aa42fe130a4657f3e17 NXP-Binary-EULA.txt
diff --git a/package/qoriq-fm-ucode/qoriq-fm-ucode.mk b/package/qoriq-fm-ucode/qoriq-fm-ucode.mk
new file mode 100644
index 0000000000..239ab0d3c3
--- /dev/null
+++ b/package/qoriq-fm-ucode/qoriq-fm-ucode.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# qoriq-fm-ucode
+#
+################################################################################
+
+QORIQ_FM_UCODE_VERSION = LSDK-21.08
+QORIQ_FM_UCODE_SITE = $(call github,nxp-qoriq,qoriq-fm-ucode,$(QORIQ_FM_UCODE_VERSION))
+QORIQ_FM_UCODE_LICENSE = NXP Binary EULA
+QORIQ_FM_UCODE_LICENSE_FILES = NXP-Binary-EULA.txt
+QORIQ_FM_UCODE_REDISTRIBUTE = NO
+QORIQ_FM_UCODE_INSTALL_IMAGES = YES
+QORIQ_FM_UCODE_INSTALL_TARGET = NO
+
+define QORIQ_FM_UCODE_INSTALL_IMAGES_CMDS
+ cp $(@D)/fsl_fman_ucode_$(BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM)*.bin \
+ $(BINARIES_DIR)
+endef
+
+$(eval $(generic-package))
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode Brandon Maier via buildroot
@ 2023-09-21 21:56 ` Brandon Maier via buildroot
2023-09-30 15:58 ` Thomas Petazzoni via buildroot
2023-09-30 14:23 ` [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Romain Naour
` (2 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Brandon Maier via buildroot @ 2023-09-21 21:56 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
This is a development platform for the NXP LS1046A SoC.
The config is heavily based on the ls1028ardb_defconfig.
see https://www.nxp.com/design/software/qoriq-developer-resources/ls1046a-freeway-board:FRWY-LS1046A
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
DEVELOPERS | 2 +
board/freescale/ls1046a-frwy/genimage.cfg | 29 ++++++
board/freescale/ls1046a-frwy/readme.txt | 90 +++++++++++++++++++
.../boot/extlinux/extlinux.conf | 4 +
configs/ls1046a-frwy_defconfig | 61 +++++++++++++
5 files changed, 186 insertions(+)
create mode 100644 board/freescale/ls1046a-frwy/genimage.cfg
create mode 100644 board/freescale/ls1046a-frwy/readme.txt
create mode 100644 board/freescale/ls1046a-frwy/rootfs_overlay/boot/extlinux/extlinux.conf
create mode 100644 configs/ls1046a-frwy_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index e1f0c1cf1b..fd07865fb1 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -513,6 +513,8 @@ F: package/iftop/
F: package/ncdu/
N: Brandon Maier <brandon.maier@collins.com>
+F: board/freescale/ls1046a-frwy/
+F: configs/ls1046a-frwy_defconfig
F: package/qoriq-fm-ucode/
F: package/vmtouch/
diff --git a/board/freescale/ls1046a-frwy/genimage.cfg b/board/freescale/ls1046a-frwy/genimage.cfg
new file mode 100644
index 0000000000..63cca042b2
--- /dev/null
+++ b/board/freescale/ls1046a-frwy/genimage.cfg
@@ -0,0 +1,29 @@
+image sdcard.img {
+ hdimage {
+ }
+
+ partition fsbl {
+ offset = 4K
+ in-partition-table = "no"
+ image = "bl2_sd.pbl"
+ }
+
+ partition ssbl {
+ offset = 1M
+ in-partition-table = "no"
+ image = "fip.bin"
+ }
+
+ partition fman {
+ offset = 9M
+ in-partition-table = "no"
+ image = "fsl_fman_ucode_ls1046_r1.0_106_4_18.bin"
+ }
+
+ partition rootfs {
+ offset = 16M
+ partition-type = 0x83
+ bootable = "true"
+ image = "rootfs.ext4"
+ }
+}
diff --git a/board/freescale/ls1046a-frwy/readme.txt b/board/freescale/ls1046a-frwy/readme.txt
new file mode 100644
index 0000000000..fbcfdb1b85
--- /dev/null
+++ b/board/freescale/ls1046a-frwy/readme.txt
@@ -0,0 +1,90 @@
+**************
+NXP LS1046A-FRWY
+**************
+
+This file documents the Buildroot support for the LS1046A Freeway Board.
+
+for more details about the board and the QorIQ Layerscape SoC, see the following pages:
+ - https://www.nxp.com/design/software/qoriq-developer-resources/ls1046a-freeway-board:FRWY-LS1046A
+ - https://www.nxp.com/FRWY-LS1046A
+ - https://www.nxp.com/docs/en/quick-reference-guide/FRWY-LS1046AGSG.pdf
+
+for the software NXP LSDK (Layerscape Software Development Kit), see
+ - https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf
+
+the components from NXP are:
+ - rcw, LSDK 21.08
+ - atf (fork), LSDK 21.08
+ - uboot (fork), LSDK 21.08
+ - qoriq-fm-ucode (blob), LSDK 21.08
+ - linux (fork), LSDK 21.08
+
+Build
+=====
+
+First, configure Buildroot for the LS1046A-FRWY board:
+
+ make ls1046a-frwy_defconfig
+
+Build all components:
+
+ make
+
+You will find in output/images/ the following files:
+ - bl2_sd.pbl
+ - fip.bin
+ - fsl_fman_ucode_ls1046_r1.0_106_4_18.bin
+ - fsl_fman_ucode_ls1046_r1.0_108_4_9.bin
+ - fsl-ls1046a-frwy.dtb
+ - fsl-ls1046a-frwy-sdk.dtb
+ - Image
+ - PBL.bin
+ - rootfs.ext2
+ - rootfs.ext4
+ - sdcard.img
+ - u-boot.bin
+
+Create a bootable SD card
+=========================
+
+To determine the device associated to the SD card have a look in the
+/proc/partitions file:
+
+ cat /proc/partitions
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a SD card. Launch the following
+command as root:
+
+ dd if=output/images/sdcard.img of=/dev/sdX
+
+*** WARNING! This will destroy all the card content. Use with care! ***
+
+For details about the medium image layout, see the definition in
+board/freescale/ls1046a-frwy/genimage.cfg.
+
+Boot the LS1046A-FRWY board
+=========================
+
+To boot your newly created system:
+- insert the SD card in the SD slot of the board;
+- Configure the switches SW1[1:9] = 0_0100_0000 (select SD Card boot option)
+- put a Micro-USB cable into UART1 Port and connect using a terminal emulator
+ at 115200 bps, 8n1. Or remove the jumper on J72, connect a USB to TTL cable
+ to J73, and connect using a terminal emualtor at 115200 bps, 8n1.
+- power on the board.
+
+The front panel Ethernet connectors are off at boot, to bring them up run the
+following commands.
+
+1G PORT1
+ ip link set eth1 up
+
+1G PORT2
+ ip link set eth2 up
+
+1G PORT3
+ ip link set eth0 up
+
+1G PORT4
+ ip link set eth3 up
diff --git a/board/freescale/ls1046a-frwy/rootfs_overlay/boot/extlinux/extlinux.conf b/board/freescale/ls1046a-frwy/rootfs_overlay/boot/extlinux/extlinux.conf
new file mode 100644
index 0000000000..536d62b6c5
--- /dev/null
+++ b/board/freescale/ls1046a-frwy/rootfs_overlay/boot/extlinux/extlinux.conf
@@ -0,0 +1,4 @@
+label ls1046afrwy-buildroot
+ kernel /boot/Image
+ devicetree /boot/fsl-ls1046a-frwy-sdk.dtb
+ append console=ttyS0,115200 root=/dev/mmcblk0p1 earlycon=uart8250,mmio,0x21c0500 rootwait
diff --git a/configs/ls1046a-frwy_defconfig b/configs/ls1046a-frwy_defconfig
new file mode 100644
index 0000000000..ce796ce3ef
--- /dev/null
+++ b/configs/ls1046a-frwy_defconfig
@@ -0,0 +1,61 @@
+# Architecture
+BR2_aarch64=y
+BR2_cortex_a72=y
+
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
+
+# Toolchain
+# Linux headers same as kernel, a 5.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="ls1046afrwy"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_OVERLAY="board/freescale/ls1046a-frwy/rootfs_overlay"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/freescale/ls1046a-frwy/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,nxp-qoriq,linux,LSDK-21.08)/linux-LSDK-21.08.tar.gz"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm64/configs/lsdk.config"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1046a-frwy freescale/fsl-ls1046a-frwy-sdk"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Bootloaders
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,nxp-qoriq,atf,LSDK-21.08)/atf-LSDK-21.08.tar.gz"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1046afrwy"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="BOOT_MODE=sd"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin bl2_sd.pbl"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,nxp-qoriq,u-boot,LSDK-21.08)/u-boot-LSDK-21.08.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="ls1046afrwy_tfa"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+
+# Firmware
+BR2_PACKAGE_QORIQ_FM_UCODE=y
+BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM="ls1046"
+
+# Host utilities
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_QORIQ_RCW=y
+BR2_PACKAGE_HOST_QORIQ_RCW_INTREE="ls1046afrwy/NN_NNQNNPNP_3040_0506/rcw_1600_sdboot.bin"
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
` (2 preceding siblings ...)
2023-09-21 21:56 ` [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig Brandon Maier via buildroot
@ 2023-09-30 14:23 ` Romain Naour
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-13 6:03 ` [Buildroot] " Peter Korsgaard
5 siblings, 0 replies; 13+ messages in thread
From: Romain Naour @ 2023-09-30 14:23 UTC (permalink / raw)
To: Brandon Maier, buildroot
Cc: Maeva Manuel, Gilles Talis, Fabio Estevam, Stephane Viau,
Thomas Petazzoni
Hello Brandon,
Le 21/09/2023 à 23:56, Brandon Maier via buildroot a écrit :
> The NXP arm-trusted-firmware forks use an older version of ATF that will
> error with "LOAD segment with RWX permissions". Similar patches are
> present in boot/arm-trusted-firmware/ for older ATF versions.
Maybe it would be great to update Freescale defconfigs since they are not at the
latest NXP BSP release. The last update is from 2021 already [1].
On another hand, your patch series is needed to fix the build for Buildroot
2023.08 since gcc 12 and binutils 2.39 are used by default.
I recently sent a patch to use the latest NXP defconfig for the
freescale_imx8mpevk_defconfig [2].
[1]
https://gitlab.com/buildroot.org/buildroot/-/commits/fee1e1b85a65e8be84f1f7f9ead32a7c5e345dbc
[2]
http://patchwork.ozlabs.org/project/buildroot/patch/20230927144237.66777-1-romain.naour@smile.fr/
Best regards,
Romain
>
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
> ---
> ...dd-support-for-new-binutils-versions.patch | 61 +++++++++++++++++++
> configs/freescale_imx8mmevk_defconfig | 1 +
> configs/freescale_imx8mnevk_defconfig | 1 +
> configs/freescale_imx8mpevk_defconfig | 1 +
> configs/freescale_imx8mqevk_defconfig | 1 +
> configs/freescale_imx8qmmek_defconfig | 1 +
> configs/freescale_imx8qxpmek_defconfig | 1 +
> configs/ls1028ardb_defconfig | 3 +
> 8 files changed, 70 insertions(+)
> create mode 100644 board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
>
> diff --git a/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch b/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
> new file mode 100644
> index 0000000000..335c18553a
> --- /dev/null
> +++ b/board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
> @@ -0,0 +1,61 @@
> +From 0f75b03c008eacb9818af3a56dc088e72a623d17 Mon Sep 17 00:00:00 2001
> +From: Marco Felsch <m.felsch@pengutronix.de>
> +Date: Wed, 9 Nov 2022 12:59:09 +0100
> +Subject: [PATCH] feat(build): add support for new binutils versions
> +
> +Users of GNU ld (BPF) from binutils 2.39+ will observe multiple instaces
> +of a new warning when linking the bl*.elf in the form:
> +
> + ld.bfd: warning: stm32mp1_helper.o: missing .note.GNU-stack section implies executable stack
> + ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
> + ld.bfd: warning: bl2.elf has a LOAD segment with RWX permissions
> + ld.bfd: warning: bl32.elf has a LOAD segment with RWX permissions
> +
> +These new warnings are enbaled by default to secure elf binaries:
> + - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
> + - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0d38576a34ec64a1b4500c9277a8e9d0f07e6774
> +
> +Fix it in a similar way to what the Linux kernel does, see:
> +https://lore.kernel.org/all/20220810222442.2296651-1-ndesaulniers@google.com/
> +
> +Following the reasoning there, we set "-z noexecstack" for all linkers
> +(although LLVM's LLD defaults to it) and optional add
> +--no-warn-rwx-segments since this a ld.bfd related.
> +
> +Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
> +Change-Id: I9430f5fa5036ca88da46cd3b945754d62616b617
> +Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> +Upstream: https://github.com/ARM-software/arm-trusted-firmware/commit/1f49db5f25cdd4e43825c9bcc0575070b80f628c
> +---
> + Makefile | 7 ++++++-
> + 1 file changed, 6 insertions(+), 1 deletion(-)
> +
> +diff --git a/Makefile b/Makefile
> +index 1ddb7b844..470956b19 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -416,6 +416,8 @@ endif
> +
> + GCC_V_OUTPUT := $(shell $(CC) -v 2>&1)
> +
> ++TF_LDFLAGS += -z noexecstack
> ++
> + # LD = armlink
> + ifneq ($(findstring armlink,$(notdir $(LD))),)
> + TF_LDFLAGS += --diag_error=warning --lto_level=O1
> +@@ -442,7 +444,10 @@ TF_LDFLAGS += $(subst --,-Xlinker --,$(TF_LDFLAGS_$(ARCH)))
> +
> + # LD = gcc-ld (ld) or llvm-ld (ld.lld) or other
> + else
> +-TF_LDFLAGS += --fatal-warnings -O1
> ++# With ld.bfd version 2.39 and newer new warnings are added. Skip those since we
> ++# are not loaded by a elf loader.
> ++TF_LDFLAGS += $(call ld_option, --no-warn-rwx-segments)
> ++TF_LDFLAGS += -O1
> + TF_LDFLAGS += --gc-sections
> + # ld.lld doesn't recognize the errata flags,
> + # therefore don't add those in that case
> +--
> +2.30.2
> +
> diff --git a/configs/freescale_imx8mmevk_defconfig b/configs/freescale_imx8mmevk_defconfig
> index dcb4b42540..ca5c308da6 100644
> --- a/configs/freescale_imx8mmevk_defconfig
> +++ b/configs/freescale_imx8mmevk_defconfig
> @@ -1,6 +1,7 @@
> BR2_aarch64=y
> BR2_ARM_FPU_VFPV3=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mm-evk.dtb"
> diff --git a/configs/freescale_imx8mnevk_defconfig b/configs/freescale_imx8mnevk_defconfig
> index 0653978d91..ac73bea769 100644
> --- a/configs/freescale_imx8mnevk_defconfig
> +++ b/configs/freescale_imx8mnevk_defconfig
> @@ -1,6 +1,7 @@
> BR2_aarch64=y
> BR2_ARM_FPU_VFPV3=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mn-ddr4-evk.dtb"
> diff --git a/configs/freescale_imx8mpevk_defconfig b/configs/freescale_imx8mpevk_defconfig
> index 5a72406b67..913c190d87 100644
> --- a/configs/freescale_imx8mpevk_defconfig
> +++ b/configs/freescale_imx8mpevk_defconfig
> @@ -1,6 +1,7 @@
> BR2_aarch64=y
> BR2_ARM_FPU_VFPV3=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mp-evk.dtb"
> diff --git a/configs/freescale_imx8mqevk_defconfig b/configs/freescale_imx8mqevk_defconfig
> index e3f88dc44c..79375d7f88 100644
> --- a/configs/freescale_imx8mqevk_defconfig
> +++ b/configs/freescale_imx8mqevk_defconfig
> @@ -1,6 +1,7 @@
> BR2_aarch64=y
> BR2_ARM_FPU_VFPV3=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mq-evk.dtb"
> diff --git a/configs/freescale_imx8qmmek_defconfig b/configs/freescale_imx8qmmek_defconfig
> index 75777646df..0fc3fe7b07 100644
> --- a/configs/freescale_imx8qmmek_defconfig
> +++ b/configs/freescale_imx8qmmek_defconfig
> @@ -1,6 +1,7 @@
> BR2_aarch64=y
> BR2_ARM_FPU_VFPV4=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/fsl-imx8qm-mek.dtb"
> BR2_LINUX_KERNEL=y
> diff --git a/configs/freescale_imx8qxpmek_defconfig b/configs/freescale_imx8qxpmek_defconfig
> index ce8f6b7c84..47a2104d5b 100644
> --- a/configs/freescale_imx8qxpmek_defconfig
> +++ b/configs/freescale_imx8qxpmek_defconfig
> @@ -2,6 +2,7 @@ BR2_aarch64=y
> BR2_cortex_a35=y
> BR2_ARM_FPU_VFPV3=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> BR2_TARGET_GENERIC_GETTY_PORT="ttyLP0"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/fsl-imx8qxp-mek.dtb"
> diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig
> index a46b94511a..d92c543b44 100644
> --- a/configs/ls1028ardb_defconfig
> +++ b/configs/ls1028ardb_defconfig
> @@ -2,6 +2,9 @@
> BR2_aarch64=y
> BR2_cortex_a72=y
>
> +# patches
> +BR2_GLOBAL_PATCH_DIR="board/freescale/common/patches"
> +
> # Toolchain
> # Linux headers same as kernel, a 5.10 series
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
` (3 preceding siblings ...)
2023-09-30 14:23 ` [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Romain Naour
@ 2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-02 16:21 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
2023-10-13 6:03 ` [Buildroot] " Peter Korsgaard
5 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-09-30 15:20 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Maeva Manuel, Gilles Talis, Fabio Estevam, Stephane Viau,
Brandon Maier
On Thu, 21 Sep 2023 21:56:30 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> The NXP arm-trusted-firmware forks use an older version of ATF that will
> error with "LOAD segment with RWX permissions". Similar patches are
> present in boot/arm-trusted-firmware/ for older ATF versions.
>
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
> ---
> ...dd-support-for-new-binutils-versions.patch | 61 +++++++++++++++++++
> configs/freescale_imx8mmevk_defconfig | 1 +
> configs/freescale_imx8mnevk_defconfig | 1 +
> configs/freescale_imx8mpevk_defconfig | 1 +
> configs/freescale_imx8mqevk_defconfig | 1 +
> configs/freescale_imx8qmmek_defconfig | 1 +
> configs/freescale_imx8qxpmek_defconfig | 1 +
> configs/ls1028ardb_defconfig | 3 +
> 8 files changed, 70 insertions(+)
> create mode 100644 board/freescale/common/patches/arm-trusted-firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
Applied to master after references to the Gitlab CI failures that are
fixed by this change. If you have the boards at hand, it would be even
nicer to upgrade to newer BSP component versions. Perhaps this is
something that Maeva, Stephane or Gilles can help with?
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
@ 2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-13 6:03 ` Peter Korsgaard
1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-09-30 15:20 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Maeva Manuel, Gilles Talis, Fabio Estevam, Stephane Viau,
Brandon Maier
On Thu, 21 Sep 2023 21:56:31 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> The arm-trusted-firmware package for IMX boards fails due to a GCC bug.
> See the attached patch description for detail.
>
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
> ---
> ...Makefile-Suppress-array-bounds-error.patch | 51 +++++++++++++++++++
> 1 file changed, 51 insertions(+)
> create mode 100644 board/freescale/common/patches/arm-trusted-firmware/0002-LF-7968-01-fix-Makefile-Suppress-array-bounds-error.patch
Applied to master after adding references to the Gitlab CI failures
fixed by this change. 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode
2023-09-21 21:56 ` [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode Brandon Maier via buildroot
@ 2023-09-30 15:58 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-09-30 15:58 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Maeva Manuel, Gilles Talis, Fabio Estevam, Stephane Viau,
Brandon Maier
On Thu, 21 Sep 2023 21:56:32 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> This package provides firmware needed for the LS1046A-FRWY Ethernet.
>
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Applied after doing a few changes. First, changed the commit title to
"package/qoriq-fm-ucode: new package".
> diff --git a/package/qoriq-fm-ucode/Config.in b/package/qoriq-fm-ucode/Config.in
> new file mode 100644
> index 0000000000..224e7fde32
> --- /dev/null
> +++ b/package/qoriq-fm-ucode/Config.in
> @@ -0,0 +1,21 @@
> +config BR2_PACKAGE_QORIQ_FM_UCODE
> + bool "qoriq-fm-ucode"
> + help
> + These are the microcode families of the Frame Manager hardware
> + block in QorIQ products. Specific platforms require specific
> + binaries, and those also have to further match specific
> + software versions (Frame Manager Driver -- FMD).
> +
> + https://github.com/nxp-qoriq/qoriq-fm-ucode
> +
> +if BR2_PACKAGE_QORIQ_FM_UCODE
> +
> +config BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM
> + string "Platform"
Added a:
default "ls1046"
just to make sure that our autobuilders that generate random
configurations will have a valid configuration by default.
> +QORIQ_FM_UCODE_VERSION = LSDK-21.08
> +QORIQ_FM_UCODE_SITE = $(call github,nxp-qoriq,qoriq-fm-ucode,$(QORIQ_FM_UCODE_VERSION))
> +QORIQ_FM_UCODE_LICENSE = NXP Binary EULA
> +QORIQ_FM_UCODE_LICENSE_FILES = NXP-Binary-EULA.txt
> +QORIQ_FM_UCODE_REDISTRIBUTE = NO
This was not correct: this package *is* redistributable.
> +QORIQ_FM_UCODE_INSTALL_IMAGES = YES
> +QORIQ_FM_UCODE_INSTALL_TARGET = NO
> +
> +define QORIQ_FM_UCODE_INSTALL_IMAGES_CMDS
> + cp $(@D)/fsl_fman_ucode_$(BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM)*.bin \
Modified a bit to qstrip the $(BR2_PACKAGE_QORIQ_FM_UCODE_PLATFORM)
variable.
As said above: applied with those changes. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig
2023-09-21 21:56 ` [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig Brandon Maier via buildroot
@ 2023-09-30 15:58 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-09-30 15:58 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Maeva Manuel, Gilles Talis, Fabio Estevam, Stephane Viau,
Brandon Maier
On Thu, 21 Sep 2023 21:56:33 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> This is a development platform for the NXP LS1046A SoC.
>
> The config is heavily based on the ls1028ardb_defconfig.
>
> see https://www.nxp.com/design/software/qoriq-developer-resources/ls1046a-freeway-board:FRWY-LS1046A
>
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
> ---
> DEVELOPERS | 2 +
> board/freescale/ls1046a-frwy/genimage.cfg | 29 ++++++
> board/freescale/ls1046a-frwy/readme.txt | 90 +++++++++++++++++++
> .../boot/extlinux/extlinux.conf | 4 +
> configs/ls1046a-frwy_defconfig | 61 +++++++++++++
> 5 files changed, 186 insertions(+)
> create mode 100644 board/freescale/ls1046a-frwy/genimage.cfg
> create mode 100644 board/freescale/ls1046a-frwy/readme.txt
> create mode 100644 board/freescale/ls1046a-frwy/rootfs_overlay/boot/extlinux/extlinux.conf
> create mode 100644 configs/ls1046a-frwy_defconfig
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [External] Re: [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
@ 2023-10-02 16:21 ` Maier, Brandon L Collins via buildroot
2023-10-04 21:58 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 13+ messages in thread
From: Maier, Brandon L Collins via buildroot @ 2023-10-02 16:21 UTC (permalink / raw)
To: Thomas Petazzoni, Brandon Maier via buildroot
Cc: Maeva Manuel, Gilles Talis, romain.naour@smile.fr, Fabio Estevam,
Stephane Viau
Hi Thomas,
> -----Original Message-----
> From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Sent: Saturday, September 30, 2023 10:20 AM
> To: Brandon Maier via buildroot <buildroot@buildroot.org>
> Cc: Maier, Brandon L Collins <Brandon.Maier@collins.com>; Fabio Estevam
> <festevam@gmail.com>; Gilles Talis <gilles.talis@gmail.com>; Stephane Viau
> <stephane.viau@oss.nxp.com>; Maeva Manuel
> <maeva.manuel@oss.nxp.com>
> Subject: [External] Re: [Buildroot] [PATCH 1/4] board/freescale: fix arm-
> trusted-firmware for binutils 2.39+
>
> On Thu, 21 Sep 2023 21:56:30 +0000
> Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
>
> > The NXP arm-trusted-firmware forks use an older version of ATF that will
> > error with "LOAD segment with RWX permissions". Similar patches are
> > present in boot/arm-trusted-firmware/ for older ATF versions.
> >
> > Signed-off-by: Brandon Maier <brandon.maier@collins.com>
> > ---
> > ...dd-support-for-new-binutils-versions.patch | 61 +++++++++++++++++++
> > configs/freescale_imx8mmevk_defconfig | 1 +
> > configs/freescale_imx8mnevk_defconfig | 1 +
> > configs/freescale_imx8mpevk_defconfig | 1 +
> > configs/freescale_imx8mqevk_defconfig | 1 +
> > configs/freescale_imx8qmmek_defconfig | 1 +
> > configs/freescale_imx8qxpmek_defconfig | 1 +
> > configs/ls1028ardb_defconfig | 3 +
> > 8 files changed, 70 insertions(+)
> > create mode 100644 board/freescale/common/patches/arm-trusted-
> firmware/0001-feat-build-add-support-for-new-binutils-versions.patch
>
> Applied to master after references to the Gitlab CI failures that are
> fixed by this change. If you have the boards at hand, it would be even
> nicer to upgrade to newer BSP component versions. Perhaps this is
> something that Maeva, Stephane or Gilles can help with?
Romain said he updated one of the i.MX boards as well. I would like to update the others, as I'm using latest lf-6.1.22-2.0.0 for our own boards. But I do not own any of those other boards to boot test, I could send out a patch to update the versions and verify they build at least.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://urldefense.com/v3/__https://bootlin.com__;!!MvWE!CEcPUERRV2wb
> 6IOiaXKEBuPqtpbxfJ7WlCyGhnSVJpmVsxQ-
> BplmLtE6chgxY5ptrX1qJdKVaeR_cTbbMBQdNQ0nkDOmn90$
Thanks,
Brandon
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [External] Re: [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
2023-10-02 16:21 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
@ 2023-10-04 21:58 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-10-04 21:58 UTC (permalink / raw)
To: Maier, Brandon L Collins
Cc: Fabio Estevam, Gilles Talis, Stephane Viau,
Brandon Maier via buildroot, romain.naour@smile.fr, Maeva Manuel
On Mon, 2 Oct 2023 16:21:45 +0000
"Maier, Brandon L Collins" <Brandon.Maier@collins.com> wrote:
> > Applied to master after references to the Gitlab CI failures that are
> > fixed by this change. If you have the boards at hand, it would be even
> > nicer to upgrade to newer BSP component versions. Perhaps this is
> > something that Maeva, Stephane or Gilles can help with?
>
> Romain said he updated one of the i.MX boards as well. I would like
> to update the others, as I'm using latest lf-6.1.22-2.0.0 for our own
> boards. But I do not own any of those other boards to boot test, I
> could send out a patch to update the versions and verify they build
> at least.
Several persons from NXP are in Cc of this e-mail, so hopefully they
can help with the testing on those platforms.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
` (4 preceding siblings ...)
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
@ 2023-10-13 6:03 ` Peter Korsgaard
5 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2023-10-13 6:03 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
>>>>> "Brandon" == Brandon Maier via buildroot <buildroot@buildroot.org> writes:
> The NXP arm-trusted-firmware forks use an older version of ATF that will
> error with "LOAD segment with RWX permissions". Similar patches are
> present in boot/arm-trusted-firmware/ for older ATF versions.
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Committed to 2023.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
@ 2023-10-13 6:03 ` Peter Korsgaard
1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2023-10-13 6:03 UTC (permalink / raw)
To: Brandon Maier via buildroot
Cc: Thomas Petazzoni, Fabio Estevam, Gilles Talis, Brandon Maier,
Stephane Viau, Maeva Manuel
>>>>> "Brandon" == Brandon Maier via buildroot <buildroot@buildroot.org> writes:
> The arm-trusted-firmware package for IMX boards fails due to a GCC bug.
> See the attached patch description for detail.
> Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Committed to 2023.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-10-13 6:04 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 21:56 [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Brandon Maier via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 2/4] board/freescale: fix imx arm-trusted-firmware for GCC12 Brandon Maier via buildroot
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-13 6:03 ` Peter Korsgaard
2023-09-21 21:56 ` [Buildroot] [PATCH 3/4] package/qoriq-fm-ucode: add package for QorIQ FMan microcode Brandon Maier via buildroot
2023-09-30 15:58 ` Thomas Petazzoni via buildroot
2023-09-21 21:56 ` [Buildroot] [PATCH 4/4] configs/ls1046a-frwy: new defconfig Brandon Maier via buildroot
2023-09-30 15:58 ` Thomas Petazzoni via buildroot
2023-09-30 14:23 ` [Buildroot] [PATCH 1/4] board/freescale: fix arm-trusted-firmware for binutils 2.39+ Romain Naour
2023-09-30 15:20 ` Thomas Petazzoni via buildroot
2023-10-02 16:21 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
2023-10-04 21:58 ` Thomas Petazzoni via buildroot
2023-10-13 6:03 ` [Buildroot] " Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox