完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在尝试在我的 imx8mm 上运行 weston,它似乎在初始化某种类型的套接字时遇到了问题。
root@arx2:/usr/bin# udevadm info /dev/dri/card0 P: /devices/platform/38000000.gpu/drm/card0 N: dri/card0 L: 0 S: dri/by-path/platform-38000000.gpu-card E: DEVPATH=/devices/platform/38000000.gpu/drm/card0 E: DEVNAME=/dev/dri/card0 E: DEVTYPE=drm_minor E: MAJOR=226 E: MINOR=0 E: SUBSYSTEM=drm E: USEC_INItiALIZED=5088440 E: ID_PATH=platform-38000000.gpu E: ID_PATH_TAG=platform-38000000_gpu E: ID_FOR_SEAT=drm-platform-38000000_gpu E: DEVLINKS=/dev/dri/by-path/platform-38000000.gpu-card E: TAGS=:master-of-seat:uaccess:seat: E: CURRENT_TAGS=:master-of-seat:uaccess:seat: root@arx2:/usr/bin# udevadm info /dev/dri/card1 P: /devices/platform/soc@0/32c00000.bus/32c00000.bus:display-subsystem/drm/card1 N: dri/card1 L: 0 S: dri/by-path/platform-32c00000.bus:display-subsystem-card E: DEVPATH=/devices/platform/soc@0/32c00000.bus/32c00000.bus:display-subsystem/drm/card1 E: DEVNAME=/dev/dri/card1 E: DEVTYPE=drm_minor E: MAJOR=226 E: MINOR=1 E: SUBSYSTEM=drm E: USEC_INITIALIZED=5305863 E: ID_PATH=platform-32c00000.bus:display-subsystem E: ID_PATH_TAG=platform-32c00000_bus_display-subsystem E: ID_FOR_SEAT=drm-platform-32c00000_bus_display-subsystem E: DEVLINKS=/dev/dri/by-path/platform-32c00000.bus:display-subsystem-card E: TAGS=:seat:uaccess:master-of-seat: E: CURRENT_TAGS=:seat:uaccess:master-of-seat: root@arx2:/usr/bin# dmesg | grep weston [ 6.708655] audit: type=1300 audit(1647169049.768:3): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffff706a3e0 a2=1 a3=ffffab1566c0 items=0 ppid=1 pid=332 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=2 comm="(weston)" exe="/lib/systemd/systemd" key=(null) [ 6.734731] audit: type=1327 audit(1647169049.768:3): proctitle="(weston)" 在启动过程中,我收到此消息: [FAILED] Failed to start Weston, a …mpositor, as a system service. See 'systemctl status weston.service' for details. root@arx2:~# systemctl status weston.service -l x weston.service - Weston, a Wayland compositor, as a system service Loaded: loaded (/lib/systemd/system/weston.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2022-03-13 10:57:29 UTC; 15min ago TriggeredBy: * weston.socket Docs: man:weston(1) man:weston.ini(5) http://wayland.freedesktop.org/ Process: 332 ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log --modules=systemd-notify.so (code=exited, status=1/FAILURE) Main PID: 332 (code=exited, status=1/FAILURE) Mar 13 10:57:29 arx2 systemd[1]: Starting Weston, a Wayland compositor, as a system service... Mar 13 10:57:29 arx2 systemd[1]: weston.service: Main process exited, code=exited, status=1/FAILURE Mar 13 10:57:29 arx2 systemd[1]: weston.service: Failed with result 'exit-code'. Mar 13 10:57:29 arx2 systemd[1]: Failed to start Weston, a Wayland compositor, as a system service. 尝试手动运行 weston: root@arx2:~# weston Date: 2022-03-13 UTC [11:32:51.371] weston 10.0.0 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ Build: 10.0.0 [11:32:51.371] Command line: weston [11:32:51.371] OS: Linux, 5.15.32+gafe2af70b748, #1 SMP PREEMPT Fri Mar 31 13:33:39 UTC 2023, aarch64 [11:32:51.371] Flight recorder: enabled [11:32:51.372] Using config file '/etc/xdg/weston/weston.ini' [11:32:51.372] Output repaint window is 16 ms maximum. [11:32:51.372] Loading module '/usr/lib/libweston-10/drm-backend.so' [11:32:51.377] initializing drm backend [11:32:51.377] Trying logind launcher... [11:32:51.377] logind: failed to get session seat [11:32:51.377] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback [11:32:51.377] Trying weston_launch launcher... [11:32:51.377] could not get launcher fd from env [11:32:51.377] Trying direct launcher... [11:32:51.377] not a vt [11:32:51.377] if running weston from ssh, use --tty to specify a tty [11:32:51.377] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API. [11:32:51.378] BUG: layer_list is not empty after shutdown. Calls to weston_layer_fini() are missing somwhere. [11:32:51.378] fatal: failed to create compositor backend Internal warning: debug scope 'drm-backend' has not been destroyed. root@arx2:~# weston-start Internal warning: debug scope 'drm-backend' has not been destroyed. root@arx2:~# weston-info failed to create display: No such file or directory 我的系统上安装了以下工具: weston weston-scaler weston-calibrator weston-screenshooter weston-clickdot weston-simple-damage weston-cliptest weston-simple-dmabuf-egl weston-confine weston-simple-dmabuf-feedback weston-content_protection weston-simple-dmabuf-v4l weston-debug weston-simple-egl weston-dnd weston-simple-shm weston-editor weston-simple-touch weston-eventdemo weston-smoke weston-flower weston-stacking weston-fullscreen weston-start weston-image weston-subsurfaces weston-info weston-terminal weston-multi-resource weston-touch-calibrator weston-presentation-shm weston-transformed weston-resizor root@arx2:~# systemctl status systemd-logind -l * systemd-logind.service - User Login Management Loaded: loaded (/lib/systemd/system/systemd-logind.service; static) Active: active (running) since Sun 2022-03-13 12:23:13 UTC; 1h 5min ago Docs: man:sd-login(3) man:systemd-logind.service(8) man:logind.conf(5) man:org.freedesktop.login1(5) Main PID: 325 (systemd-logind) Status: "Processing requests..." Tasks: 1 (limit: 784) Memory: 1.1M CGroup: /system.slice/systemd-logind.service `-325 /lib/systemd/systemd-logind Mar 13 12:23:12 arx2 systemd[1]: Starting User Login Management... Mar 13 12:23:13 arx2 systemd-logind[325]: New seat seat0. Mar 13 12:23:13 arx2 systemd-logind[325]: Watching system buttons on /dev/input/event1 (bd718xx-pwrkey) Mar 13 12:23:13 arx2 systemd[1]: Started User Login Management. Mar 13 12:23:13 arx2 systemd-logind[325]: New session c1 of user root. Mar 13 12:23:13 arx2 systemd-logind[325]: Failed to apply ACLs: Operation not supported Mar 13 12:23:14 arx2 systemd-logind[325]: Session c1 logged out. Waiting for processes to exit. Mar 13 12:23:14 arx2 systemd-logind[325]: Removed session c1. Mar 13 12:23:14 arx2 systemd-logind[325]: Failed to apply ACLs: Operation not supported Mar 13 12:23:47 arx2 systemd-logind[325]: New session c2 of user root. ${XDG_RUNTIME_DIR}/weston.log 不存在 - 似乎没有创建任何日志,所以我什至无法通过日志文件更详细地了解出了什么问题。从错误消息中可以看出——由于某种原因,创建套接字失败。 配置文件: root@arx2:~# cat /etc/xdg/weston/weston.ini [core] #gbm-format=argb8888 #gbm-format=rgb565 idle-time=0 use-g2d=1 #xwayland=true repaint-window=16 #enable-overlay-view=1 modules=screen-share.so #[shell] #size=1920x1080 [libinput] touchscreen_calibrator=true [output] name=HDMI-A-1 mode=1280x720@60 #transform=rotate-90 [output] #name=HDMI-A-2 #mode=off # WIDTHxHEIGHT Resolution size width and height in pixels # off Disables the output # preferred Uses the preferred mode # current Uses the current crt controller mode #transform=rotate-90 |
|
相关推荐
1个回答
|
|
|
00.gpu-card
首先,您需要确保 imx8mm 上已安装了 wayland 和 weston。您可以通过以下命令检查: ``` $ dpkg -l | grep wayland $ dpkg -l | grep weston ``` 如果未安装,请通过以下命令安装: ``` $ sudo apt-get update $ sudo apt-get install weston wayland ``` 此外,您需要确保设备有 graphics driver,可通过以下命令检查: ``` $ udevadm info /dev/dri/card0P ``` 如果结果中包含 "drm" 和 "platform-38000000.gpu",则表示您的设备已安装了 graphics driver。 如果您已确定已经安装了 wayland、weston 和 graphics driver,但仍无法启动 weston,则有可能是其他问题导致的。建议您查找日志文件,以检查是否有任何信息指示问题所在。您可以按以下步骤进行: 1. 启动 weston: ``` $ weston ``` 2. 在另一个终端窗口中,查找 weston 日志文件: ``` $ tail -f /var/log/weston.log ``` 您可以从日志文件中获取更多信息,以了解您的问题。 希望这可以帮助您解决问题。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
2139个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37403 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6797 浏览 1 评论
7823 浏览 1 评论
7665 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5089 浏览 0 评论
1580浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1223浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
768浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
757浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
698浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 07:06 , Processed in 1.092838 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1157