Difference between revisions of "IGEP GST FRAMEWORK 3.10.10"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 3: Line 3:
 
IGEP gst framework it's based on TI DVSDK. It's modified version for provide all DSP&nbsp;essential packages and the [[GStreamer|gstreamer]] DSP plugin for use it in IGEP platforms. <br>  
 
IGEP gst framework it's based on TI DVSDK. It's modified version for provide all DSP&nbsp;essential packages and the [[GStreamer|gstreamer]] DSP plugin for use it in IGEP platforms. <br>  
  
= Changes From 3.10.00  =
+
= Changes From 3.00.00  =
  
 
*Support linux kernel 2.6.35.13-2<br>  
 
*Support linux kernel 2.6.35.13-2<br>  
 
*ISEE kernel 2.6.35.13-2  
 
*ISEE kernel 2.6.35.13-2  
 
*Update codec server to codecs-omap3530_4_02_00_00.<br>  
 
*Update codec server to codecs-omap3530_4_02_00_00.<br>  
*Added MP3 codec (decode).<br>
+
*Added MP3 codec (decode only).<br>
 +
*Added IGEP X-Loader.<br>
 +
*Prebuild binaries for DM3730 and OMAP3530 included.<br>
  
 
== Dependences<br>  ==
 
== Dependences<br>  ==
Line 16: Line 18:
 
*Ubuntu 10.10  
 
*Ubuntu 10.10  
 
*Automake 1.7 and Libtool ( '''sudo apt-get install autoconf automake libtool ''')  
 
*Automake 1.7 and Libtool ( '''sudo apt-get install autoconf automake libtool ''')  
 +
*Gstreamer.<br>
 
*SDK:&nbsp;<span style="color: rgb(255, 0, 0);">alsa-dev_1.0.20-r1_armv7a.ipk&nbsp;</span><span style="color: rgb(0, 0, 0);">(Now included inside the directory: tools/package).</span>&lt;span style="color: rgb(0, 0, 0);" /&gt;<br>
 
*SDK:&nbsp;<span style="color: rgb(255, 0, 0);">alsa-dev_1.0.20-r1_armv7a.ipk&nbsp;</span><span style="color: rgb(0, 0, 0);">(Now included inside the directory: tools/package).</span>&lt;span style="color: rgb(0, 0, 0);" /&gt;<br>
  
Line 25: Line 28:
 
--&gt; igep-dsp-gst-framework-3_10_00.tar.bz2</span><br>  
 
--&gt; igep-dsp-gst-framework-3_10_00.tar.bz2</span><br>  
  
Download the package and uncompress this package as normal user in your desired directory ('''''don't use sudo command for decompress this file''''')
+
Download the package and uncompress this package as normal user in your desired directory ('''''don't use sudo command for decompress this file''''')  
  
 
= How to Build<br>  =
 
= How to Build<br>  =
Line 33: Line 36:
 
Rules.make<br>  
 
Rules.make<br>  
  
<span style="color: rgb(0, 0, 255);">'''''Your igep-gst directory path:''' </span>  
+
<span style="color: rgb(0, 0, 255);">'''''Your igep-gst directory path:''' ''</span>  
  
 
'''<span style="color: rgb(255, 0, 0);">WORKSPACE=/home/&lt;YOUR_USER_PATH&gt;/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00</span>'''  
 
'''<span style="color: rgb(255, 0, 0);">WORKSPACE=/home/&lt;YOUR_USER_PATH&gt;/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00</span>'''  
  
<span style="color: rgb(0, 0, 128);">'''Your toolchain directory path:'''</span><span style="color: rgb(51, 102, 255);"  
+
<span style="color: rgb(0, 0, 128);">'''Your toolchain directory path:'''</span>&lt;span style="color: rgb(51, 102, 255);"  
  
 
'''<span style="color: rgb(255, 0, 0);">CSTOOL_DIR=/usr/local/poky/eabi-glibc</span>'''  
 
'''<span style="color: rgb(255, 0, 0);">CSTOOL_DIR=/usr/local/poky/eabi-glibc</span>'''  
Line 45: Line 48:
 
Now the kernel it's included with this package you don't need to change anything related to the kernel.  
 
Now the kernel it's included with this package you don't need to change anything related to the kernel.  
  
Select your right processor:<br>
+
Select your right processor:<br>  
  
