summaryrefslogtreecommitdiff
path: root/packages/dsplink/files/loadmodules-ti-dsplink-apps.sh
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2009-02-20 12:05:35 -0500
committerCliff Brake <cbrake@bec-systems.com>2009-02-20 12:05:35 -0500
commitab066eb3b73656186a445667aa4f8c46b48644b3 (patch)
treed3b964b9c48ef1a6fce2d48534d1a8367df40768 /packages/dsplink/files/loadmodules-ti-dsplink-apps.sh
parentd512927cbf42dc9a3302ecac790a18d397ea012f (diff)
parentb8215aff2a8d11d99368d7794785b08a6fc0ed4c (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/dsplink/files/loadmodules-ti-dsplink-apps.sh')
-rwxr-xr-xpackages/dsplink/files/loadmodules-ti-dsplink-apps.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/dsplink/files/loadmodules-ti-dsplink-apps.sh b/packages/dsplink/files/loadmodules-ti-dsplink-apps.sh
new file mode 100755
index 0000000000..c93b637867
--- /dev/null
+++ b/packages/dsplink/files/loadmodules-ti-dsplink-apps.sh
@@ -0,0 +1,25 @@
+#
+# Default Memory Map - for OMAP3530 dsplink examples
+#
+# Start Addr Size Description
+# -------------------------------------------
+# 0x80000000 126 MB Linux
+# 0x87E00000 2 MB DSPLINK (MEM) + DDR + DSPLINK (RESET)
+
+# sanity check to verify that we're using the right mem=xxM (126M in this case)
+awk '/MemTotal:/ {
+ mem=$2
+
+ if (mem > 126 * 1024)
+ print "Warning! You need to use mem=126M or less on the kernel cmdline"
+
+ printf "You have %dkB total memory for Linux\n", mem
+}' /proc/meminfo
+
+# insert DSP/BIOS Link driver
+#
+modprobe dsplinkk
+
+# make /dev/dsplink
+rm -f /dev/dsplink
+mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0