From: Erfan Abdi Date: Sun, 2 May 2021 22:59:50 +0000 (+0430) Subject: anbox: Bind mount media dev nodes needed by mtk X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/a6e467820f98f8833582720f1a020bf555e0a134?ds=inline anbox: Bind mount media dev nodes needed by mtk * And set permissions --- diff --git a/lxc-configs/config b/lxc-configs/config index f2cb910..802c31a 100644 --- a/lxc-configs/config +++ b/lxc-configs/config @@ -67,4 +67,10 @@ lxc.mount.entry = /run run none rbind,create=dir 0 0 lxc.mount.entry = /dev/sw_sync dev/sw_sync none bind,create=file,optional 0 0 lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none rbind,create=dir,optional 0 0 +# Media dev nodes (for Mediatek) +lxc.mount.entry = /dev/Vcodec dev/Vcodec none bind,create=file,optional 0 0 +lxc.mount.entry = /dev/MTK_SMI dev/MTK_SMI none bind,create=file,optional 0 0 +lxc.mount.entry = /dev/mdp_sync dev/mdp_sync none bind,create=file,optional 0 0 +lxc.mount.entry = /dev/mtk_cmdq dev/mtk_cmdq none bind,create=file,optional 0 0 + lxc.hook.post-stop = /dev/null diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 9607967..a6eda67 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -35,4 +35,10 @@ chmod 777 -R /run/user/32011 chmod 777 /dev/sw_sync chmod 777 /sys/kernel/debug/sync/sw_sync +# Media nodes permissions +chmod 777 /dev/Vcodec +chmod 777 /dev/MTK_SMI +chmod 777 /dev/mdp_sync +chmod 777 /dev/mtk_cmdq + lxc-start -n anbox -F -- /init