1888640_ja-JP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

1888640_ja-JP

1888640_ja-JP

iMX6: Kirkstone が weston を非 root ユーザーとして実行できない

Hello,

kirkstoneに更新した後、root以外のユーザーとしてweston-imxを実行できません/問題があります

ウェイランド - 1.20.0-r0
ウェストン - 10.0.1.imx-r0
ウェストン初期化 - 1.0-R0

私はすでに次の投稿とコミットを見つけました:

https://community.nxp.com/t5/i-MX-Processors/Kirskstone-Weston-doesn-t-run-as-weston-non-root-user/m...

https://jira.automotivelinux.org/browse/SPEC-546

https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/9135

https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/9871

https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/9135


関連:https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/9871/4/meta-agl/recipes-graphics/wayland/...

私のiMX6にはサブシステム「gpu_class」がありません。このルールは、/dev/galcore デバイスを対象としています。サブシステムを "graphics"に変更することで、このルールをトリガーすることができますが、有益な結果はありません。


私は "XDG_RUNTIME_DIR = / run / user / 1001"を持っており、このディレクトリを手動で作成してchown / chmodする必要があります。そうしないと、 "systemctl start weston"の後にこのディレクトリが存在しないというエラーがスローされます。このディレクトリが自動的に作成されないのはなぜですか?

作成後、ログ出力は次のようになります


Apr 28 17:55:41 imx6 systemd[1]: Starting Weston, a Wayland compositor, as a system service...
Apr 28 17:55:41 imx6 weston[4411]: Date: 2022-04-28 UTC
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.544] weston 10.0.1
Apr 28 17:55:41 imx6 weston[4411]:                https://wayland.freedesktop.org
Apr 28 17:55:41 imx6 weston[4411]:                Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Apr 28 17:55:41 imx6 weston[4411]:                Build: lf-5.15.52-2.1.0+
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.545] Command line: /usr/bin/weston --modules=systemd-notify.so --backend=fbdev-backend.so
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.545] OS: Linux, 5.15.71+gb344a4b199b0, #1 SMP PREEMPT Thu Dec 14 11:15:05 UTC 2023, armv7l
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.545] Flight recorder: enabled
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.545] Using config file '/etc/xdg/weston/weston.ini'
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.546] Output repaint window is 7 ms maximum.
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.546] Loading module '/usr/lib/libweston-10/fbdev-backend.so'
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.559] initializing fbdev backend
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.559] warning: the fbdev backend is deprecated, please migrate to the DRM backend
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.564] Trying logind launcher...
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] logind: cannot find systemd session for uid: 1001 -61
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] Trying weston_launch launcher...
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] could not get launcher fd from env
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] Trying direct launcher...
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] fatal: fbdev backend should be run using weston-launch binary, or your system should provide the logind D-Bus API.
Apr 28 17:55:41 imx6 weston[4411]: [17:55:41.565] fatal: failed to create compositor backend
Apr 28 17:55:41 imx6 systemd[1]: weston.service: Main process exited, code=exited, status=1/FAILURE
Apr 28 17:55:41 imx6 systemd[1]: weston.service: Failed with result 'exit-code'.
Apr 28 17:55:41 imx6 systemd[1]: Failed to start Weston, a Wayland compositor, as a system service.


https://gerrit.automotivelinux.org/ で行われたすべての変更について

1) iMX6に100%必要なものはどれですか?

2) これらの変更は、公式のフリースケール支店のどこかに存在しますか?もしそうでないなら、なぜですか?


よろしくお願いいたします

i.MX6 全てRe: iMX6: Kirkstone が weston を非 root ユーザーとして実行できない

ここで問題を通して自分自身を話すことが私に必要だったことのようです


私の問題は2つありました

1)weston.serviceで次の行をコメントアウトしました

PAMName=weston-自動ログイン

これを元に戻すと、ウェストンを起動するときに次のエラーが発生しました


Apr 28 18:04:26 imx6 systemd[1]: Starting Weston, a Wayland compositor, as a system service...
Apr 28 18:04:26 imx6 unix_chkpwd[6988]: could not obtain user info (weston)
Apr 28 18:04:26 imx6 systemd[6984]: PAM failed: Authentication service cannot retrieve authentication info
Apr 28 18:04:26 imx6 systemd[6984]: weston.service: Failed to set up PAM session: Operation not permitted
Apr 28 18:04:26 imx6 systemd[6984]: weston.service: Failed at step PAM spawning /usr/bin/weston: Operation not permitted
Apr 28 18:04:26 imx6 systemd[1]: weston.service: Main process exited, code=exited, status=224/PAM
Apr 28 18:04:26 imx6 systemd[1]: weston.service: Failed with result 'exit-code'.
Apr 28 18:04:26 imx6 systemd[1]: Failed to start Weston, a Wayland compositor, as a system service

2) これは、weston ユーザーが /etc/passwd にいても、/etc/shadow にエントリがないという結果でした。ウェストンユーザーのエントリを /etc/shadow に追加すると、問題は完全に解決されました


/dev/galcore は、10-imx.rules UDEV ルールファイルごとに "video" グループにも割り当てられます

标记 (1)
无评分
版本历史
最后更新:
‎01-05-2026 10:29 AM
更新人: