iMX6 Sabre board: ubuntu 16.04 and X11

Hi all,

I need to run X server on Sabre board, using default LVDS display.

I tried to install xserver and mesa driver, but when I try to start xsever I have following messages:

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 arm 4.9.27-armv7-rt-x4 #1 SMP PREEMPT RT Thu May 11 13:52:44 CEST 2017 armv7l
Kernel command line: console=ttymxc0,115200 root=PARTUUID=9d49bce0-01 ro rootfstype=ext4 rootwait
Build Date: 02 November 2016 10:05:15PM
xorg-server 2:1.18.4-0ubuntu0.2
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: Fri May 12 17:02:59 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
MESA-LOADER: device is not located on the PCI bus
MESA-LOADER: device is not located on the PCI bus
MESA-LOADER: device is not located on the PCI bus
Require OpenGL version 2.1 or later.
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(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.

Does anybody tried to run xserver?

By the way, I’m using kernel 4.10

Regards,
Jeanluc

Hi Jeanluc,

I’ve only re-built the mesa driver with etnaviv support for Debian Jessie (and Stretch) Ubuntu 16.04 was just too old…

https://eewiki.net/display/linuxonarm/Wandboard#Wandboard-2D/3DVideoAccelerationviaEtnavivProject

Regards,

Hi Robert,

I followed your guide for Wandboard 2D/3D, using kernel version 4.12.0-rc1-armv7-x0 and debian-8.8-minimal-armhf-2017-05-11.

I also installed xserver-xorg-input-evdev and x11-server-utils.

I connected the Sabre board to an HDMI monitor; i’m able to see the freescale logo when boot starts, and the console when starts rootfs.

but if try to run Xorg, the screen became blanc and it seems like the system is crashed, because I’m not able to come back to arm@debian on the debug uart.

The file Xorg.0.log does not report errors. The content is:

X.Org X Server 1.16.4
Release Date: 2014-12-20
[ 77.233] X Protocol Version 11, Revision 0
[ 77.233] Build Operating System: Linux 3.16.0-0.bpo.4-armmp-lpae armv7l Debian
[ 77.233] Current Operating System: Linux arm 4.12.0-rc1-armv7-x0 #1 SMP Wed May 17 13:07:20 CEST 2017 armv7l
[ 77.233] Kernel command line: console=ttymxc0,115200 root=PARTUUID=613f3307-01 ro rootfstype=ext4 rootwait video=HDMI-A-1:1920x1080@60e
[ 77.234] Build Date: 11 February 2015 01:18:06AM
[ 77.234] xorg-server 2:1.16.4-1 (http://www.debian.org/support)
[ 77.234] Current version of pixman: 0.32.6
[ 77.234] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 77.234] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 77.234] (==) Log file: “/var/log/Xorg.0.log”, Time: Thu May 18 16:43:51 2017
[ 77.236] (==) Using config file: “/etc/X11/xorg.conf”
[ 77.236] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[ 77.239] (==) ServerLayout “Builtin Default Layout”
[ 77.239] (
) |–>Screen “Builtin Default fbdev Screen 0” (0)
[ 77.239] () | |–>Monitor “Builtin Default Monitor”
[ 77.246] (
) | |–>Device “Builtin Default fbdev Device 0”
[ 77.246] (==) Automatically adding devices
[ 77.246] (==) Automatically enabling devices
[ 77.246] (==) Automatically adding GPU devices
[ 77.261] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
[ 77.261] Entry deleted from font path.
[ 77.262] (WW) The directory “/usr/share/fonts/X11/100dpi/” does not exist.
[ 77.262] Entry deleted from font path.
[ 77.262] (WW) The directory “/usr/share/fonts/X11/75dpi/” does not exist.
[ 77.262] Entry deleted from font path.
[ 77.262] (WW) The directory “/usr/share/fonts/X11/Type1” does not exist.
[ 77.262] Entry deleted from font path.
[ 77.262] (WW) The directory “/usr/share/fonts/X11/100dpi” does not exist.
[ 77.262] Entry deleted from font path.
[ 77.262] (WW) The directory “/usr/share/fonts/X11/75dpi” does not exist.
[ 77.262] Entry deleted from font path.
[ 77.262] (==) FontPath set to:
/usr/share/fonts/X11/misc,
built-ins
[ 77.262] (==) ModulePath set to “/usr/lib/xorg/modules”
[ 77.262] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 77.262] (II) Loader magic: 0x7f74df18
[ 77.262] (II) Module ABI versions:
[ 77.262] X.Org ANSI C Emulation: 0.4
[ 77.262] X.Org Video Driver: 18.0
[ 77.262] X.Org XInput driver : 21.0
[ 77.262] X.Org Server Extension : 8.0
[ 77.266] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 77.267] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 77.268] (II) no primary bus or device found
[ 77.268] falling back to /sys/devices/soc0/display-subsystem/drm/card1
[ 77.268] (II) LoadModule: “glx”
[ 77.270] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 77.347] (II) Module glx: vendor=“X.Org Foundation”
[ 77.347] compiled for 1.16.4, module version = 1.0.0
[ 77.348] ABI class: X.Org Server Extension, version 8.0
[ 77.348] (==) AIGLX enabled
[ 77.348] (II) LoadModule: “armada”
[ 77.350] (II) Loading /usr/lib/xorg/modules/drivers/armada_drv.so
[ 77.356] (II) Module armada: vendor=“X.Org Foundation”
[ 77.356] compiled for 1.16.4, module version = 0.0.0
[ 77.356] Module class: X.Org Video Driver
[ 77.356] ABI class: X.Org Video Driver, version 18.0
[ 77.356] (II) armada: Support for Marvell LCD Controller: 88AP510
[ 77.356] (II) armada: Support for Freescale IPU: i.MX6
[ 77.357] (–) using VT number 2

