How to get anything OpenGL running on Cubox-i?

This forum is for supported devices using an ARMv7 Freescale SoC.

How to get anything OpenGL running on Cubox-i?

Postby pepperchico » Sun Nov 13, 2016 12:15 am

Hi. I have a Cubox-i 4x4 and I've followed "How to Get ALARM working on a CuBox-i4 Pro" to install ArchLinux with success.

To move on installing X and XFCE I've started by following the Solid-Run wiki:

- http://wiki.solid-run.com/doku.php?id=products:imx6:software:os:archlinux

I've installed

- extra/xf86-video-fbdev
- alarm/imx-gpu-viv-fb
- ln -sf /opt/fsl/lib/libGL.so /usr/lib/libGL.so.1

and additionally:

- alarm/firmware-imx
- alarm/xf86-video-imx

And the remaining normal Xorg and XFCE stuff.

I've also created a file /etc/X11/xorg.conf.d/20-vivante.conf with:

$this->bbcode_second_pass_code('', '
Section "Device"
Identifier "i.MX Accelerated Framebuffer Device"
Driver "fbdev"
Option "UseFBDev" "true"
Option "fbdev" "/dev/fb0"
Option "HWcursor" "false"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "i.MX Accelerated Framebuffer Device"
DefaultDepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection

Section "DRI"
Mode 0666
EndSection
')

The graphical interface is running fine but I'm not having success trying the most basic OpenGL application.

Anyone knows a noobs guide on how to be able to run an OpenGL program from inside X, or even from outside (I've not tried from outside and dunno whether it's possible)?

Thanks
Last edited by pepperchico on Sun Nov 13, 2016 1:39 am, edited 1 time in total.
pepperchico
 
Posts: 3
Joined: Sat Nov 12, 2016 11:51 pm

Re: How to get anything OpenGL running on Cubox-i?

Postby pepperchico » Sun Nov 13, 2016 12:27 am

I'm using the framebuffer device now (xf86-video-fbdev + alarm/imx-gpu-viv-fb + 20-vivante.conf).
I have installed alarm/xf86-video-imx while trying to get OpenGL running but it's going unused. I also tried to install alarm/imx-gpu-viv-x11 later but failed since it conflicts with alarm/imx-gpu-viv-fb files.

I was unable to find docs/tutorials that made use of xf86-video-imx or imx-gpu-viv-x11. I was just trying combinations. Should xf86-video-imx + imx-gpu-viv-x11 + some-xorg.conf work in place of my current framebuffer based conf or more customization would be needed?

This message is just to provide more context on what I was trying.
pepperchico
 
Posts: 3
Joined: Sat Nov 12, 2016 11:51 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 4 guests