Using 24bpp X11 color depth on i.MX6Q with Vivante

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

Using 24bpp X11 color depth on i.MX6Q with Vivante

Jump to solution
5,330 Views
DiegoFSL
Contributor III

Hi everybody,

I've seen that by default the Vivante X11 driver is configured to use 16bpp, as can be read in the Xorg.0.log.

[4142552.927] (II) VIVANTE(0): Creating default Display subsection in Screen section     "Default Screen Section" for depth/fbbpp 16/16 [4142552.927] (==) VIVANTE(0): Depth 16, (==) framebuffer bpp 16 [4142552.927] (==) VIVANTE(0): RGB weight 565 [4142552.927] (==) VIVANTE(0): Default visual is TrueColor

Full log here:

http://pastebin.com/V9hm03BE

If on the contrary if I specify 24bpp color depth in xorg.conf the server seems to start correctly at a first glance in the log, but then it crashes and nothing is displayed on screen.

http://pastebin.com/QPjXr0hP

This happens both on a fsl-image-gui built using Yocto based on BSP 4.0.0 and on the Freescale BSP 4.0.0 with Ubuntu. I'm using a Boundary Nitrogen6x board.

Is anybody else experiencing this problem? Any fix or known workaround?

Bests,

Diego

Labels (3)
1 Solution
1,517 Views
jack_mao
NXP Employee
NXP Employee

Hi,

    Have you set the bpp in the uboot command line? it should set bpp=32, I use 4.0.0 code and run ubuntu with 24 bpp setting in the xorg.conf, there is no error come out . By the way, the ununtu system is setup by myself with hardfloat compile

[    14.040] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    14.040] (II) Module fbdevhw: vendor="X.Org Foundation"

[    14.040]    compiled for 1.11.3, module version = 0.0.2

[    14.040]    ABI class: X.Org Video Driver, version 11.0

[    14.041] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so

[    14.041] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    14.041] (II) VIVANTE(0): using default device

[    14.041] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[    14.041] (II) VIVANTE(0): Creating default Display subsection in Screen sect

ion

        "Default Screen" for depth/fbbpp 24/32

[    14.041] (**) VIVANTE(0): Depth 24, (--) framebuffer bpp 32

[    14.041] (==) VIVANTE(0): RGB weight 888

View solution in original post

5 Replies
1,518 Views
jack_mao
NXP Employee
NXP Employee

Hi,

    Have you set the bpp in the uboot command line? it should set bpp=32, I use 4.0.0 code and run ubuntu with 24 bpp setting in the xorg.conf, there is no error come out . By the way, the ununtu system is setup by myself with hardfloat compile

[    14.040] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    14.040] (II) Module fbdevhw: vendor="X.Org Foundation"

[    14.040]    compiled for 1.11.3, module version = 0.0.2

[    14.040]    ABI class: X.Org Video Driver, version 11.0

[    14.041] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so

[    14.041] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    14.041] (II) VIVANTE(0): using default device

[    14.041] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[    14.041] (II) VIVANTE(0): Creating default Display subsection in Screen sect

ion

        "Default Screen" for depth/fbbpp 24/32

[    14.041] (**) VIVANTE(0): Depth 24, (--) framebuffer bpp 32

[    14.041] (==) VIVANTE(0): RGB weight 888

1,517 Views
DiegoFSL
Contributor III

Ah, now I got it, bpp=32 is a parameter of the video option. Booting with:

video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32

I'm able to set DefaultDepth to 24, and my system is now running with 24bit color depth also on Yocto.

Thank you Junping!

1,517 Views
DiegoFSL
Contributor III

Hi Junping,

Thank you for you kind reply.

I'm not having the same success as you. Could you please post the full command line of the kernel? Also, are you able to boot with 24bpp on Yocto too? Which version of the BSP are you running? I'm not aware of any publicly available Ubuntu hard-float release.

Thanks,

Diego

0 Kudos
1,517 Views
DiegoFSL
Contributor III

I've opened a bug report in Yocto for this problem:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4947

0 Kudos
1,517 Views
ezerochiou
Contributor III

We also encountered this issue on iMX6 SDB with ubuntu 4.0.0 rootfs. On the other hand, it's strange that ethernet won't be enabled when we set "DefaultDepth 24" in /etc/X11/xorg.conf.

The display device we used is HDMI, 1920x1080. And we also refered a document "Instructions_to_setup_X11_acceleration_on_Ubuntu.txt", but the issue still exist.