summaryrefslogtreecommitdiffstats
path: root/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh')
-rwxr-xr-xextras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh
new file mode 100755
index 00000000..9cfb19d5
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh
@@ -0,0 +1,25 @@
1#
2# Default Memory Map - for OMAP3530 dsplink examples
3#
4# Start Addr Size Description
5# -------------------------------------------
6# 0x80000000 126 MB Linux
7# 0x87E00000 2 MB DSPLINK (MEM) + DDR + DSPLINK (RESET)
8
9# sanity check to verify that we're using the right mem=xxM (126M in this case)
10awk '/MemTotal:/ {
11 mem=$2
12
13 if (mem > 126 * 1024)
14 print "Warning! You need to use mem=126M or less on the kernel cmdline"
15
16 printf "You have %dkB total memory for Linux\n", mem
17}' /proc/meminfo
18
19# insert DSP/BIOS Link driver
20#
21modprobe dsplinkk
22
23# make /dev/dsplink
24#rm -f /dev/dsplink
25#mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0