Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

[rpi2] failed start with eglfs #125

Open
jalona opened this issue Oct 3, 2015 · 11 comments
Open

[rpi2] failed start with eglfs #125

jalona opened this issue Oct 3, 2015 · 11 comments
Assignees

Comments

@jalona
Copy link

jalona commented Oct 3, 2015

device: rpi2
qt 5.5.1

How to solve a problem?

[alarm@alarmpi ~]$ greenisland --platform eglfs --shell io.papyros.shell
QML debugging is enabled. Only use this in a safe environment.
Could not find DRM device!
Aborted (core dumped)
[alarm@alarmpi ~]$ printenv
XDG_SESSION_ID=c1
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.1.136 49710 22
SSH_TTY=/dev/pts/0
USER=alarm
MAIL=/var/spool/mail/alarm
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home/alarm
LANG=C
SHLVL=1
HOME=/home/alarm
LOGNAME=alarm
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
SSH_CONNECTION=192.168.1.136 49710 192.168.1.134 22
XDG_RUNTIME_DIR=/run/user/1000
QT_QPA_PLATFORM_PLUGIN=eglfs
_=/usr/bin/printenv
[alarm@alarmpi ~]$ 

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@jalona
Copy link
Author

jalona commented Oct 3, 2015

[alarm@alarmpi ~]$ ls -l /usr/lib/qt/plugins/platforms/
total 620
-rwxr-xr-x 1 root root   9768 Oct  3 11:21 GreenIslandEglFS.so
-rwxr-xr-x 1 root root   9716 Aug 22 11:51 libqeglfs.so
-rwxr-xr-x 1 root root 232988 Aug 22 11:51 libqlinuxfb.so
-rwxr-xr-x 1 root root  26368 Aug 22 11:51 libqminimal.so
-rwxr-xr-x 1 root root 125972 Aug 22 11:51 libqminimalegl.so
-rwxr-xr-x 1 root root  92628 Aug 22 11:51 libqoffscreen.so
-rwxr-xr-x 1 root root  47172 Oct  2 18:20 libqwayland-egl.so
-rwxr-xr-x 1 root root   9676 Oct  2 18:20 libqwayland-generic.so
-rwxr-xr-x 1 root root  51212 Oct  2 18:20 libqwayland-xcomposite-egl.so
-rwxr-xr-x 1 root root   9716 Aug 22 11:51 libqxcb.so
[alarm@alarmpi ~]$ 

@jalona
Copy link
Author

jalona commented Oct 3, 2015

[alarm@alarmpi ~]$ ldd /usr/lib/qt/plugins/platforms/libqeglfs.so
    linux-vdso.so.1 (0x7ecbc000)
    libQt5EglDeviceIntegration.so.5 => /usr/lib/libQt5EglDeviceIntegration.so.5 (0x76e95000)
    libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0x76ac4000)
    libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x766a0000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7655c000)
    libc.so.6 => /usr/lib/libc.so.6 (0x7641c000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x763d9000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x76335000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x76236000)
    libudev.so.1 => /usr/lib/libudev.so.1 (0x760cb000)
    libmtdev.so.1 => /usr/lib/libmtdev.so.1 (0x760bd000)
    libEGL.so.1 => /usr/lib/libEGL.so.1 (0x7608d000)
    libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0x76076000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x7604d000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x76020000)
    /usr/lib/ld-linux-armhf.so.3 (0x54ae9000)
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x75fe4000)
    libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x75f7f000)
    libz.so.1 => /usr/lib/libz.so.1 (0x75f5c000)
    libm.so.6 => /usr/lib/libm.so.6 (0x75edf000)
    libicui18n.so.55 => /usr/lib/libicui18n.so.55 (0x75cef000)
    libicuuc.so.55 => /usr/lib/libicuuc.so.55 (0x75b9a000)
    libpcre16.so.0 => /usr/lib/libpcre16.so.0 (0x75b2f000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x75b1a000)
    librt.so.1 => /usr/lib/librt.so.1 (0x75b03000)
    libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x75965000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7593b000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x7592a000)
    libpcre.so.1 => /usr/lib/libpcre.so.1 (0x758b5000)
    libresolv.so.2 => /usr/lib/libresolv.so.2 (0x7588f000)
    libcap.so.2 => /usr/lib/libcap.so.2 (0x75884000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x75871000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x75754000)
    libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0x75740000)
    libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x7572b000)
    libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x75714000)
    libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x75700000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x756d9000)
    libgbm.so.1 => /usr/lib/libgbm.so.1 (0x756be000)
    libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x756a5000)
    libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x75689000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0x7566c000)
    libglapi.so.0 => /usr/lib/libglapi.so.0 (0x75628000)
    libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x755f7000)
    libicudata.so.55 => /usr/lib/libicudata.so.55 (0x73d30000)
    liblzma.so.5 => /usr/lib/liblzma.so.5 (0x73cff000)
    liblz4.so.1 => /usr/lib/liblz4.so.1 (0x73cde000)
    libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x73c3d000)
    libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x73c1e000)
    libattr.so.1 => /usr/lib/libattr.so.1 (0x73c12000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x73c08000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x73bf2000)
    libffi.so.6 => /usr/lib/libffi.so.6 (0x73be2000)
