![Freescale Semiconductor i.MX 6DualLite Reference Manual Download Page 109](http://html1.mh-extra.com/html/freescale-semiconductor/i-mx-6duallite/i-mx-6duallite_reference-manual_2330523109.webp)
12.3 DirectFB EGL
EGL in DirectFB can be used for OpenGL and OpenVG applications.
To enable DirectFB EGL, you need to increase the size of FBDEV, which can be
achieved by increasing the size in memory of /dev/fb0. This can be done by using fbset.
The typical size to of the fb is the same as the one used for triple buffer:
fbset -fb /dev/fb0 -g Xsize Ysize Xsize 3*Ysize BPP
For the hanstar lvds panel:
fbset -fb /dev/fb0 -g 1024 768 2034 32
For more information on fbset, check the fbset man pages.
12.4 Setting Up DirectFB Acceleration
Perform the following actions to set up DirectFB Acceleration:
1. Install ltib and select "min profile" or "gnome Mobile profile" and build with the
default settings.
2. Cross compile DirectFB and their examples. You can do it by using the toolchain and
follow the instructions in the DirectFB-1.4.0 package or have LTIB to do it all
(recommended). The next steps use LTIB.
3. Because ltib checks the md5sum of the tar.gz, you need to to generate .md5 file for
DirectFB-examples-1.2.0 in the pkgs directory:
•
md5sum DirectFB-examples.1.2.0.tgz > DirectFB-examples-1.2.0.tgz.md5
NOTE
You may also need to verify that the .spec file has the
correct version:/ltib/dist/lfs-5.1/DirectFB/DirectFB-
examples.spec
4. Run ltib with command
•
./ltib –m config
5. Make sure that “Configure the kernel” is selected
6. When configuring ltib, go to Package List and select
•
gpu-viv-bin-mx6q
DirectFB
DirectFB-examples
zlib
7. Exit and save your configuration.
8. Run ltib
Chapter 12 Direct FB
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
109