Initial RK1 media-center image project
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
[Unit]
|
||||
Description=Kodi RK3588 GBM appliance
|
||||
Documentation=https://github.com/armsurvivors/kodi-rockchip-deb
|
||||
Wants=network-online.target
|
||||
After=systemd-user-sessions.service network-online.target sound.target
|
||||
Conflicts=display-manager.service [email protected]
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=kodi
|
||||
Group=kodi
|
||||
SupplementaryGroups=video render audio input
|
||||
Environment=HOME=/var/lib/kodi
|
||||
Environment=XDG_RUNTIME_DIR=/run/kodi
|
||||
Environment=LD_LIBRARY_PATH=/opt/rkmedia/lib
|
||||
EnvironmentFile=-/etc/rkmedia/kodi.env
|
||||
RuntimeDirectory=kodi
|
||||
RuntimeDirectoryMode=0700
|
||||
StateDirectory=kodi
|
||||
StateDirectoryMode=0750
|
||||
CacheDirectory=kodi
|
||||
CacheDirectoryMode=0750
|
||||
PAMName=login
|
||||
UtmpIdentifier=tty1
|
||||
UtmpMode=user
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/tty1
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
ExecStart=/opt/rkmedia/bin/kodi-rk --standalone --logging=console --windowing=gbm --audio-backend=alsa
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
TimeoutStopSec=15s
|
||||
LimitNOFILE=16384
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectControlGroups=yes
|
||||
RestrictNamespaces=yes
|
||||
RestrictSUIDSGID=yes
|
||||
LockPersonality=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||
CapabilityBoundingSet=CAP_SYS_TTY_CONFIG
|
||||
AmbientCapabilities=CAP_SYS_TTY_CONFIG
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,4 @@
|
||||
d /var/lib/kodi 0750 kodi kodi -
|
||||
d /var/lib/kodi/.kodi 0750 kodi kodi -
|
||||
d /var/cache/kodi 0750 kodi kodi -
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Primary and render DRM nodes used by Kodi GBM and DRM PRIME.
|
||||
SUBSYSTEM=="drm", KERNEL=="card[0-9]*", GROUP="video", MODE="0660", TAG+="uaccess"
|
||||
SUBSYSTEM=="drm", KERNEL=="renderD[0-9]*", GROUP="render", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Rockchip vendor-kernel media accelerators. Optional compatibility names are
|
||||
# included because their exact node names vary across BSP kernel revisions.
|
||||
SUBSYSTEM=="dma_heap", GROUP="video", MODE="0660"
|
||||
KERNEL=="rga", GROUP="video", MODE="0660"
|
||||
KERNEL=="iep", GROUP="video", MODE="0660"
|
||||
KERNEL=="mpp_service", GROUP="video", MODE="0660"
|
||||
KERNEL=="mpp-service", GROUP="video", MODE="0660"
|
||||
KERNEL=="vpu_service", GROUP="video", MODE="0660"
|
||||
KERNEL=="vpu-service", GROUP="video", MODE="0660"
|
||||
KERNEL=="hevc_service", GROUP="video", MODE="0660"
|
||||
KERNEL=="hevc-service", GROUP="video", MODE="0660"
|
||||
KERNEL=="rkvdec", GROUP="video", MODE="0660"
|
||||
KERNEL=="rkvenc", GROUP="video", MODE="0660"
|
||||
KERNEL=="vepu", GROUP="video", MODE="0660"
|
||||
KERNEL=="h265e", GROUP="video", MODE="0660"
|
||||
|
||||
# Rockchip NPU control/render compatibility nodes used by RKNN diagnostics.
|
||||
KERNEL=="rknpu*", GROUP="render", MODE="0660"
|
||||
@@ -0,0 +1,5 @@
|
||||
<settings version="2">
|
||||
<setting id="videoplayer.useprimedecoder">true</setting>
|
||||
<setting id="videoplayer.useprimedecoderforhw" default="true">true</setting>
|
||||
<setting id="videoplayer.useprimerenderer">0</setting>
|
||||
</settings>
|
||||
Reference in New Issue
Block a user