觀前提醒
警告:
本文僅作為測試參考記錄使用,不能用于生產(chǎn)環(huán)境,自行升級飛牛系統(tǒng)內(nèi)核會導(dǎo)致各種問題,目前已知的問題就包括文件權(quán)限問題,因此后續(xù)測試都是使用SMB遠(yuǎn)程掛載的方式進行測試。請耐心等待飛牛系統(tǒng)官方提升系統(tǒng)內(nèi)核版本,6.8版本以后如果官方?jīng)]有驅(qū)動支持的話,再嘗試自行安裝驅(qū)動。
再次提醒!!請勿用于自己存儲重要資料的飛牛系統(tǒng),自己頭鐵硬要嘗試導(dǎo)致數(shù)據(jù)丟失的,本人概不負(fù)責(zé)?。?!勿謂言之不預(yù)!??!
本次嘗試的參考鏈接為:
讓pve UNRAID等虛擬安裝的飛牛,SR-IOV核顯解碼性能翻倍,解決內(nèi)存增漲緩慢溢出! - 攻略分享 飛牛私有云論壇 fnOS
一、配置backports源(backports源提供的內(nèi)核通常是較新但經(jīng)過測試的穩(wěn)定版本)
- 最開始,獲取sudo權(quán)限
sudo -i
#更改 **source.list** 為 **BackPorts** 源,編輯 **/etc/apt/sources.list** nano /etc/apt/sources.list # **BackPorts** 源示例: deb http://deb.debian.org/debian <你的版本>-backports main #飛牛最后一行添加: deb http://deb.debian.org/debian bookworm-backports main # 保存并關(guān)閉 鍵盤快捷鍵: ctrl+s ctrl+x
二、更新linux內(nèi)核和header文件并重啟
#更新源之后,搜索可用的鏡像 sudo apt-get update && apt-get upgrade sudo apt search linux-image
# 本次使用的內(nèi)核版本 linux-image-6.9.10+bpo-amd64/stable-backports,stable-backports 6.9.10-1~bpo12+1 amd64 Linux 6.9 for 64-bit PCs (signed)
#安裝內(nèi)核 sudo apt install linux-image-6.9.10+bpo-amd64 #重啟一次 sudo reboot
#安裝頭文件 sudo apt-get install linux-headers-$(uname -r) #再次重啟 sudo reboot
三、安裝dkms
# 在飛牛中執(zhí)行這個命令會報錯 apt install build-* dkms # 報錯如下 Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'build-essential' for glob 'build-*' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev libstdc++-12-dev : Depends: libc6-dev (>= 2.23-1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages. #因為缺少libc-dev的依賴項 sudo apt install libc6-dev #但是執(zhí)行依賴項又會報版本錯誤 root@fnos:~# sudo apt install libc6-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libc6-dev : Depends: libc6 (= 2.36-9+deb12u10) but 2.36-9+deb12u4 is to be installed E: Unable to correct problems, you have held broken packages. # 所以要先安裝libc6特定版本 sudo apt-get install libc6=2.36-9+deb12u10 # 然后安裝dkms的依賴項 sudo apt-get install libc6-dev # 再安裝dkms就能安裝上 apt install build-* dkms
四、下載并安裝i915-sriov-dkms的軟件包,執(zhí)行安裝
wget -O /tmp/i915-sriov-dkms_2025.03.27_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.03.27/i915-sriov-dkms_2025.03.27_amd64.deb"
dpkg -i i915-sriov-dkms_2025.03.27_amd64.deb
安裝完成截圖如下:
image.png
五、配置并更新grub 添加屏蔽參數(shù)module_blacklist=xe(項目建議的)
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet module_blacklist=xe"
六、重啟飛牛,開啟影視中的GPU加速轉(zhuǎn)碼功能
reboot
# 測試是否正確驅(qū)動sriov核顯 dmesg | grep i915
- 成功驅(qū)動截圖如下:
七、效果圖展示
image.png
image.png
b92d1bc0924f5e2e567ade6c948df723.png
SDR 4k
e0127374be487da004d93a288d69bf5a.png
b8fccf3667f0743d0c64748fe3e23767.png
4k HDR
1364f8697e243414769a0b132e73d316.png
4k 杜比
91ec6d7a8fdfd5f425863e57d54bad7c.png
cdc8af1ddeeb060cee62e7a8f879c5c9.png
image.png
八、enjoy :) 再次提醒,不能用于生產(chǎn)NAS
作者聲明本文無利益相關(guān),歡迎值友理性交流,和諧討論~
,