-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raspberry-pi/4: fix modesetting on 6.1 kernels #693
Conversation
c191e93
to
62919b8
Compare
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob below doesn't match this filename, and might exclude other modules, so the comment is a bit misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean? it excludes the said device tree, so that is exactly the point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says we will exclude bcm2711-rpi-cm4.dts
.
The glob says we will exclude bcm2711-rpi-4*.dtb
.
The glob bcm2711-rpi-4*.dtb
does not match the filename bcm2711-rpi-cm4.dts
, so the comment is confusing at best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh hang on, I was assuming the .filter
removes the specified files — does it instead specify which to include?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is an include
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh! Got it, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed on my hardware that this resolves the issue, thanks!
Might an admin (@Mic92?) be willing to merge this please? |
Thanks @Mic92! |
@yu-re-ka @Mic92 @samueldr Does anyone actually understand WHY we fail to apply to cm4? I'm totally on board with merging this as a short term fix because normal 4b users shouldn't encounter errors when trying to use these settings, but I wonder whether this is breaking things for cm4 users. Why is compatible = "brcm,bcm2711"; not enough to make this apply appropriately, basically? |
Description of changes
Fixes #631
This should work with both nixos-23.05 and nixos-unstable
Things done
nixos-hardware
andimporting it via
<nixos-hardware>
or Flake input