This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM625:AM62x LVDS 镜像

Guru**** 1825110 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1428759/am625-am62x-lvds-mirroring

器件型号:AM625

工具与软件:

尊敬的支持团队:

在器件树中、我们配置了2个 LVDS 端口、以便连接2个在镜像模式下工作的相同 LVDS 显示器。

我可以使用 eglfs 后端成功运行任何 Qt 演示、并且两个 LVDS 显示器在镜像模式下都可以正常运行。

很遗憾、如果我尝试开始 wayland、它会崩溃、报告以下错误

[15:43:41.071]错误:无法从父 Wayland 合成器检索 WL_shm

[15:43:41.071]致命:无法创建 compositor 后端

您能建议如何配置 weston.ini 以成功启动 Weston 吗?

谢谢

BR

码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    在配置 LVDS 之前、不需要额外的 Weston 配置、Weston 是否已在您的板上启动?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    您所说的"配置 LVDS 之前"是什么意思?

    我目前正在设备树中配置 LVDS 镜像:启动 Weston 后是否应该在用户空间中实际配置 LVDS 镜像?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    我只是想了解韦斯顿是否在 您的设置上工作过。 我假设您有一个使用您的定制 BSP 的定制电路板。 除了 LVDS、您还可以测试其他任何显示接口吗? 此外、如果您将 LVDS 配置为单链路(无镜像)、Weston 是否工作? 最后、您使用的是什么 BSP?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    我的 BSP 基于"Processor SDK Linux for AM62x 09.02.01.10 (2024年5月22日)"。

    单个显示器可以使用 Weston 开箱即用。

    要连接第二个相同的 LVDS、我复制了当前显示节点并将其 端点链接到 DSS 端口2: 这 允许使用 Qt5+eglfs 镜像加速的帧缓冲区、但会导致 Weston 崩溃。

    是否有任何不同的方法将 LVDS 输出复制到 DSS 端口2?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    这种方法听起来很合理、而且您已经有非 Weston 方法有效。 如果需要任何其他内容、我将向我们的开发人员咨询。  

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    感谢确认、期待 Weston 更新。

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    您能将 LVDS 镜像的 DTS 更改 与我共享吗?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    你是指私人吗?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    如果可能、 您可以 在此处共享 DTS 片段吗?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    我使用的是这样的东西


      显示{
          compatible ="mydisplay";
          背光=<和背光>;
          状态="正常";
          端口@0{
             LCD_in0:端点{
                远程端点=<&oldi_out0>;
             };
          };
       };
       显示1 {
          compatible ="mydisplay"
          背光=<和背光>;
          状态="正常";
          端口@0{
             LCD_IN1:端点{
                远程端点=<&OLDI_OUT1>;
             };
          };
       };
    };
    &DSS_PORTS{
       #address-cells =<1>;
       #size-cells =<0>;
       /* VP1:LVDS 输出(OLDI TX 0)*/
       端口@0{
          REG =<0>;
          oldi_out0:端点{
             远程端点=<&LCD_in0>;
          };
       };
       /* VP1:LVDS 输出(OLDI TX 1)*/
       端口@2{
          reg =<2>;
          oldi_out1:端点{
                远程端点=<&LCD_IN1>;
          };
       };
    };

    您并不需要连接显示器:Weston 在任何情况下都会崩溃。

    如果您需要更多详细信息、请告诉我。

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    遗憾的是、它始终会崩溃。

    请共享命令的输出

    ls -al /sys/class/drm */

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    输出如下:

    root@am62xx-evm:~# ls -al /sys/class/drm/*
    lrwxrwxrwx 1 root root    0 Jan  1  1970 /sys/class/drm/card0 -> ../../devices/platform/bus@f0000/30200000.dss/drm/card0
    lrwxrwxrwx 1 root root    0 Jan  1  1970 /sys/class/drm/card0-HDMI-A-1 -> ../../devices/platform/bus@f0000/30200000.dss/drm/card0/card0-HDMI-A-1
    lrwxrwxrwx 1 root root    0 Jan  1  1970 /sys/class/drm/card0-LVDS-1 -> ../../devices/platform/bus@f0000/30200000.dss/drm/card0/card0-LVDS-1
    lrwxrwxrwx 1 root root    0 Jan  1  1970 /sys/class/drm/card0-LVDS-2 -> ../../devices/platform/bus@f0000/30200000.dss/drm/card0/card0-LVDS-2
    lrwxrwxrwx 1 root root    0 Oct 29 22:58 /sys/class/drm/card1 -> ../../devices/platform/bus@f0000/fd00000.gpu/drm/card1
    lrwxrwxrwx 1 root root    0 Nov  1 13:04 /sys/class/drm/renderD128 -> ../../devices/platform/bus@f0000/fd00000.gpu/drm/renderD128
    -r--r--r-- 1 root root 4096 Apr 28  2022 /sys/class/drm/version
    

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    请禁用 HDMI 并再次检查。

    据我从您上次的回复中可以看到、HDMI 启用了、但在我们的用例中、只有2个 LVDS 存在。

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    我可以使用 HDMI 重试、但我的 EVM 上未连接 HDMI。 我认为移除 HDMI 节点不会有任何区别。  您的 weston.log 文件中是否有任何其他日志?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 

    问题不是 HDMI 是否已连接、而是 DRM 配置不同。

    在我的条件下、我有2张 LVDS 卡、但没有 HDMI 卡。

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您是否还可以共享 以下内容的输出: /usr/bin/weston --modules=systemd-notify.so?

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    按照、您可以找到 我的输出

    # /usr/bin/weston --modules=systemd-notify.so
    Date: 2024-09-17 UTC
    [15:43:37.402] weston 10.0.2
                   wayland.freedesktop.org
                   Bug reports to: gitlab.freedesktop.org/.../
                   Build: 10.0.2
    [15:43:37.403] Command line: /usr/bin/weston --modules=systemd-notify.so
    [15:43:37.403] OS: Linux, 6.1.83-g055ead3d5359, #1 SMP PREEMPT Wed Oct 30 17:25:27 CEST 2024, aarch64
    [15:43:37.403] Flight recorder: enabled
    [15:43:37.403] Using config file '/etc/xdg/weston/weston.ini'
    [15:43:37.404] Output repaint window is 7 ms maximum.
    [15:43:37.406] Loading module '/usr/lib/libweston-10/wayland-backend.so'
    [  138.025190] audit: type=1006 audit(1726587817.668:21): pid=1105 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1
    [  138.038112] audit: type=1300 audit(1726587817.668:21): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffc930e8f8 a2=4 a3=0 items=0 ppid=1 pid=1105 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [  138.064028] audit: type=1327 audit(1726587817.668:21): proctitle="(systemd)"
    [  138.470291] audit: type=1006 audit(1726587818.112:22): pid=1103 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=5 res=1
    [  138.482995] audit: type=1300 audit(1726587818.112:22): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffc930e8f8 a2=4 a3=0 items=0 ppid=1 pid=1103 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=5 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
    [  138.508547] audit: type=1327 audit(1726587818.112:22): proctitle="(weston)"
    [  139.044720] audit: type=1006 audit(1726587818.688:23): pid=1112 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=6 res=1
    [  139.057436] audit: type=1300 audit(1726587818.688:23): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffc930e8f8 a2=4 a3=0 items=0 ppid=1 pid=1112 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=6 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
    [  139.083018] audit: type=1327 audit(1726587818.688:23): proctitle="(weston)"
    [  139.654925] audit: type=1006 audit(1726587819.296:24): pid=1114 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=7 res=1
    [15:43:41.071] Error: Failed to retrieve wl_shm from parent Wayland compositor
    [15:43:41.071] fatal: failed to create compositor backend

    在设备树中禁用 HDMI 的输出是什么?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    对于上述错误、您可以运行以下命令: Unset WAYLAND _ DISPLAY

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    我现在将读取一个不同的误差

    # env | grep WAYLAND_DISPLAY
    WAYLAND_DISPLAY=/run/wayland-0
    # unset WAYLAND_DISPLAY
    # env | grep WAYLAND_DISPLAY
    # /usr/bin/weston --modules=systemd-notify.so
    Date: 2024-10-31 UTC
    [20:31:32.475] weston 10.0.2
                   wayland.freedesktop.org
                   Bug reports to: gitlab.freedesktop.org/.../
                   Build: 10.0.2
    [20:31:32.475] Command line: /usr/bin/weston --modules=systemd-notify.so
    [20:31:32.475] OS: Linux, 6.1.83-ti-g62548c6d33d9, #1 SMP PREEMPT Thu Sep 26 12:38:08 UTC 2024, aarch64
    [20:31:32.475] Flight recorder: enabled
    [20:31:32.476] Using config file '/etc/xdg/weston/weston.ini'
    [20:31:32.476] Output repaint window is 7 ms maximum.
    [20:31:32.477] Loading module '/usr/lib/libweston-10/drm-backend.so'
    [20:31:32.482] initializing drm backend
    [20:31:32.483] Trying logind launcher...
    [20:31:32.483] logind: failed to get session seat
    [20:31:32.483] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
    [20:31:32.484] Trying weston_launch launcher...
    [20:31:32.484] could not get launcher fd from env
    [20:31:32.484] Trying direct launcher...
    [20:31:32.484] failed to get VT mode: Inappropriate ioctl for device
    [20:31:32.484] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API.
    [20:31:32.484] fatal: failed to create compositor backend
    Internal warning: debug scope 'drm-backend' has not been destroyed.

    您是否能够测试此功能、从而禁用您的 HDMI?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    谢谢、我也在我这边看到了。 要解决上述问题、您需要通过"--tty=1"。 在我的设置中、添加后、我看到以下内容:  

    [20:21:02.071] Color manager: no-op
    [20:21:02.071] Output 'LVDS-1' using color profile: built-in default sRGB SDR profile
    [20:21:02.071] Chosen EGL config details: id:   7 rgba: 8 8 8 0 buf: 24 dep:  0 stcl: 0 int: 1-1 type: win|pbf vis_id: XRGB8888 (0x34325258)
    [20:21:02.072] Output LVDS-1 (crtc 38) video modes:
                   1280x800@60.0, preferred, current, 71.1 MHz
    [20:21:02.072] Output 'LVDS-1' enabled with head(s) LVDS-1
    [20:21:02.072] Output 'LVDS-2' using color profile: built-in default sRGB SDR profile
    [20:21:02.072] Output 'LVDS-2': No available CRTCs.
    [20:21:02.072] Enabling output "LVDS-2" failed.
    [20:21:02.072] Error: cannot enable output 'LVDS-2' without heads.
    [20:21:02.077] BUG: layer_list is not empty after shutdown. Calls to weston_layer_fini() are missing somwhere.

    从这一点来看,我认为这是韦斯顿  的限制,它似乎不支持克隆模式。 我看到联机论坛中有自定义补丁来支持克隆模式。

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的

    "--tty=1" 在我这边产生类似的行为。

    您能否分享您参考的自定义增补程序的链接?

    谢谢

    此致

    码头

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨码头

    我遇到了以下问题: https://community.toradex.com/t/clone-mode-not-work-with-multi-display-in-apalis-imx8qp/20141/3。 不确定它是否相关、但有一些需要探索的地方。

    此致、
    Krunal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢

    目前、我只需将此功能标记为在 Wayland 中不受支持。

    此致

    码头