18 Commits
Author SHA1 Message Date
Jamie Magee 05f938961e raspberry-pi/common/kernel: 6.18.60-stable_20261103 -> 6.18.65-stable_20261127 2026-11-28 21:16:03 -08:00
Jamie Magee 73ff92fe11 raspberry-pi: fix kernel build with Linux 7.3 headers 2026-11-11 11:19:26 -08:00
Jamie Magee 4f3084df4c raspberry-pi/common/kernel: 6.18.50-stable_20260911 -> 6.18.60-stable_20261103 2026-11-10 10:46:50 -08:00
Cryolitia PukNgae 9d17af9966 raspberry-pi: Disable unused Pi 1 kernel modules
Nixpkgs enables optional kernel modules by default, including the RP1 PWM
and camera drivers and the DesignWare I2C driver. The ARM32 build fails in
modpost when these drivers reference __aeabi_uldivmod and __aeabi_ldivmod,
which are unavailable to kernel modules.

Disable the affected drivers when rpiVersion is 1. The Pi 1 uses BCM2835
peripherals and has no RP1 or DesignWare I2C controller, so these drivers
are not needed. The BCM2835 PWM and camera drivers remain enabled.

OpenWrt excludes the DesignWare I2C core on its older 32-bit Raspberry Pi
targets for the same reason.

Link: https://github.com/openwrt/openwrt/commit/11de7145c95259899d8880f4d53f933c591fbd00
Link: https://github.com/NixOS/nixpkgs/issues/464515
Signed-off-by: Cryolitia PukNgae <cryolitia@mercallure.com>
2026-10-19 16:01:18 +08:00
Jamie Magee d9d31dfb5e raspberry-pi/common/kernel: 6.18.39-stable_20260724 -> 6.18.50-stable_20260911 2026-09-11 15:10:39 -07:00
Jamie Magee b99aca5913 raspberry-pi/common/kernel: 6.18.34-stable_20260609 -> 6.18.39-stable_20260724 2026-08-10 16:25:50 -07:00
Doron Behar aa741c485b Merge pull request #1918 from peat-psuwit/for-upstream/linux_rpi-6.18.34
raspberry-pi/common/kernel: 6.18.33-1+rpt1 -> 6.18.34-stable_20260609
2026-06-22 20:57:43 +00:00
Alexander Fritsch bbe86a57e5 raspberry-pi/common/kernel: fix preempt config on kernel >=6.18 2026-06-19 14:59:11 +02:00
Ratchanan Srirattanamet efaa9faad5 raspberry-pi/common/kernel: 6.18.33-1+rpt1 -> 6.18.34-stable_20260609
raspberrypi/linux GitHub repo starts getting tagged again, so use that.
2026-06-17 01:39:40 +07:00
Jamie Magee 4292c91856 raspberry-pi/common/kernel: 6.12.75-1+rpt1 -> 6.18.33-1+rpt1 2026-06-13 20:45:30 -07:00
Jamie Magee ae243122dd raspberry-pi: restore postConfigure sed for LOCALVERSION
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before #1841.

Fixes #1859.
2026-05-05 13:34:59 -07:00
Jamie Magee 88cd2fa6e9 raspberry-pi: match RPi vendor defconfigs in kernel config
Override the nixpkgs common-config.nix values that conflict with the RPi
vendor defconfigs. Without these the kernel config silently differs from
the vendor defconfig.

mkForce is used only on options where nixpkgs common-config sets a
conflicting value at normal priority.

Ref: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs
2026-05-04 08:50:24 -07:00
Jamie Magee 554e00a592 raspberry-pi: replace postConfigure sed hack with structuredExtraConfig
Set CONFIG_LOCALVERSION via structuredExtraConfig instead of patching
.config and auto.conf with sed after configure. The vendor defconfigs
set -v7, -v8, -v8-16k which breaks modDirVersion.
2026-05-04 08:49:55 -07:00
Doron Behar 10c5286181 Merge pull request #1840 from JamieMagee/raspberry-pi/dtb-fixup
raspberry-pi: fix DTB name mapping for U-Boot
2026-05-04 12:09:10 +00:00
Ratchanan Srirattanamet e879889fe2 raspberry-pi/common/kernel: 6.12.47-stable_20250916 -> 6.12.75-1+rpt1
As mentioned in Nixpkgs PR [^1], Raspberry Pi folks stop tagging both
raspberrypi/linux and raspberrypi/firmware GitHub repo. So, I switched
my reference point to Raspberry Pi OS, which publishes their packaging
for Linux kernel in RPi-Distro/linux-packaging.

The version is set to Debian packaging's version, and the commit comes
from the changelog entry for that version.

The old code structure is somewhat kept in case Raspberry Pi ever tags
their raspberrypi/linux repo again.

[^1]: https://github.com/NixOS/nixpkgs/pull/493115
2026-05-04 15:50:53 +07:00
Jamie Magee 57fd23db81 raspberry-pi: fix DTB name mapping for U-Boot
- Gate on rpiVersion instead of architecture; skip for Pi 4+ where
  vendor and upstream DTB names already match
- Fix bcm2835-rpi-zero.dtb: was copied from bcm2708-rpi-b-plus (wrong
  board), now uses bcm2708-rpi-zero
- Drop bcm2711-rpi-4-b -> bcm2838-rpi-4-b copy; nothing uses bcm2838-*

Ref: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c
2026-05-03 12:53:10 -07:00
Jamie Magee d7514338e2 raspberry-pi: replace lib.overrideDerivation with .overrideAttrs
lib.overrideDerivation is deprecated and strips passthru attributes
(.configfile, .moduleBuildDependencies, etc.) from the kernel
derivation, which breaks downstream users expecting a standard
buildLinux output.

.overrideAttrs preserves passthru and matches every other custom
kernel in this repo.
2026-04-24 14:43:21 -07:00
Cryolitia PukNgae c8f766fd11 raspberry-pi: move kernel and firmware from nixpkgs
As part of the gradual phasing out of linux_rpi in nixpkgs

Link: https://github.com/NixOS/nixpkgs/pull/477665

Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
2026-01-18 23:19:14 +08:00