We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65874c6 commit 3ab5e2bCopy full SHA for 3ab5e2b
build/functions/devices.sh
@@ -384,11 +384,17 @@ config_oec_turbo_files() {
384
echo "信息:配置 VPU 硬件编码支持..."
385
run_in_chroot "sed -i 's/--h264-hwenc=disabled/--h264-hwenc=rkmpp/g' /etc/kvmd/override.yaml"
386
387
+ run_in_chroot "cat > /etc/udev/rules.d/99-kvmd-hw-access.rules <<'EOF'
388
+SUBSYSTEM=="dma_heap", KERNEL=="system-uncached", GROUP="render", MODE="0660"
389
+KERNEL=="mpp_service", GROUP="render", MODE="0660"
390
+EOF"
391
+
392
393
# 配置 rc.local 自启脚本,添加设备权限设置
394
echo "信息:配置 rc.local 自启脚本..."
395
run_in_chroot "cat > /etc/rc.local << 'EOF'
396
#!/bin/bash
-chmod 777 /dev/mpp_service /dev/rga
397
+usermod -aG render,video kvmd
398
exit 0
399
EOF"
400
run_in_chroot "chmod +x /etc/rc.local"
0 commit comments