Difference between revisions of "CM-T3517: Linux: Building images and tools"

From Compulab Mediawiki
Jump to: navigation, search
(See also)
 
 
Line 9: Line 9:
  
 
CM-T3517 features PowerVR SGX GPU providing 2D / 3D graphics acceleration with OpenGL-ES and OpenVG support.
 
CM-T3517 features PowerVR SGX GPU providing 2D / 3D graphics acceleration with OpenGL-ES and OpenVG support.
The Graphics SDK version 4.06.00.03 includes the Linux graphics (SGX) drivers, OpenGLES1.1, OpenGLES2.0 and OpenVG demos for all TI platforms.
+
The Graphics SDK version 4.08.00.01 includes the Linux graphics (SGX) drivers, OpenGLES1.1, OpenGLES2.0 and OpenVG demos for all TI platforms.
 
The CM-T3517 Linux package contains pre-built graphics kernel modules and graphics demo applications.
 
The CM-T3517 Linux package contains pre-built graphics kernel modules and graphics demo applications.
 
If a custom Linux kernel must be created, the graphics kernel modules must be re-built in order to avoid versioning issues.
 
If a custom Linux kernel must be created, the graphics kernel modules must be re-built in order to avoid versioning issues.
  
 
=== Building Graphics SDK ===
 
=== Building Graphics SDK ===
* Download the [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/4_06_00_03/index_FDS.html Graphics SDK 4.06.00.03].
+
* Download the [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/4_08_00_01/index_FDS.html Graphics SDK 4.08.00.01].
 
* Install the SDK on a Linux host machine. Please refer to the [http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Install_steps installation guide] for more details.
 
* Install the SDK on a Linux host machine. Please refer to the [http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Install_steps installation guide] for more details.
 
* Apply the patch from [http://compulab.co.il/products/computer-on-modules/cm-t3517/#devres CM-T3517 Linux package]:
 
* Apply the patch from [http://compulab.co.il/products/computer-on-modules/cm-t3517/#devres CM-T3517 Linux package]:
 
<pre>
 
<pre>
cd /path/to/Graphics/SDK/4/06/00/03/
+
cd /path/to/Graphics/SDK/4/08/00/01/
patch -p1 < /path/to/cm-t3517-linux/extra/Graphics_SDK_4_06_00_03/graphics_sdk_04_06_00_03-cm-t3517-3.patch
+
patch -p1 < /path/to/cm-t3517-linux/extra/Graphics_SDK_4_08_00_01/graphics_sdk_04_08_00_01-cm-t3517-3.patch
 
</pre>
 
</pre>
 
* Setup the environment variables by editing the {{filename|Rules.make}} file. Set the following environment variables to appropriate values:
 
* Setup the environment variables by editing the {{filename|Rules.make}} file. Set the following environment variables to appropriate values:
** HOME=/path/to/Graphics/SDK/4/06/00/03/home/area. {{parameter|Note:}} This path does not include the {{filename|Graphics_SDK_4_06_00_03}} directory.
+
** HOME=/path/to/Graphics/SDK/4/08/00/01/home/area.  
 
** CSTOOL_DIR=/path/to/cross-compiler
 
** CSTOOL_DIR=/path/to/cross-compiler
 
** CSTOOL_PREFIX=<cross-compiler-name-prefix>
 
** CSTOOL_PREFIX=<cross-compiler-name-prefix>

Latest revision as of 11:06, 8 January 2013

CAN bus utilities

The BerliOS Socket CAN package is an implementation of CAN protocols for Linux. It uses the Berkeley socket API, the Linux network stack and implements the CAN device drivers as network interfaces. In addition, the package provides user space utilities and test programs suggested as a reference for CAN interface evaluation and testing. The socketCAN package is available for downloading using SVN or HTTP protocols from the BerliOS Socket CAN SVN repository website.

Alternatively, there are well maintained sources of CAN utils available at Gitorious and Debian Git repositories. The last one was used to prepare Debian can-utils package and install it into CM-T3517 example file system.

Graphics SDK

CM-T3517 features PowerVR SGX GPU providing 2D / 3D graphics acceleration with OpenGL-ES and OpenVG support. The Graphics SDK version 4.08.00.01 includes the Linux graphics (SGX) drivers, OpenGLES1.1, OpenGLES2.0 and OpenVG demos for all TI platforms. The CM-T3517 Linux package contains pre-built graphics kernel modules and graphics demo applications. If a custom Linux kernel must be created, the graphics kernel modules must be re-built in order to avoid versioning issues.

Building Graphics SDK

cd /path/to/Graphics/SDK/4/08/00/01/
patch -p1 < /path/to/cm-t3517-linux/extra/Graphics_SDK_4_08_00_01/graphics_sdk_04_08_00_01-cm-t3517-3.patch
  • Setup the environment variables by editing the Rules.make file. Set the following environment variables to appropriate values:
    • HOME=/path/to/Graphics/SDK/4/08/00/01/home/area.
    • CSTOOL_DIR=/path/to/cross-compiler
    • CSTOOL_PREFIX=<cross-compiler-name-prefix>
    • KERNEL_INSTALL_DIR=/path/to/cm-t3517/linux/kernel
    • TARGETFS_INSTALL_DIR=/path/to/cm-t3517/rootfs

Please refer to the build guide for more details.

  • Build the Graphics SDK:
make OMAPES=3.x all

For building graphics kernel modules only, please run the following command:

make OMAPES=3.x all_km
  • Install the Graphics SDK into the CM-T3517 rootfs:
sudo make OMAPES=3.x install

To install graphics kernel modules only:

sudo make OMAPES=3.x install_km
  • Boot up the CM-T3517 and run the SDK configuration script:
root@cm-debian:~# /etc/init.d/omap-demo

See also