* [Buildroot] [PATCH v2 0/3] new board LS1028ARDB
@ 2022-08-03 7:43 Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Francois Perrad @ 2022-08-03 7:43 UTC (permalink / raw)
To: buildroot
This serie introduces a new board.
The two first commits tweak some existing modules,
and the third commit introduces the new board.
v1 --> v2
- add missing udev rules
- improved commit messages
- tweak readme.txt
- of=/dev/sdX
- minor cleanup in defconfig
- BR2_TOOLCHAIN_BUILDROOT_GLIBC becomes BR2_TOOLCHAIN_BUILDROOT_WCHAR
- BR2_PACKAGE_BUSYBOX_SHOW_OTHERS removed
Francois Perrad (3):
boot/arm-trusted-firmware: allow to generate BL2 from RCW
package/qoriq-cadence-dp-firmware: add install in target
board/freescale/ls1028ardb: new board
DEVELOPERS | 2 +
board/freescale/ls1028ardb/genimage.cfg | 23 +++++++
board/freescale/ls1028ardb/readme.txt | 60 +++++++++++++++++++
.../boot/extlinux/extlinux.conf | 4 ++
.../rules.d/73-fsl-enetc-networking.rules | 16 +++++
boot/arm-trusted-firmware/Config.in | 6 ++
.../arm-trusted-firmware.mk | 6 ++
configs/ls1028ardb_defconfig | 60 +++++++++++++++++++
.../qoriq-cadence-dp-firmware.mk | 6 ++
9 files changed, 183 insertions(+)
create mode 100644 board/freescale/ls1028ardb/genimage.cfg
create mode 100644 board/freescale/ls1028ardb/readme.txt
create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
create mode 100644 configs/ls1028ardb_defconfig
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW
2022-08-03 7:43 [Buildroot] [PATCH v2 0/3] new board LS1028ARDB Francois Perrad
@ 2022-08-03 7:43 ` Francois Perrad
2022-08-03 15:46 ` Giulio Benetti
2022-08-03 15:47 ` Giulio Benetti
2022-08-03 7:43 ` [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board Francois Perrad
2 siblings, 2 replies; 12+ messages in thread
From: Francois Perrad @ 2022-08-03 7:43 UTC (permalink / raw)
To: buildroot
This patch adds option BR2_TARGETARM_TRUSTED_FIRMWARE_RCW that allows
TF-A to encapsulate a pre-loader RCW (Reset Configuration Word) file
into BL2.
Upcoming NXP QorIQ family board needs this option.
---
boot/arm-trusted-firmware/Config.in | 6 ++++++
boot/arm-trusted-firmware/arm-trusted-firmware.mk | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/boot/arm-trusted-firmware/Config.in b/boot/arm-trusted-firmware/Config.in
index b1fc03e10..0f91953bf 100644
--- a/boot/arm-trusted-firmware/Config.in
+++ b/boot/arm-trusted-firmware/Config.in
@@ -85,6 +85,12 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
platforms were ATF encapsulates the second stage bootloader
(such as U-Boot).
+config BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW
+ bool "Include RCW"
+ select BR2_PACKAGE_HOST_QORIQ_RCW
+ help
+ Include the RCW in BL2.
+
config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
bool "Build BL31 image"
help
diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
index 35a95a7ec..eb9b656fe 100644
--- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
+++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
@@ -133,6 +133,12 @@ define ARM_TRUSTED_FIRMWARE_BUILD_FIPTOOL
endef
endif
+ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW),y)
+ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-qoriq-rcw
+ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += pbl
+ARM_TRUSTED_FIRMWARE_MAKE_OPTS += RCW=$(BINARIES_DIR)/PBL.bin
+endif
+
ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31),y)
ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += bl31
endif
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 7:43 [Buildroot] [PATCH v2 0/3] new board LS1028ARDB Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
@ 2022-08-03 7:43 ` Francois Perrad
2022-08-03 15:56 ` Giulio Benetti
2022-08-03 16:32 ` Thomas Petazzoni via buildroot
2022-08-03 7:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board Francois Perrad
2 siblings, 2 replies; 12+ messages in thread
From: Francois Perrad @ 2022-08-03 7:43 UTC (permalink / raw)
To: buildroot
This patch adds the firmware to $(TARGET_DIR)/boot other than
to $(BINARIES) folder. This is needed in the case
BR2_LINUX_KERNEL_INSTALL_TARGET is not set
---
.../qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk b/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
index 23643d24e..a8172cb1d 100644
--- a/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
+++ b/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
@@ -10,8 +10,10 @@ QORIQ_CADENCE_DP_FIRMWARE_SOURCE = firmware-cadence-$(QORIQ_CADENCE_DP_FIRMWARE_
QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP-Binary-EULA
QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING
QORIQ_CADENCE_DP_FIRMWARE_REDISTRIBUTE = NO
+ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),)
QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
+endif
# Helper for self-extracting binaries distributed by NXP.
#
@@ -42,6 +44,10 @@ define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS
$(call QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_HELPER,$(QORIQ_CADENCE_DP_FIRMWARE_DL_DIR)/$(QORIQ_CADENCE_DP_FIRMWARE_SOURCE))
endef
+define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(TARGET_DIR)/boot/ls1028a-dp-fw.bin
+endef
+
define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES_CMDS
$(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(BINARIES_DIR)/ls1028a-dp-fw.bin
endef
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board
2022-08-03 7:43 [Buildroot] [PATCH v2 0/3] new board LS1028ARDB Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
@ 2022-08-03 7:43 ` Francois Perrad
2022-08-03 16:11 ` Giulio Benetti
2 siblings, 1 reply; 12+ messages in thread
From: Francois Perrad @ 2022-08-03 7:43 UTC (permalink / raw)
To: buildroot
This is the reference design board for the NXP LS1028a SoC.
see https://www.nxp.com/design/qoriq-developer-resources/layerscape-ls1028a-reference-design-board:LS1028ARDB
---
DEVELOPERS | 2 +
board/freescale/ls1028ardb/genimage.cfg | 23 +++++++
board/freescale/ls1028ardb/readme.txt | 60 +++++++++++++++++++
.../boot/extlinux/extlinux.conf | 4 ++
.../rules.d/73-fsl-enetc-networking.rules | 16 +++++
configs/ls1028ardb_defconfig | 60 +++++++++++++++++++
6 files changed, 165 insertions(+)
create mode 100644 board/freescale/ls1028ardb/genimage.cfg
create mode 100644 board/freescale/ls1028ardb/readme.txt
create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
create mode 100644 configs/ls1028ardb_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index 780ec2041..7bca42074 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -980,9 +980,11 @@ N: Francisco Gonzalez <gzmorell@gmail.com>
F: package/ser2net/
N: Francois Perrad <francois.perrad@gadz.org>
+F: board/freescale/ls1028ardb/
F: board/olimex/a20_olinuxino
F: board/olimex/imx233_olinuxino/
F: board/olimex/stmp1_olinuxino/
+F: configs/ls1028ardb_defconfig
F: configs/olimex_a20_olinuxino_*
F: configs/olimex_imx233_olinuxino_defconfig
F: configs/olimex_stmp157_olinuxino_lime_defconfig
diff --git a/board/freescale/ls1028ardb/genimage.cfg b/board/freescale/ls1028ardb/genimage.cfg
new file mode 100644
index 000000000..3efef0bff
--- /dev/null
+++ b/board/freescale/ls1028ardb/genimage.cfg
@@ -0,0 +1,23 @@
+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 rootfs {
+ offset = 8M
+ partition-type = 0x83
+ bootable = "true"
+ image = "rootfs.ext4"
+ }
+}
diff --git a/board/freescale/ls1028ardb/readme.txt b/board/freescale/ls1028ardb/readme.txt
new file mode 100644
index 000000000..93396a419
--- /dev/null
+++ b/board/freescale/ls1028ardb/readme.txt
@@ -0,0 +1,60 @@
+**************
+NXP LS1028ARDB
+**************
+
+This file documents the Buildroot support for the LS1028A Reference Design Board.
+
+for more details about the board and the QorIQ Layerscape SoC, see the following pages:
+ - https://www.nxp.com/design/qoriq-developer-resources/layerscape-ls1028a-reference-design-board:LS1028ARDB
+ - https://www.nxp.com/LS1028A
+
+Build
+=====
+
+First, configure Buildroot for the LS1028ARDB board:
+
+ make ls1028ardb_defconfig
+
+Build all components:
+
+ make
+
+You will find in output/images/ the following files:
+ - bl2_sd.pbl
+ - fip.bin
+ - fsl-ls1028a-rdb.dtb
+ - Image
+ - PBL.bin
+ - rootfs.ext2
+ - rootfs.ext4 -> rootfs.ext2
+ - 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/ls1028ardb/genimage.cfg.
+
+Boot the LS1028ARDB board
+=========================
+
+To boot your newly created system:
+- insert the SD card in the SD slot of the board;
+- Configure the switches SW2[1:4] = 1000 (select SD Card boot option)
+- put a DB9F cable into the UART1 Port and connect using a terminal
+ emulator at 115200 bps, 8n1;
+- power on the board.
diff --git a/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
new file mode 100644
index 000000000..c08ddde10
--- /dev/null
+++ b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
@@ -0,0 +1,4 @@
+label ls1028ardb-buildroot
+ kernel /boot/Image
+ devicetree /boot/fsl-ls1028a-rdb.dtb
+ append root=/dev/mmcblk0p1 rootwait
diff --git a/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules b/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
new file mode 100644
index 000000000..19f41634b
--- /dev/null
+++ b/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
@@ -0,0 +1,16 @@
+# ENETC rules
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", NAME:="eno0"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME:="eno1"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME:="eno2"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME:="eno3"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1"
+# LS1028 switch rules
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4"
+ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig
new file mode 100644
index 000000000..cc325485c
--- /dev/null
+++ b/configs/ls1028ardb_defconfig
@@ -0,0 +1,60 @@
+# Architecture
+BR2_aarch64=y
+BR2_cortex_a72=y
+
+# Toolchain
+# Linux headers same as kernel, a 5.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+# wchar required for eudev
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="ls1028a"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_OVERLAY="board/freescale/ls1028ardb/rootfs_overlay"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/freescale/ls1028ardb/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/linux"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-21.08"
+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-ls1028a-rdb"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Target package
+BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=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_GIT=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/atf"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK-21.08"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb"
+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_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-21.08"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="ls1028ardb_tfa"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+
+# Host utilities
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_QORIQ_RCW_INTREE="ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin"
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
@ 2022-08-03 15:46 ` Giulio Benetti
2022-08-03 15:47 ` Giulio Benetti
1 sibling, 0 replies; 12+ messages in thread
From: Giulio Benetti @ 2022-08-03 15:46 UTC (permalink / raw)
To: Francois Perrad, buildroot
Hi Francois,
On 03/08/22 09:43, Francois Perrad wrote:
> This patch adds option BR2_TARGETARM_TRUSTED_FIRMWARE_RCW that allows
> TF-A to encapsulate a pre-loader RCW (Reset Configuration Word) file
> into BL2.
>
> Upcoming NXP QorIQ family board needs this option.
You've forgotten your SoB and my Reviewed-by here
Best regards
--
Giulio Benetti
Benetti Engineering sas
> ---
> boot/arm-trusted-firmware/Config.in | 6 ++++++
> boot/arm-trusted-firmware/arm-trusted-firmware.mk | 6 ++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/boot/arm-trusted-firmware/Config.in b/boot/arm-trusted-firmware/Config.in
> index b1fc03e10..0f91953bf 100644
> --- a/boot/arm-trusted-firmware/Config.in
> +++ b/boot/arm-trusted-firmware/Config.in
> @@ -85,6 +85,12 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
> platforms were ATF encapsulates the second stage bootloader
> (such as U-Boot).
>
> +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW
> + bool "Include RCW"
> + select BR2_PACKAGE_HOST_QORIQ_RCW
> + help
> + Include the RCW in BL2.
> +
> config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
> bool "Build BL31 image"
> help
> diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> index 35a95a7ec..eb9b656fe 100644
> --- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> +++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> @@ -133,6 +133,12 @@ define ARM_TRUSTED_FIRMWARE_BUILD_FIPTOOL
> endef
> endif
>
> +ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW),y)
> +ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-qoriq-rcw
> +ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += pbl
> +ARM_TRUSTED_FIRMWARE_MAKE_OPTS += RCW=$(BINARIES_DIR)/PBL.bin
> +endif
> +
> ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31),y)
> ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += bl31
> endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
2022-08-03 15:46 ` Giulio Benetti
@ 2022-08-03 15:47 ` Giulio Benetti
1 sibling, 0 replies; 12+ messages in thread
From: Giulio Benetti @ 2022-08-03 15:47 UTC (permalink / raw)
To: Francois Perrad, buildroot
Hi Francois,
On 03/08/22 09:43, Francois Perrad wrote:
> This patch adds option BR2_TARGETARM_TRUSTED_FIRMWARE_RCW that allows
> TF-A to encapsulate a pre-loader RCW (Reset Configuration Word) file
> into BL2.
>
> Upcoming NXP QorIQ family board needs this option.
You've forgotten your SoB and my Reviewed-by here
Best regards
--
Giulio Benetti
Benetti Engineering sas
> ---
> boot/arm-trusted-firmware/Config.in | 6 ++++++
> boot/arm-trusted-firmware/arm-trusted-firmware.mk | 6 ++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/boot/arm-trusted-firmware/Config.in b/boot/arm-trusted-firmware/Config.in
> index b1fc03e10..0f91953bf 100644
> --- a/boot/arm-trusted-firmware/Config.in
> +++ b/boot/arm-trusted-firmware/Config.in
> @@ -85,6 +85,12 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP
> platforms were ATF encapsulates the second stage bootloader
> (such as U-Boot).
>
> +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW
> + bool "Include RCW"
> + select BR2_PACKAGE_HOST_QORIQ_RCW
> + help
> + Include the RCW in BL2.
> +
> config BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
> bool "Build BL31 image"
> help
> diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> index 35a95a7ec..eb9b656fe 100644
> --- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> +++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
> @@ -133,6 +133,12 @@ define ARM_TRUSTED_FIRMWARE_BUILD_FIPTOOL
> endef
> endif
>
> +ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_RCW),y)
> +ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-qoriq-rcw
> +ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += pbl
> +ARM_TRUSTED_FIRMWARE_MAKE_OPTS += RCW=$(BINARIES_DIR)/PBL.bin
> +endif
> +
> ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31),y)
> ARM_TRUSTED_FIRMWARE_MAKE_TARGETS += bl31
> endif
--
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 7:43 ` [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
@ 2022-08-03 15:56 ` Giulio Benetti
2022-08-03 16:32 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 12+ messages in thread
From: Giulio Benetti @ 2022-08-03 15:56 UTC (permalink / raw)
To: Francois Perrad, buildroot
Hi Francois,
On 03/08/22 09:43, Francois Perrad wrote:
> This patch adds the firmware to $(TARGET_DIR)/boot other than
> to $(BINARIES) folder. This is needed in the case
> BR2_LINUX_KERNEL_INSTALL_TARGET is not set
You've forgotten your SoB and my Reviewed-by here
Best regards
--
Giulio Benetti
Benetti Engineering sas
> ---
> .../qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk b/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
> index 23643d24e..a8172cb1d 100644
> --- a/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
> +++ b/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
> @@ -10,8 +10,10 @@ QORIQ_CADENCE_DP_FIRMWARE_SOURCE = firmware-cadence-$(QORIQ_CADENCE_DP_FIRMWARE_
> QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP-Binary-EULA
> QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING
> QORIQ_CADENCE_DP_FIRMWARE_REDISTRIBUTE = NO
> +ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),)
> QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
> QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
> +endif
>
> # Helper for self-extracting binaries distributed by NXP.
> #
> @@ -42,6 +44,10 @@ define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS
> $(call QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_HELPER,$(QORIQ_CADENCE_DP_FIRMWARE_DL_DIR)/$(QORIQ_CADENCE_DP_FIRMWARE_SOURCE))
> endef
>
> +define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET_CMDS
> + $(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(TARGET_DIR)/boot/ls1028a-dp-fw.bin
> +endef
> +
> define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES_CMDS
> $(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(BINARIES_DIR)/ls1028a-dp-fw.bin
> endef
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board
2022-08-03 7:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board Francois Perrad
@ 2022-08-03 16:11 ` Giulio Benetti
0 siblings, 0 replies; 12+ messages in thread
From: Giulio Benetti @ 2022-08-03 16:11 UTC (permalink / raw)
To: Francois Perrad, buildroot
Hi Francois,
On 03/08/22 09:43, Francois Perrad wrote:
> This is the reference design board for the NXP LS1028a SoC.
>
> see https://www.nxp.com/design/qoriq-developer-resources/layerscape-ls1028a-reference-design-board:LS1028ARDB
You've forgotten your SoB
> ---
> DEVELOPERS | 2 +
> board/freescale/ls1028ardb/genimage.cfg | 23 +++++++
> board/freescale/ls1028ardb/readme.txt | 60 +++++++++++++++++++
> .../boot/extlinux/extlinux.conf | 4 ++
> .../rules.d/73-fsl-enetc-networking.rules | 16 +++++
> configs/ls1028ardb_defconfig | 60 +++++++++++++++++++
> 6 files changed, 165 insertions(+)
> create mode 100644 board/freescale/ls1028ardb/genimage.cfg
> create mode 100644 board/freescale/ls1028ardb/readme.txt
> create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
> create mode 100644 board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
> create mode 100644 configs/ls1028ardb_defconfig
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 780ec2041..7bca42074 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -980,9 +980,11 @@ N: Francisco Gonzalez <gzmorell@gmail.com>
> F: package/ser2net/
>
> N: Francois Perrad <francois.perrad@gadz.org>
> +F: board/freescale/ls1028ardb/
> F: board/olimex/a20_olinuxino
> F: board/olimex/imx233_olinuxino/
> F: board/olimex/stmp1_olinuxino/
> +F: configs/ls1028ardb_defconfig
> F: configs/olimex_a20_olinuxino_*
> F: configs/olimex_imx233_olinuxino_defconfig
> F: configs/olimex_stmp157_olinuxino_lime_defconfig
> diff --git a/board/freescale/ls1028ardb/genimage.cfg b/board/freescale/ls1028ardb/genimage.cfg
> new file mode 100644
> index 000000000..3efef0bff
> --- /dev/null
> +++ b/board/freescale/ls1028ardb/genimage.cfg
> @@ -0,0 +1,23 @@
> +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 rootfs {
> + offset = 8M
> + partition-type = 0x83
> + bootable = "true"
> + image = "rootfs.ext4"
> + }
> +}
> diff --git a/board/freescale/ls1028ardb/readme.txt b/board/freescale/ls1028ardb/readme.txt
> new file mode 100644
> index 000000000..93396a419
> --- /dev/null
> +++ b/board/freescale/ls1028ardb/readme.txt
> @@ -0,0 +1,60 @@
> +**************
> +NXP LS1028ARDB
> +**************
> +
> +This file documents the Buildroot support for the LS1028A Reference Design Board.
> +
> +for more details about the board and the QorIQ Layerscape SoC, see the following pages:
> + - https://www.nxp.com/design/qoriq-developer-resources/layerscape-ls1028a-reference-design-board:LS1028ARDB
> + - https://www.nxp.com/LS1028A
> +
> +Build
> +=====
> +
> +First, configure Buildroot for the LS1028ARDB board:
> +
> + make ls1028ardb_defconfig
> +
> +Build all components:
> +
> + make
> +
> +You will find in output/images/ the following files:
> + - bl2_sd.pbl
> + - fip.bin
> + - fsl-ls1028a-rdb.dtb
> + - Image
> + - PBL.bin
> + - rootfs.ext2
> + - rootfs.ext4 -> rootfs.ext2
> + - 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/ls1028ardb/genimage.cfg.
> +
> +Boot the LS1028ARDB board
> +=========================
> +
> +To boot your newly created system:
> +- insert the SD card in the SD slot of the board;
> +- Configure the switches SW2[1:4] = 1000 (select SD Card boot option)
> +- put a DB9F cable into the UART1 Port and connect using a terminal
> + emulator at 115200 bps, 8n1;
> +- power on the board.
> diff --git a/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
> new file mode 100644
> index 000000000..c08ddde10
> --- /dev/null
> +++ b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
> @@ -0,0 +1,4 @@
> +label ls1028ardb-buildroot
> + kernel /boot/Image
> + devicetree /boot/fsl-ls1028a-rdb.dtb
> + append root=/dev/mmcblk0p1 rootwait
> diff --git a/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules b/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
> new file mode 100644
> index 000000000..19f41634b
> --- /dev/null
> +++ b/board/freescale/ls1028ardb/rootfs_overlay/etc/udev/rules.d/73-fsl-enetc-networking.rules
> @@ -0,0 +1,16 @@
> +# ENETC rules
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", NAME:="eno0"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME:="eno1"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME:="eno2"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME:="eno3"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf0"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME:="eno0vf1"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf0"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME:="eno1vf1"
> +# LS1028 switch rules
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4"
> +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
This ^^^ explains me the reason of enabling EUDEV
> diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig
> new file mode 100644
> index 000000000..cc325485c
> --- /dev/null
> +++ b/configs/ls1028ardb_defconfig
> @@ -0,0 +1,60 @@
> +# Architecture
> +BR2_aarch64=y
> +BR2_cortex_a72=y
> +
> +# Toolchain
> +# Linux headers same as kernel, a 5.10 series
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +# wchar required for eudev
> +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> +
> +# System configuration
> +BR2_TARGET_GENERIC_HOSTNAME="ls1028a"
> +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> +BR2_ROOTFS_OVERLAY="board/freescale/ls1028ardb/rootfs_overlay"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/freescale/ls1028ardb/genimage.cfg"
> +
> +# Kernel
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_GIT=y
> +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/linux"
> +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="LSDK-21.08"
> +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-ls1028a-rdb"
> +BR2_LINUX_KERNEL_INSTALL_TARGET=y
> +
> +# Target package
> +BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE=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_GIT=y
> +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/atf"
> +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="LSDK-21.08"
> +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="ls1028ardb"
> +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_GIT=y
> +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot"
> +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="LSDK-21.08"
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="ls1028ardb_tfa"
> +BR2_TARGET_UBOOT_NEEDS_DTC=y
> +
> +# Host utilities
> +BR2_PACKAGE_HOST_GENIMAGE=y
> +BR2_PACKAGE_HOST_QORIQ_RCW_INTREE="ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin"
It builds correctly using buildroot/utils/docker-run and everything
looks good to me, so:
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Please re-send the entire patchset with your SoB and my Reviewed-by for
every patch.
Thank you!
Best regards
--
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 7:43 ` [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
2022-08-03 15:56 ` Giulio Benetti
@ 2022-08-03 16:32 ` Thomas Petazzoni via buildroot
2022-08-03 19:45 ` François Perrad
1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-03 16:32 UTC (permalink / raw)
To: Francois Perrad; +Cc: buildroot
Hello François,
On Wed, 3 Aug 2022 09:43:48 +0200
Francois Perrad <fperrad@gmail.com> wrote:
> This patch adds the firmware to $(TARGET_DIR)/boot other than
> to $(BINARIES) folder. This is needed in the case
> BR2_LINUX_KERNEL_INSTALL_TARGET is not set
Could you clarify why installing the kernel in /boot is related to
having or not this firmware installed in /boot?
> +ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),)
> QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
> QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
> +endif
So this means that when BR2_LINUX_KERNEL_INSTALL_TARGET=y, the firmware
will no longer be installed in $(BINARIES_DIR), potentially breaking
existing usage of this package?
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] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 16:32 ` Thomas Petazzoni via buildroot
@ 2022-08-03 19:45 ` François Perrad
2022-08-03 20:19 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 12+ messages in thread
From: François Perrad @ 2022-08-03 19:45 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot, Francois Perrad
[-- Attachment #1.1: Type: text/plain, Size: 1408 bytes --]
Le mer. 3 août 2022 à 18:32, Thomas Petazzoni via buildroot <
buildroot@buildroot.org> a écrit :
> Hello François,
>
> On Wed, 3 Aug 2022 09:43:48 +0200
> Francois Perrad <fperrad@gmail.com> wrote:
>
> > This patch adds the firmware to $(TARGET_DIR)/boot other than
> > to $(BINARIES) folder. This is needed in the case
> > BR2_LINUX_KERNEL_INSTALL_TARGET is not set
>
> Could you clarify why installing the kernel in /boot is related to
> having or not this firmware installed in /boot?
>
>
in v1, the commit message was :
this firmware must be installed with the kernel,
> there are 2 cases:
>
- in $(TARGET_DIR)/boot
> - in $(BINARIES), in order to be bundled into a boot partition
>
François
> > +ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),)
> > QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
> > QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
> > +endif
>
> So this means that when BR2_LINUX_KERNEL_INSTALL_TARGET=y, the firmware
> will no longer be installed in $(BINARIES_DIR), potentially breaking
> existing usage of this package?
>
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 2592 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 19:45 ` François Perrad
@ 2022-08-03 20:19 ` Thomas Petazzoni via buildroot
2022-08-04 11:21 ` François Perrad
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-03 20:19 UTC (permalink / raw)
To: François Perrad; +Cc: buildroot, Francois Perrad
On Wed, 3 Aug 2022 21:45:48 +0200
François Perrad <francois.perrad@gadz.org> wrote:
> in v1, the commit message was :
Why has the v2 commit message changed, to remove information?
> this firmware must be installed with the kernel,
> > there are 2 cases:
> >
> - in $(TARGET_DIR)/boot
> > - in $(BINARIES), in order to be bundled into a boot partition
This doesn't explain the *why*. How is the firmware being used from
$(TARGET_DIR)/boot ?
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] 12+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target
2022-08-03 20:19 ` Thomas Petazzoni via buildroot
@ 2022-08-04 11:21 ` François Perrad
0 siblings, 0 replies; 12+ messages in thread
From: François Perrad @ 2022-08-04 11:21 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Petazzoni
[-- Attachment #1.1: Type: text/plain, Size: 919 bytes --]
Le mer. 3 août 2022 à 22:26, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a écrit :
> On Wed, 3 Aug 2022 21:45:48 +0200
> François Perrad <francois.perrad@gadz.org> wrote:
>
> > in v1, the commit message was :
>
> Why has the v2 commit message changed, to remove information?
>
> > this firmware must be installed with the kernel,
> > > there are 2 cases:
> > >
> > - in $(TARGET_DIR)/boot
> > > - in $(BINARIES), in order to be bundled into a boot partition
>
> This doesn't explain the *why*. How is the firmware being used from
> $(TARGET_DIR)/boot ?
>
>
At this time, I don't known how this firmware (DisplayPort related) works
on this SoC,
so, please, just skip this patch 2/3
(that doesn't break the build of the board).
François
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>
[-- Attachment #1.2: Type: text/html, Size: 1671 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-08-04 11:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 7:43 [Buildroot] [PATCH v2 0/3] new board LS1028ARDB Francois Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 1/3] boot/arm-trusted-firmware: allow to generate BL2 from RCW Francois Perrad
2022-08-03 15:46 ` Giulio Benetti
2022-08-03 15:47 ` Giulio Benetti
2022-08-03 7:43 ` [Buildroot] [PATCH v2 2/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
2022-08-03 15:56 ` Giulio Benetti
2022-08-03 16:32 ` Thomas Petazzoni via buildroot
2022-08-03 19:45 ` François Perrad
2022-08-03 20:19 ` Thomas Petazzoni via buildroot
2022-08-04 11:21 ` François Perrad
2022-08-03 7:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: new board Francois Perrad
2022-08-03 16:11 ` Giulio Benetti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox