mirror of
https://github.com/lukaszraczylo/talos-builder.git
synced 2026-06-05 23:03:36 +00:00
78 lines
3.5 KiB
Diff
78 lines
3.5 KiB
Diff
From 29e731fce087b21e3324005336539f9c92de242a Mon Sep 17 00:00:00 2001
|
|
From: local-build <local@build>
|
|
Date: Wed, 8 Apr 2026 12:19:06 -0500
|
|
Subject: [PATCH] Patched for Raspberry Pi 5
|
|
|
|
---
|
|
Pkgfile | 8 ++++----
|
|
artifacts/dtb/raspberrypi/pkg.yaml | 11 ++++++-----
|
|
installers/rpi_5/src/config.txt | 6 ------
|
|
3 files changed, 10 insertions(+), 15 deletions(-)
|
|
|
|
diff --git a/Pkgfile b/Pkgfile
|
|
index edcb6dd..e2eb864 100644
|
|
--- a/Pkgfile
|
|
+++ b/Pkgfile
|
|
@@ -13,10 +13,10 @@ vars:
|
|
uboot_sha256: b60d5865cefdbc75da8da4156c56c458e00de75a49b80c1a2e58a96e30ad0d54
|
|
uboot_sha512: b1f988a497c77da60faf89ed33034e9ae58c4cd7f208e5ce451f1372e13540a66289bee4f08ca2f68f105d73f1ceae058b1f713db549edbcc885d9c66bdc4f8b
|
|
|
|
- # renovate: datasource=github-tags depName=raspberrypi/linux
|
|
- raspberrypi_kernel_version: stable_20250428
|
|
- raspberrypi_kernel_sha256: c95906cfbc7808de5860c6d86537bea22e3501f600a5209de59a86cb436886f6
|
|
- raspberrypi_kernel_sha512: 0ed5d490c491e590b5980dccf6fcac0dd3c47accbfacd40d91507c12801cff34fa6a1c68991c8a6c57bb259c909121414766f35a0b11c4bd5d62c3e11d710839
|
|
+ # rpi-6.18.y branch, commit 8fa1bed55110 (2026-04-10), kernel 6.18.21
|
|
+ raspberrypi_kernel_version: 8fa1bed55110
|
|
+ raspberrypi_kernel_sha256: d2ffb5382c1ad2e313a3bd60d2c8fb1b8af025527abe7f95131035c10c2a419f
|
|
+ raspberrypi_kernel_sha512: 565bd11afe89ef3e1955617191c9461b6365c56fef606baceec4ff612e2484d9077d11500ee0b77160f93cd39ec69ab3fce8e0cf76ba3df087903c3c8eff7290
|
|
|
|
# renovate: datasource=github-tags depName=revolutionpi/linux
|
|
revpi_kernel_version: v6.6.46-rt39-revpi7
|
|
diff --git a/artifacts/dtb/raspberrypi/pkg.yaml b/artifacts/dtb/raspberrypi/pkg.yaml
|
|
index e64cf3e..4e75c83 100644
|
|
--- a/artifacts/dtb/raspberrypi/pkg.yaml
|
|
+++ b/artifacts/dtb/raspberrypi/pkg.yaml
|
|
@@ -6,7 +6,7 @@ dependencies:
|
|
steps:
|
|
- network: default
|
|
sources:
|
|
- - url: https://github.com/raspberrypi/linux/archive/refs/tags/{{ .raspberrypi_kernel_version }}.tar.gz
|
|
+ - url: https://github.com/raspberrypi/linux/archive/{{ .raspberrypi_kernel_version }}.tar.gz
|
|
destination: raspberrypi-linux.tar.gz
|
|
sha256: "{{ .raspberrypi_kernel_sha256 }}"
|
|
sha512: "{{ .raspberrypi_kernel_sha512 }}"
|
|
@@ -15,10 +15,11 @@ steps:
|
|
tar xf raspberrypi-linux.tar.gz --strip-components=1
|
|
rm raspberrypi-linux.tar.gz
|
|
|
|
- for patch in $(find /pkg/patches -type f -name "*.patch" | sort); do
|
|
- echo "Applying patch $patch"
|
|
- patch -p1 < $patch || (echo "Failed to apply patch $patch" && exit 1)
|
|
- done
|
|
+ # Patches are for upstream/mainline kernel compatibility; skip when using RPi kernel
|
|
+ # for patch in $(find /pkg/patches -type f -name "*.patch" | sort); do
|
|
+ # echo "Applying patch $patch"
|
|
+ # patch -p1 < $patch || (echo "Failed to apply patch $patch" && exit 1)
|
|
+ # done
|
|
|
|
mkdir -p arch/arm/boot/dts/overlays/
|
|
cp -av /pkg/overlays/* arch/arm/boot/dts/overlays/
|
|
diff --git a/installers/rpi_5/src/config.txt b/installers/rpi_5/src/config.txt
|
|
index 9bef001..68d995c 100644
|
|
--- a/installers/rpi_5/src/config.txt
|
|
+++ b/installers/rpi_5/src/config.txt
|
|
@@ -1,10 +1,4 @@
|
|
# See https://www.raspberrypi.com/documentation/computers/configuration.html
|
|
-# Reduce GPU memory to give more to CPU.
|
|
-gpu_mem=32
|
|
-# Enable maximum compatibility on both HDMI ports;
|
|
-# only the one closest to the power/USB-C port will work in practice.
|
|
-hdmi_safe:0=1
|
|
-hdmi_safe:1=1
|
|
# Load U-Boot.
|
|
kernel=u-boot.bin
|
|
# Forces the kernel loading system to assume a 64-bit kernel.
|
|
--
|
|
2.50.1 (Apple Git-155)
|
|
|