raspberry-pi/4: fix modesetting on 6.1 kernels
This commit is contained in:
parent
33052d5cad
commit
430a56dd16
|
@ -27,6 +27,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
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
|
# Configure for modesetting in the device tree
|
||||||
hardware.deviceTree = {
|
hardware.deviceTree = {
|
||||||
overlays = [
|
overlays = [
|
||||||
|
|
Loading…
Reference in a new issue