How to access the 3D Video Accelerator
Introduction
The OMAP3530/DM3730 SoC contains a 3D Video accelerator (PowerVR-SGX530). The kernel driver is free and open (GPL) but the runtime (microkernel running on GPU) and the libraries are non-free. If you are not happy with this situation, please help this FSF project: http://powervr.gnu.org.ve/
Details
The system consists of 3 components:
- Kernel driver
- Runtime initialization
- Libraries (OpenGLES)
Kernel driver
The kernel driver has been added to the sources of our kernel:
http://git.goldelico.com/?p=gta04-kernel.git;a=tree;f=drivers/gpu/pvr/omap3
Configure (Device Drivers/Graphics Support) into the kernel through PowerVR SGX, Revision 1.2.5 - OMPA 3630. This is compatible with the DM3730 chip used in the GTA04.
You can check if the kernel driver is working by looking for
/dev/pvrsrvkm
/proc/pvr/*
Runtime and Libraries
Binaries
You need to locate and download the SDK from Texas Instruments (you may have to register yourself and accept license conditions since it is not open source!):
Go to http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html and locate 'Graphics_SDK_setuplinux_4_08_00_02_BinOnly.bin' or 'Graphics_SDK_setuplinux_4_08_00_02_hardfp_BinOnly.bin'
Binary packages
We provide a binary package for SGX530_REV125:
- armel http://download.goldelico.com/quantumstep/debian/dists/jessie+alpha/main/binary-armel/omap3-pvrsgx530-gta04_0.20130811195123_armel.deb
- armhf: http://download.goldelico.com/quantumstep/debian/dists/jessie+alpha/main/binary-armhf/omap3-pvrsgx530-gta04_0.20130811195126_armhf.deb
Starting
Copy the libraries from the SDK to /usr/lib. The version gfx_rel_es5.x is compatible to the DM3730 (the others are rejected by the kernel driver).
Finally run
pvrsrvctl --start --no-module
This sends the microkernel into the GPU.
After that you can and should run the tests available in the graphics package.
Demo
The kernel package has a demo in /root:
/root/gpu-demo