-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Kernel hacking on NixOS? #14721
Comments
nix-shell on the kernel package, run unpackPhase to unpack it, and then find the kernel config somewhere and build as usual, then edit+make+insmod in a loop, and once your changes are working, you can make an override against the kernel and supply a patch so nix can rereate the changes automaticaly |
Here is what I have so far:
|
If I manually run |
Or to just build those modules:
However, I get an error:
And in dmesg:
|
Aha, I'm also missing |
Also no messing with Also, I didn't actually test the above ;) |
Thanks for the tips! |
I've pushed some documentation on this for future me: 2d6d731 |
This is a NixOS newbie question.
I would like to make some experimental changes to the Linux
mlx4
module on my NixOS machine. I am looking for an edit-compile-run workflow where I would build and load (insmod
) the module. It is important that this would happen directly on the host and not inside a VM.Can anybody please tell me how to do this? I am hoping that I can do something like
nix-build ... && insmod .../mlx4.ko
but I am not sure how to connect those dots :).The text was updated successfully, but these errors were encountered: