Skip to content

Commit 430a56d

Browse files
yuyuyurekaMic92
authored andcommitted
raspberry-pi/4: fix modesetting on 6.1 kernels
1 parent 33052d5 commit 430a56d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

raspberry-pi/4/modesetting.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ in
2727
};
2828

2929
config = lib.mkIf cfg.enable {
30+
# fixes a crash: https://github.com/raspberrypi/linux/issues/5568
31+
# can be removed for >= nixos 23.11: https://github.com/NixOS/nixpkgs/pull/247826
32+
boot.kernelParams = [ "kunit.enable=0" ];
33+
34+
# doesn't work for the CM module, so we exclude e.g. bcm2711-rpi-cm4.dts
35+
hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb";
36+
3037
# Configure for modesetting in the device tree
3138
hardware.deviceTree = {
3239
overlays = [

0 commit comments

Comments
 (0)