AnsweredAssumed Answered

i.MX6QuadPlus - Problem - Qt5.9 EGLFS + kernel 4.9.126 : "Could not open egl display"

Question asked by Flavio Suligoi on Sep 18, 2018
Latest reply on Oct 1, 2018 by Flavio Suligoi

Hi all,

 

I'm using an i.MX6qp custom board with a Yocto "rocko" image (no X11, Qt5.9 with EGLFS support):

 

 

All the Qt demos works fine in EGLFS (i.e. cinematicexperience-1.0) with the standard "rocko" kernel 4.1.42 (branch 4.1-2.0.x-imx), but the Qt doesn't work with the new kernel 4.9.126 (branch 4.9-2.0.x-imx).

 

I have the following error:

 

./Qt5_CinematicExperience
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_viv")
qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_viv", "eglfs_emu")
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_viv"
qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_viv"
Could not open egl display
Aborted (core dumped)

 

With strace I have the following error:

 

....

....

....

openat(AT_FDCWD, "/dev/galcore", O_RDWR) = 6
ioctl(6, _IOC(0, 0x75, 0x30, 0), 0x7e9486b0) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "Could not open egl display\n", 27Could not open egl display
) = 27
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid() = 442
gettid() = 442
tgkill(442, 442, SIGABRT) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=442, si_uid=0} ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)

 

The Qt related environment variables are:

 

xport QPEDIR
export QSG_INFO="1"
export QTDIR
export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER="1"
export QT_LOGGING_RULES="qt.qpa.*=true"
export QT_QPA_DEBUG="1"
export QT_QPA_EGLFS_DEBUG="1"
export QT_QPA_EGLFS_DEPTH="32"
export QT_QPA_EGLFS_FB="/dev/fb0"
export QT_QPA_EGLFS_HEIGHT="600"
export QT_QPA_EGLFS_WIDTH="800"
export QT_QPA_PLATFORM="eglfs"

Any suggestions?

 

Thanks,

 

Flavio Suligoi

Outcomes