11.11. QNX Screen driver - Introduction

The QNX screen driver is the standard interface that provides developers with a means to develop Graphic User Interface (GUI) applicaitons. More details can be found here: https://www.qnx.com/developers/docs/8.0/com.qnx.doc.screen/topic/manual/cscreen_about.html

The QNX Screen package must be downloaded from QNX Software Center and is required for GPU support.

The QNX Screen driver can optionally control the DSS (Display) from the A72, the PSDK QNX package default is R5 control of the DSS.

Note

Refer Release Notes software dependencies section for more information.

11.11.1. TI PSDK QNX default screen configuration

The default for screen with PSDK QNX is to enable the R5 based display driver and a virtual display configuration driver. This enables the QNX applications to make use of GPU with the Graphics/OpenGL APIs exposed by screen and have the display driver be controlled by the R5 core.

11.11.2. Enabling QNX screen configuration with QNX display driver

For use cases that require a display driver controlling DSS on the QNX side, the follow updates need to be made.

11.11.2.1. QNX build file updates

11.11.2.1.1. Startup commandline

BSPs for all SoCs have the -d option set to default in the TI supplied build file. This option enables the DSS to controlled by the R5. To enable the DSS driver on the QNX side, remove the -d option from the startup commandline.

Eg: J784S4 SDP 7.1 j784s4-evm-ti.build file

This

[+keeplinked] startup-j784s4-evm -v -r0xA0000000,0x60000000,1 -r0x880000000,0x80000000,1 -r0x900000000,0x3C000000,1 -r0x940000000,0x60000000,1 -e

instead of

[+keeplinked] startup-j784s4-evm -v -r0xA0000000,0x60000000,1 -r0x880000000,0x80000000,1 -r0x900000000,0x3C000000,1 -r0x940000000,0x60000000,1 -d -e

11.11.2.1.2. Startup I2C instances

For the TI EVMs that have an eDP display, the i2c controller instance corresponding to the slave required to control the DSI to eDP bridge should be enabled. Uncomment the following line for J784S4 from the ti build file.

#i2c-omap35xx -p0x2040000 -i236 -d --u4
# waitfor /dev/i2c4

11.11.3. TI User script

Configuration for R5 controlled display

if [[ -e /ti_fs/usr/lib/graphics/j721s2/graphics-virtual-dpy.conf ]]; then
  echo "Start screen.."
  screen -c /ti_fs/usr/lib/graphics/j721s2/graphics-virtual-dpy.conf
fi

Configuration for QNX controlled display

if [[ -e /ti_fs/usr/lib/graphics/j721s2/graphics.conf ]]; then
  echo "Start screen.."
  screen -c /ti_fs/usr/lib/graphics/j721s2/graphics.conf
fi

11.11.4. Vision apps build instructions

  • To enable r5 display (default) configuration, ENABLE_DSS flag must be defined, please reference Vision Apps User Guide, see section on “Build Instructions”:

  • To disable r5 display and enable QNX DSS driver, the ENABLE_DSS flag must be undefined, please reference Vision Apps User Guide, see section on “Build Instructions”:

Vision Apps User Guide
  - Build And Run
      - Build Instructions