Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Raspberry PI Updates
Date: Sun, 25 Jun 2023 11:19:13 +0200	[thread overview]
Message-ID: <20230625091913.AooDdMr1crqqe8qESeRWOCCgtGkA4KCqqzA8njUL1bE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43600@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/kenrap/void-packages kenrap-rpi-updates
https://github.com/void-linux/void-packages/pull/43600

Raspberry PI Updates
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for these architectures:
  - aarch64 (for rpi4)

#### Contributor's notes
- The rpi-kernel package (both the one currently and this updated version) doesn't USB boot without an initramfs.
  - I used dracut to successfully make this work.

A patch file from https://github.com/void-linux/void-packages/pull/43600.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kenrap-rpi-updates-43600.patch --]
[-- Type: text/x-diff, Size: 8214 bytes --]

From 1c8a69f180e9c490da8522cae0437784b0a6c423 Mon Sep 17 00:00:00 2001
From: Kenneth Raplee <kenrap@kennethraplee.com>
Date: Mon, 24 Apr 2023 13:21:07 -0700
Subject: [PATCH 1/3] rpi-firmware: update to 20230623 and apply cleanup

---
 srcpkgs/rpi-firmware/template | 92 ++++++++++++++++++-----------------
 1 file changed, 48 insertions(+), 44 deletions(-)

diff --git a/srcpkgs/rpi-firmware/template b/srcpkgs/rpi-firmware/template
index 5086abfa19fe..0ff85c59aeb6 100644
--- a/srcpkgs/rpi-firmware/template
+++ b/srcpkgs/rpi-firmware/template
@@ -1,23 +1,25 @@
 # Template file for 'rpi-firmware'
-_githash="62efc6a69d4e717bf2833c649d622c8298a37e9c"
-_gitshort="${_githash:0:7}"
-
 pkgname=rpi-firmware
-version=20220823
-revision=2
+version=20230623
+revision=1
+_githash="a7f7e2da955ef01b50516ea9722f6126e8d521a8"
+_gitshort="${_githash:0:7}"
 archs="armv6l* armv7l* aarch64*"
-provides="linux-firmware-broadcom-${version}_${revision}"
-replaces="linux-firmware-broadcom>=0"
 short_desc="Firmware files for the Raspberry Pi (git ${_gitshort})"
 maintainer="Piraty <mail@piraty.dev>"
 license="BSD-3-Clause, custom:Cypress"
 homepage="https://github.com/raspberrypi/firmware"
 distfiles="https://github.com/raspberrypi/firmware/archive/${_githash}.tar.gz"
-checksum=3fc5ab7155bde7221245f439971217558300dcbc988ade861cfef4e737de9909
+checksum=ead7a45c0013c0f2a56848fcde2532d2fe493533e6c1e5cc954c921893caae43
+provides="linux-firmware-broadcom-${version}_${revision}"
+replaces="linux-firmware-broadcom>=0"
 
 conf_files="/boot/cmdline.txt /boot/config.txt"
 nostrip=yes
 
+_debian_firmware_nonfree_repo=https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster
+_bluez_firmware_repo=https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master
+
 do_install() {
 	rm -f boot/*.img
 	rm -rf boot/overlays
@@ -34,49 +36,51 @@ do_install() {
 	vinstall ${FILESDIR}/cmdline.txt 644 boot
 	vinstall ${FILESDIR}/config.txt 644 boot
 
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/LICENCE.cypress
+	$XBPS_FETCH_CMD "${_debian_firmware_nonfree_repo}/LICENCE.cypress"
 	vlicense LICENCE.cypress
 
-	# Firmware for rpi3 b and zero wifi chip
-	for f in bin txt; do
-		$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/brcm/brcmfmac43430-sdio.${f}
-		vinstall brcmfmac43430-sdio.${f} 0644 usr/lib/firmware/brcm
-	done
+	_wifi_firmware_with_blob=(
+		# For rpi3 b+
+		"brcmfmac43455-sdio"
+		# For rpi zero 2w
+		"brcmfmac43436-sdio"
+		# For rpi4/rpi400
+		"brcmfmac43456-sdio"
+	)
 
-	# Firmware for rpi3 b and zero bluetooth chip
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master/broadcom/BCM43430A1.hcd
-	vinstall BCM43430A1.hcd 0644 usr/lib/firmware/brcm
+	_wifi_firmware=(
+		# For rpi3 b and zero
+		"brcmfmac43430-sdio"
+		# For rpi zero 2w
+		"brcmfmac43436s-sdio"
+	)
 
-	# Firmware for rpi3 b+ wifi chip
-	for f in bin txt clm_blob; do
-		$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/brcm/brcmfmac43455-sdio.${f}
-		vinstall brcmfmac43455-sdio.${f} 0644 usr/lib/firmware/brcm
+	for filename in ${_wifi_firmware_with_blob[@]}; do
+		for ext in bin txt clm_blob; do
+			$XBPS_FETCH_CMD "${_debian_firmware_nonfree_repo}/brcm/${filename}.${ext}"
+			vinstall ${filename}.${ext} 0644 usr/lib/firmware/brcm
+		done
 	done
 
-	# Firmware for rpi3 b+ bluetooth chip
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master/broadcom/BCM4345C0.hcd
-	vinstall BCM4345C0.hcd 0644 usr/lib/firmware/brcm
-
-	# Firmware for rpi zero 2w wifi chip
-	for f in bin txt clm_blob; do
-		$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/brcm/brcmfmac43436-sdio.${f}
-		vinstall brcmfmac43436-sdio.${f} 0644 usr/lib/firmware/brcm
-	done
-	for f in bin txt; do
-		$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/brcm/brcmfmac43436s-sdio.${f}
-		vinstall brcmfmac43436s-sdio.${f} 0644 usr/lib/firmware/brcm
+	for filename in ${_wifi_firmware[@]}; do
+		for ext in bin txt; do
+			$XBPS_FETCH_CMD "${_debian_firmware_nonfree_repo}/brcm/${filename}.${ext}"
+			vinstall ${filename}.${ext} 0644 usr/lib/firmware/brcm
+		done
 	done
 
-	# Firmware for rpi4/rpi400 wifi chip
-	for f in bin txt clm_blob; do
-		$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/buster/brcm/brcmfmac43456-sdio.${f}
-		vinstall brcmfmac43456-sdio.${f} 0644 usr/lib/firmware/brcm
-	done
-
-	# Firmware for rpi4/rpi400 bluetooth chip
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master/broadcom/BCM4345C5.hcd
-	vinstall BCM4345C5.hcd 0644 usr/lib/firmware/brcm
+	_bluez_firmware=(
+		# For rpi3 b and zero
+		"BCM43430A1.hcd"
+		# For rpi3 b+
+		"BCM4345C0.hcd"
+		# For rpi4/rpi400
+		"BCM4345C5.hcd"
+		"BCM43430B0.hcd"
+	)
 
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master/broadcom/BCM43430B0.hcd
-	vinstall BCM43430B0.hcd 0644 usr/lib/firmware/brcm
+	for firmware in ${_bluez_firmware[@]}; do
+		$XBPS_FETCH_CMD "${_bluez_firmware_repo}/broadcom/${firmware}"
+		vinstall $firmware 0644 usr/lib/firmware/brcm
+	done
 }

From 6c02b3687d4c2e682ffbf5ce82fe6763cf395fb7 Mon Sep 17 00:00:00 2001
From: Kenneth Raplee <kenrap@kennethraplee.com>
Date: Mon, 24 Apr 2023 13:22:49 -0700
Subject: [PATCH 2/3] rpi-kernel: update to 6.1.35.

---
 srcpkgs/rpi-kernel/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/rpi-kernel/template b/srcpkgs/rpi-kernel/template
index c49612b7c510..867e532ef79b 100644
--- a/srcpkgs/rpi-kernel/template
+++ b/srcpkgs/rpi-kernel/template
@@ -11,20 +11,19 @@
 # [1] https://github.com/raspberrypi/linux/tags
 #
 # Upstream documentation: https://www.raspberrypi.com/documentation/computers/linux_kernel.html
-
 pkgname=rpi-kernel
-version=5.15.72
+version=6.1.35
 revision=1
-_githash="3b98eb7a4aeaecd5274108dc1be7a5df94253500"
+_githash=4b60cbf0149f5b5fa5eb9149bd35c750cbc02b25
 archs="armv6l* armv7l* aarch64*"
 hostmakedepends="perl kmod uboot-mkimage openssl-devel bc bison flex xz"
 makedepends="ncurses-devel"
+short_desc="Linux kernel for Raspberry Pi (${version%.*} series [git ${_githash:0:7}])"
 maintainer="Piraty <mail@piraty.dev>"
-homepage="http://www.kernel.org"
 license="GPL-2.0-only"
-short_desc="Linux kernel for Raspberry Pi (${version%.*} series [git ${_githash:0:7}])"
+homepage="http://www.kernel.org"
 distfiles="https://github.com/raspberrypi/linux/archive/${_githash}.tar.gz"
-checksum=5cad1fd22f309ddd7b996df748aa21ced72f88d47fdbb8d4bfd9ef3a8a9b6ce9
+checksum=74793a0d0c5cbec213913ea921384c00cf9112e0ce39d8215cda7a9048208d44
 python_version=3
 
 _kernver="${version}_${revision}"

From 7f4a530262287f798e1435aa451f4f288af1c3e1 Mon Sep 17 00:00:00 2001
From: Tamas Jantvik <tsjk@hotmail.com>
Date: Fri, 28 Apr 2023 13:46:05 +0200
Subject: [PATCH 3/3] rpi-userland: update to 20230420.

---
 srcpkgs/rpi-userland/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/rpi-userland/template b/srcpkgs/rpi-userland/template
index 4f1ea38c9e3a..bfb07d045d91 100644
--- a/srcpkgs/rpi-userland/template
+++ b/srcpkgs/rpi-userland/template
@@ -1,19 +1,18 @@
 # Template file for 'rpi-userland'
-_githash="97bc8180ad682b004ea224d1db7b8e108eda4397"
-_gitshort="${_githash:0:7}"
-
 pkgname=rpi-userland
-version=20210623
+version=20230420
 revision=1
+_githash="cc1ca18fb0689b01cc2ca2aa4b400dcee624a213"
+_gitshort="${_githash:0:7}"
 build_style=cmake
-hostmakedepends="pkg-config"
 configure_args="-DCMAKE_INSTALL_RPATH=\$ORIGIN/../lib"
+hostmakedepends="pkg-config"
 short_desc="Raspberry Pi GPU userland libraries and utilities (git ${_gitshort})"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/raspberrypi/userland"
 distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz"
-checksum=d67def03931215f41b741aed5a3a1bc2bd62fa33f5cc14692e9a4d65f2e0ea27
+checksum=8a4bbfcd7181b2656b2781566c9e10eafdf6834399d2a0d2cf0c50923eec65f6
 
 LDFLAGS="-Wl,--no-as-needed"
 archs="armv6l* armv7l* aarch64*"

  parent reply	other threads:[~2023-06-25  9:19 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 20:35 [PR PATCH] " kenrap
2023-04-24 21:22 ` classabbyamp
2023-04-24 23:21 ` [PR PATCH] [Updated] " kenrap
2023-04-24 23:24 ` kenrap
2023-04-30 22:00 ` kenrap
2023-04-30 22:23 ` classabbyamp
2023-05-09  7:42 ` tsjk
2023-05-10 14:18 ` leahneukirchen
2023-05-10 14:20 ` classabbyamp
2023-05-10 17:09 ` tsjk
2023-05-10 17:57 ` classabbyamp
2023-05-10 18:44 ` [PR PATCH] [Updated] " kenrap
2023-05-10 18:48 ` kenrap
2023-05-10 19:18 ` classabbyamp
2023-05-10 19:24 ` classabbyamp
2023-05-10 19:26 ` classabbyamp
2023-05-10 19:30 ` tsjk
2023-05-10 19:33 ` kenrap
2023-05-10 19:40 ` tsjk
2023-05-10 19:44 ` tsjk
2023-05-10 19:45 ` tsjk
2023-05-10 20:02 ` [PR PATCH] [Updated] " kenrap
2023-05-10 20:12 ` classabbyamp
2023-05-11 10:27 ` tsjk
2023-05-11 10:28 ` tsjk
2023-05-11 10:48 ` tsjk
2023-05-11 13:28 ` tsjk
2023-05-11 13:37 ` tsjk
2023-05-11 13:41 ` tsjk
2023-05-11 14:51 ` classabbyamp
2023-05-11 14:51 ` classabbyamp
2023-05-11 15:02 ` tsjk
2023-05-11 15:10 ` classabbyamp
2023-05-11 15:13 ` classabbyamp
2023-05-11 15:15 ` tsjk
2023-05-11 15:16 ` tsjk
2023-05-11 15:21 ` tsjk
2023-05-11 15:25 ` tsjk
2023-05-11 15:26 ` tsjk
2023-05-11 15:26 ` tsjk
2023-05-11 15:29 ` tsjk
2023-06-13 15:07 ` ahesford
2023-06-13 17:19 ` lilmike
2023-06-25  8:41 ` [PR PATCH] [Updated] " classabbyamp
2023-06-25  9:19 ` classabbyamp [this message]
2023-07-30 21:25 ` r-ricci
2023-08-03 19:09 ` tsjk
2023-08-03 19:39 ` classabbyamp
2023-09-17 21:07 ` moabeat-berlin
2023-09-17 21:17 ` moabeat-berlin
2023-09-17 21:18 ` moabeat-berlin
2023-09-19 11:16 ` leahneukirchen
2023-09-19 16:13 ` moabeat-berlin
2023-09-19 16:22 ` leahneukirchen
2023-09-19 18:22 ` tsjk
2023-09-19 18:26 ` classabbyamp
2023-09-20 11:34 ` classabbyamp
2023-09-20 11:34 ` classabbyamp
2023-09-20 11:36 ` [PR PATCH] [Closed]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230625091913.AooDdMr1crqqe8qESeRWOCCgtGkA4KCqqzA8njUL1bE@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).