41 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 9f495b5440 spacemit/k3-pico-itx: remove obsolete initrd option 2026-11-25 20:14:52 -08:00
Jamie Magee 7e9d8b97c5 raspberry-pi: warn before switching to firmware device trees 2026-11-23 14:14:58 -08:00
Jamie Magee 5c1804b403 raspberry-pi: explain config.txt default overrides 2026-11-23 14:14:58 -08:00
Jamie Magee 428be44435 raspberry-pi: avoid USB setup and serial-console pins in overlay examples 2026-11-22 14:46:16 -08:00
Jamie Magee 54987e6989 raspberry-pi: remove generic PoE HAT documentation 2026-11-20 13:47:33 -08:00
Jamie Magee e2035d2e51 raspberry-pi: migrate audio to firmware configuration 2026-11-16 12:18:18 -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
Jamie Magee 6075dd2edd raspberry-pi: clarify PWM0 migration guidance 2026-10-25 15:18:55 -07:00
Jamie Magee 5d01b9f343 raspberry-pi: migrate PWM0 to its firmware overlay 2026-10-24 17:08:22 -07:00
Jamie Magee a2da909d03 codeowners: add doronbehar to raspberry-pi 2026-09-14 10:54:48 -07:00
Jamie Magee 9e57f21b40 raspberrypiWirelessFirmware: 0-unstable-2026-03-21 -> 0-unstable-2026-07-10 2026-09-11 15:10:39 -07: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 db65e8d432 raspberry-pi: remove DigiAMP+ module 2026-09-07 20:48:46 -07:00
Jamie Magee 02545c60be raspberry-pi: remove DWC2 module 2026-09-01 16:17:21 -07:00
Jamie Magee 7fcbbc78c2 raspberry-pi: migrate PoE HATs to config.txt overlays 2026-08-30 01:41:17 +03: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
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 f2dfc37f5b fydetab-duo: declare efiBootStub kernel feature 2026-07-09 14:43:25 -07:00
Jamie Magee cd78713bfd raspberry-pi/common: enable UART by default for U-Boot 2026-07-09 01:38:01 -05:00
Jamie Magee 85d72767a4 lenovo/ideapad/14imh9: use systemd.sleep.settings instead of deprecated extraConfig 2026-06-22 13:05:04 -05:00
Jamie Magee f1cf00348d tests: bump nixos-stable from 25.11 to 26.05 2026-06-22 13:05:04 -05: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
Jamie Magee 8b100f75f3 raspberry-pi: add README 2026-05-19 20:15:14 -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
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
Jamie MageeandCopilot 56ea606134 Add tests directory to Dependabot nix configuration
Co-authored-by: Copilot <copilot@github.com>
2026-04-22 09:04:45 -07:00
Jamie Magee cbf2dc32fa Add Dependabot for nix flake updates
See https://github.blog/changelog/2026-04-07-dependabot-version-updates-now-support-the-nix-ecosystem/
2026-04-10 09:45:56 -07: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