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

framework: refactor kmod for improved AMD support #1029

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xeniarose
Copy link
Contributor

@xeniarose xeniarose commented Jul 4, 2024

Description of changes

Fixes #1028

Changes several aspects of framework-laptop-kmod support:

  • default value has been changed to true when NixOS >= 24.05 and linux kernel >=6.10; false otherwise
  • adds required patch for framework AMD enablement when kernel <6.10
  • add README section describing usage

Also: this may be an upstream nixpkgs issue, but the lack of a good lore.kernel.org fetcher is kind of surprising. I tried using this sample code with fetchpatch initially, but got weird errors with it. I implemented a fetchb4 fetcher for my own personal usage, which uses b4 to download and format patches from https://lore.kernel.org and the skeleton of that is present in this PR using runCommand for simplicity

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

Edit: I've been running this on my own framework 16 for a bit now and everything seems to be working fine

@xeniarose xeniarose marked this pull request as ready for review July 5, 2024 17:16
@xeniarose xeniarose changed the title WIP framework: refactor kmod for improved AMD support framework: refactor kmod for improved AMD support Jul 5, 2024
@Mic92 Mic92 marked this pull request as draft July 25, 2024 12:35
@nyabinary
Copy link

Bump :p

@nyabinary
Copy link

nyabinary commented Sep 11, 2024

image
image

kmod is not needed anymore in the upcoming kernels btw

@paperdigits
Copy link

The kernel now fails to build with 6.11.

@llakala
Copy link
Contributor

llakala commented Sep 21, 2024

The kernel now fails to build with 6.11.

There was a patch yesterday that landed on stable and unstable that makes it work on 6.11. Should be fine now, it's working on my machine.

@paperdigits
Copy link

paperdigits commented Sep 21, 2024 via email

Changes several aspects of framework-laptop-kmod support:
- default value has been changed to true when NixOS >= 24.05 and
  linux kernel >=6.10, and false otherwise
- adds required patch for framework AMD enablement when kernel <6.10
- add README section describing usage
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.

Framework 13/16 AMD: hardware.framework.enableKmod requires kernel patch for kernel < 6.10
5 participants