This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x SGX configuration for SPI framebuffer

Hello,

I am quite new to this, but have been looking for an answer to that question without much success.

My setup is as follows:

custom AM335x board (but very much like beaglebone), running Linux 4.4.12 from the processor SDK (03.00.00.00).

i have a small SPI TFT LCD display featuring the ILI9341 driver IC. This display can work in either SPI or LIDD mode, as I am using Linux, SPI is my only option here as there is no LCDC LIDD mode support in the kernel.

The display is working fine : I can run several fbv tests and Qt GUI tests using the linuxfb platform (ie through the /dev/fb0 entry which is exposed thanks to the fbtft staging driver).

Now I want to use Qt with EGLFS and SGX, rather than linuxfb.

I installed latest graphics driver, from the same SDK, along with latest powervr user space libraries / executable from  git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git repo.

Everything compiles fine, and after boot up, I can run /etc/init.d/rc.pvr start without any issue : the pvrsrvkm module inserts fine into the kernel, and I can start the SGX using the pvrsrvctl --start --no-module command :

# [   59.368484] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
# Loaded PowerVR consumer services.

Contents of /dev/dri :

# crw-rw----    1 root     video     226,   0 Jan  1 00:00 card0
# crw-rw----    1 root     video     226, 128 Jan  1 00:00 renderD128


Issue is basic: I try to launch qt opengl hellowindow test program and I end up with following error :

# /usr/lib/qt/examples/opengl/hellowindow/hellowindow
# PVR:(Error): WSEGL_InitialiseDisplay: Failed to open primary device: No such file or directory [0, ]
# Could not initialize egl display
# Aborted

Contents of my /etc/powervr.ini is:

# cat /etc/powervr.ini
[default]
WindowSystem=libpvrDRMWSEGL.so

It looks as though PVR/SGX does not "See" the Display.

Note: I have no lcdc or panel configured in the device tree. I did not put any confiugration as I did not need any so far (Only SPI is configured for Display). But Maybe that's the reason ?

In short, my question is: What is missing in my setup so that whatever is processed by the SGX is sent to the /dev/fb0 device ?

Any hint / help would be appreciated.

Thanks for your help,

Best Regards