raspberry-pi: add structuredExtraConfig for vendor kernel#1841
Open
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
Open
raspberry-pi: add structuredExtraConfig for vendor kernel#1841JamieMagee wants to merge 1 commit intoNixOS:masterfrom
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
Conversation
b388d7f to
69bc87c
Compare
Override nixpkgs common-config.nix defaults that conflict with RPi vendor defconfigs (bcmrpi/bcm2709/bcm2711/bcm2712): - NR_CPUS: 4 (nixpkgs sets 384; RPi has 4 cores) - CMA_SIZE_MBYTES: 5 (nixpkgs sets 32; vendor default is 5) - LOCALVERSION: cleared (vendor sets -v7/-v8/-v8-16k which breaks modDirVersion; replaces the postConfigure sed hack) - PREEMPT/PREEMPT_VOLUNTARY: full preempt per vendor defconfig (Pi 3+ only; arm32 defconfigs use voluntary preempt which matches nixpkgs default) - NFS root boot: NFS_FS, NFS_V4, ROOT_NFS, IP_PNP, IP_PNP_DHCP, IP_PNP_RARP - NET_CLS_BPF, NLS_CODEPAGE_437: built-in instead of module - FB_SIMPLE: simple framebuffer Ref: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs
69bc87c to
6328122
Compare
This was referenced Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Override nixpkgs
common-config.nixdefaults that conflict with RPi vendor defconfigs. Without these, the kernel config silently diverges from what the vendor defconfig intends.LOCALVERSION""-v7/-v8/-v8-16k, which breaksmodDirVersionNR_CPUSCMA_SIZE_MBYTESPREEMPTPREEMPT_VOLUNTARYNFS_FS,NFS_V4,ROOT_NFSIP_PNP,IP_PNP_DHCP,IP_PNP_RARPNET_CLS_BPF,NLS_CODEPAGE_437FB_SIMPLEThe
LOCALVERSIONoverride replaces the oldpostConfiguresed hack that clearedCONFIG_LOCALVERSIONfrom.configandauto.confafter configure.Ref: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs
Things done
nixos-hardwareandimporting it via
<nixos-hardware>or Flake input