summaryrefslogtreecommitdiffstats
path: root/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh')
-rwxr-xr-xrecipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh b/recipes-ti/dmai/ti-dmai/loadmodules-ti-dmai-apps.sh
new file mode 100755
index 00000000..7120b744
--- /dev/null
+++ b/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