All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/3] LS1028ARDB improvements
@ 2022-11-22  6:43 Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Francois Perrad @ 2022-11-22  6:43 UTC (permalink / raw)
  To: buildroot

The package qoriq-cadence-dp-firmware is dedicated to the NXP LS1028 SoC.
It was introduced since BR 2022.02 from a Changming Huang's serie (5 versions between 2019-Nov and 2020-Feb).
This serie tried to introduce the board NXP LS1028ARDB with a partition boot.vfat containing
the kernel image, the dtb and the cadence DP firmware.

The board NXP LS1028ARDB was introduced on 2022-Aug from my own serie.
This serie uses a single rootfs partition and a extlinux.conf file.
The patch concerning the cadence DP firmware has been set aside at this time (between v3 and v4).

Now, this current serie finalizes the support of the board NXP LS1028ARDB,
especially the point concerning the cadence DP firmware.

Francois Perrad (3):
  package/qoriq-cadence-dp-firmware: add install in target
  configs/ls1028ardb: add video with Cadence DP firmware
  board/freescale/ls1028ardb: more documentation

 board/freescale/ls1028ardb/readme.txt         | 27 +++++++++++++++++++
 .../boot/extlinux/extlinux.conf               |  2 +-
 configs/ls1028ardb_defconfig                  |  3 +++
 .../qoriq-cadence-dp-firmware.mk              |  6 +++++
 4 files changed, 37 insertions(+), 1 deletion(-)

-- 
2.37.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target
  2022-11-22  6:43 [Buildroot] [PATCH v2 0/3] LS1028ARDB improvements Francois Perrad
@ 2022-11-22  6:43 ` Francois Perrad
  2022-11-25 22:19   ` Thomas Petazzoni via buildroot
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 2/3] configs/ls1028ardb: add video with Cadence DP firmware Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: more documentation Francois Perrad
  2 siblings, 1 reply; 5+ messages in thread
From: Francois Perrad @ 2022-11-22  6:43 UTC (permalink / raw)
  To: buildroot

This firmware is loaded by u-boot.
This firmware must be shipped in /boot with the kernel & dtb,
there are 2 cases of installation:
- in $(TARGET_DIR)/boot, in order to be in the rootfs
- in $(BINARIES), in order to be bundled into a boot partition

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 .../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 2ccdd8b90..4f7528726 100644
--- a/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
+++ b/package/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
@@ -11,12 +11,18 @@ QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP Semiconductor Software License Agreement
 QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING EULA EULA.txt
 QORIQ_CADENCE_DP_FIRMWARE_REDISTRIBUTE = NO
 QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
+ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),)
 QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
+endif
 
 define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS
 	$(call NXP_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.37.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/3] configs/ls1028ardb: add video with Cadence DP firmware
  2022-11-22  6:43 [Buildroot] [PATCH v2 0/3] LS1028ARDB improvements Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
@ 2022-11-22  6:43 ` Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: more documentation Francois Perrad
  2 siblings, 0 replies; 5+ messages in thread
From: Francois Perrad @ 2022-11-22  6:43 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 board/freescale/ls1028ardb/readme.txt                    | 9 +++++++++
 .../rootfs_overlay/boot/extlinux/extlinux.conf           | 2 +-
 configs/ls1028ardb_defconfig                             | 3 +++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/board/freescale/ls1028ardb/readme.txt b/board/freescale/ls1028ardb/readme.txt
index 93396a419..2dd2e2d84 100644
--- a/board/freescale/ls1028ardb/readme.txt
+++ b/board/freescale/ls1028ardb/readme.txt
@@ -58,3 +58,12 @@ To boot your newly created system:
 - put a DB9F cable into the UART1 Port and connect using a terminal
   emulator at 115200 bps, 8n1;
 - power on the board.
+
+The Cadence DP (Display Port) firmware must loaded from uboot with the following commands:
+
+  => ext2load mmc 0 0x80000000 /boot/ls1028a-dp-fw.bin
+  102464 bytes read in 24 ms (4.1 MiB/s)
+  => hdp load 0x80000000 0x2000
+  Loading hdp firmware from 0x0000000080000000 offset 0x0000000000002000
+  Loading hdp firmware Complete
+  => boot
diff --git a/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
index c08ddde10..bd6c7c95c 100644
--- a/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
+++ b/board/freescale/ls1028ardb/rootfs_overlay/boot/extlinux/extlinux.conf
@@ -1,4 +1,4 @@
 label ls1028ardb-buildroot
   kernel /boot/Image
   devicetree /boot/fsl-ls1028a-rdb.dtb
-  append root=/dev/mmcblk0p1 rootwait
+  append root=/dev/mmcblk0p1 rootwait video=1920x1080-32@60 cma=256M
diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig
index 22b9eb426..1bc84f7b8 100644
--- a/configs/ls1028ardb_defconfig
+++ b/configs/ls1028ardb_defconfig
@@ -26,6 +26,9 @@ 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
-- 
2.37.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: more documentation
  2022-11-22  6:43 [Buildroot] [PATCH v2 0/3] LS1028ARDB improvements Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 2/3] configs/ls1028ardb: add video with Cadence DP firmware Francois Perrad
@ 2022-11-22  6:43 ` Francois Perrad
  2 siblings, 0 replies; 5+ messages in thread
From: Francois Perrad @ 2022-11-22  6:43 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 board/freescale/ls1028ardb/readme.txt | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/board/freescale/ls1028ardb/readme.txt b/board/freescale/ls1028ardb/readme.txt
index 2dd2e2d84..cfd1c8c49 100644
--- a/board/freescale/ls1028ardb/readme.txt
+++ b/board/freescale/ls1028ardb/readme.txt
@@ -8,6 +8,16 @@ for more details about the board and the QorIQ Layerscape SoC, see the following
   - https://www.nxp.com/design/qoriq-developer-resources/layerscape-ls1028a-reference-design-board:LS1028ARDB
   - https://www.nxp.com/LS1028A
 
+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
+  - cadence-dp-firmware (blob), LSDK 20.12
+  - linux (fork), LSDK 21.08
+
 Build
 =====
 
@@ -67,3 +77,11 @@ The Cadence DP (Display Port) firmware must loaded from uboot with the following
   Loading hdp firmware from 0x0000000080000000 offset 0x0000000000002000
   Loading hdp firmware Complete
   => boot
+
+The interfaces of Ethernet switch (Felix DSA) are bring up with the following commands:
+
+  ip link set eno2 up
+  ip link set swp0 up
+  ip link set swp1 up
+  ip link set swp2 up
+  ip link set swp3 up
-- 
2.37.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target
  2022-11-22  6:43 ` [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
@ 2022-11-25 22:19   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-25 22:19 UTC (permalink / raw)
  To: Francois Perrad; +Cc: buildroot

On Tue, 22 Nov 2022 07:43:23 +0100
Francois Perrad <fperrad@gmail.com> wrote:

> This firmware is loaded by u-boot.
> This firmware must be shipped in /boot with the kernel & dtb,
> there are 2 cases of installation:
> - in $(TARGET_DIR)/boot, in order to be in the rootfs
> - in $(BINARIES), in order to be bundled into a boot partition
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>  .../qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk  | 6 ++++++
>  1 file changed, 6 insertions(+)

Thanks, series applied to next. Along the way, I've reworded a bit the
commit of PATCH 1/3 to make it clearer.

Best regards,

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] 5+ messages in thread

end of thread, other threads:[~2022-11-25 22:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  6:43 [Buildroot] [PATCH v2 0/3] LS1028ARDB improvements Francois Perrad
2022-11-22  6:43 ` [Buildroot] [PATCH v2 1/3] package/qoriq-cadence-dp-firmware: add install in target Francois Perrad
2022-11-25 22:19   ` Thomas Petazzoni via buildroot
2022-11-22  6:43 ` [Buildroot] [PATCH v2 2/3] configs/ls1028ardb: add video with Cadence DP firmware Francois Perrad
2022-11-22  6:43 ` [Buildroot] [PATCH v2 3/3] board/freescale/ls1028ardb: more documentation Francois Perrad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.