summaryrefslogtreecommitdiffstats
path: root/extras/recipes-ti/codec-engine/ti-codec-engine
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-ti/codec-engine/ti-codec-engine')
-rw-r--r--extras/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch22
-rw-r--r--extras/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch60
-rw-r--r--extras/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh49
-rw-r--r--extras/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh37
-rw-r--r--extras/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh12
5 files changed, 180 insertions, 0 deletions
diff --git a/extras/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch b/extras/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch
new file mode 100644
index 00000000..b93161f4
--- /dev/null
+++ b/extras/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch
@@ -0,0 +1,22 @@
1do_compile produces:
2
3js: "/prj/oe/bb/build/tmp-eglibc/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-2_26_02_11-r114a/codec_engine_2_26_02_11/packages/ti/sdo/ce/osal/linux/package.xs", line 50: XDC runtime error: gnu.targets.arm.GCArmv5T: '$used' is sealed
4
5Fix per suggestion in http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/110920.aspx
6
7--- ./packages/ti/sdo/ce/osal/linux/package.xs.orig 2010-12-01 23:24:48.000000000 -0600
8+++ ./packages/ti/sdo/ce/osal/linux/package.xs 2011-12-27 14:59:39.382423341 -0600
9@@ -47,10 +47,10 @@
10 }
11
12 /* Conditionally load CMEM here */
13- var targetMod = xdc.useModule(prog.build.target.$name);
14- if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) {
15+ //var targetMod = xdc.useModule(prog.build.target.$name);
16+ //if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) {
17 xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');
18- }
19+ //}
20
21 var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
22
diff --git a/extras/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch b/extras/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch
new file mode 100644
index 00000000..1eb81086
--- /dev/null
+++ b/extras/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch
@@ -0,0 +1,60 @@
1diff --git a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
2index 2bbfb72..2a00d0d 100644
3--- a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
4+++ b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
5@@ -80,6 +80,7 @@ REPO_PATH = \
6 $(FC_INSTALL_DIR)/packages \
7 $(FC_INSTALL_DIR)/examples \
8 $(CMEM_INSTALL_DIR)/packages \
9+ $(LPM_INSTALL_DIR)/packages \
10 $(BIOSUTILS_INSTALL_DIR)/packages \
11 $(EXAMPLES_ROOTDIR)
12
13diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
14index f2b187a..827f6bc 100644
15--- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
16+++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
17@@ -74,6 +74,7 @@ REPO_PATH = \
18 $(XDAIS_INSTALL_DIR)/packages \
19 $(FC_INSTALL_DIR)/packages \
20 $(CMEM_INSTALL_DIR)/packages \
21+ $(LPM_INSTALL_DIR)/packages \
22 $(BIOSUTILS_INSTALL_DIR)/packages \
23 $(EXAMPLES_ROOTDIR)
24
25diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
26index a4fe4dc..a23f991 100644
27--- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
28+++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
29@@ -76,6 +76,7 @@ REPO_PATH = \
30 $(XDAIS_INSTALL_DIR)/packages \
31 $(FC_INSTALL_DIR)/packages \
32 $(CMEM_INSTALL_DIR)/packages \
33+ $(LPM_INSTALL_DIR)/packages \
34 $(BIOSUTILS_INSTALL_DIR)/packages \
35 $(EXAMPLES_ROOTDIR)
36
37diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
38index 8baa9dd..3c01c04 100644
39--- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
40+++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
41@@ -74,6 +74,7 @@ REPO_PATH = \
42 $(XDAIS_INSTALL_DIR)/packages \
43 $(FC_INSTALL_DIR)/packages \
44 $(CMEM_INSTALL_DIR)/packages \
45+ $(LPM_INSTALL_DIR)/packages \
46 $(BIOSUTILS_INSTALL_DIR)/packages \
47 $(EXAMPLES_ROOTDIR)
48
49diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
50index 3319c06..09a6357 100644
51--- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
52+++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
53@@ -75,6 +75,7 @@ REPO_PATH = \
54 $(XDAIS_INSTALL_DIR)/packages \
55 $(FC_INSTALL_DIR)/packages \
56 $(CMEM_INSTALL_DIR)/packages \
57+ $(LPM_INSTALL_DIR)/packages \
58 $(BIOSUTILS_INSTALL_DIR)/packages \
59 $(EXAMPLES_ROOTDIR)
60
diff --git a/extras/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh b/extras/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh
new file mode 100644
index 00000000..60a40f0c
--- /dev/null
+++ b/extras/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh
@@ -0,0 +1,49 @@
1#
2# Copyright (c) 2008, Texas Instruments Incorporated
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# * Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11#
12# * Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15#
16# * Neither the name of Texas Instruments Incorporated nor the names of
17# its contributors may be used to endorse or promote products derived
18# from this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31#
32
33# insert cmemk, tell it to occupy physical 120MB-128MB, create
34# 20 4K buffers, 10 128K buffers and two 1MB buffers
35CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=20x4096,10x131072,2x1048576"
36
37if [ -e cmemk.ko ]
38 then
39 insmod cmemk.ko $CMEM_MODPARAMS
40 else
41 modprobe cmemk $CMEM_MODPARAMS
42fi
43
44# Allow cmem driver to be used by all users
45if [ -e /dev/cmem ]
46 then
47 chmod 666 /dev/cmem
48fi
49
diff --git a/extras/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh b/extras/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
new file mode 100644
index 00000000..9f9233d1
--- /dev/null
+++ b/extras/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
@@ -0,0 +1,37 @@
1#
2# Default Memory Map - for OMAP3530 CE 2.21 examples
3#
4# Start Addr Size Description
5# -------------------------------------------
6# 0x80000000 80 MB Linux
7# 0x85000000 08 MB CMEM
8# 0x86000000 24 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 (80M in this case)
15awk '/MemTotal:/ {
16 mem=$2
17
18 if (mem > 80 * 1024)
19 print "Warning! You need to use mem=80M 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=0x85000000 phys_end=0x86000000 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/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh b/extras/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh
new file mode 100644
index 00000000..f990d997
--- /dev/null
+++ b/extras/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh
@@ -0,0 +1,12 @@
1# Unload modules - CODEC ENGINE - 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