[ 77.376] (II) armada(0): Added screen for KMS device /dev/dri/card1
[ 77.376] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 77.376] (II) armada(0): hardware: imx-drm
[ 77.376] (II) armada(0): Creating default Display subsection in Screen section
"Builtin Default fbdev Screen 0" for depth/fbbpp 24/32
[ 77.376] () armada(0): Depth 24, (–) framebuffer bpp 32
[ 77.376] (==) armada(0): RGB weight 888
[ 77.376] (==) armada(0): Default visual is TrueColor
[ 77.377] (II) Loading sub module “etnadrm_gpu”
[ 77.377] (II) LoadModule: “etnadrm_gpu”
[ 77.377] (II) Loading /usr/lib/xorg/modules/drivers/etnadrm_gpu.so
[ 77.385] (II) Module Etnaviv GPU driver (DRM): vendor=“X.Org Foundation”
[ 77.385] compiled for 1.16.4, module version = 0.0.0
[ 77.385] ABI class: X.Org ANSI C Emulation, version 0.4
[ 77.418] (II) armada(0): Output HDMI1 using monitor section Builtin Default Monitor
[ 77.419] (II) armada(0): Output LVDS1 has no monitor section
[ 77.453] (II) armada(0): EDID for output HDMI1
[ 77.453] (II) armada(0): Manufacturer: PHL Model: c0cf Serial#: 14923
[ 77.453] (II) armada(0): Year: 2016 Week: 7
[ 77.453] (II) armada(0): EDID Version: 1.3
[ 77.453] (II) armada(0): Digital Display Input
[ 77.453] (II) armada(0): Max Image Size [cm]: horiz.: 48 vert.: 27
[ 77.453] (II) armada(0): Gamma: 2.20
[ 77.453] (II) armada(0): DPMS capabilities: Off
[ 77.453] (II) armada(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 77.453] (II) armada(0): First detailed timing is preferred mode
[ 77.453] (II) armada(0): redX: 0.633 redY: 0.351 greenX: 0.322 greenY: 0.630
[ 77.454] (II) armada(0): blueX: 0.152 blueY: 0.050 whiteX: 0.313 whiteY: 0.329
[ 77.454] (II) armada(0): Supported established timings:
[ 77.454] (II) armada(0): 720x400@70Hz
[ 77.454] (II) armada(0): 640x480@60Hz
[ 77.454] (II) armada(0): 640x480@67Hz
[ 77.454] (II) armada(0): 640x480@72Hz
[ 77.454] (II) armada(0): 640x480@75Hz
[ 77.454] (II) armada(0): 800x600@60Hz
[ 77.454] (II) armada(0): 800x600@75Hz
[ 77.454] (II) armada(0): 1024x768@60Hz
[ 77.454] (II) armada(0): 1024x768@75Hz
[ 77.454] (II) armada(0): 1280x1024@75Hz
[ 77.454] (II) armada(0): Manufacturer’s mask: 0
[ 77.454] (II) armada(0): Supported standard timings:
[ 77.454] (II) armada(0): #0: hsize: 1920 vsize 1080 refresh: 60 vid: 49361
[ 77.454] (II) armada(0): #1: hsize: 1440 vsize 900 refresh: 60 vid: 149
[ 77.454] (II) armada(0): #2: hsize: 1440 vsize 900 refresh: 75 vid: 3989
[ 77.454] (II) armada(0): #3: hsize: 1680 vsize 1050 refresh: 60 vid: 179
[ 77.455] (II) armada(0): #4: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 77.455] (II) armada(0): #5: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 77.455] (II) armada(0): Supported detailed timing:
[ 77.455] (II) armada(0): clock: 148.5 MHz Image Size: 477 x 268 mm
[ 77.455] (II) armada(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 77.455] (II) armada(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 77.455] (II) armada(0): Serial No: ZV01607014923
[ 77.455] (II) armada(0): Monitor name: PHL 223V5
[ 77.455] (II) armada(0): Ranges: V min: 56 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 175 MHz
[ 77.455] (II) armada(0): Supported detailed timing:
[ 77.455] (II) armada(0): clock: 148.5 MHz Image Size: 477 x 268 mm
[ 77.455] (II) armada(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 77.455] (II) armada(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 77.455] (II) armada(0): Supported detailed timing:
[ 77.455] (II) armada(0): clock: 27.0 MHz Image Size: 477 x 268 mm
[ 77.455] (II) armada(0): h_active: 720 h_sync: 736 h_sync_end 798 h_blank_end 858 h_border: 0
[ 77.455] (II) armada(0): v_active: 480 v_sync: 489 v_sync_end 495 v_blanking: 525 v_border: 0
[ 77.456] (II) armada(0): Supported detailed timing:
[ 77.456] (II) armada(0): clock: 74.2 MHz Image Size: 477 x 268 mm
[ 77.456] (II) armada(0): h_active: 1280 h_sync: 1390 h_sync_end 1430 h_blank_end 1650 h_border: 0
[ 77.456] (II) armada(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 77.456] (II) armada(0): Supported detailed timing:
[ 77.456] (II) armada(0): clock: 27.0 MHz Image Size: 477 x 268 mm
[ 77.456] (II) armada(0): h_active: 720 h_sync: 732 h_sync_end 796 h_blank_end 864 h_border: 0
[ 77.456] (II) armada(0): v_active: 576 v_sync: 581 v_sync_end 586 v_blanking: 625 v_border: 0
[ 77.456] (II) armada(0): Number of EDID sections to follow: 1
[ 77.456] (II) armada(0): EDID (in hex):
[ 77.456] (II) armada(0): 00ffffffffffff00410ccfc04b3a0000
[ 77.456] (II) armada(0): 071a010380301b782a3935a25952a127
[ 77.456] (II) armada(0): 0c5054bd4b00d1c09500950fb30081c0
[ 77.456] (II) armada(0): 818001010101023a801871382d40582c
[ 77.457] (II) armada(0): 4500dd0c1100001e000000ff005a5630
[ 77.457] (II) armada(0): 31363037303134393233000000fc0050
[ 77.457] (II) armada(0): 484c2032323356350a202020000000fd
[ 77.457] (II) armada(0): 00384c1e5311000a2020202020200110
[ 77.457] (II) armada(0): 020322f14f0102030506071011121314
[ 77.457] (II) armada(0): 15161f04230917078301000065030c00
[ 77.457] (II) armada(0): 1000023a801871382d40582c4500dd0c
[ 77.457] (II) armada(0): 1100001e8c0ad08a20e02d10103e9600
[ 77.457] (II) armada(0): dd0c11000018011d007251d01e206e28
[ 77.457] (II) armada(0): 5500dd0c1100001e8c0ad09020403120
[ 77.457] (II) armada(0): 0c405500dd0c11000018000000000000
[ 77.457] (II) armada(0): 0000000000000000000000000000004d
[ 77.457] (II) armada(0): Printing probed modes for output HDMI1
[ 77.457] (II) armada(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 77.458] (II) armada(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 77.458] (II) armada(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[ 77.458] (II) armada(0): Modeline "1920x1080i"x60.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[ 77.458] (II) armada(0): Modeline "1920x1080i"x50.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 77.458] (II) armada(0): Modeline "1920x1080i"x59.9 74.18 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[ 77.458] (II) armada(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 77.458] (II) armada(0): Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 77.458] (II) armada(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 77.458] (II) armada(0): Modeline "1440x900"x75.0 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync (70.6 kHz e)
[ 77.458] (II) armada(0): Modeline "1440x900"x59.9 88.75 1440 1488 1520 1600 900 903 909 926 +hsync -vsync (55.5 kHz e)
[ 77.458] (II) armada(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 77.458] (II) armada(0): Modeline "1280x720"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 77.458] (II) armada(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 77.458] (II) armada(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 77.459] (II) armada(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 77.459] (II) armada(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 77.459] (II) armada(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 77.459] (II) armada(0): Modeline "720x576"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 77.459] (II) armada(0): Modeline "720x480"x60.0 27.03 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 77.459] (II) armada(0): Modeline "720x480"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 77.459] (II) armada(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 77.459] (II) armada(0): Modeline "640x480"x72.8 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 77.459] (II) armada(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 77.459] (II) armada(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 77.459] (II) armada(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 77.459] (II) armada(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 77.459] (II) armada(0): EDID for output LVDS1
[ 77.460] (II) armada(0): Printing probed modes for output LVDS1
[ 77.460] (II) armada(0): Modeline "1024x768"x60.0 65.00 1024 1064 1124 1344 768 775 785 806 (48.4 kHz eP)
[ 77.460] (II) armada(0): Output HDMI1 connected
[ 77.460] (II) armada(0): Output LVDS1 connected
[ 77.460] (II) armada(0): Using exact sizes for initial modes
[ 77.460] (II) armada(0): Output HDMI1 using initial mode 1024x768
[ 77.460] (II) armada(0): Output LVDS1 using initial mode 1024x768
[ 77.460] (II) armada(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 77.460] (==) armada(0): DPI set to (96, 96)
[ 77.460] (II) Loading sub module “fb”
[ 77.460] (II) LoadModule: “fb”
[ 77.460] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 77.469] (II) Module fb: vendor=“X.Org Foundation”
[ 77.469] compiled for 1.16.4, module version = 1.0.0
[ 77.469] ABI class: X.Org ANSI C Emulation, version 0.4
[ 77.471] (==) Depth 24 pixmap format is 32 bpp
[ 77.492] (==) armada(0): Backing store enabled
[ 77.492] (==) armada(0): Silken mouse enabled
[ 77.492] (–) armada(0): Vivante GC320 GPU revision 5007 (etnaviv) 2d PE2.0
[ 77.493] (II) armada(0): [DRI2] Setup complete
[ 77.493] (II) armada(0): [DRI2] DRI driver: etnaviv
[ 77.493] (II) armada(0): direct rendering: DRI2 enabled
[ 77.493] (
) armada(0): direct rendering: DRI3 disabled
[ 77.498] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 77.499] (==) armada(0): DPMS enabled
[ 77.499] (==) armada(0): hotplug detection enabled
[ 77.499] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target
[ 77.546] (–) RandR disabled
[ 77.595] (II) SELinux: Disabled on system
[ 78.799] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 78.800] (II) AIGLX: enabled GLX_ARB_create_context
[ 78.800] (II) AIGLX: enabled GLX_ARB_create_context_profile
[ 78.800] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[ 78.800] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 78.800] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 78.800] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[ 78.800] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[ 78.800] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 78.802] (II) AIGLX: Loaded and initialized etnaviv
[ 78.802] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 78.811] (II) armada(0): etnaviv: A8 target not supported
[ 78.812] (II) armada(0): Setting screen physical size to 270 x 203
[ 79.083] (II) config/udev: Adding input device gpio-keys (/dev/input/event0)
[ 79.083] () gpio-keys: Applying InputClass “evdev keyboard catchall”
[ 79.083] (II) LoadModule: “evdev”
[ 79.087] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 79.097] (II) Module evdev: vendor=“X.Org Foundation”
[ 79.097] compiled for 1.16.0, module version = 2.9.0
[ 79.097] Module class: X.Org XInput Driver
[ 79.097] ABI class: X.Org XInput driver, version 21.0
[ 79.097] (II) Using input driver ‘evdev’ for ‘gpio-keys’
[ 79.097] (
) gpio-keys: always reports core events
[ 79.097] () evdev: gpio-keys: Device: “/dev/input/event0”
[ 79.098] (–) evdev: gpio-keys: Vendor 0x1 Product 0x1
[ 79.098] (–) evdev: gpio-keys: Found keys
[ 79.098] (II) evdev: gpio-keys: Configuring as keyboard
[ 79.098] (
) Option “config_info” “udev:/sys/devices/soc0/gpio-keys/input/input0/event0”
[ 79.098] (II) XINPUT: Adding extended input device “gpio-keys” (type: KEYBOARD, id 6)
[ 79.098] () Option “xkb_rules” “evdev”
[ 79.098] (
) Option “xkb_model” “pc105”
[ 79.098] (**) Option “xkb_layout” “us”

and nothing more…

Do you have any suggestions?

Regards,
Jeanluc

Hi Jean,

There’s something wrong with my MCIMX6Q, hdmi doesn’t work. So to verify everything is still good, I installed xfce4 and the mesa/etnaviv video stack. In this case, with a Dual Core Wandboard with v4.12.0-rc1 and debian 8.x:

No lockup’s and 2D/3D acceleration is working.

dmesg:
dmesg.txt (22.1 KB)
Xorg Log:
xorglog.txt (17.8 KB)
glxinfo.log:
glxinfo.txt (8.4 KB)

xorg.conf:

Section "Monitor"
      Identifier      "Builtin Default Monitor"
EndSection
Section "Device"
      Identifier      "Builtin Default fbdev Device 0"
      Driver          "armada"
EndSection
Section "Screen"
      Identifier      "Builtin Default fbdev Screen 0"
      Device          "Builtin Default fbdev Device 0"
      Monitor         "Builtin Default Monitor"
      DefaultDepth    24
EndSection
Section "ServerLayout"
      Identifier      "Builtin Default Layout"
      Screen          "Builtin Default fbdev Screen 0"
EndSection

Regards,

Hi Robert,
thank you for your test and your quick reply.

I’d like to be in your same conditions; so, which file did you use for debian rootfs?

