Hi
We have developed a board using the IMX8MQ processor, using yocto to build the image (repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-langdale -m imx-6.1.1-1.0.0.xml). But I am strugling with what appears to me to be a weston issue. We are connecting directly with HDMI using dcss. I am currently working with the imx-full-image.
While the board is booting I can see the NXP Splash Screen in uboot, then 3 linux penguins during kernel boot, but the screen goes blank after I am given a login prompt (using UART debug header). If I try to run any applications (demoexperience, weston-image) they seem to run but nothing is displayed on the screen.
Oddly enough, if I uninstall weston from the image I can see a console login being displayed.
I have added video=HDMI-A-1:1920x1080-32@60 to my uboot bootcmd, and cannot see any errors from the bootlogs
dmesg | grep -i hdmi
[ 0.072857] platform 32e00000.display-controller: Fixing up cyclic dependency with 32c00000.hdmi
[ 2.040133] cdns-mhdp-imx 32c00000.hdmi: lane-mapping 0xe4
[ 2.057701] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops)
[ 2.114017] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 2.161597] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 9.913686] input: imx-audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card0/input2
dmesg | grep -i dcss
[ 2.057701] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops)
[ 2.067477] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 0
[ 2.437426] imx-dcss 32e00000.display-controller: [drm] fb0: imx-dcssdrmfb frame buffer device
From what I can see, it appears that HDMI is working (seeing images at various stages of boot) but there must be something I am missing with config.
Can you tell me how you solved this
You can dump display information with modetest .
Thank you @Zhiming_Liu
From modetest I am seeing the following:
root@imx8mq-evk:~# modetest
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...failed
trying to open device 'rockchip'...failed
trying to open device 'atmel-hlcdc'...failed
trying to open device 'fsl-dcu-drm'...failed
trying to open device 'vc4'...failed
trying to open device 'virtio_gpu'...failed
trying to open device 'mediatek'...failed
trying to open device 'meson'...failed
trying to open device 'pl111'...failed
trying to open device 'stm'...failed
trying to open device 'sun4i-drm'...failed
trying to open device 'armada-drm'...failed
trying to open device 'komeda'...failed
trying to open device 'imx-dcss'...done
[40109.167168] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
Encoders:
id crtc type possible crtcs possible clones
50 36 TMDS 0x00000001 0x00000001
Connectors:
id encoder status name size (mm) modes encoders
51 50 connected HDMI-A-1 470x260 6 50
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
#1 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
#2 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#3 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#4 720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
#5 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:
value:
00ffffffffffff0012e50021502d3101
1c130103812f1a782e3585a656489a24
125054afef0001010101010101010101
0101010101013e0d200031e037102c58
3600dc0c1100001e000000ff00300a0a
0a0a0a0a0a0a0a0a0a0a000000fd0038
4b1e5315000a202020202020000000fc
0048444d490a0a0a0a0a0a0a0a0a01f8
020321714e0607020315961112130414
051f90230907078301000065030c0010
008c0ad090204031200c405500b98821
000018011d8018711c1620582c2500b9
882100009e011d80d0721c1620102c25
80b9882100009e011d00bc52d01e20b8
285540b9882100001e023a80d072382d
40102c4580b9882100001e00000000d0
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:
value:
7 HDR_OUTPUT_METADATA:
flags: blob
blobs:
value:
52 Colorspace:
flags: enum
enums: Default=0 SMPTE_170M_YCC=1 BT709_YCC=2 XVYCC_601=3 XVYCC_709=4 SYCC_601=5 opYCC_601=6 opRGB=7 BT2020_CYCC=8 BT2020_RGB=9 BT2020_YCC=10 DCI-P 3_RGB_D65=11 DCI-P3_RGB_Theater=12
value: 0
53 Content Protection:
flags: enum
enums: Undesired=0 Desired=1 Enabled=2
value: 0
54 HDCP Content Type:
flags: enum
enums: HDCP Type0=0 HDCP Type1=1
value: 0
CRTCs:
id fb pos size
36 60 (0,0) (1920x1080)
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 36 60 0,0 0,0 0 0x00000001
formats: AR24 XR24 AB24 XB24 RA24 RX24 BA24 BX24 XR30 XB30 RX30 BX30 AR30 AB30 RA30 BA30 AYUV UYVY VYUY YUYV YVYU NV12 NV21 NV15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
30 IN_FORMATS:
flags: immutable blob
blobs:
value:
01000000000000001800000018000000
04000000780000004152323458523234
41423234584232345241323452583234
42413234425832345852333058423330
52583330425833304152333041423330
52413330424133304159555655595659
5659555959555956595659554e563132
4e5632314e5631350310000000000000
00000000000000000100000000000006
03100000000000000000000000000000
02000000000000060310000000000000
00000000000000000500000000000006
ffffff00000000000000000000000000
0000000000000000
in_formats blob decoded:
AR24: VIVANTE_TILED VIVANTE_SUPER_TILED VIVANTE_SUPER_TILED_FC LINEAR
XR24: VIVANTE_TILED VIVANTE_SUPER_TILED VIVANTE_SUPER_TILED_FC LINEAR
AB24: LINEAR
XB24: LINEAR
RA24: LINEAR
RX24: LINEAR
BA24: LINEAR
BX24: LINEAR
XR30: LINEAR
XB30: LINEAR
RX30: LINEAR
BX30: LINEAR
AR30: VIVANTE_TILED VIVANTE_SUPER_TILED VIVANTE_SUPER_TILED_FC LINEAR
AB30: LINEAR
RA30: LINEAR
BA30: LINEAR
AYUV: LINEAR
UYVY: LINEAR
VYUY: LINEAR
YUYV: LINEAR
YVYU: LINEAR
NV12: LINEAR
NV21: LINEAR
NV15: LINEAR
33 zpos:
flags: immutable range
values: 2 2
value: 2
34 SCALING_FILTER:
flags: enum
enums: Default=0 Nearest Neighbor=1
value: 0
35 rotation:
flags: bitmask
values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
value: 1
49 alpha:
flags: range
values: 0 65535
value: 65535
37 0 0 0,0 0,0 0 0x00000001
formats: AR24 XR24 AB24 XB24 RA24 RX24 BA24 BX24 XR30 XB30 RX30 BX30 AR30 AB30 RA30 BA30 AYUV UYVY VYUY YUYV YVYU NV12 NV21 NV15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 0
30 IN_FORMATS:
flags: immutable blob
blobs:
value:
01000000000000001800000018000000
06000000780000004152323458523234
41423234584232345241323452583234
42413234425832345852333058423330
52583330425833304152333041423330
52413330424133304159555655595659
5659555959555956595659554e563132
4e5632314e5631350000e00000000000
000000000000000001000000000000f1
0000e000000000000000000000000000
02000000000000f10000e00000000000
000000000000000003000000000000f1
03100000000000000000000000000000
01000000000000060310000000000000
00000000000000000200000000000006
ffffff00000000000000000000000000
0000000000000000
in_formats blob decoded:
AR24: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
XR24: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
AB24: LINEAR
XB24: LINEAR
RA24: LINEAR
RX24: LINEAR
BA24: LINEAR
BX24: LINEAR
XR30: LINEAR
XB30: LINEAR
RX30: LINEAR
BX30: LINEAR
AR30: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
AB30: LINEAR
RA30: LINEAR
BA30: LINEAR
AYUV: LINEAR
UYVY: LINEAR
VYUY: LINEAR
YUYV: LINEAR
YVYU: LINEAR
NV12: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
NV21: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
NV15: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
39 zpos:
flags: immutable range
values: 1 1
value: 1
40 SCALING_FILTER:
flags: enum
enums: Default=0 Nearest Neighbor=1
value: 0
41 rotation:
flags: bitmask
values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
value: 1
42 dtrc_table_ofs:
flags: range
values: 0 18446744073709551615
value: 0
55 COLOR_ENCODING:
flags: enum
enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 ITU-R BT.2020 YCbCr=2
value: 1
56 COLOR_RANGE:
flags: enum
enums: YCbCr limited range=0 YCbCr full range=1
value: 1
43 0 0 0,0 0,0 0 0x00000001
formats: AR24 XR24 AB24 XB24 RA24 RX24 BA24 BX24 XR30 XB30 RX30 BX30 AR30 AB30 RA30 BA30 AYUV UYVY VYUY YUYV YVYU NV12 NV21 NV15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 0
30 IN_FORMATS:
flags: immutable blob
blobs:
value:
01000000000000001800000018000000
06000000780000004152323458523234
41423234584232345241323452583234
42413234425832345852333058423330
52583330425833304152333041423330
52413330424133304159555655595659
5659555959555956595659554e563132
4e5632314e5631350000e00000000000
000000000000000001000000000000f1
0000e000000000000000000000000000
02000000000000f10000e00000000000
000000000000000003000000000000f1
03100000000000000000000000000000
01000000000000060310000000000000
00000000000000000200000000000006
ffffff00000000000000000000000000
0000000000000000
in_formats blob decoded:
AR24: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
XR24: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
AB24: LINEAR
XB24: LINEAR
RA24: LINEAR
RX24: LINEAR
BA24: LINEAR
BX24: LINEAR
XR30: LINEAR
XB30: LINEAR
RX30: LINEAR
BX30: LINEAR
AR30: VIVANTE_TILED VIVANTE_SUPER_TILED LINEAR
AB30: LINEAR
RA30: LINEAR
BA30: LINEAR
AYUV: LINEAR
UYVY: LINEAR
VYUY: LINEAR
YUYV: LINEAR
YVYU: LINEAR
NV12: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
NV21: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
NV15: VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER VSI_UNKNOWN_MODIFIER LINEAR
45 zpos:
flags: immutable range
values: 0 0
value: 0
46 SCALING_FILTER:
flags: enum
enums: Default=0 Nearest Neighbor=1
value: 0
47 rotation:
flags: bitmask
values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
value: 1
48 dtrc_table_ofs:
flags: range
values: 0 18446744073709551615
value: 0
57 COLOR_ENCODING:
flags: enum
enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1 ITU-R BT.2020 YCbCr=2
value: 1
58 COLOR_RANGE:
flags: enum
enums: YCbCr limited range=0 YCbCr full range=1
value: 1
Frame buffers:
id size pitch
So the imx-dcss driver is being loaded.
The screen is being picked up on HDMI-A-1? Using a strange resolution of 470x260 or is this physical screen size?
A Few modes are supported, including the one in my bootcmd.
Also I have the following screen env_variables set
root@imx8mq-evk:~# echo ${XDG_SESSION_TYPE}
tty
root@imx8mq-evk:~# echo ${XDG_RUNTIME_DIR}
/run/user/0
root@imx8mq-evk:~# echo ${WAYLAND_DISPLAY}
/run/wayland-0
The information is normal, works under 1920x1080@60
CRTCs:
id fb pos size
36 60 (0,0) (1920x1080)
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Can you dump the weston log and drm log when the weston can't start up?
Hi @Zhiming_Liu
I am unsure where to get the DRM log.
WESTON:
imx8mq-evk:~# cat /run/user/0/weston.log
Date: 2023-10-11 UTC
[09:28:16.729] weston 11.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-6.1.1-1.0.0+
[09:28:16.733] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[09:28:16.733] OS: Linux, 6.1.1+g29549c7073bf, #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023, aarch64
[09:28:16.733] Flight recorder: enabled
[09:28:16.740] Using config file '/etc/xdg/weston/weston.ini'
[09:28:16.757] Output repaint window is 16 ms maximum.
[09:28:16.777] Loading module '/usr/lib/libweston-11/drm-backend.so'
[09:28:16.875] initializing drm backend
[09:28:16.876] Trying logind launcher...
[09:28:16.901] logind: session control granted
[09:28:16.917] using /dev/dri/card0
[09:28:16.917] DRM: supports atomic modesetting
[09:28:16.917] DRM: supports GBM modifiers
[09:28:16.917] DRM: supports picture aspect ratio
[09:28:16.921] Loading module '/usr/lib/libweston-11/gl-renderer.so'
imx8mq-evk:~#
After systemctl stop weston, systemctl start weston
imx8mq-evk:~# cat /run/user/0/weston.log
Date: 2023-10-11 UTC
[09:28:16.729] weston 11.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-6.1.1-1.0.0+
[09:28:16.733] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[09:28:16.733] OS: Linux, 6.1.1+g29549c7073bf, #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023, aarch64
[09:28:16.733] Flight recorder: enabled
[09:28:16.740] Using config file '/etc/xdg/weston/weston.ini'
[09:28:16.757] Output repaint window is 16 ms maximum.
[09:28:16.777] Loading module '/usr/lib/libweston-11/drm-backend.so'
[09:28:16.875] initializing drm backend
[09:28:16.876] Trying logind launcher...
[09:28:16.901] logind: session control granted
[09:28:16.917] using /dev/dri/card0
[09:28:16.917] DRM: supports atomic modesetting
[09:28:16.917] DRM: supports GBM modifiers
[09:28:16.917] DRM: supports picture aspect ratio
[09:28:16.921] Loading module '/usr/lib/libweston-11/gl-renderer.so'
Date: 2023-10-11 UTC
[09:33:12.881] weston 11.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-6.1.1-1.0.0+
[09:33:12.882] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[09:33:12.882] OS: Linux, 6.1.1+g29549c7073bf, #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023, aarch64
[09:33:12.882] Flight recorder: enabled
[09:33:12.882] Using config file '/etc/xdg/weston/weston.ini'
[09:33:12.882] Output repaint window is 16 ms maximum.
[09:33:12.882] Loading module '/usr/lib/libweston-11/drm-backend.so'
[09:33:12.890] initializing drm backend
[09:33:12.891] Trying logind launcher...
[09:33:12.913] logind: session control granted
[09:33:12.923] using /dev/dri/card0
[09:33:12.923] DRM: supports atomic modesetting
[09:33:12.923] DRM: supports GBM modifiers
[09:33:12.923] DRM: supports picture aspect ratio
[09:33:12.923] Loading module '/usr/lib/libweston-11/gl-renderer.so'
imx8mq-evk:~#
DRM??
imx8mq-evk:~# dmesg | grep -i drm
[ 2.047771] [drm] Failed to get HDCP config - using HDCP 2.2 only
[ 2.069802] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 0
[ 2.165624] [drm] Mode: 1920x1080p148500
[ 2.205351] [drm] Pixel clock: 148500 KHz, character clock: 148500, bpc is 8-bit, fmt 1
[ 2.205362] [drm] VCO frequency is 5940000 KHz
[ 2.265735] [drm] Sink Not Support SCDC
[ 2.266964] [drm] No vendor infoframe
[ 2.439527] imx-dcss 32e00000.display-controller: [drm] fb0: imx-dcssdrmfb frame buffer device
[ 5.266373] systemd[1]: Starting Load Kernel Module drm...
imx8mq-evk:~#
HDMI
imx8mq-evk:~# dmesg | grep -i hdmi
[ 0.074992] platform 32e00000.display-controller: Fixing up cyclic dependency with 32c00000.hdmi
[ 2.042244] cdns-mhdp-imx 32c00000.hdmi: lane-mapping 0xe4
[ 2.059877] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops)
[ 2.116353] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 2.164357] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 8.734992] input: imx-audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card0/input2
[ 53.089485] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
imx8mq-evk:~#
Sorry to add to the above also
cat /var/log/syslog
Oct 11 09:30:13 imx8mq-evk trousers[685]: Starting Trusted Computing daemon:
Oct 11 09:30:13 imx8mq-evk trousers[685]: device driver not loaded, skipping.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Started LSB: starts tcsd.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Reached target Multi-User System.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Reached target Graphical Interface.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Starting Record Runlevel Change in UTMP...
Oct 11 09:30:13 imx8mq-evk systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Finished Record Runlevel Change in UTMP.
Oct 11 09:30:13 imx8mq-evk systemd[1]: Startup finished in 3.211s (kernel) + 2min 5.071s (userspace) = 2min 8.282s.
Oct 11 09:33:12 imx8mq-evk systemd[1]: Starting Weston, a Wayland compositor, as a system service...
Oct 11 09:33:12 imx8mq-evk systemd[1]: Started Session c3 of User root.
Oct 11 09:33:12 imx8mq-evk kernel: audit: type=1006 audit(1697016792.819:19): pid=712 uid=0 old-auid=4294967295 auid=0 tty=tty7 old-ses=4294967295 ses=4 res=1
Oct 11 09:33:12 imx8mq-evk kernel: audit: type=1300 audit(1697016792.819:19): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffffbeb3f20 a2=1 a3=0 items=0 ppid=1 pid=712 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=4 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
Oct 11 09:33:12 imx8mq-evk kernel: audit: type=1327 audit(1697016792.819:19): proctitle="(weston)"
Oct 11 09:33:13 imx8mq-evk weston[712]: [ 1] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:14 imx8mq-evk weston[712]: [ 2] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:15 imx8mq-evk weston[712]: [ 3] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:16 imx8mq-evk weston[712]: [ 4] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:16 imx8mq-evk weston[712]: [ 5] _OpenDevice(1159): FATAL: Failed to open device, errno=No such file or directory.
Oct 11 09:33:17 imx8mq-evk weston[712]: [ 6] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:18 imx8mq-evk weston[712]: [ 7] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:19 imx8mq-evk weston[712]: [ 8] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:20 imx8mq-evk weston[712]: [ 9] Failed to open device: No such file or directory, Try again...
Oct 11 09:33:20 imx8mq-evk weston[712]: [ 10] _OpenDevice(1159): FATAL: Failed to open device, errno=No such file or directory.
Oct 11 09:33:20 imx8mq-evk systemd[1]: weston.service: Main process exited, code=exited, status=1/FAILURE
Oct 11 09:33:20 imx8mq-evk systemd[1]: weston.service: Failed with result 'exit-code'.
Oct 11 09:33:20 imx8mq-evk systemd[1]: Failed to start Weston, a Wayland compositor, as a system service.
Oct 11 09:33:21 imx8mq-evk systemd[1]: session-c3.scope: Deactivated successfully.
imx8mq-evk:~#
Not sure of that helps
Please try 24 bit, not 32 bit.
Hi @Zhiming_Liu
I am very unsure of what I did and changed, made so many changes to try and resolve this.
I fiddled with the device tree, I must have fixed something there that I didn't know was broken. My screen works now, although I am stumped as to how I got it fixed.
imx8mq-evk:~# dmesg | grep -i hdmi
[ 0.073247] platform 32e00000.display-controller: Fixing up cyclic dependency with 32c00000.hdmi
[ 2.156557] cdns-mhdp-imx 32c00000.hdmi: lane-mapping 0xe4
[ 2.174252] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops)
[ 2.228700] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 2.274274] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 9.681463] input: imx-audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card0/input2
[ 13.204753] cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
imx8mq-evk:~# dmesg | grep -i drm
[ 1.943391] [drm] Initialized vivante 1.0.0 20170808 for 38000000.gpu3d on minor 0
[ 2.162083] [drm] Failed to get HDCP config - using HDCP 2.2 only
[ 2.184157] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 1
[ 2.275540] [drm] Mode: 1920x1080p148500
[ 2.315640] [drm] Pixel clock: 148500 KHz, character clock: 148500, bpc is 8-bit, fmt 1
[ 2.315650] [drm] VCO frequency is 5940000 KHz
[ 2.376023] [drm] Sink Not Support SCDC
[ 2.377251] [drm] No vendor infoframe
[ 2.549819] imx-dcss 32e00000.display-controller: [drm] fb0: imx-dcssdrmfb frame buffer device
[ 5.752325] systemd[1]: Starting Load Kernel Module drm...
imx8mq-evk:~# dmesg | grep -i dcss
[ 2.174252] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops)
[ 2.184157] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 1
[ 2.549819] imx-dcss 32e00000.display-controller: [drm] fb0: imx-dcssdrmfb frame buffer device
imx8mq-evk:~# cat /run/user/0/weston.log
Date: 2023-10-17 SAST
[05:59:17.233] weston 11.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-6.1.1-1.0.0+
[05:59:17.237] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[05:59:17.237] OS: Linux, 6.1.1+g29549c7073bf, #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023, aarch64
[05:59:17.237] Flight recorder: enabled
[05:59:17.248] Using config file '/etc/xdg/weston/weston.ini'
[05:59:17.265] Output repaint window is 16 ms maximum.
[05:59:17.275] Loading module '/usr/lib/libweston-11/drm-backend.so'
[05:59:17.373] initializing drm backend
[05:59:17.373] Trying logind launcher...
[05:59:17.395] logind: session control granted
[05:59:17.420] using /dev/dri/card1
[05:59:17.420] DRM: supports atomic modesetting
[05:59:17.421] DRM: supports GBM modifiers
[05:59:17.421] DRM: supports picture aspect ratio
[05:59:17.422] Loading module '/usr/lib/libweston-11/gl-renderer.so'
[05:59:17.599] Using rendering device: /dev/dri/renderD128
[05:59:17.599] EGL version: 1.5
[05:59:17.599] EGL vendor: Vivante Corporation
[05:59:17.599] EGL client APIs: OpenGL_ES OpenVG
[05:59:17.599] EGL features:
EGL Wayland extension: yes
context priority: no
buffer age: yes
partial update: yes
swap buffers with damage: yes
configless context: yes
surfaceless context: yes
dmabuf support: modifiers
[05:59:17.713] GL version: OpenGL ES 3.1 V6.4.11.p1.608260
[05:59:17.713] GLSL version: OpenGL ES GLSL ES 3.10
[05:59:17.713] GL vendor: Vivante Corporation
[05:59:17.713] GL renderer: Vivante GC7000L
[05:59:17.990] GL ES 3.1 - renderer features:
read-back format: ARGB8888
wl_shm 10 bpc formats: yes
wl_shm 16 bpc formats: no
wl_shm half-float formats: no
internal R and RG formats: yes
OES_EGL_image_external: yes
[05:59:18.051] event0 - 30370000.snvs:snvs-powerkey: is tagged by udev as: Keyboard
[05:59:18.051] event0 - 30370000.snvs:snvs-powerkey: device is a keyboard
[05:59:18.126] event1 - TeNizo TeNizo_R7Series_TC: is tagged by udev as: Touchscreen
[05:59:18.126] event1 - TeNizo TeNizo_R7Series_TC: device is a touch device
[05:59:18.136] event2 - imx-audio-hdmi HDMI Jack: is tagged by udev as: Switch
[05:59:18.137] event2 - not using input device '/dev/input/event2'
[05:59:18.217] libinput: configuring device "30370000.snvs:snvs-powerkey".
[05:59:18.217] Touchscreen - TeNizo TeNizo_R7Series_TC - /sys/devices/platform/soc@0/38200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.1/1-1.1:1.0/0003:1A86:E5E3.0001/input/input3/event1
[05:59:18.217] libinput: configuring device "TeNizo TeNizo_R7Series_TC".
[05:59:18.217] input device event1 has no enabled output associated (none named), skipping calibration for now.
[05:59:18.261] DRM: head 'HDMI-A-1' updated, connector 51 is connected, EDID make 'DWE', model 'HDMI', serial '0'
Supported EOTF modes: SDR, traditional gamma HDR, ST2084, HLG
[05:59:18.261] DRM: head 'HDMI-A-1' found, connector 51 is connected, EDID make 'DWE', model 'HDMI', serial '0'
Supported EOTF modes: SDR, traditional gamma HDR, ST2084, HLG
[05:59:18.262] Registered plugin API 'weston_drm_output_api_v1' of size 32
[05:59:18.262] Color manager: no-op
[05:59:18.263] Module '/usr/lib/libgbm.so' already loaded
[05:59:18.263] Output 'HDMI-A-1' attempts EOTF mode: SDR
[05:59:18.263] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[05:59:18.270] Chosen EGL config details: id: 31 rgba: 8 8 8 8 buf: 32 dep: 0 stcl: 0 int: 1-60 type: win|pix|pbf|swap_preserved vis_id: ARGB8888 (0x34325241)
[05:59:18.270] Output HDMI-A-1 (crtc 36) video modes:
1920x1080@60.0 16:9, current, 148.5 MHz
1920x1080@50.0, 148.5 MHz
1920x1080@50.0 16:9, 148.5 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@50.0, 74.2 MHz
1280x720@50.0 16:9, 74.2 MHz
720x576@50.0, 27.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
[05:59:18.270] associating input device event0 with output HDMI-A-1 (none by udev)
[05:59:18.270] associating input device event1 with output HDMI-A-1 (none by udev)
[05:59:18.271] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[05:59:18.272] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: no
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[05:59:18.280] Loading module '/usr/lib/weston/desktop-shell.so'
[05:59:18.289] Loading module '/usr/lib/libweston-11/xwayland.so'
[05:59:18.555] Registered plugin API 'weston_xwayland_v1' of size 32
[05:59:18.555] Registered plugin API 'weston_xwayland_surface_v1' of size 16
[05:59:18.556] xserver listening on display :0
[05:59:18.557] Loading module '/usr/lib/weston/systemd-notify.so'
[05:59:18.558] info: add 1 socket(s) provided by systemd
[05:59:18.558] launching '/usr/libexec/weston-keyboard'
[05:59:18.568] launching '/usr/libexec/weston-desktop-shell'
imx8mq-evk:~# cat /var/log/syslog | grep -i drm
Oct 17 05:59:05 imx8mq-evk kernel: [drm] Initialized vivante 1.0.0 20170808 for 38000000.gpu3d on minor 0
Oct 17 05:59:06 imx8mq-evk kernel: [drm] Failed to get HDCP config - using HDCP 2.2 only
Oct 17 05:59:06 imx8mq-evk kernel: [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 1
Oct 17 05:59:06 imx8mq-evk kernel: [drm] Mode: 1920x1080p148500
Oct 17 05:59:06 imx8mq-evk kernel: [drm] Pixel clock: 148500 KHz, character clock: 148500, bpc is 8-bit, fmt 1
Oct 17 05:59:06 imx8mq-evk kernel: [drm] VCO frequency is 5940000 KHz
Oct 17 05:59:06 imx8mq-evk kernel: [drm] Sink Not Support SCDC
Oct 17 05:59:06 imx8mq-evk kernel: [drm] No vendor infoframe
Oct 17 05:59:06 imx8mq-evk kernel: imx-dcss 32e00000.display-controller: [drm] fb0: imx-dcssdrmfb frame buffer device
Oct 17 05:59:09 imx8mq-evk systemd[1]: Starting Load Kernel Module drm...
I will go over the logs to see what is different, maybe I can come to an answer that might someone else struggling with something similar.
Thank you very much fro your assistance @Zhiming_Liu