GPU support (SBC-i.MX51)

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

The SBC-i.MX51 board support package support the GPU and uses it e.g. for the X server acceleration.

Packages in OpenEmbedded

libz160
openembedded/recipes/libz160/libz160_10.07.11.bb
Library for the AMD GPU Z160 2D
xf86-video-imx
openembedded/recipes/xorg-driver/xf86-video-imx_10.07.11.bb
i.MX accelerated video driver for the X.Org X server
amd-gpu-bin-mx51
openembedded/recipes/amd-gpu-bin-mx51/amd-gpu-bin-mx51_10.07.11.bb
GPU libraries and test applications for i.MX51 (non-X version)
amd-gpu-x11-bin-mx51
openembedded/recipes/amd-gpu-x11-bin-mx51/amd-gpu-x11-bin-mx51_10.07.11.bb
GPU libraries and test applications for i.MX51 (X version)

Test (Framebuffer)

If you use the SBC console or qtembedded image, the package amd-gpu-bin-mx51 is automatically installed.

The following OpenGL demo applications are included:

  • Rotating cube: es11ex
  • Colored triangle: simple_draw <# of frames>
  • Torus knot: torusknot <# of frames>

Test (X server)

If you use the SBC Gnome image, the packages amd-gpu-x11-bin-mx51 and xf86-video-imx are automatically installed.

The xf86-video-imx driver employs the GPU to provide an accelerated X server. To check this, open a terminal on the SBC and look for the following lines

(II) EXA(0): Driver registered support for the following operations:
(II)         Solid
(II)         Copy
(II)         Composite (RENDER acceleration)
(II)         UploadToScreen
(II)         DownloadFromScreen
(II) EXA(0): Using custom EXA
(II) IMX(0): IMX EXA acceleration setup successful

if you print the file

cat /var/log/gdm/\:0.log

There are two OpenGL-ES demo applications that can be run in X:

es11ex

and

simple_draw <# of frames>

For more information, you may refer to the "Ubuntu Startup Guide for the i.MX5X EVK board" provided by Freescale.