[alarm@alarmpi ~]$ 

@jalona
Copy link
Author

jalona commented Oct 3, 2015

[alarm@alarmpi ~]$ ls -l /opt/vc/lib/
total 2488
-rw-r--r-- 1 root root 200270 Sep 30 01:13 libEGL.so
-rw-r--r-- 1 root root 243996 Sep 30 01:13 libEGL_static.a
lrwxrwxrwx 1 root root     12 Sep 30 01:13 libGLESv1_CM.so -> libGLESv2.so
-rw-r--r-- 1 root root 105151 Sep 30 01:13 libGLESv2.so
-rw-r--r-- 1 root root 100600 Sep 30 01:13 libGLESv2_static.a
-rw-r--r-- 1 root root  98155 Sep 30 01:13 libOpenVG.so
-rw-r--r-- 1 root root  78720 Sep 30 01:13 libWFC.so
-rw-r--r-- 1 root root  96331 Sep 30 01:13 libbcm_host.so
-rw-r--r-- 1 root root 348241 Sep 30 01:13 libcontainers.so
-rw-r--r-- 1 root root  15688 Sep 30 01:13 libdebug_sym.so
-rw-r--r-- 1 root root  12462 Sep 30 01:13 libdebug_sym_static.a
-rw-r--r-- 1 root root  13490 Sep 30 01:13 libkhrn_client.a
-rw-r--r-- 1 root root 447950 Sep 30 01:13 libkhrn_static.a
-rw-r--r-- 1 root root  13154 Sep 30 01:13 libmmal.so
-rw-r--r-- 1 root root  63572 Sep 30 01:13 libmmal_components.so
-rw-r--r-- 1 root root  76292 Sep 30 01:13 libmmal_core.so
-rw-r--r-- 1 root root  81545 Sep 30 01:13 libmmal_util.so
-rw-r--r-- 1 root root  44598 Sep 30 01:13 libmmal_vc_client.so
-rw-r--r-- 1 root root  32516 Sep 30 01:13 libopenmaxil.so
-rw-r--r-- 1 root root   3296 Sep 30 01:13 libvcfiled_check.a
-rw-r--r-- 1 root root  30143 Sep 30 01:13 libvchiq_arm.so
-rw-r--r-- 1 root root 137058 Sep 30 01:13 libvchostif.a
-rw-r--r-- 1 root root  27350 Sep 30 01:13 libvcilcs.a
-rw-r--r-- 1 root root 172360 Sep 30 01:13 libvcos.so
-rw-r--r-- 1 root root  21502 Sep 30 01:13 libvcsm.so
-rw-r--r-- 1 root root  31626 Sep 30 01:13 libvmcs_rpc_client.a
drwxr-xr-x 2 root root   4096 Sep 30 19:55 plugins
[alarm@alarmpi ~]$ 

@jalona
Copy link
Author

jalona commented Oct 3, 2015

and use kernel

[alarm@alarmpi ~]$ sudo greenisland --platform linuxfb --shell io.papyros.shell
QML debugging is enabled. Only use this in a safe environment.
OS: Arch Linux ARM [linux version 4.1.9-1-ARCH]
Architecture: arm; features: Neon
Wayland version: 1.9.0
Qt version: 5.5.0
QtCompositor version: 5.5.1
Green Island version: 0.6.92
Environment variables:
greenisland.compositor: Failed to set /dev/tty in graphics mode: Inappropriate ioctl for device
error: XDG_RUNTIME_DIR not set in the environment
Fatal: Failed to open server socket
[alarm@alarmpi ~]$ 

@plfiorini plfiorini self-assigned this Oct 3, 2015
@jalona
Copy link
Author

jalona commented Oct 3, 2015

