summaryrefslogtreecommitdiffstats
path: root/extras/recipes-ti/dmai/ti-dmai
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-ti/dmai/ti-dmai')
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/arago-tdox210
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/doxygen_templates.tar.gzbin0 -> 8012 bytes
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh37
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm355_al.sh23
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm365_al.sh25
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6446_al.sh19
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6467_al.sh19
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-o3530_al.sh42
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol137_al.sh19
-rwxr-xr-xextras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol138_al.sh19
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/omap3530-r642-remove-include-videodev.diff64
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff48
-rw-r--r--extras/recipes-ti/dmai/ti-dmai/unloadmodules-ti-dmai-apps.sh12
13 files changed, 537 insertions, 0 deletions
diff --git a/extras/recipes-ti/dmai/ti-dmai/arago-tdox b/extras/recipes-ti/dmai/ti-dmai/arago-tdox
new file mode 100644
index 00000000..81538cf3
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/arago-tdox
@@ -0,0 +1,210 @@
1#!/bin/bash
2#
3#
4# This script sets a series of environment variable that are referenced
5# in a doxygen configuration file. The values passed in here are simply
6# plugged into the file locations and doxygen proceeds normaly.
7#
8# template location is ${VENDORS}/opensource/doxygen/templates/<version>
9#
10#
11
12# Revision history
13#! 02 Jul 2009 cring: Added cmd line args for doxygendir (-x) and template (-t)
14#! 13 Jul 2006 ada: New template smaller pdf generation
15#! 16 May 2006 ada: Added -p file to pdf for space in project names
16#! 08 May 2006 ada: Added pdf generation to tdox (Solaris/Linux only).
17#! 23 Jan 2006 ada: Overide file to change default doxyfile behaivior
18#! 19 Jan 2006 ada: 1093, ENUM_VALUES_PER_LINE set to 1, ref doxyfile via vers
19#! 05 Oct 2005 ada: 933, doxyfile in tools, removed win and unix vendors path
20#! 24 Aug 2005 ada: Added 897 changes, optional css c or jave optimization
21#! 18 Aug 2005 ada: inital version from AR 887
22
23# Set these defaults here as the usage statement uses them
24TDOX_TEMPLATEDIR=${TOOLS}/default/doxygen_templates
25DOXYGEN_EXECUTABLE=doxygen
26
27function usage
28{
29 OPTIONS="`basename $0` code_location out_doc_location [-x doxygen_exe ] [-t tdox_templatedir] [-n project_name] [-v version] [-f FILE_PATTERNS ] [-s strip_dir] [-c css location] [-e exclude dirs] [-b enabled sections] [-m generate chm] [-p pdf_file] [-o override doxyfile] [-j]"
30 echo "`basename $1` $OPTIONS"
31 echo "Where: "
32 echo "\tcode_location: Top of tree(s) to search for code (required as 1st param)"
33 echo "\tout_doc_location: Output location for generated files (required as 2nd param)"
34 echo "\t[-n project_name]: title of generated documentation (defaults to Project)"
35 echo "\t[-x doxygen_exe]: location of doxygen executable (defaults to $DOXYGEN_EXECUTABLE)"
36 echo "\t[-t tdox_templatedir]: location of tdox templates (defaults to $TDOX_TEMPLATEDIR)"
37 echo "\t[-v version]: version number or string (defaults to 1.0)"
38 echo "\t[-f FILE_PATTERNS]: Optional list of files to document (defaults to all)"
39 echo "\t[-s strip_dirs]: Remove directory prefix from generated files (defaults to not remove)"
40 echo "\t[-c path_to_css]: Path to a user suplied CSS style sheet"
41 echo "\t[-e exclude dirs]: List of directories to exclude"
42 echo "\t[-b enabled sections]: List of sections to enable"
43 echo "\t[-m generate chm]: chm file name (required)"
44 echo "\t[-p generate pdf <file>]: create <file>.pdf in html/pdf (Linux only)"
45 echo "\t[-o override doxyfile]: file (advanced) Overide any doxyfile default"
46 echo "\t[-j]: Optimize for Java (Generate class files) defaults to C"
47 echo "\t[-r]: Call rshd to windows for chm generation (defaults to wine)"
48 echo
49 exit
50}
51
52function optimizeForJava
53{
54 DOX_OPTIMIZE_OUTPUT_JAVA="YES"
55 DOX_OPTIMIZE_OUTPUT_FOR_C="NO"
56}
57
58if [ "$#" -lt 2 ]; then
59 echo "Invalid number of parameters"
60 usage $0
61fi
62
63# get the required parameters then shift for the getopts parameters
64export DOX_INPUT="$1"
65shift
66export DOX_OUTPUT_DIRECTORY="$1"
67shift
68
69#set the global defaults
70DOX_QUIET="YES"
71DOX_OPTIMIZE_OUTPUT_JAVA="NO"
72DOX_OPTIMIZE_OUTPUT_FOR_C="YES"
73DOX_CHM_FILE=
74DOX_GENERATE_HTMLHELP="NO"
75OVERRIDE_FILE=""
76PDF=""
77
78# Process the rest of the arguments as getopts
79# parameters
80while getopts b:c:e:f:m:n:o:p:s:t:v:x:dhjr arg
81do
82 case $arg in
83 b) DOX_ENABLED_SECTIONS=${OPTARG};;
84 c) DOX_HTML_STYLESHEET=${OPTARG};;
85 d) DEBUG=1;;
86 e) DOX_EXCLUDE=${OPTARG};;
87 f) DOX_FILE_PATTERNS=${OPTARG};;
88 h) usage;exit 0;;
89 j) optimizeForJava;;
90 r) USERSHD=1;;
91 m) DOX_CHM_FILE=${OPTARG};DOX_GENERATE_HTMLHELP="YES";;
92 n) DOX_PROJECT_NAME=${OPTARG};;
93 s) DOX_STRIP_FROM_PATH=${OPTARG};;
94 t) TDOX_TEMPLATEDIR=${OPTARG};;
95 v) DOX_PROJECT_NUMBER=${OPTARG};;
96 x) DOXYGEN_EXECUTABLE=${OPTARG};;
97 o) OVERRIDE_FILE=${OPTARG};;
98 p) PDF=${OPTARG};;
99 \?) usage
100 exit 2;;
101 esac
102done
103
104if [ "$DEBUG" = "1" ]; then
105 DOX_QUIET="NO"
106 set -x
107fi
108
109if [ "$DOX_PROJECT_NAME" = "" ]; then
110 DOX_PROJECT_NAME="Project"
111fi
112
113if [ "$DOX_PROJECT_NUMBER" = "" ]; then
114 DOX_PROJECT_NUMBER="1.0"
115fi
116
117if [ "$DOX_FILE_PATTERNS" = "" ]; then
118 DOX_FILE_PATTERNS="*.c \
119 *.cc \
120 *.cxx \
121 *.cpp \
122 *.c++ \
123 *.d \
124 *.java \
125 *.ii \
126 *.ixx \
127 *.ipp \
128 *.i++ \
129 *.inl \
130 *.h \
131 *.hh \
132 *.hxx \
133 *.hpp \
134 *.h++ \
135 *.idl \
136 *.odl \
137 *.cs \
138 *.php \
139 *.php3 \
140 *.inc \
141 *.m \
142 *.mm \
143 *.dox"
144fi
145
146export DOX_INPUT
147export DOX_OUTPUT_DIRECTORY
148export DOX_PROJECT_NAME
149export DOX_PROJECT_NUMBER
150export DOX_FILE_PATTERNS
151export DOX_STRIP_FROM_PATH
152export DOX_QUIET
153export DOX_HTML_STYLESHEET
154export DOX_OPTIMIZE_OUTPUT_FOR_C
155export DOX_OPTIMIZE_OUTPUT_JAVA
156export DOX_EXCLUDE
157export DOX_ENABLED_SECTIONS
158export DOX_CHM_FILE
159export DOX_GENERATE_HTMLHELP
160export TDOX_TEMPLATEDIR
161
162
163# Make sure the dir exists
164mkdir -p $DOX_OUTPUT_DIRECTORY
165
166# Create temp file copy of doxyfile and append overrides to the end of the file
167cp ${TDOX_TEMPLATEDIR}/doxyfile /tmp/doxyfile$$
168
169chmod +w /tmp/doxyfile$$
170if [ "$OVERRIDE_FILE" != "" ]; then
171 cat $OVERRIDE_FILE >> /tmp/doxyfile$$
172fi
173
174# Run doxygen and clean up temp file
175${DOXYGEN_EXECUTABLE} /tmp/doxyfile$$
176rm -f /tmp/doxyfile$$
177
178# Copy the TI banner gifs to the html directory.
179cp -p ${TDOX_TEMPLATEDIR}/*gif $DOX_OUTPUT_DIRECTORY/html
180
181# Generate PDF files
182if [ "$PDF" != "" ]; then
183 if [ "$BUILD_HOST_OS" = "Linux" ]; then
184 rm -rf $DOX_OUTPUT_DIRECTORY/html/pdf
185 mkdir -p $DOX_OUTPUT_DIRECTORY/html/pdf
186 cwd=`pwd`
187 cd $DOX_OUTPUT_DIRECTORY/latex
188 latex refman.tex
189 makeindex refman.idx
190 latex refman.tex
191 latex_count=5
192 while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ]
193 do
194 latex refman.tex
195 latex_count=`expr $$latex_count - 1`
196 done
197 dvips -o refman.ps refman.dvi
198 ps2pdf refman.ps refman.pdf
199 cd $cwd
200 mv $DOX_OUTPUT_DIRECTORY/latex/refman.pdf $DOX_OUTPUT_DIRECTORY/html/pdf/${PDF}.pdf
201 else
202 echo "Sorry... pdf generation supported under Linux only"
203 fi
204fi
205
206# Generate Windows compressed help
207if [ "$DOX_GENERATE_HTMLHELP" = "YES" ]; then
208
209 echo "chm generation is not supported"
210fi
diff --git a/extras/recipes-ti/dmai/ti-dmai/doxygen_templates.tar.gz b/extras/recipes-ti/dmai/ti-dmai/doxygen_templates.tar.gz
new file mode 100644
index 00000000..6d613bf5
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/doxygen_templates.tar.gz
Binary files differ
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh
new file mode 100755
index 00000000..7120b744
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh
@@ -0,0 +1,37 @@
1#
2# Default Memory Map - for OMAP3530 dvsdk examples from 3.00.00.29 - this memory map is used for DMAI apps
3#
4# Start Addr Size Description
5# -------------------------------------------
6# 0x80000000 88 MB Linux
7# 0x85800000 08 MB CMEM
8# 0x86800000 16 MB DDRALGHEAP
9# 0x87800000 6 MB DDR2 (BIOS, Codecs, Applications)
10# 0x87E00000 1 MB DSPLINK (MEM)
11# 0x87F00000 4 KB DSPLINK (RESET)
12# 0x87F01000 1020 KB unused
13
14# sanity check to verify that we're using the right mem=xxM (88M in this case)
15awk '/MemTotal:/ {
16 mem=$2
17
18 if (mem > 88 * 1024)
19 print "Warning! You need to use mem=88M or less on the kernel cmdline"
20
21 printf "You have %dkB total memory for Linux\n", mem
22}' /proc/meminfo
23
24# Select cmemk parameters for best fit, i.e. starting at 0x85000000
25modprobe cmemk phys_start=0x85800000 phys_end=0x86800000 pools=20x4096,8x131072,5x1048576,1x1429440,1x256000,1x3600000,5x829440
26
27# insert DSP/BIOS Link driver
28#
29modprobe dsplinkk
30
31# make /dev/dsplink
32#rm -f /dev/dsplink
33#mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
34
35# insert Local Power Manager driver
36#
37modprobe lpm_omap3530
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm355_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm355_al.sh
new file mode 100755
index 00000000..ca357e20
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm355_al.sh
@@ -0,0 +1,23 @@
1#!/bin/sh
2#
3# loadmodules.sh
4#
5# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU Lesser General Public License as
9# published by the Free Software Foundation version 2.1 of the License.
10#
11# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
12# whether express or implied; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# Lesser General Public License for more details.
15
16# 12MB
17modprobe cmemk phys_start=0x87400000 phys_end=0x88000000 pools=1x2903040,1x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096
18
19./mapdmaq
20
21modprobe dm350mmap
22rm -f /dev/dm350mmap
23mknod /dev/dm350mmap c `awk "\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm365_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm365_al.sh
new file mode 100644
index 00000000..36dc78ec
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm365_al.sh
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3# This loadmodules script is provided to support 1920x1080 resolution file based encode/decode DMAI unit test applications
4
5# Sample bootargs is given below
6# mem=60M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=<nfsroot> ip=dhcp video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,2025K dm365_imp.oper_mode=0
7
8depmod -a
9rmmod cmemk 2>/dev/null
10rmmod irqk 2>/dev/null
11rmmod edmak 2>/dev/null
12rmmod dm365mmap 2>/dev/null
13
14# Pools configuration
15modprobe cmemk phys_start=0x83C00000 phys_end=0x88000000 pools=1x384,2x5984,2x3133440,1x16384,1x48952,1x20480,1x60288,1x74,1x28,1x2048,1x6785280,1x146,1x896,1x65536,1x98,1x296,29x56,2x24,1x624,4x62,1x1456,1x18321120,1x65792,5x3523584,1x4194304,1x8355840
16
17#VC1 decode pool configuration
18# insmod cmemk.ko phys_start=0x83C00000 phys_end=0x88000000 pools=1x384,1x112665,3x7680,1x319264,2x1024,5x7208960,1x80,1x116,1x29184,1x2688,1x30720,1x551680,2x128,1x74,1x28,1x10240,1x47232,1x448,2x1152,1x8192,2x272896,18x56,2x24,1x86,4x62,2x7808,1x2097152
19
20modprobe irqk
21modprobe edmak
22modprobe dm365mmap
23
24rm -f /dev/dm365mmap
25mknod /dev/dm365mmap c `awk "\\$2==\"dm365mmap\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6446_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6446_al.sh
new file mode 100755
index 00000000..b4a230d5
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6446_al.sh
@@ -0,0 +1,19 @@
1#
2# loadmodules.sh
3#
4# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as
8# published by the Free Software Foundation version 2.1 of the License.
9#
10# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
11# whether express or implied; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14
15modprobe cmemk phys_start=0x87800000 phys_end=0x88E00000 pools=20x4096,8x202752,10x131072,2x1048576,1x2097152,10x829440,1x6750000
16modprobe dsplinkk ddr_start=0x8F800000 ddr_size=0x600000
17
18rm -rf /dev/dsplink
19mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6467_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6467_al.sh
new file mode 100755
index 00000000..b4a230d5
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-dm6467_al.sh
@@ -0,0 +1,19 @@
1#
2# loadmodules.sh
3#
4# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as
8# published by the Free Software Foundation version 2.1 of the License.
9#
10# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
11# whether express or implied; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14
15modprobe cmemk phys_start=0x87800000 phys_end=0x88E00000 pools=20x4096,8x202752,10x131072,2x1048576,1x2097152,10x829440,1x6750000
16modprobe dsplinkk ddr_start=0x8F800000 ddr_size=0x600000
17
18rm -rf /dev/dsplink
19mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-o3530_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-o3530_al.sh
new file mode 100755
index 00000000..076af072
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-o3530_al.sh
@@ -0,0 +1,42 @@
1# loadmodules.sh
2#
3# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU Lesser General Public License as
7# published by the Free Software Foundation version 2.1 of the License.
8#
9# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
10# whether express or implied; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# Lesser General Public License for more details.
13
14#
15# Default Memory Map
16#
17# Start Addr Size Description
18# -------------------------------------------
19# 0x80000000 88 MB Linux
20# 0x85800000 08 MB CMEM
21# 0x86800000 24 MB DDRALGHEAP
22# 0x87800000 6 MB DDR2 (BIOS, Codecs, Applications)
23# 0x87E00000 1 MB DSPLINK (MEM)
24# 0x87F00000 4 KB DSPLINK (RESET)
25# 0x87F01000 1020 KB unused
26
27modprobe cmemk phys_start=0x85800000 phys_end=0x86800000 pools=20x4096,8x131072,4x829440,1x5250000,1x1429440,1x256000
28
29
30# insert DSP/BIOS Link driver
31#
32modprobe dsplinkk
33
34# make /dev/dsplink
35rm -f /dev/dsplink
36mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
37
38
39# insert Local Power Manager driver
40#
41modprobe lpm_omap3530
42
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol137_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol137_al.sh
new file mode 100755
index 00000000..2c98c787
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol137_al.sh
@@ -0,0 +1,19 @@
1#
2# loadmodules.sh
3#
4# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as
8# published by the Free Software Foundation version 2.1 of the License.
9#
10# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
11# whether express or implied; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14
15modprobe cmemk phys_start=0xC2200000 phys_end=0xC3200000 pools=1x5250000,3x1048576,3x829440,1x256000,4x131072
16modprobe dsplinkk
17
18rm -rf /dev/dsplink
19mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol138_al.sh b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol138_al.sh
new file mode 100755
index 00000000..2c98c787
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-ol138_al.sh
@@ -0,0 +1,19 @@
1#
2# loadmodules.sh
3#
4# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as
8# published by the Free Software Foundation version 2.1 of the License.
9#
10# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
11# whether express or implied; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14
15modprobe cmemk phys_start=0xC2200000 phys_end=0xC3200000 pools=1x5250000,3x1048576,3x829440,1x256000,4x131072
16modprobe dsplinkk
17
18rm -rf /dev/dsplink
19mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dmai/ti-dmai/omap3530-r642-remove-include-videodev.diff b/extras/recipes-ti/dmai/ti-dmai/omap3530-r642-remove-include-videodev.diff
new file mode 100644
index 00000000..63f9cc68
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/omap3530-r642-remove-include-videodev.diff
@@ -0,0 +1,64 @@
1From 06c4cfeec98f4f1e31543878ceb74c5fff1907e4 Mon Sep 17 00:00:00 2001
2From: Enrico Butera <ebutera@users.berlios.de>
3Date: Thu, 22 Dec 2011 11:01:58 +0100
4Subject: [PATCH 1/2] adjust videdev headers for recent kernels
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 .../packages/ti/sdo/dmai/linux/omap3530/Capture.c | 1 -
9 .../ti/sdo/dmai/linux/omap3530/Display_v4l2.c | 1 -
10 .../ti/sdo/dmai/linux/omap3530/_VideoBuf.c | 1 -
11 .../ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h | 1 -
12 4 files changed, 0 insertions(+), 4 deletions(-)
13
14diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
15index a924169..c2b45d2 100644
16--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
17+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Capture.c
18@@ -40,7 +40,6 @@
19 #include <sys/mman.h>
20 #include <sys/ioctl.h>
21 #include <asm/types.h>
22-#include <linux/videodev.h>
23 #include <linux/videodev2.h>
24
25 #include <xdc/std.h>
26diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
27index 0d01b39..0c35efe 100644
28--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
29+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/Display_v4l2.c
30@@ -38,7 +38,6 @@
31 #include <sys/ioctl.h>
32 #include <sys/mman.h>
33 #include <errno.h>
34-#include <linux/videodev.h>
35 #include <linux/videodev2.h>
36
37 #include <xdc/std.h>
38diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
39index 5615e2f..5cb712d 100644
40--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
41+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/_VideoBuf.c
42@@ -38,7 +38,6 @@
43 #include <sys/ioctl.h>
44 #include <sys/mman.h>
45 #include <errno.h>
46-#include <linux/videodev.h>
47 #include <linux/videodev2.h>
48
49 #include <xdc/std.h>
50diff --git a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
51index b2128a3..dbaa4eb 100644
52--- a/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
53+++ b/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/omap3530/priv/_VideoBuf.h
54@@ -34,7 +34,6 @@
55 #ifndef ti_sdo_dai_linux_priv__VideoBuf_h_
56 #define ti_sdo_dai_linux_priv__VideoBuf_h_
57
58-#include <linux/videodev.h>
59 #include <linux/videodev2.h>
60
61 #include <ti/sdo/dmai/BufferGfx.h>
62--
631.7.2.5
64
diff --git a/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff b/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff
new file mode 100644
index 00000000..2f328c0e
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff
@@ -0,0 +1,48 @@
1From 86e89bb160cfe67c173f1260b93066b12dd73580 Mon Sep 17 00:00:00 2001
2From: Enrico Butera <ebutera@users.berlios.de>
3Date: Thu, 22 Dec 2011 11:03:58 +0100
4Subject: [PATCH 2/2] fix toolchain names in config.bld
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 .../dmai/packages/config.bld | 24 +------------------
9 1 files changed, 2 insertions(+), 22 deletions(-)
10
11diff --git a/davinci_multimedia_application_interface/dmai/packages/config.bld b/davinci_multimedia_application_interface/dmai/packages/config.bld
12index 8c2e96e..566f907 100644
13--- a/davinci_multimedia_application_interface/dmai/packages/config.bld
14+++ b/davinci_multimedia_application_interface/dmai/packages/config.bld
15@@ -44,28 +44,8 @@ var C6X = xdc.useModule('ti.targets.C64P');
16 C6X.rootDir = codegen;
17 C6X.platform = xdcplat;
18
19-/* User passes in $(CROSS_COMPILE) where $(CROSS_COMPILE)gcc is their compiler
20- Then the TOOLDIR and LONGNAME are derived based on a regex of CROSS_COMPILE
21-*/
22-var crosscompile = "" + java.lang.System.getenv("CROSS_COMPILE");
23-
24-var tooldir = "";
25-var longName = "";
26-
27-/* Search CROSS_COMPILE for bin/ If only 1 bin/ is found, set the tooldir to
28- the path prior to bin/ and the prefix to "bin/" + remainder of path,
29- else leave the tooldir as "" and set the LONGNAME to the full CROSS_COMPILE
30- path
31-*/
32-var regex = new RegExp("bin/");
33-var find = crosscompile.split( regex );
34-
35-if (find[0]!=crosscompile && find.length==2) {
36- tooldir = find[0];
37- longName = "bin/" + find[1] + "gcc";
38-} else {
39- longName = crosscompile + "gcc";
40-}
41+var tooldir = "" + java.lang.System.getenv("CSTOOL_DIR");
42+var longName = "" + java.lang.System.getenv("MVTOOL_PREFIX") + "gcc";
43
44 /* location of the GCC Arm9 tools */
45 var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
46--
471.7.2.5
48
diff --git a/extras/recipes-ti/dmai/ti-dmai/unloadmodules-ti-dmai-apps.sh b/extras/recipes-ti/dmai/ti-dmai/unloadmodules-ti-dmai-apps.sh
new file mode 100644
index 00000000..793d727f
--- /dev/null
+++ b/extras/recipes-ti/dmai/ti-dmai/unloadmodules-ti-dmai-apps.sh
@@ -0,0 +1,12 @@
1# Unload modules - DMAI - OMAP3530
2
3# remove lpm module
4rmmod lpm_omap3530
5
6# remove DSP/BIOS Link driver
7rmmod dsplinkk
8#rm -f /dev/dsplink
9
10# remove cmem module
11rmmod cmemk
12