安装新内核的头文件

apt update && apt install pve-headers-$(uname -r)

安装一些工具

apt install build-* dkms

构建并安装i915-sriov模块

cd /usr/src
git clone https://github.com/strongtz/i915-sriov-dkms i915-sriov-dkms-6.1

    edit /usr/src/i915-sriov-dkms-6.1/dkms.conf with the following:
    PACKAGE_NAME="i915-sriov-dkms"
    PACKAGE_VERSION="6.1"

dkms install --force -m i915-sriov-dkms -v 6.1

    edit /etc/default/grub with the following:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet i915.enable_guc=3"

update-grub
update-initramfs -u
reboot

验证i915-sriov模块是否已加载

lspci | grep -i vga
lspci -vs 00:02.0
dmesg | grep i915
ls /dev/dri/render*

从 i915-sriov-dkms 模块中删除任何跟踪也很简单:

rm -rf /usr/src/i915-sriov-dkms-*
rm -rf /var/lib/dkms/i915-sriov-dkms
find /lib/modules -regex ".*/updates/dkms/i915.ko" -delete

i915-sriov-dkms

https://github.com/strongtz/i915-sriov-dkms
最后修改:2024 年 10 月 03 日
如果觉得我的文章对你有用,请随意赞赏