For mesa/etnaviv video stack do you mean the packet xserver-xorg-video-armada-etnaviv?

Regards,
Jeanluc

Hi Jeanluc,

I used this one:
https://eewiki.net/display/linuxonarm/i.MX6q+SABRE+Board+for+Smart+Devices#i.MX6qSABREBoardforSmartDevices-Debian8

While debugging, i updated that page with u-boot and the kernel bump’s.

So xserver-xorg-video-armada-etnaviv is just the 2D driver for xorg, but it knows what 3D driver in mesa to call when a 3D application is started.

Regards,

Hi Robert,

now I’m able to run xfce4, glxinfo, glxgears.

Then I compiled the glmark2 benchmark, as described in https://fixmynix.com/how-to-install-glmark2-from-source-in-debian/

I compiled this benchmark successfully, but if I run it I have following error:
Glmark2 need OpenGL(ES) version >= 2.0 to run (but version string is: ‘1.4 Mesa 17.1.0’)!

If I runglxinfo I see OpenGL version string 1.4 Mesa 17.1.0, but also
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.1.0

Can you please explain me the difference between version string and profile version string?

Is it possible to run the glmark2 test successfully?

Regards,

Hi Jeanluc,

It looks like you built glmark2 with the wrong flag, in that how-to-install link:

./waf configure --with-flavors=x11-gl

Instead use:

./waf configure --with-flavors=x11-glesv2

For OpenGL ES 2.0

Regards,

Hi Robert,

after install this two missing packages:

  • libegl1-mesa-dev
  • libgles2-mesa-dev

I’m able to compile the glmark2 benchmark as you suggested and it works really great.

Thank you for your support.

Regards,

Hi Robert,

I have a wifi module with pci-express interface. The chipset of such module is the Atheros AR5B97, and it is supported by the ath9k linux driver. I found the ath9k folder in the latest kernel I compiled (4.12).

So I’d like to try to use it on the Sabre board; can you explain me how to add in kernel the support for the iMX6 PCIe interface and how add the wifi module driver?

Regards,

Hi Jeanluc,

After you run ./build_kernel.sh, menuconfig will pop up…

Bus support —>
[] PCI support
[
] Message Signaled Interrupts (MSI and MSI-X)
DesignWare PCI Core Support —>
[*] Freescale i.MX6 PCIe controller

Then also add the pcie device you need.

Regards,

Hi Robert,

I tried to modify the kernel as you suggested, but kernel locks just at the beginning, without sending any message to the debug serial.

If I remove the wifi module from the board, then kernel starts.

By the way, the wifi module driver was already included in kernel; it’s the ath9k.

