sg3-utils: add newer buildable version
[openembedded.git] / recipes / ti / files / loadmodules-ti-dsplink-apps.sh
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)
10 awk '/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 #
21 modprobe dsplinkk
22
23 # make /dev/dsplink
24 #rm -f /dev/dsplink
25 #mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0