Forums » Software Development »
AM62X GPU Support
Added by Nathan Wright 11 days ago
Hello again,
What recipe (or distro feature) do we add to our image to enable graphics acceleration on the MITYSOM-AM62X?
Thanks,
Nathan
Replies (2)
RE: AM62X GPU Support - Added by Bob Duke 10 days ago
Hi Nathan,
Short answer: adding the "ti-img-rogue-driver
, wayland
, and weston
" recipes to your image should bring in everything you need to enable the GPU. If you don't need wayland/weston, take a look at the long answer to manually include the 3D library recipes in your image.
Long answer:
The recipe used for GPU acceleration for the AM62x is set in meta-ti/meta-ti-bsp/conf/machine/include/mesa-pvr.inc
:
1:PREFERRED_PROVIDER_virtual/mesa ?= "mesa-pvr"@ 2:PREFERRED_PROVIDER_virtual/egl ?= "mesa-pvr" 3:PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa-pvr" 4:PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa-pvr" 5:PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa-pvr" 6:PREFERRED_PROVIDER_virtual/libgbm ?= "mesa-pvr" 7:PREFERRED_PROVIDER_virtual/libglx ?= "mesa-pvr" 8:PREFERRED_PROVIDER_virtual/libgl ?= "mesa-pvr"
which tells Yocto to build
mesa-pvr
if any of those recipes are needed.
You can include egl
, libgles1
, libgl
directly to your image or you can add something that will include these packages as dependencies (like weston or Qt).
The actual kernel driver is built in the ti-img-rogue-driver
recipe, but that should be included automatically as a dependency of mesa-pvr
.
FYI: Instructions for manually compiling the driver can be found in our wiki: https://support.criticallink.com/redmine/projects/mitysom_am62x/wiki/Linux_Kernel_PVR