Issue Displaying Qt Application on 7" DSI Display with Boot2Qt 6.8

Hello everyone,

I wanted to share a solution that worked for me, in case anyone else is running into similar issues.

I initially tried to run my Qt application on a Toradex device using the eglfs platform. In my Yocto layer, the default QT_QPA_PLATFORM was being set in the default-qt-envs.bb file like this:

QT_QPA_PLATFORM ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs', 'linuxfb', d)}"

After some digging, I found that eglfs wasn’t working correctly on my board. It seems this might be due to the galcore driver (used by the Vivante GPU). From what I understand, eglfs requires a full DRM/KMS backend to function correctly — something that drivers like etnaviv or modesetting provide. However, galcore is likely more limited or headless and does not expose the full DRM/KMS API, which may lead to failures when using eglfs.

:white_check_mark: Solution: Switch to wayland-egl

Switching to Wayland by setting:

QT_QPA_PLATFORM=wayland-egl

allowed my application to run successfully. Weston was already running on the device, so using Wayland as the backend worked seamlessly.


Hopefully this helps others who are using Qt (boot2qt) with Toradex and running into display issues with eglfs

regards
Alvaro