Skip to content

Commit

Permalink
raspberry-pi/4: fix modesetting on 6.1 kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka authored and Mic92 committed Aug 12, 2023
1 parent 33052d5 commit 430a56d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions raspberry-pi/4/modesetting.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ in
};

config = lib.mkIf cfg.enable {
# fixes a crash: https://github.com/raspberrypi/linux/issues/5568
# can be removed for >= nixos 23.11: https://github.com/NixOS/nixpkgs/pull/247826
boot.kernelParams = [ "kunit.enable=0" ];

# doesn't work for the CM module, so we exclude e.g. bcm2711-rpi-cm4.dts
hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb";

# Configure for modesetting in the device tree
hardware.deviceTree = {
overlays = [
Expand Down

0 comments on commit 430a56d

Please sign in to comment.