-
Notifications
You must be signed in to change notification settings - Fork 149
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
Create kmod for Fedora/RPM based systems (especially immutable systems like Silverblue/Kinoite) #107
Comments
I managed to install the akmod on Fedora Workstation 38, with a It seems that I manage to solve my own problem, but it would be great to have this be officially supported by this repo. |
How did you manage to install it? I'm trying to install it on Fedora 38 too. |
@masiv1001 The instructions can be found here: https://github.com/sihawken/i915-sriov-kmod/ |
I did install from the instructions, did not give any error, how can i see if it works? Can i create VA-API video acceleration in VM now? |
@EverlastingOS You can test is by watching the output of the following commands (creating 2 test virtual devices):
It should not output anything, then run:
If everything goes well, it should list three devices, 00:02.0 and it's respective sub-devices 2.1 and 2.3.
I've since successfully installed it but it stopped working ever since I updated the kernel on fedora 39 (now running 6.5) |
hey, thanks for reply, yes im running fedora 39 also, and my laptop do freeze when typing " sudo su |
@EverlastingOS I could not get it working on the new fedora release so I don't know if it is possible at all. Your pc freezing might indicate it didn't work, still, do your own research on the topic, you might find something I did not, good luck! |
I was unable to compile the dkms i915 module in Alpine Linux, so I did that in Arch Linux and then I took successfully compiled kernel and attached it to my Alpine linux (to do this, just create a separate item in the grub menu and copy the desired folder from /lib/ modules). So I am currently running Alpine with Arch kernel with dkms and i915 mod lol) Works fine. |
I did compile it for alpine with following steps: I had to update minor version in https://github.com/strongtz/i915-sriov-dkms/blob/master/drivers/gpu/drm/i915/gt/uc/abi/guc_version_abi.h and remove a compile flag ( -DCONFIG_DRM_I915_PXP) in https://github.com/strongtz/i915-sriov-dkms/blob/master/Makefile make -C /lib/modules/$(uname -r)/build M=$(pwd) modules -j4
mv i915.ko i915_sriov.ko
cp i915_sriov.ko /lib/modules/$(uname -r)/extra/
depmod -a
echo "blacklist i915" | tee /etc/modprobe.d/i915-blacklist.conf
echo "i915_sriov" | tee -a /etc/modules
vi /etc/default/grub ## i915.enable_guc=3
update-grub |
I have been attempting to use this dkms repository as a base to build an akmod rpm package, so that fedora based systems, including immutable (silverblue/kinoite) can use this kernel module.
Unfortunately, immutable Fedora (Silverblue/Kinoite) is not compatible with dkms. Only akmods are supported.
I gave it my best attempt here https://github.com/sihawken/i915-sriov-kmod/, it seems to work and load (more details in the README.md). However, when I run
dmesg | grep i915
, I get the dreaded:i915: unknown parameter 'max_vfs' ignored
message.I have a copr repository here if you want to try it out on your own system
Fedora repository: https://copr.fedorainfracloud.org/coprs/sihawken/akmods/
Immutable Fedora:
rpm-ostree install akmod-i915-sriov
Fedora:
dnf install akmod-i915-sriov
Perhaps I am missing something obvious here. I would really appreciate it if someone who has more experience with kernel modules would take a look.
Here is an example of another dkms package that can be build as an akmod with the two .spec files:
https://github.com/KyleGospo/openrgb-dkms/tree/main
Thanks
The text was updated successfully, but these errors were encountered: