All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb
@ 2024-07-16  5:43 Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 1/8] configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob Gaël PORTAY
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

Hello,

This patch serie installs the missing device-tree blobs according to
their hardware's defconfig and it cleans up the defconfigs so they look
similar.

I noticed the defconfig files slighly differ while I was diff'ing them
together.

Also, I noticed that they are several device-tree blobs that are not
installed by the defconfigs (various variants).

Here is the list of the downstream bcm27xx generated dtbs:
 - bcm2708-rpi-b-plus.dtb
 - bcm2708-rpi-b-rev1.dtb (not installed; Raspberry Pi)
 - bcm2708-rpi-b.dtb
 - bcm2708-rpi-cm.dtb
 - bcm2708-rpi-zero-w.dtb
 - bcm2708-rpi-zero.dtb
 - bcm2709-rpi-2-b.dtb
 - bcm2709-rpi-cm2.dtb (note: there is no Compute Module 2 available,
   prototype?)
 - bcm2710-rpi-2-b.dtb (not installed; Raspberry Pi 2 rev 1.2, using
   BCM2837 instead of BCM2836)
 - bcm2710-rpi-3-b-plus.dtb
 - bcm2710-rpi-3-b.dtb
 - bcm2710-rpi-cm3.dtb (not installed on raspberrypi3_64_defconfig,
   installed on raspberrypi3_{,qt5we_}defconfig)
 - bcm2710-rpi-zero-2-w.dtb
 - bcm2710-rpi-zero-2.dtb (note: there is no Raspberry Pi Zero 2,
   prototype?)
 - bcm2711-rpi-4-b.dtb
 - bcm2711-rpi-400.dtb (not installed; Raspberry Pi 400)
 - bcm2711-rpi-cm4-io.dtb (upstream dtb)
 - bcm2711-rpi-cm4.dtb (not installed on raspberrypi4{,_64}_defconfig;
   installed on rasperrypicm4io{,_64}_defconfig; Compute Module 4)
 - bcm2711-rpi-cm4s.dtb (not installed on raspberrypi4{,_64}_defconfig;
   installed on rasperrypicm4io{,_64}_defconfig; Compute Module 4s)
 - bcm2712-rpi-5-b.dtb
 - bcm2712-rpi-cm5-cm4io.dtb (note: there is no Compute Module 5, yet?)
 - bcm2712-rpi-cm5-cm5io.dtb (note: there is no Compute Module 5, yet?)
 - bcm2712d0-rpi-5-b.dtb (not installed on raspberrypi5_defconfig; new
   release of Raspberry Pi 5 or Compute Module 5?)

The first seven commits installs (remove) the device-tree blobs by
appending (removing) them to (from) BR2_LINUX_KERNEL_INTREE_DTS_NAME:
  - Raspberry Pi rev 1.0 (bcm2708-rpi-b-rev1) -> raspberrypi_defconfig
  - Raspberry Pi 2 rev 1.2 (bcm2710-rpi-2-b) -> raspberrypi2_defconfig
  - Compute Module 3 (bcm2710-rpi-cm3) -> raspberrypi3_64_defconfig
  - Raspberry Pi 400 (bcm2711-rpi-400) -> raspberrypi4{,_64}_defconfig
  - Compute Module 4/4s (bcm2711-rpi-cm4{,s}) -> raspberrypi4{,_64}_defconfig
  - Raspberry Pi 5 BCM2712D0 (bcm2712d0-rpi-5-b) -> raspberrypi5_defconfig

It exists two kinds of device-tree blobs (up to the Raspberry Pi 3)[1]:
 - the downstream dtbs are named after the die name (i.e. BCM27xx)
 - the upstream dtbs are name after the package name (i.e. BCM283x)
Every defconfigs install exclusively the downstream device-tree blob, at
the exception of the raspberrypi3_64_defconfig that installs both since
the begining. The fourth patch removes the upstream device-tree blob.
The firmware selects the downstream dtb unless upstream_kernel=1 is
set[2].

The last patch moves some configs in the defconfigs and removes some
comments so the defconfig files look similar and it makes a diff easy.

Question: I am a bit perplex by installing the Raspberry Pi 2 rev 1.2 in
the raspberrypi2_defconfig since its switched from BCM2836 (cortex-a7)
to BCM2837 (cortex-a53, the same as pi3 and pizero2w).

I think it makes sense to install its dtb using its board's defconfig
(rasperrypi2_defconfig) at the cost of "performance" because it loses
its true architecture.

Also, it makes sense to install its dtb from the raspberrypi3_defconfig
as it uses the same SoC at the cost of "consistency" because the
defconfig for pi3 installs things for the pi2 1.2 (and add its dts to
raspberrypi3_64_defconfig as well since BCM2837 is 64-bit).

Alternatively, it can be installed on both, or (but terrible), two more
defconfigs can be added for that specific case:
 - raspberrypi2_1.2_defconfig
 - raspberrypi2_1.2_64_defconfig

What is your opinion?

[1]: https://github.com/raspberrypi/linux/issues/3237
[2]: https://www.raspberrypi.com/documentation/computers/legacy_config_txt.html#upstream_kernel
[3]: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#flagship-series

Regards,
Gaël PORTAY (8):
  configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob
  configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 device-tree blob
  configs/raspberrypi3_64: install Compute Module 3 device-tree blob
  configs/raspberrypi3_64: remove upstream device-tree blob
  configs/raspberrypi4*: install Raspberry Pi 400 device-tree blob
  configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs
  configs/raspberrypi5: install BCM2712D0 device-tree blob
  configs/raspberrypi*: sort some configs

 board/raspberrypi/readme.txt          |  6 +++++-
 configs/raspberrypi0_defconfig        |  3 ---
 configs/raspberrypi0w_defconfig       |  1 +
 configs/raspberrypi2_defconfig        |  8 +++-----
 configs/raspberrypi3_64_defconfig     |  8 +++-----
 configs/raspberrypi3_defconfig        |  6 ++----
 configs/raspberrypi3_qt5we_defconfig  | 15 +++++++--------
 configs/raspberrypi4_64_defconfig     |  8 +++-----
 configs/raspberrypi4_defconfig        |  8 +++-----
 configs/raspberrypi5_defconfig        | 13 ++++++-------
 configs/raspberrypi_defconfig         |  4 +---
 configs/raspberrypicm4io_64_defconfig |  6 ++----
 configs/raspberrypicm4io_defconfig    |  6 ++----
 configs/raspberrypizero2w_defconfig   |  5 +++--
 14 files changed, 41 insertions(+), 56 deletions(-)

-- 
2.45.2

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

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

* [Buildroot] [PATCH 1/8] configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 2/8] configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 " Gaël PORTAY
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs Raspberry Pi Model B rev 1.0 device-tree blob.

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt  | 1 +
 configs/raspberrypi_defconfig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index aa6421ea01..cbd9a57a63 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -87,6 +87,7 @@ Result of the build
 After building, you should obtain this tree:
 
     output/images/
+    +-- bcm2708-rpi-b-rev1.dtb      [1]
     +-- bcm2708-rpi-b.dtb           [1]
     +-- bcm2708-rpi-b-plus.dtb      [1]
     +-- bcm2708-rpi-cm.dtb          [1]
diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig
index 03c81ebf39..c6b296e1af 100644
--- a/configs/raspberrypi_defconfig
+++ b/configs/raspberrypi_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
 
 # Build the DTBs for A/B, A+/B+ and compute module from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-b broadcom/bcm2708-rpi-b-plus broadcom/bcm2708-rpi-cm"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-b-rev1 broadcom/bcm2708-rpi-b broadcom/bcm2708-rpi-b-plus broadcom/bcm2708-rpi-cm"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 2/8] configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 1/8] configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 3/8] configs/raspberrypi3_64: install Compute Module 3 " Gaël PORTAY
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs Raspberry Pi 2 Model B rev 1.2 device-tree blob.

Note: Raspberry Pi 2 Model B vev 1.2 switched to BCM2837[1][2].

[1]: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#flagship-series
[2]: https://www.raspberrypi.com/documentation/computers/processors.html#bcm2837

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt   | 1 +
 configs/raspberrypi2_defconfig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index cbd9a57a63..0499fe0d51 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -95,6 +95,7 @@ After building, you should obtain this tree:
     +-- bcm2708-rpi-zero-w.dtb      [1]
     +-- bcm2710-rpi-zero-2-w.dtb    [1]
     +-- bcm2709-rpi-2-b.dtb         [1]
+    +-- bcm2710-rpi-2-b.dtb         [1]
     +-- bcm2710-rpi-3-b.dtb         [1]
     +-- bcm2710-rpi-3-b-plus.dtb    [1]
     +-- bcm2710-rpi-cm3.dtb         [1]
diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig
index 05870cc6e1..75310fdb28 100644
--- a/configs/raspberrypi2_defconfig
+++ b/configs/raspberrypi2_defconfig
@@ -21,7 +21,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2709-rpi-2-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2709-rpi-2-b broadcom/bcm2710-rpi-2-b"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 3/8] configs/raspberrypi3_64: install Compute Module 3 device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 1/8] configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 2/8] configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 " Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-17 21:20   ` Thomas Petazzoni via buildroot
  2024-07-16  5:43 ` [Buildroot] [PATCH 4/8] configs/raspberrypi3_64: remove upstream " Gaël PORTAY
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs the device-tree blob for the Compute Module 3.

Note: The raspberrypi3_defconfig installs the since a726c7dff8
(configs/raspberrypi3_defconfig: add raspberry pi 3 compute module
support).

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 configs/raspberrypi3_64_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/raspberrypi3_64_defconfig b/configs/raspberrypi3_64_defconfig
index ec309b2bad..d6cae400ae 100644
--- a/configs/raspberrypi3_64_defconfig
+++ b/configs/raspberrypi3_64_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2837-rpi-3-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3 broadcom/bcm2837-rpi-3-b"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 4/8] configs/raspberrypi3_64: remove upstream device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (2 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 3/8] configs/raspberrypi3_64: install Compute Module 3 " Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-17 21:21   ` Thomas Petazzoni via buildroot
  2024-07-16  5:43 ` [Buildroot] [PATCH 5/8] configs/raspberrypi4*: install Raspberry Pi 400 " Gaël PORTAY
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

There are two kind of device-tree blobs up to the Rasperry Pi 3[1][2]:
 - the downstream dtbs are named after the die name (i.e. BCM27xx)
 - the upstream dtbs are name after the package name (i.e. BCM283x)

Every defconfigs install exclusively the downstream device-tree blob, at
the exception of the raspberrypi3_64_defconfig that installs both since
the begining.

This removes the upstream device-tree blob for the beauty of
consistency.

Note: It is possible to load the upstream device-tree using the
upstream_kernel property[3].

Raspberry Pi, Compute Module, Raspberry Pi Zero and Raspberry Pi Zero W
use bcm2835 for upstream and bcm2708 for downstream.

Raspberry Pi 2 uses bcm2836 for upstream and bcm2709 for downstream.

Raspberry Pi 2 rev 1.2, Raspberry Pi 3, Compute Module 3/3+ and
Raspberry Zero 2 W use bcm2837 for upstream and bcm2709 for downstream.

Raspberry Pi 4/400 and Compute Module 4/4s uses bcm2711 and Raspberry Pi
5 uses bcm2712.

[1]: https://github.com/raspberrypi/linux/issues/3237
[2]: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#flagship-series
[3]: https://www.raspberrypi.com/documentation/computers/legacy_config_txt.html#upstream_kernel

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt      | 1 -
 configs/raspberrypi3_64_defconfig | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 0499fe0d51..78c551579a 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -102,7 +102,6 @@ After building, you should obtain this tree:
     +-- bcm2711-rpi-4-b.dtb         [1]
     +-- bcm2711-rpi-cm4.dtb         [1]
     +-- bcm2712-rpi-5-b.dtb         [1]
-    +-- bcm2837-rpi-3-b.dtb         [1]
     +-- boot.vfat
     +-- rootfs.ext4
     +-- rpi-firmware/
diff --git a/configs/raspberrypi3_64_defconfig b/configs/raspberrypi3_64_defconfig
index d6cae400ae..f4ecf2575f 100644
--- a/configs/raspberrypi3_64_defconfig
+++ b/configs/raspberrypi3_64_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3 broadcom/bcm2837-rpi-3-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 5/8] configs/raspberrypi4*: install Raspberry Pi 400 device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (3 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 4/8] configs/raspberrypi3_64: remove upstream " Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 6/8] configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs Gaël PORTAY
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs the device-tree blob for the Raspberry Pi 400.

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt      | 1 +
 configs/raspberrypi4_64_defconfig | 2 +-
 configs/raspberrypi4_defconfig    | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 78c551579a..485a8d8827 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -100,6 +100,7 @@ After building, you should obtain this tree:
     +-- bcm2710-rpi-3-b-plus.dtb    [1]
     +-- bcm2710-rpi-cm3.dtb         [1]
     +-- bcm2711-rpi-4-b.dtb         [1]
+    +-- bcm2711-rpi-400.dtb         [1]
     +-- bcm2711-rpi-cm4.dtb         [1]
     +-- bcm2712-rpi-5-b.dtb         [1]
     +-- boot.vfat
diff --git a/configs/raspberrypi4_64_defconfig b/configs/raspberrypi4_64_defconfig
index 5c6698fb37..7ac0ad49cc 100644
--- a/configs/raspberrypi4_64_defconfig
+++ b/configs/raspberrypi4_64_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
diff --git a/configs/raspberrypi4_defconfig b/configs/raspberrypi4_defconfig
index c14b77eacd..241f78f2c1 100644
--- a/configs/raspberrypi4_defconfig
+++ b/configs/raspberrypi4_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 6/8] configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (4 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 5/8] configs/raspberrypi4*: install Raspberry Pi 400 " Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 7/8] configs/raspberrypi5: install BCM2712D0 device-tree blob Gaël PORTAY
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs the device-tree blobs for the Compute Module 4 and Compute
Module 4s.

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt      | 1 +
 configs/raspberrypi4_64_defconfig | 2 +-
 configs/raspberrypi4_defconfig    | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 485a8d8827..24b7f619a3 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -102,6 +102,7 @@ After building, you should obtain this tree:
     +-- bcm2711-rpi-4-b.dtb         [1]
     +-- bcm2711-rpi-400.dtb         [1]
     +-- bcm2711-rpi-cm4.dtb         [1]
+    +-- bcm2711-rpi-cm4s.dtb        [1]
     +-- bcm2712-rpi-5-b.dtb         [1]
     +-- boot.vfat
     +-- rootfs.ext4
diff --git a/configs/raspberrypi4_64_defconfig b/configs/raspberrypi4_64_defconfig
index 7ac0ad49cc..b7336e334f 100644
--- a/configs/raspberrypi4_64_defconfig
+++ b/configs/raspberrypi4_64_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
diff --git a/configs/raspberrypi4_defconfig b/configs/raspberrypi4_defconfig
index 241f78f2c1..2cf533e32e 100644
--- a/configs/raspberrypi4_defconfig
+++ b/configs/raspberrypi4_defconfig
@@ -20,7 +20,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 7/8] configs/raspberrypi5: install BCM2712D0 device-tree blob
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (5 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 6/8] configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-16  5:43 ` [Buildroot] [PATCH 8/8] configs/raspberrypi*: sort some configs Gaël PORTAY
  2024-07-17 21:19 ` [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Thomas Petazzoni via buildroot
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This installs the new Raspberry Pi 5 BCM2712D0 device-tree blob[1].

[1]: https://github.com/raspberrypi/linux/commit/0328374ae09c7856e06a63af0c065822474a2985

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 board/raspberrypi/readme.txt   | 1 +
 configs/raspberrypi5_defconfig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 24b7f619a3..81cd81a7f3 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -104,6 +104,7 @@ After building, you should obtain this tree:
     +-- bcm2711-rpi-cm4.dtb         [1]
     +-- bcm2711-rpi-cm4s.dtb        [1]
     +-- bcm2712-rpi-5-b.dtb         [1]
+    +-- bcm2712d0-rpi-5-b.dtb       [1]
     +-- boot.vfat
     +-- rootfs.ext4
     +-- rpi-firmware/
diff --git a/configs/raspberrypi5_defconfig b/configs/raspberrypi5_defconfig
index 3c88ce46cd..67026e0d6d 100644
--- a/configs/raspberrypi5_defconfig
+++ b/configs/raspberrypi5_defconfig
@@ -17,7 +17,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2712"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2712-rpi-5-b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2712-rpi-5-b broadcom/bcm2712d0-rpi-5-b"
 
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
-- 
2.45.2

_______________________________________________
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 8/8] configs/raspberrypi*: sort some configs
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (6 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 7/8] configs/raspberrypi5: install BCM2712D0 device-tree blob Gaël PORTAY
@ 2024-07-16  5:43 ` Gaël PORTAY
  2024-07-17 21:19 ` [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Thomas Petazzoni via buildroot
  8 siblings, 0 replies; 12+ messages in thread
From: Gaël PORTAY @ 2024-07-16  5:43 UTC (permalink / raw)
  To: buildroot; +Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz

This moves some configs in the defconfigs and removes some comments so
the defconfig files look similar.

Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
---
 configs/raspberrypi0_defconfig        |  3 ---
 configs/raspberrypi0w_defconfig       |  1 +
 configs/raspberrypi2_defconfig        |  6 ++----
 configs/raspberrypi3_64_defconfig     |  6 ++----
 configs/raspberrypi3_defconfig        |  6 ++----
 configs/raspberrypi3_qt5we_defconfig  | 15 +++++++--------
 configs/raspberrypi4_64_defconfig     |  6 ++----
 configs/raspberrypi4_defconfig        |  6 ++----
 configs/raspberrypi5_defconfig        | 11 +++++------
 configs/raspberrypi_defconfig         |  2 --
 configs/raspberrypicm4io_64_defconfig |  6 ++----
 configs/raspberrypicm4io_defconfig    |  6 ++----
 configs/raspberrypizero2w_defconfig   |  5 +++--
 13 files changed, 30 insertions(+), 49 deletions(-)

diff --git a/configs/raspberrypi0_defconfig b/configs/raspberrypi0_defconfig
index b2b7351ac1..23ea25eb6f 100644
--- a/configs/raspberrypi0_defconfig
+++ b/configs/raspberrypi0_defconfig
@@ -15,9 +15,6 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
-
-# Build the DTBs for A/B from the kernel sources: the zero is the same
-# as the A+ model, just in a different form-factor
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-zero"
 
diff --git a/configs/raspberrypi0w_defconfig b/configs/raspberrypi0w_defconfig
index a198596b40..fc40471b77 100644
--- a/configs/raspberrypi0w_defconfig
+++ b/configs/raspberrypi0w_defconfig
@@ -17,6 +17,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc1
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-zero-w"
+
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
 BR2_PACKAGE_RPI_FIRMWARE=y
diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig
index 75310fdb28..30b7ff9fde 100644
--- a/configs/raspberrypi2_defconfig
+++ b/configs/raspberrypi2_defconfig
@@ -7,19 +7,17 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2709-rpi-2-b broadcom/bcm2710-rpi-2-b"
 
diff --git a/configs/raspberrypi3_64_defconfig b/configs/raspberrypi3_64_defconfig
index f4ecf2575f..bfef4683b3 100644
--- a/configs/raspberrypi3_64_defconfig
+++ b/configs/raspberrypi3_64_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3"
 
diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig
index ba2d5b6eed..d55410777d 100644
--- a/configs/raspberrypi3_defconfig
+++ b/configs/raspberrypi3_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3"
 
diff --git a/configs/raspberrypi3_qt5we_defconfig b/configs/raspberrypi3_qt5we_defconfig
index 450a82f8f3..826181a2ec 100644
--- a/configs/raspberrypi3_qt5we_defconfig
+++ b/configs/raspberrypi3_qt5we_defconfig
@@ -6,20 +6,18 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-cm3"
 
@@ -34,13 +32,14 @@ BR2_PACKAGE_QT5BASE_JPEG=y
 BR2_PACKAGE_QT5BASE_PNG=y
 BR2_PACKAGE_QT5WEBENGINE=y
 BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS=y
+BR2_PACKAGE_RPI_USERLAND=y
+BR2_PACKAGE_CA_CERTIFICATES=y
+BR2_PACKAGE_NTP=y
+
 BR2_PACKAGE_RPI_FIRMWARE=y
 BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
 BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI=y
 BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi3/config_3_qt5we.txt"
-BR2_PACKAGE_RPI_USERLAND=y
-BR2_PACKAGE_CA_CERTIFICATES=y
-BR2_PACKAGE_NTP=y
 
 # Required tools to create the SD image
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
diff --git a/configs/raspberrypi4_64_defconfig b/configs/raspberrypi4_64_defconfig
index b7336e334f..d5fa72d57d 100644
--- a/configs/raspberrypi4_64_defconfig
+++ b/configs/raspberrypi4_64_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s"
 
diff --git a/configs/raspberrypi4_defconfig b/configs/raspberrypi4_defconfig
index 2cf533e32e..d7d5ec2499 100644
--- a/configs/raspberrypi4_defconfig
+++ b/configs/raspberrypi4_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s"
 
diff --git a/configs/raspberrypi5_defconfig b/configs/raspberrypi5_defconfig
index 67026e0d6d..268bf2892a 100644
--- a/configs/raspberrypi5_defconfig
+++ b/configs/raspberrypi5_defconfig
@@ -2,20 +2,22 @@ BR2_aarch64=y
 BR2_cortex_a76_a55=y
 BR2_ARM_FPU_VFPV4=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
+# patches
+BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/raspberrypi/linux-4k-page-size.fragment"
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2712"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2712-rpi-5-b broadcom/bcm2712d0-rpi-5-b"
 
@@ -45,6 +47,3 @@ BR2_PACKAGE_KMOD_TOOLS=y
 BR2_PACKAGE_XZ=y
 BR2_PACKAGE_KMOD=y
 BR2_PACKAGE_HOST_KMOD_XZ=y
-
-BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
-BR2_GLOBAL_PATCH_DIR="board/raspberrypi5/patches"
diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig
index c6b296e1af..97cb4e734d 100644
--- a/configs/raspberrypi_defconfig
+++ b/configs/raspberrypi_defconfig
@@ -17,8 +17,6 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
-
-# Build the DTBs for A/B, A+/B+ and compute module from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-b-rev1 broadcom/bcm2708-rpi-b broadcom/bcm2708-rpi-b-plus broadcom/bcm2708-rpi-cm"
 
diff --git a/configs/raspberrypicm4io_64_defconfig b/configs/raspberrypicm4io_64_defconfig
index e9d57091b5..cff9270ed6 100644
--- a/configs/raspberrypicm4io_64_defconfig
+++ b/configs/raspberrypicm4io_64_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-cm4"
 
diff --git a/configs/raspberrypicm4io_defconfig b/configs/raspberrypicm4io_defconfig
index 537d077b71..2972419ac7 100644
--- a/configs/raspberrypicm4io_defconfig
+++ b/configs/raspberrypicm4io_defconfig
@@ -6,19 +6,17 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-
 BR2_SYSTEM_DHCP="eth0"
 
 # Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
-
-# Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-cm4"
 
diff --git a/configs/raspberrypizero2w_defconfig b/configs/raspberrypizero2w_defconfig
index 37922909f3..7f83e9a258 100644
--- a/configs/raspberrypizero2w_defconfig
+++ b/configs/raspberrypizero2w_defconfig
@@ -6,7 +6,7 @@ BR2_ARM_FPU_NEON_VFPV4=y
 BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 
-# Linux headers same as kernel, 6.6 series
+# Linux headers same as kernel, a 6.6 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
@@ -19,6 +19,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-zero-2-w"
+
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
 BR2_PACKAGE_RPI_FIRMWARE=y
@@ -26,7 +27,7 @@ BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
 BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI=y
 BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypizero2w/config_zero2w.txt"
 
-# MicroSD images generation tools
+# Required tools to create the SD image
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
-- 
2.45.2

_______________________________________________
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 0/8] configs/raspberrypi*: install missing dtb
  2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
                   ` (7 preceding siblings ...)
  2024-07-16  5:43 ` [Buildroot] [PATCH 8/8] configs/raspberrypi*: sort some configs Gaël PORTAY
@ 2024-07-17 21:19 ` Thomas Petazzoni via buildroot
  8 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 21:19 UTC (permalink / raw)
  To: Gaël PORTAY
  Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz, buildroot

Hello,

On Tue, 16 Jul 2024 07:43:51 +0200
"Gaël PORTAY" <gael.portay@gmail.com> wrote:


> The last patch moves some configs in the defconfigs and removes some
> comments so the defconfig files look similar and it makes a diff easy.
> 
> Question: I am a bit perplex by installing the Raspberry Pi 2 rev 1.2 in
> the raspberrypi2_defconfig since its switched from BCM2836 (cortex-a7)
> to BCM2837 (cortex-a53, the same as pi3 and pizero2w).
> 
> I think it makes sense to install its dtb using its board's defconfig
> (rasperrypi2_defconfig) at the cost of "performance" because it loses
> its true architecture.

Should we introduce a raspberry2_64_defconfig?

> Gaël PORTAY (8):
>   configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob
>   configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 device-tree blob
>   configs/raspberrypi3_64: install Compute Module 3 device-tree blob
>   configs/raspberrypi3_64: remove upstream device-tree blob
>   configs/raspberrypi4*: install Raspberry Pi 400 device-tree blob
>   configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs
>   configs/raspberrypi5: install BCM2712D0 device-tree blob
>   configs/raspberrypi*: sort some configs

All applied, 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 3/8] configs/raspberrypi3_64: install Compute Module 3 device-tree blob
  2024-07-16  5:43 ` [Buildroot] [PATCH 3/8] configs/raspberrypi3_64: install Compute Module 3 " Gaël PORTAY
@ 2024-07-17 21:20   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 21:20 UTC (permalink / raw)
  To: Gaël PORTAY
  Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz, buildroot

On Tue, 16 Jul 2024 07:43:54 +0200
"Gaël PORTAY" <gael.portay@gmail.com> wrote:

> This installs the device-tree blob for the Compute Module 3.
> 
> Note: The raspberrypi3_defconfig installs the since a726c7dff8

                                              ^^^ a word was missing here

So I reworded it a bit.

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 4/8] configs/raspberrypi3_64: remove upstream device-tree blob
  2024-07-16  5:43 ` [Buildroot] [PATCH 4/8] configs/raspberrypi3_64: remove upstream " Gaël PORTAY
@ 2024-07-17 21:21   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 21:21 UTC (permalink / raw)
  To: Gaël PORTAY
  Cc: Gaël PORTAY, Martin Bark, Julien Grossholtz, buildroot

On Tue, 16 Jul 2024 07:43:55 +0200
"Gaël PORTAY" <gael.portay@gmail.com> wrote:

> This removes the upstream device-tree blob for the beauty of
> consistency.
> 
> Note: It is possible to load the upstream device-tree using the
> upstream_kernel property[3].

But I suppose this only works if the upstream DTBs are installed... and
we are not installing them, right?

But I guess upstream Device Trees make sense if you use the upstream
kernel, while those defconfigs all use the vendor/downstream kernel, so
it makes complete sense to use the corresponding vendor/downstream
kernel.

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

end of thread, other threads:[~2024-07-17 21:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16  5:43 [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 1/8] configs/raspberrypi: install Raspberry Pi rev 1.0 device-tree blob Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 2/8] configs/raspberrypi2: install Raspberry Pi 2 rev 1.2 " Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 3/8] configs/raspberrypi3_64: install Compute Module 3 " Gaël PORTAY
2024-07-17 21:20   ` Thomas Petazzoni via buildroot
2024-07-16  5:43 ` [Buildroot] [PATCH 4/8] configs/raspberrypi3_64: remove upstream " Gaël PORTAY
2024-07-17 21:21   ` Thomas Petazzoni via buildroot
2024-07-16  5:43 ` [Buildroot] [PATCH 5/8] configs/raspberrypi4*: install Raspberry Pi 400 " Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 6/8] configs/raspberrypi4*: install Compute Module 4/4s device-tree blobs Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 7/8] configs/raspberrypi5: install BCM2712D0 device-tree blob Gaël PORTAY
2024-07-16  5:43 ` [Buildroot] [PATCH 8/8] configs/raspberrypi*: sort some configs Gaël PORTAY
2024-07-17 21:19 ` [Buildroot] [PATCH 0/8] configs/raspberrypi*: install missing dtb Thomas Petazzoni via buildroot

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.