Goodmorning,
we have a custom board, iMX6Q and iMX6D based.
I've followed the Ubuntu guide (Installing Ubuntu Rootfs on NXP i.MX6 boards ) and with some trouble, add the GPU-IPU and X11 GPU acceleration, but now I can't start LXDE with startx.
What's wrong?
TY and have a nice day.
Luca
Info: Ubuntu Xenial 16.04.02 - Custom Kernel 3.14.54 - X.org 1.18.4
Startx output:
root@inventami:~# startx
hostname: Name or service not known
xauth: (stdin):1: bad display name "inventami:0" in "add" command
X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-45-generic armv7l Ubuntu
Current Operating System: Linux inventami 3.14.540003-136792-gf52de67-dirty #1 SMP PREEMPT Thu Apr 6 18:49:31 CEST 2017 armv7l
Kernel command line: console=ttymxc1,115200 fbmem=28M vmalloc=400M consoleblank=0 rootwait root=/dev/mmcblk1p2
Build Date: 02 November 2016 10:05:15PM
xorg-server 2:1.18.4-0ubuntu0.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 10 12:33:04 2017
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
(EE) Backtrace:
(EE)
(EE) Segmentation fault at address 0xe0
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: (argv):1: bad display name "inventami:0" in "remove" command
xorg log:
root@inventami:~# cat /var/log/Xorg.0.log
[ 71.830]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 71.830] X Protocol Version 11, Revision 0
[ 71.830] Build Operating System: Linux 4.4.0-45-generic armv7l Ubuntu
[ 71.830] Current Operating System: Linux inventami 3.14.540003-136792-gf52de67-dirty #1 SMP PREEMPT Thu Apr 6 18:49:31 CEST 2017 armv7l
[ 71.830] Kernel command line: console=ttymxc1,115200 fbmem=28M vmalloc=400M consoleblank=0 rootwait root=/dev/mmcblk1p2
[ 71.831] Build Date: 02 November 2016 10:05:15PM
[ 71.831] xorg-server 2:1.18.4-0ubuntu0.2 (For technical support please see http://www.ubuntu.com/support)
[ 71.831] Current version of pixman: 0.33.6
[ 71.831] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 71.831] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 71.831] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 10 12:33:04 2017
[ 71.832] (==) Using config file: "/etc/X11/xorg.conf"
[ 71.832] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 71.833] (==) No Layout section. Using the first Screen section.
[ 71.833] (==) No screen section available. Using defaults.
[ 71.833] (**) |-->Screen "Default Screen Section" (0)
[ 71.833] (**) | |-->Monitor "<default monitor>"
[ 71.834] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 71.834] (**) | |-->Device "i.MX Accelerated Framebuffer Device"
[ 71.834] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 71.834] (**) Option "BlankTime" "0"
[ 71.834] (**) Option "StandbyTime" "0"
[ 71.834] (**) Option "SuspendTime" "0"
[ 71.834] (**) Option "OffTime" "0"
[ 71.834] (==) Automatically adding devices
[ 71.834] (==) Automatically enabling devices
[ 71.834] (==) Automatically adding GPU devices
[ 71.834] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 71.834] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 71.834] Entry deleted from font path.
[ 71.834] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 71.834] Entry deleted from font path.
[ 71.835] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 71.835] Entry deleted from font path.
[ 71.835] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[ 71.835] Entry deleted from font path.
[ 71.835] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 71.835] Entry deleted from font path.
[ 71.835] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 71.835] Entry deleted from font path.
[ 71.835] (==) FontPath set to:
/usr/share/fonts/X11/misc,
built-ins
[ 71.835] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 71.835] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 71.835] (II) Loader magic: 0x76fcff70
[ 71.835] (II) Module ABI versions:
[ 71.835] X.Org ANSI C Emulation: 0.4
[ 71.835] X.Org Video Driver: 20.0
[ 71.835] X.Org XInput driver : 22.1
[ 71.835] X.Org Server Extension : 9.0
[ 71.837] (--) using VT number 2[ 71.837] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 71.839] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 71.839] (II) no primary bus or device found
[ 71.839] falling back to /sys/devices/platform/Vivante GCCore/drm/card0
[ 71.839] (II) LoadModule: "glx"
[ 71.840] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 71.845] (II) Module glx: vendor="X.Org Foundation"
[ 71.845] compiled for 1.18.4, module version = 1.0.0
[ 71.845] ABI class: X.Org Server Extension, version 9.0
[ 71.845] (==) AIGLX enabled
[ 71.845] (II) LoadModule: "vivante"
[ 71.846] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so
[ 71.846] (II) Module vivante: vendor="X.Org Foundation"
[ 71.846] compiled for 1.18.4, module version = 1.0.0
[ 71.846] Module class: X.Org Video Driver
[ 71.846] ABI class: X.Org Video Driver, version 20.0
[ 71.846] (II) VIVANTE: driver for vivante fb: VivanteGC500, VivanteGC2100,
VivanteGCCORE
[ 71.878] (WW) Falling back to old probe method for vivante
[ 71.879] (II) Loading sub module "fbdevhw"
[ 71.879] (II) LoadModule: "fbdevhw"
[ 71.879] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 71.880] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 71.880] compiled for 1.18.4, module version = 0.0.2
[ 71.880] ABI class: X.Org Video Driver, version 20.0
[ 71.880] (II) VIVANTE(0): using default device
[ 71.924] (II) VIVANTE(0): Device preferred mode 'fb0':D:1920x1080p-60
[ 71.924] (II) VIVANTE(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 71.924] (==) VIVANTE(0): Depth 24, (==) framebuffer bpp 32
[ 71.925] (==) VIVANTE(0): RGB weight 888
[ 71.925] (==) VIVANTE(0): Default visual is TrueColor
[ 71.925] (==) VIVANTE(0): Using gamma correction (1.0, 1.0, 1.0)
[ 71.925] (**) VIVANTE(0): Option "fbdev" "/dev/fb0"
[ 71.925] (II) VIVANTE(0): checking modes against framebuffer device...
[ 71.925] (II) VIVANTE(0): checking modes against monitor...
[ 71.925] (II) VIVANTE(0): Use built in mode (bpp 32)
[ 71.925] (--) VIVANTE(0): Virtual size is 0x0 (pitch 0)
[ 71.925] (==) VIVANTE(0): DPI set to (96, 96)
[ 71.925] (II) Loading sub module "fb"
[ 71.925] (II) LoadModule: "fb"
[ 71.926] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 71.926] (II) Module fb: vendor="X.Org Foundation"
[ 71.926] compiled for 1.18.4, module version = 1.0.0
[ 71.926] ABI class: X.Org ANSI C Emulation, version 0.4
[ 71.926] (II) Loading sub module "exa"
[ 71.926] (II) LoadModule: "exa"
[ 71.927] (II) Loading /usr/lib/xorg/modules/libexa.so
[ 71.927] (II) Module exa: vendor="X.Org Foundation"
[ 71.927] compiled for 1.18.4, module version = 2.6.0
[ 71.927] ABI class: X.Org Video Driver, version 20.0
[ 72.000] (II) VIVANTE(0): printing discovered frame buffer 'fb0' supported modes:
[ 72.000] (II) VIVANTE(0): Modeline "U:1920x1080p-60"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync -csync (67.5 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1280x720p-60"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync -csync (45.0 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1920x1080p-50"x0.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync -csync (56.2 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1440x576i-50"x0.0 27.00 1440 1578 1704 1728 576 615 621 625 -hsync -vsync -csync (15.6 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1440x576i-50"x0.0 27.00 1440 1578 1704 1728 576 615 621 625 -hsync -vsync -csync (1777555007559779323276965225431040.0 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1920x1080i-50"x0.0 74.25 1920 2068 2112 2640 1080 1111 1121 1125 hskew 2003950952 vscan 1 +hsync +vsync -csync (28.1 kHz e)
[ 72.001] (II) VIVANTE(0): Modeline "S:1280x720p-50"x71554069081589777694720.0 74.25 1280 1720 1760 1980 720 725 730 750 hskew 2003951224 vscan 1991198716 +hsync +vsync -csync (199.1 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:720x576p-50"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync -csync (31.2 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:720x576p-50"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync -csync (31.2 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:1440x480i-60"x0.0 27.00 1440 1554 1678 1716 480 511 517 525 -hsync -vsync -csync (15.7 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:1440x480i-60"x0.0 27.00 1440 1554 1678 1716 480 511 517 525 -hsync -vsync -csync (15.7 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:1920x1080i-60"x0.0 74.25 1920 2068 2112 2200 1080 1111 1121 1125 +hsync +vsync -csync (33.8 kHz e)
[ 72.002] (II) VIVANTE(0): Modeline "S:720x480p-60"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.003] (II) VIVANTE(0): Modeline "S:720x480p-60"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.003] (II) VIVANTE(0): Modeline "S:640x480p-60"x0.0 25.17 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.003] (II) VIVANTE(0): Modeline "V:640x480p-60"x0.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.003] (II) VIVANTE(0): Modeline "D:1920x1080p-60"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync -csync (67.5 kHz eP)
[ 72.003] (II) VIVANTE(0): Modeline "V:640x480p-60"x0.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.044] (II) VIVANTE(0): Output DISP3 BG has no monitor section
[ 72.044] (II) VIVANTE(0): Printing probed modes for output DISP3 BG
[ 72.044] (II) VIVANTE(0): Modeline "D:1920x1080p-60"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync -csync (67.5 kHz eP)
[ 72.044] (II) VIVANTE(0): Modeline "S:1920x1080p-50"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync -csync (56.2 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1920x1080i-50"x25.0 74.25 1920 2068 2112 2640 1080 1111 1121 1125 hskew 2003950952 vscan 1 +hsync +vsync -csync (28.1 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1920x1080i-60"x30.0 74.25 1920 2068 2112 2200 1080 1111 1121 1125 +hsync +vsync -csync (33.8 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1280x720p-60"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync -csync (45.0 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1280x720p-50"x71554069081589777694720.0 74.25 1280 1720 1760 1980 720 725 730 750 hskew 2003951224 vscan 1991198716 +hsync +vsync -csync (199.1 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1440x576i-50"x25.0 27.00 1440 1578 1704 1728 576 615 621 625 -hsync -vsync -csync (15.6 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:1440x480i-60"x30.0 27.00 1440 1554 1678 1716 480 511 517 525 -hsync -vsync -csync (15.7 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:720x576p-50"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync -csync (31.2 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:720x480p-60"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "V:640x480p-60"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.045] (II) VIVANTE(0): Modeline "S:640x480p-60"x59.9 25.17 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz e)
[ 72.045] (II) VIVANTE(0): Output DISP3 BG connected
[ 72.045] (II) VIVANTE(0): Using exact sizes for initial modes
[ 72.045] (II) VIVANTE(0): Output DISP3 BG using initial mode D:1920x1080p-60 +0+0
[ 72.045] (II) VIVANTE(0): imxDisplayPreInit: virtual set 1920 x 1080, display width 0
[ 72.045] (II) VIVANTE(0): FBDevPreInit: adjust display width 1920
[ 72.045] (**) VIVANTE(0): PreInit done
[ 72.045] (--) Depth 24 pixmap format is 32 bpp
[ 72.045] (II) VIVANTE(0): Init mode for fb device
[ 72.118] (II) VIVANTE(0): hardware: DISP3 BG (video memory: 16440kB)
[ 72.119] (II) VIVANTE(0): FB Start = 0x7543f000 FB Base = 0x7543f000 FB Offset = (nil) FB PhyBase 0x42a00000
[ 72.119] (II) VIVANTE(0): reserve 8355840 bytes for on screen frame buffer; total fb memory size 16834560 bytes; offset of shadow buffer 8355840
[ 72.164] (II) VIVANTE(0): hardware: DISP3 BG (video memory: 16440kB)
[ 72.174] (II) VIVANTE(0): test Initializing EXA
[ 72.174] (II) VIVANTE(0): (driver build from: -dirty)
[ 72.176] (II) EXA(0): Driver allocated offscreen pixmaps
[ 72.176] (II) EXA(0): Driver registered support for the following operations:
[ 72.176] (II) Solid
[ 72.176] (II) Copy
[ 72.176] (II) Composite (RENDER acceleration)
[ 72.177] (II) UploadToScreen
[ 72.177] (EE)
[ 72.177] (EE) Backtrace:
[ 72.177] (EE)
[ 72.177] (EE) Segmentation fault at address 0xe0
[ 72.177] (EE)
Fatal server error:
[ 72.177] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 72.177] (EE)
[ 72.178] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 72.178] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 72.178] (EE)
[ 72.247] (EE) Server terminated with error (1). Closing log file.
xorg.conf:
root@inventami:~# cat /etc/X11/xorg.conf
Section "Device"
Identifier "i.MX Accelerated Framebuffer Device"
Driver "vivante"
Option "fbdev" "/dev/fb0"
Option "vivante_fbdev" "/dev/fb0"
Option "HWcursor" "false"
EndSectionSection "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
host file:
root@inventami:~# cat /etc/host
127.0.0.1 localhost
127.0.0.1 inventami
Please try to assign DISPLAY prior starting X-server. I mean something like this:
# export DISPLAY=:0
# startx
Hi,
What's the output of this command?
ps -ef | grep x
Try to kill next processes in this order: lxdm-binary, xldm, Xvfb
and run now: startxfce4 -- vt7&
xorg.conf file has the vivante details included, something similar with:
Thank you,
Marius
Hi thanks for reply,
Marius Grigoras:
Hi,
What's the output of this command?
ps -ef | grep x
This is the ps output:
Try to kill next processes in this order: lxdm-binary, xldm, Xvfb
and run now: startxfce4 -- vt7&
xorg.conf file has the vivante details included, something similar with:
According to the first post, xorg.conf is identical like your code, and when I launch LXDE I've that output:
root@inventami:~# startlxde -- vt7&
[1] 1143
root@inventami:~# Agent pid 1145
** Message: main.vala:99: Session is LXDE
** Message: main.vala:100: DE is LXDE
(lxsession:1143): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(lxsession:1143): Gtk-WARNING **: cannot open display:
[1]+ Exit 1 startlxde -- vt7
root@inventami:~#
Finding 3 new ideas posted here [1]
Hope this helps, unfortunately I'm stuck, have no other idea :smileysad:
Thank you,
Marius
[1] Gnome-session cannot open display / Newbie Corner / Arch Linux Forums