[alarm@alarmpi ~]$ sudo pacman -Qi qt5-base
[sudo] password for alarm: 
Name           : qt5-base
Version        : 5.5.0-2
Description    : A cross-platform application and UI framework
Architecture   : armv7h
URL            : http://www.qt.io/developers
Licenses       : GPL3  LGPL  FDL  custom
Groups         : qt  qt5
Provides       : None
Depends On     : libjpeg-turbo  xcb-util-keysyms  libgl  dbus  fontconfig  systemd  xcb-util-wm
                 libxrender  libxi  sqlite  xcb-util-image  icu  qtchooser  libinput
Optional Deps  : qt5-svg: to use SVG icon themes [installed]
                 postgresql-libs: PostgreSQL driver
                 libmariadbclient: MariaDB driver
                 unixodbc: ODBC driver
                 libfbclient: Firebird/iBase driver
                 mtdev: evdev plugin [installed]
                 libxkbcommon-x11: xcb plugin [installed]
                 libsm: xcb plugin [installed]
                 gtk2: GTK2 plugin
Required By    : attica-qt5  gpgmepp  karchive  kcodecs  kconfig  kcoreaddons  kitemviews  kwidgetsaddons
                 libdbusmenu-qt5  libqtxdg  networkmanager-qt  papyros-shell-rpi-git  phonon-qt5
                 polkit-qt5  qt5-script  qt5-svg  qt5-wayland-rpi-git  qt5-x11extras  qt5-xmlpatterns
                 sonnet
Optional For   : cmake
Conflicts With : qt
Replaces       : None
Installed Size :  45.86 MiB
Packager       : Arch Linux ARM Build System <[email protected]>
Build Date     : Sat Aug 22 11:51:25 2015
Install Date   : Thu Oct 1 18:23:55 2015
Install Reason : Explicitly installed
Install Script : No
Validated By   : SHA256 Su

@jalona
Copy link
Author

jalona commented Oct 5, 2015

This not found display-manager

[    6.891203] systemd[1]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory.
[alarm@alarmpi ~]$ sudo systemctl status display-manager.service
* display-manager.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

@plfiorini
Copy link
Member

Need to implement brcm support here since Green Island now has its QPA plugin and doesn't use the Qt one.

@plfiorini plfiorini added this to the Version 0.7.0 milestone Oct 7, 2015
@jalona
Copy link
Author

jalona commented Oct 7, 2015

Good, wait Version 0.7.0 :)

@jalona
Copy link
Author

jalona commented Oct 10, 2015

make with -DENABLE_EGLDEVICEINTEGRATION_BRCM:BOOL=ON

[ 68%] Built target kms
Scanning dependencies of target x11_automoc
[ 68%] Automatic moc for target x11
Generating main.moc
[ 68%] Built target x11_automoc
Scanning dependencies of target x11
[ 69%] Building CXX object plugins/egldeviceintegration/x11/CMakeFiles/x11.dir/eglfsx11integration.cpp.o
[ 69%] Building CXX object plugins/egldeviceintegration/x11/CMakeFiles/x11.dir/main.cpp.o
[ 70%] Building CXX object plugins/egldeviceintegration/x11/CMakeFiles/x11.dir/x11_automoc.cpp.o
[ 70%] Linking CXX shared module x11.so
[ 70%] Built target x11
Scanning dependencies of target brcm_automoc
[ 71%] Automatic moc for target brcm
Generating main.moc
[ 71%] Built target brcm_automoc
Scanning dependencies of target brcm
[ 71%] Building CXX object plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/eglfsbrcmintegration.cpp.o
In file included from /opt/vc/include/bcm_host.h:54:0,
                 from /home/alarm/build/albeda-pkgbuilds/greenisland-rpi-git/src/greenisland-rpi-git/plugins/egldeviceintegration/brcm/eglfsbrcmintegration.cpp:29:
/opt/vc/include/interface/vmcs_host/vcgencmd.h:33:27: fatal error: vchost_config.h: No such file or directory
compilation terminated.
plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/build.make:62: recipe for target 'plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/eglfsbrcmintegration.cpp.o' failed
make[2]: *** [plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/eglfsbrcmintegration.cpp.o] Error 1
CMakeFiles/Makefile2:694: recipe for target 'plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/all' failed
make[1]: *** [plugins/egldeviceintegration/brcm/CMakeFiles/brcm.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
[alarm@pi greenisland-rpi-git]$ 

@plfiorini
Copy link
Member

Haven't tested yet on my Pi2

@jalona
Copy link
Author

jalona commented Oct 11, 2015

@plfiorini
solution: raspberrypi/firmware#171

@plfiorini plfiorini modified the milestones: Version 0.9.0, Version 0.8.0 Apr 27, 2016
@plfiorini plfiorini removed this from the Version 0.9.0 milestone Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants