Commit Graph
142 Commits
Author SHA1 Message Date
Doron Behar ff17823245 Merge pull request #1947 from JamieMagee/raspberry-pi-configtxt-overlays
raspberry-pi: add ordered config.txt overlays
2026-08-16 08:07:12 +00:00
Doron Behar 3e7edd9afe Merge pull request #1963 from JamieMagee/raspberry-pi/wireless-firmware
raspberry-pi: add wireless firmware to Pi 3 and 5
2026-08-12 10:02:55 +00: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
Jamie Magee 7aefd9ab01 raspberry-pi/common: add ordered config.txt device tree overlays 2026-08-07 10:28:35 +03:00
Doron Behar 89c9653dcf raspberry-pi/common: remove builtins. redundent prelude to abort 2026-08-07 10:24:16 +03:00
Doron Behar 6ca00f6509 raspberry-pi/common: simplify a bit the recurse function 2026-08-07 10:23:28 +03:00
Doron Behar 5fbc0ff5d2 raspberry-pi/common: avoid with lib.types; in settings definition 2026-08-07 10:20:47 +03:00
Jamie Magee a5d06b9c82 raspberry-pi: add wireless firmware to Pi 3 and 5 2026-08-05 21:38:09 -07:00
Jamie Magee f185edb4e9 raspberry-pi/common: fix firmware install when cross-compiling 2026-07-14 15:33:54 -07:00
Jamie Magee a886e41b8e raspberry-pi/4: remove hard-coded CPU revision overlay 2026-07-10 23:03:29 -07:00
Jamie Magee f54c3bcb65 raspberry-pi/common: add firmware-partition install module
Adds hardware.raspberry-pi.firmware to stage the Pi's pre-Linux boot files (GPU boot code, DTBs, overlays, config.txt, optionally U-Boot) onto the firmware partition. Boards still boot via generic-extlinux-compatible; this only supplies the files it needs, through populateCmd for image builders or an opt-in activation script.

DTB/overlay copy adapted from nvmd/nixos-raspberrypi.
2026-07-09 23:03:00 -07:00
Jamie Magee cd78713bfd raspberry-pi/common: enable UART by default for U-Boot 2026-07-09 01:38:01 -05: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 e0019f40a3 raspberry-pi/common: update wireless firmware
- firmware-nonfree: 1:20240709-2~bpo12+1+rpt3 -> 1:20250410-2+rpt1
- bluez-firmware: 1.2-9+rpt3 -> 1.2-13+rpt2
2026-06-13 20:45:30 -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
Doron Behar c97bc4d15b Merge pull request #1863 from JamieMagee/raspberry-pi/readme
raspberry-pi: add README
2026-05-20 06:26:11 +00:00
Jamie Magee 8b100f75f3 raspberry-pi: add README 2026-05-19 20:15:14 -07:00
Sandro Jäckel 50a9758cc0 raspberry-pi/common: fix infinite recursion when building options.json 2026-05-14 23:59:22 +02:00
Doron Behar 9bd7c80d43 Merge pull request #1824 from Gigahawk/rpi4-always-apply-overlay
raspberry/pi/4: disable compat checks when merging overlays
2026-05-12 13:37:22 +00:00
Doron Behar 0a1d15fc50 Merge pull request #1862 from JamieMagee/raspberry-pi/3-import-common
raspberry-pi/3: import common profile
2026-05-12 13:26:04 +00:00
Doron Behar c0573b3113 Merge pull request #1861 from JamieMagee/raspberry-pi/wire-configtxt
raspberry-pi: wire config.txt module into common profile
2026-05-12 13:25:37 +00:00
Jasper Chan e315416e7b raspberry/pi/4: disable compat checks when merging overlays 2026-05-11 12:07:46 -07:00
Jamie Magee 7bd5ab3ee5 raspberry-pi/3: import common profile
The Pi 3 profile didn't import ../common/default.nix, so it skipped
the shared boot.initrd.availableKernelModules (usb-storage, usbhid,
vc4). Every other board profile imports common/. Bring Pi 3 in line.
2026-05-05 14:04:57 -07:00
Jamie Magee 105c702c2e raspberry-pi: wire config.txt module into common profile
PR #1788 added hardware.raspberry-pi.configtxt and a defaults file,
but nothing imported them, so the options had no effect. Import both
from common/default.nix. Board profiles that already import common/
(2, 4, 5) now apply the pi-gen-equivalent defaults.
2026-05-05 14:04:51 -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
Doron Behar 1a9b2d1633 Merge pull request #1773 from fkokosinski/rpi5
raspberry-pi/5: set generic-extlinux-compatible by default
2026-05-03 07:55:26 +00: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
Filip Kokosiński 8adb8e570b raspberry-pi/5: set generic-extlinux-compatible by default
This allows the generic ubootRaspberryPiAarch64 package from nixpkgs to
be used with Raspberry Pi 5.

