mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2025-02-20 08:38:24 +07:00
feat: GPU passthrough support
This commit is contained in:
parent
63b2d703a4
commit
7bb33f26cd
13
run/gpu.sh
13
run/gpu.sh
@ -1,6 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
[ ! -d /dev/dri ] && mkdir -m 755 /dev/dri
|
||||
|
||||
if [ ! -c /dev/dri/card0 ]; then
|
||||
mknod /dev/dri/card0 c 226 0
|
||||
fi
|
||||
|
||||
if [ ! -c /dev/dri/renderD128 ]; then
|
||||
mknod /dev/dri/renderD128 c 226 128
|
||||
fi
|
||||
|
||||
chmod 666 /dev/dri/card0
|
||||
chmod 666 /dev/dri/renderD128
|
||||
|
||||
DEF_OPTS="-nodefaults -boot strict=on -display egl-headless,rendernode=/dev/dri/renderD128"
|
||||
DEF_OPTS="${DEF_OPTS} -device virtio-vga,id=video0,max_outputs=1,bus=pcie.0,addr=0x1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user