All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support
@ 2021-10-30 21:35 Julien Grossholtz
  2021-10-30 21:35 ` [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76) Julien Grossholtz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julien Grossholtz @ 2021-10-30 21:35 UTC (permalink / raw)
  To: buildroot; +Cc: Peter Seiderer, Martin Bark, Julien Grossholtz

Hello,

Here is an update of my previous Raspberry-Pi Zero 2 W support.
As Peter Seiderer pointed out, the Raspberry-Pi Linux Kernel was
updated with a new bcm2710-rpi-zero-2.dtb [1] a few hours after I sent
the patch.

Therefore, I bumped the Raspberry-Pi Linux kernel to 5.10.76 for all related
boards. I built and tested it for the Pis I have access to : Pi Zero W
and Pi 4 (32 and 64 bit versions). But, I cannot test the other.

Regarding the Raspberry-Pi Zero 2 W, I updated the patch with the new
dts and kernel git sha1. I booted it, everything seems to work: HDMI,
Micro SD and Wi-Fi with some extra packages.

Let me know what you think,

Julien Grossholtz


[1] https://github.com/raspberrypi/linux/commit/84dc624be6ae704fdb3c413b7d86315cf49fbb0b


*** BLURB HERE ***

Julien Grossholtz (2):
  configs/raspberrypi: bump kernel to 581049d (5.10.76)
  board/raspberrypi: add Raspberry Pi Zero 2 W

 board/raspberrypi/config_zero2w.txt           | 29 +++++++++++++++
 .../genimage-raspberrypizero2w.cfg            | 31 ++++++++++++++++
 board/raspberrypi/readme.txt                  |  5 +++
 board/raspberrypizero2w                       |  1 +
 configs/raspberrypi0_defconfig                |  2 +-
 configs/raspberrypi0w_defconfig               |  2 +-
 configs/raspberrypi2_defconfig                |  2 +-
 configs/raspberrypi3_64_defconfig             |  2 +-
 configs/raspberrypi3_defconfig                |  2 +-
 configs/raspberrypi3_qt5we_defconfig          |  2 +-
 configs/raspberrypi4_64_defconfig             |  2 +-
 configs/raspberrypi4_defconfig                |  2 +-
 configs/raspberrypi_defconfig                 |  2 +-
 configs/raspberrypicm4io_64_defconfig         |  2 +-
 configs/raspberrypicm4io_defconfig            |  2 +-
 configs/raspberrypizero2w_defconfig           | 36 +++++++++++++++++++
 16 files changed, 113 insertions(+), 11 deletions(-)
 create mode 100644 board/raspberrypi/config_zero2w.txt
 create mode 100644 board/raspberrypi/genimage-raspberrypizero2w.cfg
 create mode 120000 board/raspberrypizero2w
 create mode 100644 configs/raspberrypizero2w_defconfig

-- 
2.31.1

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

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

* [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76)
  2021-10-30 21:35 [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Julien Grossholtz
@ 2021-10-30 21:35 ` Julien Grossholtz
  2021-11-03 22:39   ` Thomas Petazzoni
  2021-10-30 21:36 ` [Buildroot] [PATCH 2/2] board/raspberrypi: add Raspberry Pi Zero 2 W Julien Grossholtz
  2021-11-03 20:06 ` [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Peter Seiderer
  2 siblings, 1 reply; 6+ messages in thread
From: Julien Grossholtz @ 2021-10-30 21:35 UTC (permalink / raw)
  To: buildroot; +Cc: Peter Seiderer, Martin Bark, Julien Grossholtz

Raspberry-Pis Linux kernel is now based on 5.10.76. The previous release
was 5.10.63.

Signed-off-by: Julien Grossholtz <julien.grossholtz@openest.io>
---
 configs/raspberrypi0_defconfig        | 2 +-
 configs/raspberrypi0w_defconfig       | 2 +-
 configs/raspberrypi2_defconfig        | 2 +-
 configs/raspberrypi3_64_defconfig     | 2 +-
 configs/raspberrypi3_defconfig        | 2 +-
 configs/raspberrypi3_qt5we_defconfig  | 2 +-
 configs/raspberrypi4_64_defconfig     | 2 +-
 configs/raspberrypi4_defconfig        | 2 +-
 configs/raspberrypi_defconfig         | 2 +-
 configs/raspberrypicm4io_64_defconfig | 2 +-
 configs/raspberrypicm4io_defconfig    | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/configs/raspberrypi0_defconfig b/configs/raspberrypi0_defconfig
index d309ae75e8..e49be1af7a 100644
--- a/configs/raspberrypi0_defconfig
+++ b/configs/raspberrypi0_defconfig
@@ -9,7 +9,7 @@ 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,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
 
 # Build the DTBs for A/B from the kernel sources: the zero is the same
diff --git a/configs/raspberrypi0w_defconfig b/configs/raspberrypi0w_defconfig
index caa663d233..6be7401f6c 100644
--- a/configs/raspberrypi0w_defconfig
+++ b/configs/raspberrypi0w_defconfig
@@ -9,7 +9,7 @@ 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,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-zero-w"
diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig
index 29ff2f793c..c59ee064b9 100644
--- a/configs/raspberrypi2_defconfig
+++ b/configs/raspberrypi2_defconfig
@@ -12,7 +12,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi3_64_defconfig b/configs/raspberrypi3_64_defconfig
index 61cc2346cb..7d863c1731 100644
--- a/configs/raspberrypi3_64_defconfig
+++ b/configs/raspberrypi3_64_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig
index e6fcc067d0..f923a3028b 100644
--- a/configs/raspberrypi3_defconfig
+++ b/configs/raspberrypi3_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi3_qt5we_defconfig b/configs/raspberrypi3_qt5we_defconfig
index 4858203e6a..dea5060590 100644
--- a/configs/raspberrypi3_qt5we_defconfig
+++ b/configs/raspberrypi3_qt5we_defconfig
@@ -12,7 +12,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi4_64_defconfig b/configs/raspberrypi4_64_defconfig
index 53ba3e6486..436ea57f13 100644
--- a/configs/raspberrypi4_64_defconfig
+++ b/configs/raspberrypi4_64_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi4_defconfig b/configs/raspberrypi4_defconfig
index 424e3193fb..ca506b38df 100644
--- a/configs/raspberrypi4_defconfig
+++ b/configs/raspberrypi4_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig
index 31543afa4f..f6fa92fb34 100644
--- a/configs/raspberrypi_defconfig
+++ b/configs/raspberrypi_defconfig
@@ -11,7 +11,7 @@ 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,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
 
 # Build the DTBs for A/B, A+/B+ and compute module from the kernel sources
diff --git a/configs/raspberrypicm4io_64_defconfig b/configs/raspberrypicm4io_64_defconfig
index c098099ee2..f29e4c492a 100644
--- a/configs/raspberrypicm4io_64_defconfig
+++ b/configs/raspberrypicm4io_64_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
diff --git a/configs/raspberrypicm4io_defconfig b/configs/raspberrypicm4io_defconfig
index 11dc4cdfdb..fac706c4d2 100644
--- a/configs/raspberrypicm4io_defconfig
+++ b/configs/raspberrypicm4io_defconfig
@@ -11,7 +11,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,24c8b0546a820222a1ebcfe606dfacb0e228c466)/linux-24c8b0546a820222a1ebcfe606dfacb0e228c466.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
 
 # Build the DTB from the kernel sources
-- 
2.31.1

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

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

* [Buildroot] [PATCH 2/2] board/raspberrypi: add Raspberry Pi Zero 2 W
  2021-10-30 21:35 [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Julien Grossholtz
  2021-10-30 21:35 ` [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76) Julien Grossholtz
@ 2021-10-30 21:36 ` Julien Grossholtz
  2021-11-03 20:06 ` [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Peter Seiderer
  2 siblings, 0 replies; 6+ messages in thread
From: Julien Grossholtz @ 2021-10-30 21:36 UTC (permalink / raw)
  To: buildroot; +Cc: Peter Seiderer, Martin Bark, Julien Grossholtz

The Raspberry-Pi Zero 2 W is an affordable single board computer. It is
a more powerful drop-in replacement for the Raspberry Pi Zero W.

The board incorporates an Raspberry-Pi RP3A0 system-in-package (SiP) with
a Broadcom BCM2710A1 and 512MB LPDDR2 SDRAM. The CPU is a quad-core 1Ghz
64-bit Arm Cortex-A53. As for other Raspberry-Pis it also provides
2.4GHz 802.11 b/g/n Wifi, Bluetooth 4.2 and BLE.

The BCM2710 cpu is similar to the Raspberry-Pi 3, it uses the same
kernel configuration as the Raspberry-Pi 3.

Signed-off-by: Julien Grossholtz <julien.grossholtz@openest.io>
---
 board/raspberrypi/config_zero2w.txt           | 29 +++++++++++++++
 .../genimage-raspberrypizero2w.cfg            | 31 ++++++++++++++++
 board/raspberrypi/readme.txt                  |  5 +++
 board/raspberrypizero2w                       |  1 +
 configs/raspberrypizero2w_defconfig           | 36 +++++++++++++++++++
 5 files changed, 102 insertions(+)
 create mode 100644 board/raspberrypi/config_zero2w.txt
 create mode 100644 board/raspberrypi/genimage-raspberrypizero2w.cfg
 create mode 120000 board/raspberrypizero2w
 create mode 100644 configs/raspberrypizero2w_defconfig

diff --git a/board/raspberrypi/config_zero2w.txt b/board/raspberrypi/config_zero2w.txt
new file mode 100644
index 0000000000..9e6b7f5ccf
--- /dev/null
+++ b/board/raspberrypi/config_zero2w.txt
@@ -0,0 +1,29 @@
+# Please note that this is only a sample, we recommend you to change it to fit
+# your needs.
+# You should override this file using BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE.
+# See http://buildroot.org/manual.html#rootfs-custom
+# and http://elinux.org/RPiconfig for a description of config.txt syntax
+
+start_file=start.elf
+fixup_file=fixup.dat
+
+kernel=zImage
+
+# To use an external initramfs file
+#initramfs rootfs.cpio.gz
+
+# Disable overscan assuming the display supports displaying the full resolution
+# If the text shown on the screen disappears off the edge, comment this out
+disable_overscan=1
+
+# How much memory in MB to assign to the GPU on Pi models having
+# 256, 512 or 1024 MB total memory
+gpu_mem_256=100
+gpu_mem_512=100
+gpu_mem_1024=100
+
+# fixes rpi (3B, 3B+, 3A+, 4B ,zero W and zero 2) ttyAMA0 serial console
+dtoverlay=miniuart-bt
+
+# enable autoprobing of Bluetooth driver without need of hciattach/btattach
+dtoverlay=krnbt=on
diff --git a/board/raspberrypi/genimage-raspberrypizero2w.cfg b/board/raspberrypi/genimage-raspberrypizero2w.cfg
new file mode 100644
index 0000000000..7d7987d900
--- /dev/null
+++ b/board/raspberrypi/genimage-raspberrypizero2w.cfg
@@ -0,0 +1,31 @@
+image boot.vfat {
+  vfat {
+    files = {
+      "bcm2710-rpi-zero-2.dtb",
+      "rpi-firmware/bootcode.bin",
+      "rpi-firmware/cmdline.txt",
+      "rpi-firmware/config.txt",
+      "rpi-firmware/fixup.dat",
+      "rpi-firmware/start.elf",
+      "rpi-firmware/overlays",
+      "zImage"
+    }
+  }
+  size = 32M
+}
+
+image sdcard.img {
+  hdimage {
+  }
+
+  partition boot {
+    partition-type = 0xC
+    bootable = "true"
+    image = "boot.vfat"
+  }
+
+  partition rootfs {
+    partition-type = 0x83
+    image = "rootfs.ext4"
+  }
+}
diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 98c44d80a1..8f0d3144eb 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -28,6 +28,10 @@ For model Zero (model A+ in smaller form factor):
 
   $ make raspberrypi0_defconfig
 
+For model Zero 2 W (model B3 in smaller form factor):
+
+  $ make raspberrypizero2w_defconfig
+
 For model 2 B:
 
   $ make raspberrypi2_defconfig
@@ -76,6 +80,7 @@ After building, you should obtain this tree:
     output/images/
     +-- bcm2708-rpi-b.dtb           [1]
     +-- bcm2708-rpi-b-plus.dtb      [1]
+    +-- bcm2710-rpi-zero-2.dtb      [1]
     +-- bcm2709-rpi-2-b.dtb         [1]
     +-- bcm2710-rpi-3-b.dtb         [1]
     +-- bcm2710-rpi-3-b-plus.dtb    [1]
diff --git a/board/raspberrypizero2w b/board/raspberrypizero2w
new file mode 120000
index 0000000000..fcdafc81ed
--- /dev/null
+++ b/board/raspberrypizero2w
@@ -0,0 +1 @@
+raspberrypi
\ No newline at end of file
diff --git a/configs/raspberrypizero2w_defconfig b/configs/raspberrypizero2w_defconfig
new file mode 100644
index 0000000000..451b037fa3
--- /dev/null
+++ b/configs/raspberrypizero2w_defconfig
@@ -0,0 +1,36 @@
+BR2_arm=y
+BR2_cortex_a53=y
+BR2_ARM_FPU_NEON_VFPV4=y
+
+# Linux headers same as kernel, 5.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=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,581049d718caf95f5feb00607ac748d5841cf27c)/linux-581049d718caf95f5feb00607ac748d5841cf27c.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="bcm2710-rpi-zero-2"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=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/raspberrypizero2w/config_zero2w.txt"
+
+# MicroSD images generation tools
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+
+# Filesystem / image
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypizero2w/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypizero2w/post-image.sh"
-- 
2.31.1

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

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

* Re: [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support
  2021-10-30 21:35 [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Julien Grossholtz
  2021-10-30 21:35 ` [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76) Julien Grossholtz
  2021-10-30 21:36 ` [Buildroot] [PATCH 2/2] board/raspberrypi: add Raspberry Pi Zero 2 W Julien Grossholtz
@ 2021-11-03 20:06 ` Peter Seiderer
  2021-11-04 14:21   ` Julien Grossholtz
  2 siblings, 1 reply; 6+ messages in thread
From: Peter Seiderer @ 2021-11-03 20:06 UTC (permalink / raw)
  To: Julien Grossholtz; +Cc: Martin Bark, buildroot

Hello Julien,

On Sat, 30 Oct 2021 23:35:58 +0200, Julien Grossholtz <julien.grossholtz@openest.io> wrote:

> Hello,
>
> Here is an update of my previous Raspberry-Pi Zero 2 W support.
> As Peter Seiderer pointed out, the Raspberry-Pi Linux Kernel was
> updated with a new bcm2710-rpi-zero-2.dtb [1] a few hours after I sent
> the patch.

Seems you are to fast, with commit [2] a 'bcm2710-rpi-zero-2-w.dtb' was
added (as a permanent replacement/name-change for bcm2710-rpi-zero-2.dtb)
...

>
> Therefore, I bumped the Raspberry-Pi Linux kernel to 5.10.76 for all related
> boards. I built and tested it for the Pis I have access to : Pi Zero W
> and Pi 4 (32 and 64 bit versions). But, I cannot test the other.

Would like to keep rpi-firmware up-to-date with the rpi-kernel (see
for example [3] and [4])...

Mind to re-spin your patchset?

Regards,
Peter

[2] https://github.com/raspberrypi/linux/commit/093bc6d7ffd3cfba05712a7208c8dbfdcffbbf47
[3] https://patchwork.ozlabs.org/project/buildroot/patch/20211006213728.1069-1-ps.report@gmx.net/
[4] https://patchwork.ozlabs.org/project/buildroot/patch/20211006213728.1069-2-ps.report@gmx.net/

>
> Regarding the Raspberry-Pi Zero 2 W, I updated the patch with the new
> dts and kernel git sha1. I booted it, everything seems to work: HDMI,
> Micro SD and Wi-Fi with some extra packages.
>
> Let me know what you think,
>
> Julien Grossholtz
>
>
> [1] https://github.com/raspberrypi/linux/commit/84dc624be6ae704fdb3c413b7d86315cf49fbb0b
>
>
> *** BLURB HERE ***
>
> Julien Grossholtz (2):
>   configs/raspberrypi: bump kernel to 581049d (5.10.76)
>   board/raspberrypi: add Raspberry Pi Zero 2 W
>
>  board/raspberrypi/config_zero2w.txt           | 29 +++++++++++++++
>  .../genimage-raspberrypizero2w.cfg            | 31 ++++++++++++++++
>  board/raspberrypi/readme.txt                  |  5 +++
>  board/raspberrypizero2w                       |  1 +
>  configs/raspberrypi0_defconfig                |  2 +-
>  configs/raspberrypi0w_defconfig               |  2 +-
>  configs/raspberrypi2_defconfig                |  2 +-
>  configs/raspberrypi3_64_defconfig             |  2 +-
>  configs/raspberrypi3_defconfig                |  2 +-
>  configs/raspberrypi3_qt5we_defconfig          |  2 +-
>  configs/raspberrypi4_64_defconfig             |  2 +-
>  configs/raspberrypi4_defconfig                |  2 +-
>  configs/raspberrypi_defconfig                 |  2 +-
>  configs/raspberrypicm4io_64_defconfig         |  2 +-
>  configs/raspberrypicm4io_defconfig            |  2 +-
>  configs/raspberrypizero2w_defconfig           | 36 +++++++++++++++++++
>  16 files changed, 113 insertions(+), 11 deletions(-)
>  create mode 100644 board/raspberrypi/config_zero2w.txt
>  create mode 100644 board/raspberrypi/genimage-raspberrypizero2w.cfg
>  create mode 120000 board/raspberrypizero2w
>  create mode 100644 configs/raspberrypizero2w_defconfig
>

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

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

* Re: [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76)
  2021-10-30 21:35 ` [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76) Julien Grossholtz
@ 2021-11-03 22:39   ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2021-11-03 22:39 UTC (permalink / raw)
  To: Julien Grossholtz; +Cc: Peter Seiderer, Martin Bark, buildroot

On Sat, 30 Oct 2021 23:35:59 +0200
Julien Grossholtz <julien.grossholtz@openest.io> wrote:

> Raspberry-Pis Linux kernel is now based on 5.10.76. The previous release
> was 5.10.63.
> 
> Signed-off-by: Julien Grossholtz <julien.grossholtz@openest.io>
> ---
>  configs/raspberrypi0_defconfig        | 2 +-
>  configs/raspberrypi0w_defconfig       | 2 +-
>  configs/raspberrypi2_defconfig        | 2 +-
>  configs/raspberrypi3_64_defconfig     | 2 +-
>  configs/raspberrypi3_defconfig        | 2 +-
>  configs/raspberrypi3_qt5we_defconfig  | 2 +-
>  configs/raspberrypi4_64_defconfig     | 2 +-
>  configs/raspberrypi4_defconfig        | 2 +-
>  configs/raspberrypi_defconfig         | 2 +-
>  configs/raspberrypicm4io_64_defconfig | 2 +-
>  configs/raspberrypicm4io_defconfig    | 2 +-
>  11 files changed, 11 insertions(+), 11 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support
  2021-11-03 20:06 ` [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Peter Seiderer
@ 2021-11-04 14:21   ` Julien Grossholtz
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Grossholtz @ 2021-11-04 14:21 UTC (permalink / raw)
  To: Peter Seiderer; +Cc: Martin Bark, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 3705 bytes --]

Hello Peter,

Thanks for the review. See my answers below.


Le mer. 3 nov. 2021 à 21:06, Peter Seiderer <ps.report@gmx.net> a écrit :

> Hello Julien,
>
> On Sat, 30 Oct 2021 23:35:58 +0200, Julien Grossholtz <
> julien.grossholtz@openest.io> wrote:
>
> > Hello,
> >
> > Here is an update of my previous Raspberry-Pi Zero 2 W support.
> > As Peter Seiderer pointed out, the Raspberry-Pi Linux Kernel was
> > updated with a new bcm2710-rpi-zero-2.dtb [1] a few hours after I sent
> > the patch.
>
> Seems you are to fast, with commit [2] a 'bcm2710-rpi-zero-2-w.dtb' was
> added (as a permanent replacement/name-change for bcm2710-rpi-zero-2.dtb)
> ...
>
Did you see they also updated the supported binaries for the Wi-Fi
firmwares within the dts  [5]  ? I am not sure what it means for the
rpi-wifi-firmware, maybe we will have to bump it at some point too. I will
ensure Wi-Fi is still functional for my board at least.

>
> >
> > Therefore, I bumped the Raspberry-Pi Linux kernel to 5.10.76 for all
> related
> > boards. I built and tested it for the Pis I have access to : Pi Zero W
> > and Pi 4 (32 and 64 bit versions). But, I cannot test the other.
>
> Would like to keep rpi-firmware up-to-date with the rpi-kernel (see
> for example [3] and [4])...
>
> Mind to re-spin your patchset?
>

I will update my commits.


> Regards,
> Peter
>
> [2]
> https://github.com/raspberrypi/linux/commit/093bc6d7ffd3cfba05712a7208c8dbfdcffbbf47
> [3]
> https://patchwork.ozlabs.org/project/buildroot/patch/20211006213728.1069-1-ps.report@gmx.net/
> [4]
> https://patchwork.ozlabs.org/project/buildroot/patch/20211006213728.1069-2-ps.report@gmx.net/
>
> >
> > Regarding the Raspberry-Pi Zero 2 W, I updated the patch with the new
> > dts and kernel git sha1. I booted it, everything seems to work: HDMI,
> > Micro SD and Wi-Fi with some extra packages.
> >
> > Let me know what you think,
> >
> > Julien Grossholtz
> >
> >
> > [1]
> https://github.com/raspberrypi/linux/commit/84dc624be6ae704fdb3c413b7d86315cf49fbb0b
> >
> >
> > *** BLURB HERE ***
> >
> > Julien Grossholtz (2):
> >   configs/raspberrypi: bump kernel to 581049d (5.10.76)
> >   board/raspberrypi: add Raspberry Pi Zero 2 W
> >
> >  board/raspberrypi/config_zero2w.txt           | 29 +++++++++++++++
> >  .../genimage-raspberrypizero2w.cfg            | 31 ++++++++++++++++
> >  board/raspberrypi/readme.txt                  |  5 +++
> >  board/raspberrypizero2w                       |  1 +
> >  configs/raspberrypi0_defconfig                |  2 +-
> >  configs/raspberrypi0w_defconfig               |  2 +-
> >  configs/raspberrypi2_defconfig                |  2 +-
> >  configs/raspberrypi3_64_defconfig             |  2 +-
> >  configs/raspberrypi3_defconfig                |  2 +-
> >  configs/raspberrypi3_qt5we_defconfig          |  2 +-
> >  configs/raspberrypi4_64_defconfig             |  2 +-
> >  configs/raspberrypi4_defconfig                |  2 +-
> >  configs/raspberrypi_defconfig                 |  2 +-
> >  configs/raspberrypicm4io_64_defconfig         |  2 +-
> >  configs/raspberrypicm4io_defconfig            |  2 +-
> >  configs/raspberrypizero2w_defconfig           | 36 +++++++++++++++++++
> >  16 files changed, 113 insertions(+), 11 deletions(-)
> >  create mode 100644 board/raspberrypi/config_zero2w.txt
> >  create mode 100644 board/raspberrypi/genimage-raspberrypizero2w.cfg
> >  create mode 120000 board/raspberrypizero2w
> >  create mode 100644 configs/raspberrypizero2w_defconfig
> >
>
>
Thanks,

Julien Grossholtz

[5]
https://github.com/raspberrypi/linux/commit/f71d77d11ea3a0cc391030b6c4eb5a0b22e9e787

[-- Attachment #1.2: Type: text/html, Size: 5712 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] 6+ messages in thread

end of thread, other threads:[~2021-11-04 15:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 21:35 [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Julien Grossholtz
2021-10-30 21:35 ` [Buildroot] [PATCH 1/2] configs/raspberrypi: bump kernel to 581049d (5.10.76) Julien Grossholtz
2021-11-03 22:39   ` Thomas Petazzoni
2021-10-30 21:36 ` [Buildroot] [PATCH 2/2] board/raspberrypi: add Raspberry Pi Zero 2 W Julien Grossholtz
2021-11-03 20:06 ` [Buildroot] [v2 PATCH 0/2] Raspberry-Pi Zero 2 W support Peter Seiderer
2021-11-04 14:21   ` Julien Grossholtz

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.