Signed-off-by: Filip Kokosiński <filip.kokosinski@gmail.com>
2026-04-15 21:13:12 +02:00
koral 4593bb129d fix(raspberry-pi): Explicitly convert integers to strings 2026-04-01 20:47:00 +02:00
Jörg Thalheim f4c4c2c0c9 Merge pull request #1768 from concatime/feature/add-missing-modules-of-rpi5
Add netboot support for Raspberry Pi 5
2026-03-31 05:04:29 +00:00
Jörg Thalheim 504b7c9083 Merge pull request #1783 from k0ral/koral/raspberry-poe-fan
feat(raspberry-pi): Temperature thresholds for fan speed of PoE HAT can now be configured
2026-03-31 04:52:00 +00:00
Jamie Magee b4766ffecf config-txt: fix null removal, file option as types.path
null was not in the settings type, so mkForce null to remove a default
was a type error. Added nullOr to atom and filter nulls in recurse.

Changed file from types.str to types.path with pkgs.writeText — this
is how services.mysql.configFile and similar options work. Moved the
generated file into the option default (with defaultText) rather than
setting it in the config block.
2026-03-09 21:22:51 -07:00
Jamie Magee a688dfcbb5 raspberry-pi: add config.txt generation module
Two new files in raspberry-pi/common/:

config-txt.nix lets you declare config.txt contents through
hardware.raspberry-pi.configtxt.settings (RFC 42 style — plain
values, null to remove, no enable/value wrappers).

config-txt-defaults.nix has the same defaults as Raspberry Pi OS:
vc4-kms-v3d, audio on, arm_boost, CM4 otg_mode, CM5 dwc2, etc.
All mkDefault so they are easy to override.

Not wired into board profiles yet — that comes with the RPi 5
sub-module work. Based on nvmd/nixos-raspberrypi.
2026-03-08 23:18:35 -07:00
koral cbbc29c7f3 feat(raspberry-pi): Temperature thresholds for fan speed of PoE HAT can now be configured 2026-03-07 10:13:36 +01:00
Issam E. Maghni 34360c4c63 raspberry-pi/5: add macb module if netboot
This module is required to have Ethernet in initial RAM disk.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 011660e3f7 raspberry-pi/5: add modules for RP1 controller 2026-02-28 14:01:28 -05:00
Issam E. Maghni 722ef6b5be raspberry-pi/5: add pcie-brcmstb module 2026-02-28 14:01:28 -05:00
Issam E. Maghni d736553cca raspberry-pi/5: filter Device Tree blobs 2026-02-28 14:01:28 -05:00
Issam E. Maghni 076b2a5116 raspberry-pi: add vc4 to common modules
Raspberry Pi 2 and 3 will now have it too.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 9ad075ca00 raspberry-pi: add usbhid to common modules
Raspberry Pi 2 will now have it too.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 114dfa1989 raspberry-pi: add usb-storage to common modules
Raspberry Pi 2 will now have it too.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 25b82e0755 chore: format raspberry-pi/ with nixfmt --strict 2026-02-28 14:01:28 -05: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