Skip to content
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

Merged
merged 1 commit into from
Aug 12, 2023

Conversation

yu-re-ka
Copy link
Contributor

@yu-re-ka yu-re-ka commented Aug 9, 2023

Description of changes

Fixes #631

This should work with both nixos-23.05 and nixos-unstable

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

# 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
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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!

Copy link
Member

@purcell purcell left a 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!

@purcell
Copy link
Member

purcell commented Aug 11, 2023

Might an admin (@Mic92?) be willing to merge this please?

@Mic92 Mic92 merged commit 430a56d into NixOS:master Aug 12, 2023
1 check passed
@purcell
Copy link
Member

purcell commented Aug 12, 2023

Thanks @Mic92!

@colonelpanic8
Copy link
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RPI4] modesetting overlay fails to build with latest kernels
4 participants