IMX8MP - lxc container weston issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MP - lxc container weston issue

5,684件の閲覧回数
Geek
Contributor I

I'm trying to run the Weston compositor inside an LXC container, but I'm encountering "Permission denied" errors when it tries to access DRM devices like /dev/dri/card0. The devices are available on the host and passed into the container using lxc-config and lxc-device, but Weston fails to initialize due to insufficient permissions. The DRM devices are owned by root and the video group on the host, and it seems the container user (root) doesn’t have the required group membership or access rights. I've tried adjusting permissions and group memberships but still can't resolve the issue. Has anyone faced this problem or have suggestions for ensuring proper DRM access while running Weston in a container?

0 件の賞賛
返信
6 返答(返信)

5,335件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

You need also share the /dev/galcore device which will be used in OpenGL API.

Best Regards,
Zhiming

0 件の賞賛
返信

5,301件の閲覧回数
Geek
Contributor I

I believe my lxc container doesn't have galcore device. These are the dev I have inside the container. I'm trying to access tty1 device which gives "Permission denied" error. But as you can see in the attachment root user has read/write permission.

0 件の賞賛
返信

4,737件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Geek 

You should passed the /dev/galcore node form host into the container using lxc-config and lxc-device

0 件の賞賛
返信

4,705件の閲覧回数
Geek
Contributor I

I added /dev/galcore  inside the container and started Weston. And Weston is running now, But I encountered the following errors:

[14:39:24.221] atomic: couldn't commit new state: Permission denied
[14:39:24.221] repaint-flush failed: No such file or directory

I have attached the screenshots for weston.ini file for reference

 

0 件の賞賛
返信

4,592件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

We don't know much about this container you're using. Please seek support from the container community.


Best Regards,
Zhiming

0 件の賞賛
返信

4,571件の閲覧回数
Geek
Contributor I
Thanks!
0 件の賞賛
返信