UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
215 Views
Registered: ‎12-05-2017

OpenGLES tricube tutorial on zcu106

Hi,

 

I'm currently trying to follow the tutorial "Example Setup for Graphics and Display Port Based Sub-System" from ug1209 (https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_1/ug1209-embedded-design-tutorial.pdf). The idea of this tutorial is to display through the DisplayPort some 3D shapes thanks to OpenGLES.

This last is designed for the ZCU102 evaluation and I have the last ZCU106. My monitor is a iiYama Prolite E2280HS.

 

During the tutorial, the following device tree patch is applied (cf. https://www.xilinx.com/support/answers/69248.html)

&tca6416_u97 {
gtr_sel0 {
/delete-property/ output-low; /* PCIE = 0, DP = 1 */
output-high; /* PCIE = 0, DP = 1 */
};
};

 

The application has not problem to run but when I analyse the Xorg log, it seems that the minotor is not detected:

 

Xorg.0.log:

[ 522.181]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 522.181] X Protocol Version 11, Revision 0
[ 522.181] Build Operating System: Linux 3.10.0-327.el7.x86_64 x86_64
[ 522.181] Current Operating System: Linux xilinx-zcu106-2018_2 4.14.0-xilinx-v2018.2 #1 SMP Tue Oct 9 17:24:13 CEST 2018 aarch64
[ 522.181] Kernel command line: earlycon clk_ignore_unused
[ 522.181] Build Date: 11 June 2018 06:52:05PM
[ 522.181]
[ 522.181] Current version of pixman: 0.34.0
[ 522.181] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 522.181] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 522.181] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 10 08:54:14 2018
[ 522.182] (==) Using config file: "/etc/X11/xorg.conf"
[ 522.182] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 522.182] (==) No Layout section. Using the first Screen section.
[ 522.182] (**) |-->Screen "DefaultScreen" (0)
[ 522.182] (**) | |-->Monitor "<default monitor>"
[ 522.182] (**) | |-->Device "ZynqMP"
[ 522.182] (==) No monitor specified for screen "DefaultScreen".
Using a default monitor configuration.
[ 522.182] (==) Automatically adding devices
[ 522.182] (==) Automatically enabling devices
[ 522.182] (==) Automatically adding GPU devices
[ 522.183] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 522.183] (WW) The directory "/usr/share/fonts/X11/misc/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 522.183] Entry deleted from font path.
[ 522.183] (==) FontPath set to:

[ 522.183] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 522.183] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 522.183] (II) Loader magic: 0x5bfc00
[ 522.183] (II) Module ABI versions:
[ 522.183] X.Org ANSI C Emulation: 0.4
[ 522.183] X.Org Video Driver: 23.0
[ 522.183] X.Org XInput driver : 24.1
[ 522.183] X.Org Server Extension : 10.0
[ 522.183] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 522.183] (II) no primary bus or device found
[ 522.183] falling back to /sys/devices/platform/amba/fd4a0000.zynqmp-display/drm/card0
[ 522.183] (II) LoadModule: "glx"
[ 522.184] (WW) Warning, couldn't open module glx
[ 522.184] (II) UnloadModule: "glx"
[ 522.184] (II) Unloading glx
[ 522.184] (EE) Failed to load module "glx" (module does not exist, 0)
[ 522.184] (II) LoadModule: "armsoc"
[ 522.184] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so
[ 522.184] (II) Module armsoc: vendor="X.Org Foundation"
[ 522.184] compiled for 1.19.3, module version = 1.4.1
[ 522.184] Module class: X.Org Video Driver
[ 522.184] ABI class: X.Org Video Driver, version 23.0
[ 522.184] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[ 522.185] (--) using VT number 3

[ 522.185] (WW) Falling back to old probe method for armsoc
[ 522.185] (II) No BusID or DriverName specified - opening /dev/dri/card0
[ 522.185] (II) Got BusID fd4a0000.zynqmp-display
[ 522.185] (II) Opened DRM
[ 522.185] (II) DeviceName is [/dev/dri/card0]
[ 522.185] (II) bus_id is [fd4a0000.zynqmp-display]
[ 522.185] (II) DriverName is [xlnx]
[ 522.185] (II) version is [1.0.0]
[ 522.185] (II) Screen:0, CRTC:-1
[ 522.185] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 522.185] (II) ARMSOC(0): Creating default Display subsection in Screen section
"DefaultScreen" for depth/fbbpp 16/16
[ 522.185] (++) ARMSOC(0): Depth 16, (--) framebuffer bpp 16
[ 522.185] (==) ARMSOC(0): RGB weight 565
[ 522.185] (==) ARMSOC(0): Using gamma correction (1.0, 1.0, 1.0)
[ 522.185] (==) ARMSOC(0): Default visual is TrueColor
[ 522.185] (II) No BusID or DriverName specified - opening /dev/dri/card0
[ 522.185] (II) Got BusID fd4a0000.zynqmp-display
[ 522.186] (II) Opened DRM
[ 522.186] (II) DeviceName is [/dev/dri/card0]
[ 522.186] (II) bus_id is [fd4a0000.zynqmp-display]
[ 522.186] (II) DriverName is [xlnx]
[ 522.186] (II) version is [1.0.0]
[ 522.186] (II) ARMSOC(0): Chipset: Mali
[ 522.186] (**) ARMSOC(0): Option "Debug" "false"
[ 522.186] (II) ARMSOC(0): Buffer Flipping is Enabled
[ 522.186] (II) ARMSOC(0): umplock is Enabled
[ 522.186] (II) ARMSOC(0): Setting the video modes ...
[ 522.186] (II) ARMSOC(0): Adding all CRTCs
[ 522.186] (II) ARMSOC(0): Got CRTC: 0 (id: 36)
[ 522.204] (II) ARMSOC(0): Output DP-1 has no monitor section
[ 522.223] (II) ARMSOC(0): EDID for output DP-1
[ 522.223] (II) ARMSOC(0): Output DP-1 disconnected
[ 522.223] (WW) ARMSOC(0): No outputs definitely connected, trying again...
[ 522.223] (II) ARMSOC(0): Output DP-1 disconnected
[ 522.223] (WW) ARMSOC(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
[ 522.223] (II) ARMSOC(0): Got KMS resources
[ 522.223] (==) ARMSOC(0): DPI set to (96, 96)
[ 522.223] (II) Loading sub module "dri2"
[ 522.223] (II) LoadModule: "dri2"
[ 522.223] (II) Module "dri2" already built-in
[ 522.223] (II) Loading sub module "exa"
[ 522.223] (II) LoadModule: "exa"
[ 522.224] (II) Loading /usr/lib/xorg/modules/libexa.so
[ 522.224] (II) Module exa: vendor="X.Org Foundation"
[ 522.224] compiled for 1.19.3, module version = 2.6.0
[ 522.224] ABI class: X.Org Video Driver, version 23.0
[ 522.224] (II) Loading sub module "fb"
[ 522.224] (II) LoadModule: "fb"
[ 522.224] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 522.224] (II) Module fb: vendor="X.Org Foundation"
[ 522.224] compiled for 1.19.3, module version = 1.0.0
[ 522.224] ABI class: X.Org ANSI C Emulation, version 0.4
[ 522.225] (II) ARMSOC(0): Soft EXA mode
[ 522.225] (II) EXA(0): Driver allocated offscreen pixmaps
[ 522.225] (II) EXA(0): Driver registered support for the following operations:
[ 522.225] (II) Solid
[ 522.225] (II) Copy
[ 522.225] (II) Composite (RENDER acceleration)
[ 522.225] (II) ARMSOC(0): Setting swap chain size: 2
[ 522.225] (II) ARMSOC(0): [DRI2] Setup complete
[ 522.225] (II) ARMSOC(0): [DRI2] DRI driver: armsoc
[ 522.225] (==) ARMSOC(0): Backing store enabled
[ 522.225] (==) ARMSOC(0): Silken mouse enabled
[ 522.226] (II) ARMSOC(0): HW cursor init()
[ 522.226] (II) ARMSOC(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 522.226] (==) ARMSOC(0): DPMS enabled
[ 522.226] (--) RandR disabled
[ 522.305] (II) config/udev: Adding input device gpio-keys (/dev/input/event0)
[ 522.305] (**) gpio-keys: Applying InputClass "evdev keyboard catchall"
[ 522.305] (**) gpio-keys: Applying InputClass "libinput keyboard catchall"
[ 522.306] (II) LoadModule: "libinput"
[ 522.306] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 522.307] (II) Module libinput: vendor="X.Org Foundation"
[ 522.307] compiled for 1.19.3, module version = 0.25.1
[ 522.307] Module class: X.Org XInput Driver
[ 522.307] ABI class: X.Org XInput driver, version 24.1
[ 522.307] (II) Using input driver 'libinput' for 'gpio-keys'
[ 522.307] (**) gpio-keys: always reports core events
[ 522.307] (**) Option "Device" "/dev/input/event0"
[ 522.307] (**) Option "_source" "server/udev"
[ 522.307] (II) event0 - (II) gpio-keys: (II) is tagged by udev as: Keyboard
[ 522.307] (II) event0 - (II) gpio-keys: (II) device is a keyboard
[ 522.308] (II) event0 - (II) gpio-keys: (II) device removed
[ 522.348] (**) Option "config_info" "udev:/sys/devices/platform/gpio-keys/input/input0/event0"
[ 522.348] (II) XINPUT: Adding extended input device "gpio-keys" (type: KEYBOARD, id 6)
[ 522.349] (II) event0 - (II) gpio-keys: (II) is tagged by udev as: Keyboard
[ 522.349] (II) event0 - (II) gpio-keys: (II) device is a keyboard

 

The xorg.conf is:

Section "InputDevice"
Identifier "System Mouse"
Driver "mouse"
Option "Device" "/dev/input/mouse0"
EndSection

Section "InputDevice"
Identifier "System Keyboard"
Driver "kbd"
Option "Device" "/dev/input/event0"
EndSection

Section "Device"
Identifier "ZynqMP"
Driver "armsoc"
Option "DRI2" "true"
Option "DRI2_PAGE_FLIP" "false"
Option "DRI2_WAIT_VSYNC" "true"
Option "SWcursorLCD" "false"
Option "DEBUG" "false"
EndSection

Section "Screen"
Identifier "DefaultScreen"
Device "ZynqMP"
DefaultDepth 16

 

First question:

 

Does the patch :

&tca6416_u97 {

gtr_sel0 {
/delete-property/ output-low; /* PCIE = 0, DP = 1 */
output-high; /* PCIE = 0, DP = 1 */
};
}

Which is for hte ZCU102, should be the same for ZCU106 ?

 

(I tried with/without and it made no differences.)

0 Kudos