It works with an old kernel/file system provided by Freescale (Ltib).

Do you have any suggestions?

Regards,

Hi Jeanluc,

It’s lockup up for me too. But u-boot see’s it:

U-Boot SPL 2017.07-rc1-dirty (Jun 14 2017 - 14:00:50)
Trying to boot from MMC1

U-Boot 2017.07-rc1-dirty (Jun 14 2017 - 14:00:50 -0500)

CPU:   Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 27C
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

PCI:
  00:01.0     - 16c3:abcd - Bridge device
   01:00.0    - 8086:08b3 - Network controller
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Press SPACE to abort autoboot in 2 seconds
MMC: no card present
mmc_init: -123, time 2
MMC: no card present
mmc_init: -123, time 2
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
28 bytes read in 47 ms (0 Bytes/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
Using: mmcroot=PARTUUID=6b23385c-01 ro ...
loading /boot/vmlinuz-4.12.0-rc5-armv7-x0 ...
6812200 bytes read in 373 ms (17.4 MiB/s)
loading /boot/dtbs/4.12.0-rc5-armv7-x0/imx6q-sabresd.dtb ...
52388 bytes read in 286 ms (178.7 KiB/s)
debug: [console=ttymxc0,115200 root=PARTUUID=6b23385c-01 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x12000000 - 0x18000000] ...
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800fca3

Starting kernel ...

Regards,

Bingo, got it!

debian@arm:~$ lspci
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Network controller: Intel Corporation Wireless 3160 (rev cb)
debian@arm:~$ uname -r
4.9.32-armv7-x4

now to start a git bisect from 4.9.x to mainline…

Regards,

and 4.10.17-armv7-x2 also works, so the regression looks to have occurred in 4.11-rcX

Regards,

Hi Robert,

thank you for you investigation.

This evening I’ll try kernel 4.10.17-armv7-x2 and I’ll let you know.

Regards,

Hi Robert,

now kernel start and pice-wifi module is recognized:

root@arm:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (PC
I-Express) (rev 01)
root@arm:~# uname -r
4.10.17-armv7-x2

Regards,

Hi Jeanluc,

With Fabio help at NXP’s help we got this working:

debian@arm:~$ lspci
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Network controller: Intel Corporation Wireless 3160 (rev cb)
debian@arm:~$ uname -r
4.12.0-rc5-armv7-x0

This u-boot patch is needed:

http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=6ecbe13756711baa795180d1a63b7a73a835c303;hp=da384fc67a30ff4685b679a822ef005a8f1aeaa7

i’ve integrated that into the U-Boot patch we use in the build instructions on the wiki.

Regards,

This version of the ubuntu is not working properly on my device. It is showing Windows 10 Preparing Automatic Repair Error. Please help me to fix it.

@sparowlite,

Hi @sparowlite, can you please expand on this question a little more…

Which Device? (Specific Board model)
Which OS? (Specific build/version)
Which Kernel? (uname -r)
What happens, or triggers the error?

I personally do NOT run windows day to day, so i’m confused why you linked to a “Window 10 Automatic Error”???

Regards,