<span style="color: rgb(0, 0, 255);">'''''PLATFORM=o3530 (OMAP3530)
+
<span style="color: rgb(0, 0, 255);">'''''PLATFORM=o3530 (OMAP3530)'''''
'''''</span>
+
'''</span>  
  
<span style="color: rgb(0, 0, 255);">'''''PLATFORM=dm3730 (DM3730)
+
<span style="color: rgb(0, 0, 255);">'''''PLATFORM=dm3730 (DM3730)'''''
''''' </span>
+
''''' '''''</span>  
  
 
== Build &amp; Clean<br>  ==
 
== Build &amp; Clean<br>  ==
Line 62: Line 65:
 
make clean</pre>  
 
make clean</pre>  
 
== Build &amp; Clean Manually<br>  ==
 
== Build &amp; Clean Manually<br>  ==
 +
 +
Build the framework:<br>
 
<pre>cd /home/&lt;YOUR_USER_PATH&gt;/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
 
<pre>cd /home/&lt;YOUR_USER_PATH&gt;/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
 +
make linux
 
make dsplink
 
make dsplink
 
make lpm
 
make lpm
Line 70: Line 76:
 
make c6accel
 
make c6accel
 
make c6run
 
make c6run
make
+
make dmai
 
+
make gst_ti
</pre>
 
You have two options: build all or every package individually.
 
 
 
a) All packages
 
 
 
make
 
 
 
b) One package
 
 
 
make &lt;package_name&gt;
 
<pre>make dmai
 
 
 
make gst
 
 
 
make dsplink
 
 
 
...
 
 
</pre>  
 
</pre>  
For clean the build you should execute:  
+
Clean the framework:<br>
 
+
<pre>cd /home/&lt;YOUR_USER_PATH&gt;/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
make clean
+
make linux_clean
 
 
or
 
 
 
make &lt;package_name&gt;_clean
 
 
 
such:
 
<pre>make dmai_clean
 
 
 
 
make dsplink_clean
 
make dsplink_clean
 
+
make lpm_clean
make gst_clean
+
make cmem_clean
</pre>
+
make sdma_clean
Build Manually
+
make codecs_clean
<pre>$ make linux_kernel dsplink cmem lpm sdma codecs dmai gst_ti opengldemos
+
make c6accel_clean
 +
make c6run_clean
 +
make dmai_clean
 +
make gst_ti_clean
 
</pre>  
 
</pre>  
 
= Install  =
 
= Install  =
  
Copy the "target" directory inside your IGEP board ( rcp * jdoe@192.168.2.1: )
+
After build the framwork you must install all build packages inside the target directory using below command.<br>
 +
<pre>make install
 +
</pre>
 +
Inside the target directory you've two new directories:<br>
  
Inside IGEPv2 board you should copy the gst plugin inside the plugins directory, normally inside /usr/lib/gstreamer-0.10
+
dm3730-binaries (modules, kernel ... for DM3730)<br>
  
We included some files for configure, load and unload the kernel modules as loadmodules.sh and unloadmodules.sh
+
omap3530-binaries (modules, kernel ... for OMAP3530)
  
You should call the loadmodules.sh script before you can execute gstreamer.
+
Copy your target directory to your board as:<br>
 +
<pre>cd target
 +
scp -r dm3730-binaries &lt;remote_user&gt;@&lt;IGEP IP&gt;:/home/&lt;your_desired_directory&gt;
 +
scp -r scripts &lt;remote_user&gt;@&lt;IGEP IP&gt;:/home/&lt;your_desired_directory&gt;
  
<br>  
+
Also included you've the IGEP Xloader and the configuration file.
 
+
</pre>
== Uboot Setup  ==
+
Enter inside your IGEP board and go to gstreamer directory normally inside /usr/lib/gstreamer-0.10 and create two symbolic links from this directory to your files:<br>
  
You should configure the max kernel memory to 430MBytes for do it you should pass the variable mem=430M to the kernel.
+
cd /usr/lib/gstreamer-0.10
<pre>This is a suggested configuration:
 
bootargs-base=mem=430M console=ttyS2,115200n8 console=tty0 omapfb.mode=dvi:1280x720MR-16@60 vram=32M omapfb.vram=0:8M,1:16M,2:8M
 
</pre>
 
<br>
 
  
= Issues detected in this version  =
+
ln -s /home/&lt;your_desired_directory&gt;/cs.x64P
  
*make clean (dsplink) not work properly and it's necessary to do a make dsplink_clean for ensure all it's compiled correctly and remove the kernel modules from the dsplink directory.
+
ln -s /home/&lt;your_desired_directory&gt;/libgstticodecplugin.so
*gstreamer plugin directory "gstreamer-ti_svnr884/src/gstticodecplugin_dm3730" must be removed the first installation time (manually).
 
*Typo in Makefile. "linaro_linux" must be changed to "linux_linaro". Otherwise "make linux_kernel" fails.<br>
 
  
 +
or copy the files directly as inside target directory location.<br>
 +
<br>
 
= Useful Links  =
 
= Useful Links  =
  

Revision as of 14:12, 19 August 2011

What is?

IGEP gst framework it's based on TI DVSDK. It's modified version for provide all DSP essential packages and the gstreamer DSP plugin for use it in IGEP platforms.

Changes From 3.00.00

  • Support linux kernel 2.6.35.13-2
  • ISEE kernel 2.6.35.13-2
  • Update codec server to codecs-omap3530_4_02_00_00.
  • Added MP3 codec (decode only).
  • Added IGEP X-Loader.
  • Prebuild binaries for DM3730 and OMAP3530 included.

Dependences

  • ISEE Toolchain poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2
  • linux kernel 2.6.35.13-2 included with this package.
  • Ubuntu 10.10
  • Automake 1.7 and Libtool ( sudo apt-get install autoconf automake libtool )
  • Gstreamer.
  • SDK: alsa-dev_1.0.20-r1_armv7a.ipk (Now included inside the directory: tools/package).<span style="color: rgb(0, 0, 0);" />

Download

The package be available in the IGEPv2 download area.

01-ISEE_Products --> IGEPv2 --> SW_Tools_SDK --> igep_gst --> igep-dsp-gst-framework-3_10_00.tar.bz2

Download the package and uncompress this package as normal user in your desired directory (don't use sudo command for decompress this file)

How to Build

You should edit the file Rules.make and update package path and toolchain path.

Rules.make

Your igep-gst directory path:

WORKSPACE=/home/<YOUR_USER_PATH>/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00

Your toolchain directory path:<span style="color: rgb(51, 102, 255);"

CSTOOL_DIR=/usr/local/poky/eabi-glibc

CSTOOL_PREFIX=$(CSTOOL_DIR)/bin/arm-none-linux-gnueabi-

Now the kernel it's included with this package you don't need to change anything related to the kernel.

Select your right processor:

PLATFORM=o3530 (OMAP3530)

PLATFORM=dm3730 (DM3730)

Build & Clean

Build the framework:

cd /home/<YOUR_USER_PATH>/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
make

Clean the framework

cd /home/<YOUR_USER_PATH>/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
make clean

Build & Clean Manually

Build the framework:

cd /home/<YOUR_USER_PATH>/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
make linux
make dsplink
make lpm
make cmem
make sdma
make codecs
make c6accel
make c6run
make dmai
make gst_ti

Clean the framework:

cd /home/<YOUR_USER_PATH>/Projects/myigep/workspace/igep-dsp-gst-framework/igep-dsp-gst-framework-3_10_00
make linux_clean
make dsplink_clean
make lpm_clean
make cmem_clean
make sdma_clean
make codecs_clean
make c6accel_clean
make c6run_clean
make dmai_clean
make gst_ti_clean

Install

After build the framwork you must install all build packages inside the target directory using below command.

make install

Inside the target directory you've two new directories:

dm3730-binaries (modules, kernel ... for DM3730)

omap3530-binaries (modules, kernel ... for OMAP3530)

Copy your target directory to your board as:

cd target
scp -r dm3730-binaries <remote_user>@<IGEP IP>:/home/<your_desired_directory>
scp -r scripts <remote_user>@<IGEP IP>:/home/<your_desired_directory>

Also included you've the IGEP Xloader and the configuration file.

Enter inside your IGEP board and go to gstreamer directory normally inside /usr/lib/gstreamer-0.10 and create two symbolic links from this directory to your files:

cd /usr/lib/gstreamer-0.10

ln -s /home/<your_desired_directory>/cs.x64P

ln -s /home/<your_desired_directory>/libgstticodecplugin.so

or copy the files directly as inside target directory location.

Useful Links