From 2404343dc75cf6ff14037d8d25d9e2da56b6815b Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Mon, 3 May 2021 06:36:40 +0430 Subject: [PATCH] anbox: Bind mount media dev nodes needed by qcom --- lxc-configs/config | 4 ++++ scripts/run-container.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lxc-configs/config b/lxc-configs/config index 802c31a..7211572 100644 --- a/lxc-configs/config +++ b/lxc-configs/config @@ -73,4 +73,8 @@ 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 +# Media dev nodes (for Qcom) +lxc.mount.entry = /dev/video32 dev/video32 none bind,create=file,optional 0 0 +lxc.mount.entry = /dev/video33 dev/video33 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 a6eda67..c8feb05 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -40,5 +40,7 @@ chmod 777 /dev/Vcodec chmod 777 /dev/MTK_SMI chmod 777 /dev/mdp_sync chmod 777 /dev/mtk_cmdq +chmod 777 /dev/video32 +chmod 777 /dev/video33 lxc-start -n anbox -F -- /init -- 2.47.3