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

Asahi kernel module does not build on 24.05 #240

Open
RossComputerGuy opened this issue Oct 7, 2024 · 4 comments
Open

Asahi kernel module does not build on 24.05 #240

RossComputerGuy opened this issue Oct 7, 2024 · 4 comments

Comments

@RossComputerGuy
Copy link
Contributor

Updated my Flake to use the latest nixos-apple-silicon commit and 24.05. Ran into a problem where Hyprland isn't starting, /dev/dri/renderD128 doesn't exist. lsmod doesn't show the Asahi module. Using find in the kernel modules directory turns up no results. I probed the kernel config derivation and see CONFIG_DRM_ASAHI=m and CONFIG_RUST=y so it should be building the kernel module.

@rowanG077
Copy link
Contributor

Dup of #234

@RossComputerGuy
Copy link
Contributor Author

This one seems different because I have the Asahi mesa driver, I can load up wlroots based compositors. drm_info works.

@rowanG077
Copy link
Contributor

rowanG077 commented Oct 7, 2024

Interesting. Then fixing the problem discovered by @lukaslihotzki does not work by manually updating rust?

The issue probably is that NixOS 24.05 ships Rust 1.77, but kernel 6.10 requires Rust 1.78 for CONFIG_RUST. Therefore, CONFIG_RUST is disabled when building the current kernel on 24.05. This can be verified with zcat /proc/config.gz | grep CONFIG_RUST (empty with 24.05, set to yes with unstable).

@RossComputerGuy
Copy link
Contributor Author

I'm not sure, I don't get any sort of errors despite having CONFIG_RUST=y set already. I would've expected it to throw an error and fail if that is the case.

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

No branches or pull requests

2 participants