diff options
Diffstat (limited to 'recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh')
-rw-r--r-- | recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh b/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh new file mode 100644 index 00000000..9f9233d1 --- /dev/null +++ b/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) | ||
15 | awk '/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 | ||
25 | modprobe cmemk phys_start=0x85000000 phys_end=0x86000000 pools=20x4096,8x131072,5x1048576,1x1429440,1x256000,1x3600000,5x829440 | ||
26 | |||
27 | # insert DSP/BIOS Link driver | ||
28 | # | ||
29 | modprobe 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 | # | ||
37 | modprobe lpm_omap3530 | ||