glxgears/es2gears on X11 and Ubuntu 12.04/armel show only black rectangle

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

glxgears/es2gears on X11 and Ubuntu 12.04/armel show only black rectangle

Jump to solution
3,000 Views
bfederau
Contributor II

Hi,

my current rootfs setup on an iMX6Q is

- Ubuntu 12.04 armel (without Unity)

- imx_3.0.35_4.0.0 kernel

- Xorg server 1.11.4

- gpu-viv-bin-mx6q-3.0.35-4.0.0.bin

- xserver-xorg-video-imx-viv-3.0.35-4.0.0.tar.gz

I have the Xorg server running without any window manager and when I start the glxgears or the es2gears example app I see just a black rectangle.

Only starting the glxgears with the -fullscreen argument shows the glxgears in a small rectangle on the left bottom of the screen. (so no fullscreen at all ...)

It seems that my problem here is similar to that two posts!?!

Re: gpu libs 4.6.9-p9 with x11 (DRI): full-screen only ?

Black rendering of windowed Open GLES applications on iMX6 Vivante under X11

With the Freescale Ubuntu Oneiric 4.0.0 rootfs the glxgears and es2gears example app works. One difference is that I does not use Unity on my 12.04 precise rootfs.

Any hints to solve this issue are welcome. :smileyhappy:

Cheers

-

Benjamin Federau

Labels (4)
0 Kudos
1 Solution
1,142 Views
bfederau
Contributor II

With the following setup I could get the glxgears/es2gears working on my board.

- imx_3.0.35_4.0.0 kernel with Kernel patches from the Yocto FSL layer

- xserver-xorg-video-imx-viv-3.5.7-1.0.0-alpha.2.tar.gz

- gpu-viv-bin-mx6q-3.5.7-1.0.0-alpha.2-hfp.bin

- rebuild libdrm package with a patch from the Yocto FSL layer

But now I have another issue with these Vivante alpha.2 driver. I have connected a touchscreen with a resolution of 1366x768, but with this resolution I get a displaced X desktop. With a resolution of 1280x800 the X desktop is displayed correctly, but this is the wrong resolution for my display.

To make the 1366x768 available I added to linux-2.6-imx/drivers/video/mxc/ldb.c

static struct fb_videomode ldb_modedb[] = {

....

{

     "AUO-G156XW01", 60, 1366, 768, 13255, 104, 32, 20, 6, 64, 12,

    0,

    FB_VMODE_NONINTERLACED,

    0,

}

}

This configuration works with the standard mesa driver/libs, but not with the Vivante alpha.2

Did anybody made some experience with display configuration and Vivante driver?

Edit:

The displaced X output could be solve by changing the resolution in the linux-2.6-imx/drivers/video/mxc/ldb.c from

"AUO-G156XW01", 60, 1366, 768, 13255, 104, 32, 20, 6, 64, 12,

to

"AUO-G156XW01", 60, 1360, 768, 13255, 104, 32, 20, 6, 64, 12,

see Enable 1366x768 LVDS screen on MX53 LVDS 0, Android R10.3.1 -blog archive

View solution in original post

0 Kudos
2 Replies
1,142 Views
gusarambula
NXP TechSupport
NXP TechSupport

Unfortunately X11 is not supported on the Official Release of the i.MX6 BSP. However, there is a comment on one of the threads you mention saying that there is a patch on the fsl-community Yocto BSP so I would recommend looking at it.

As for the official BSP release, the next BSP for i.MX6 is expected to support Wayland.

0 Kudos
1,143 Views
bfederau
Contributor II

With the following setup I could get the glxgears/es2gears working on my board.

- imx_3.0.35_4.0.0 kernel with Kernel patches from the Yocto FSL layer

- xserver-xorg-video-imx-viv-3.5.7-1.0.0-alpha.2.tar.gz

- gpu-viv-bin-mx6q-3.5.7-1.0.0-alpha.2-hfp.bin

- rebuild libdrm package with a patch from the Yocto FSL layer

But now I have another issue with these Vivante alpha.2 driver. I have connected a touchscreen with a resolution of 1366x768, but with this resolution I get a displaced X desktop. With a resolution of 1280x800 the X desktop is displayed correctly, but this is the wrong resolution for my display.

To make the 1366x768 available I added to linux-2.6-imx/drivers/video/mxc/ldb.c

static struct fb_videomode ldb_modedb[] = {

....

{

     "AUO-G156XW01", 60, 1366, 768, 13255, 104, 32, 20, 6, 64, 12,

    0,

    FB_VMODE_NONINTERLACED,

    0,

}

}

This configuration works with the standard mesa driver/libs, but not with the Vivante alpha.2

Did anybody made some experience with display configuration and Vivante driver?

Edit:

The displaced X output could be solve by changing the resolution in the linux-2.6-imx/drivers/video/mxc/ldb.c from

"AUO-G156XW01", 60, 1366, 768, 13255, 104, 32, 20, 6, 64, 12,

to

"AUO-G156XW01", 60, 1360, 768, 13255, 104, 32, 20, 6, 64, 12,

see Enable 1366x768 LVDS screen on MX53 LVDS 0, Android R10.3.1 -blog archive

0 Kudos