What images to use for wayland with GPU support for verdin imx8mp?

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello!

To address the issue where your Rust application using EGL cannot find a default display on Wayland, here are some steps you can follow:

  1. Verify Weston Compositor: Ensure that the Weston compositor is running correctly. Check the logs of the Weston container to confirm it starts without errors and is ready to accept Wayland clients.

  2. Set Environment Variables: Make sure the WAYLAND_DISPLAY environment variable is correctly set in your wayland-app container. This variable should match the Wayland socket used by Weston, typically WAYLAND_DISPLAY=wayland-0.

  3. Check Device Permissions: Confirm that your wayland-app container has the necessary permissions to access GPU and display devices. You’ve mounted /dev/dri and /dev/galcore, which is good, but also ensure your device cgroup rules are correctly configured.

  4. Install Required Libraries: Verify that all necessary EGL and Wayland libraries are installed in your wayland-app container. You may need packages like libegl1-mesa, libwayland-client0, and libwayland-egl1 to ensure proper functionality.

  5. Cross-Compilation Checks: Ensure that the correct versions of libraries are linked during cross-compilation. Mismatches between host and target library versions can lead to runtime issues.

  6. Enable Debugging: Set the RUST_BACKTRACE=1 environment variable to get a stack trace, which can provide more insight into where the failure occurs.

By following these steps, you should be able to resolve the issue with EGL not finding a default display on Wayland. If the problem persists, consider testing with a simple Wayland application to determine if the issue is with the environment or your specific Rust application.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

Electron segfaults when enabling hardware acceleration on iMX8MP.