aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Nair2011-03-22 09:24:43 -0500
committerSandeep Nair2011-03-22 09:24:43 -0500
commitcb9619bd6f6fd937b367b2f327af6b238b0076b1 (patch)
tree2f19655b7726b42a67160bbcc24e945afdefaa0a
parent02c3a08c8ad8c277008ce5497db5bb3205c61d2d (diff)
downloadmad-utils-cb9619bd6f6fd937b367b2f327af6b238b0076b1.tar.gz
mad-utils-cb9619bd6f6fd937b367b2f327af6b238b0076b1.tar.xz
mad-utils-cb9619bd6f6fd937b367b2f327af6b238b0076b1.zip
Removed TI internal device name references from the source filesDEV.MAD_UTILS.01.00.00.01
-rw-r--r--mad-loader/README.txt24
-rw-r--r--map-tool/README.txt19
-rw-r--r--map-tool/config-files/deployment_template_C6472.json (renamed from map-tool/config-files/deployment_template_tomahawk.json)0
-rw-r--r--[-rwxr-xr-x]map-tool/config-files/deployment_template_C6472_windows.json (renamed from map-tool/config-files/deployment_template_tomahawk_windows.json)0
-rw-r--r--map-tool/config-files/deployment_template_C6616.json (renamed from map-tool/config-files/deployment_template_nyquist.json)0
-rw-r--r--map-tool/config-files/deployment_template_C6678.json (renamed from map-tool/config-files/deployment_template_shannon.json)0
-rw-r--r--[-rwxr-xr-x]map-tool/config-files/deployment_template_C6678_windows.json (renamed from map-tool/config-files/deployment_template_shannon_windows.json)0
-rw-r--r--map-tool/config-files/maptoolCfg_C6472.json (renamed from map-tool/config-files/maptoolCfg_tomahawk.json)2
-rw-r--r--[-rwxr-xr-x]map-tool/config-files/maptoolCfg_C6472_windows.json (renamed from map-tool/config-files/maptoolCfg_tomahawk_windows.json)4
-rw-r--r--map-tool/config-files/maptoolCfg_C6616.json (renamed from map-tool/config-files/maptoolCfg_nyquist.json)2
-rw-r--r--map-tool/config-files/maptoolCfg_C6678.json (renamed from map-tool/config-files/maptoolCfg_shannon.json)2
-rw-r--r--[-rwxr-xr-x]map-tool/config-files/maptoolCfg_C6678_windows.json (renamed from map-tool/config-files/maptoolCfg_shannon_windows.json)4
-rwxr-xr-xmap-tool/maptool.py5
13 files changed, 41 insertions, 21 deletions
diff --git a/mad-loader/README.txt b/mad-loader/README.txt
index 552d239..085b9c0 100644
--- a/mad-loader/README.txt
+++ b/mad-loader/README.txt
@@ -26,9 +26,9 @@ Example applications:
26 Each of the applications have a makefile which should be used to build the application. 26 Each of the applications have a makefile which should be used to build the application.
27 make DEVICE=<device number> 27 make DEVICE=<device number>
28 supported device numbers are 28 supported device numbers are
29 C6472 (Tomahawk) 29 C6472
30 C6616 (Nyquist) 30 C6616
31 C6678 (Tomahawk) 31 C6678
32 32
33MAD loader library: 33MAD loader library:
34 The makefile for building the MAD loader library is in the directory "mal/malLib/build" 34 The makefile for building the MAD loader library is in the directory "mal/malLib/build"
@@ -36,9 +36,9 @@ MAD loader library:
36 cd mal/malLib/build 36 cd mal/malLib/build
37 make DEVICE=<device number> 37 make DEVICE=<device number>
38 supported device numbers are 38 supported device numbers are
39 C6472 (Tomahawk) 39 C6472
40 C6616 (Nyquist) 40 C6616
41 C6678 (Tomahawk) 41 C6678
42 42
43MAD loader application: 43MAD loader application:
44 The makefile for building the MAD loader library is in the directory "mal/malApp/build" 44 The makefile for building the MAD loader library is in the directory "mal/malApp/build"
@@ -47,9 +47,9 @@ MAD loader application:
47 cd mal/malApp/build 47 cd mal/malApp/build
48 make DEVICE=<device number> 48 make DEVICE=<device number>
49 supported device numbers are 49 supported device numbers are
50 C6472 (Tomahawk) 50 C6472
51 C6616 (Nyquist) 51 C6616
52 C6678 (Tomahawk) 52 C6678
53 53
54 NOTE: MAD loader application needs to be XIP in DDR. The linker command file "lnk_<device number>.cmd" 54 NOTE: MAD loader application needs to be XIP in DDR. The linker command file "lnk_<device number>.cmd"
55 is used to ensure that the MAD loader app is bound to XIP address in DDR. 55 is used to ensure that the MAD loader app is bound to XIP address in DDR.
@@ -60,9 +60,9 @@ NML:
60 cd nmlLoader/build 60 cd nmlLoader/build
61 make DEVICE=<device number> 61 make DEVICE=<device number>
62 supported device numbers are 62 supported device numbers are
63 C6472 (Tomahawk) 63 C6472
64 C6616 (Nyquist) 64 C6616
65 C6678 (Tomahawk) 65 C6678
66 66
67 NOTE: Since NML is XIP in DDR, it has to be ensured that the NML code segments are bound to virtual address 67 NOTE: Since NML is XIP in DDR, it has to be ensured that the NML code segments are bound to virtual address
68 which is XIP in DDR. NML is a part of the ROM file system loaded on DDR. if the offset of the 68 which is XIP in DDR. NML is a part of the ROM file system loaded on DDR. if the offset of the
diff --git a/map-tool/README.txt b/map-tool/README.txt
new file mode 100644
index 0000000..5b17c0b
--- /dev/null
+++ b/map-tool/README.txt
@@ -0,0 +1,19 @@
1Contents:
2 maptool.py : The MAP tool provided as a python script
3 config-files: Folder containing sample configurations files to be used with
4 the MAP tool.
5
6MAP tool Usage:
7MAP tool is invoked as:
8 maptool.py <map tool cfg file name>
9
10Before invoking the MAP tool the code generation tools should be set in the
11system path.
12E.g. To set PATH on a Linux Bash shell:
13export PATH=/apps/ti/cgt/C6000CGT7.2.0/bin/:$PATH
14
15example invokation of MAP tool on Linux bash shell is as follows:
16 python maptool.py config-files/maptoolCfg_C6678.json
17example invokation of MAP tool on Windows Command shell is as follows:
18 maptool.py config-files\maptoolCfg_C6678_windows.json
19
diff --git a/map-tool/config-files/deployment_template_tomahawk.json b/map-tool/config-files/deployment_template_C6472.json
index 390cc76..390cc76 100644
--- a/map-tool/config-files/deployment_template_tomahawk.json
+++ b/map-tool/config-files/deployment_template_C6472.json
diff --git a/map-tool/config-files/deployment_template_tomahawk_windows.json b/map-tool/config-files/deployment_template_C6472_windows.json
index 6ca038f..6ca038f 100755..100644
--- a/map-tool/config-files/deployment_template_tomahawk_windows.json
+++ b/map-tool/config-files/deployment_template_C6472_windows.json
diff --git a/map-tool/config-files/deployment_template_nyquist.json b/map-tool/config-files/deployment_template_C6616.json
index 1b21a42..1b21a42 100644
--- a/map-tool/config-files/deployment_template_nyquist.json
+++ b/map-tool/config-files/deployment_template_C6616.json
diff --git a/map-tool/config-files/deployment_template_shannon.json b/map-tool/config-files/deployment_template_C6678.json
index 3ce4419..3ce4419 100644
--- a/map-tool/config-files/deployment_template_shannon.json
+++ b/map-tool/config-files/deployment_template_C6678.json
diff --git a/map-tool/config-files/deployment_template_shannon_windows.json b/map-tool/config-files/deployment_template_C6678_windows.json
index 8c890fa..8c890fa 100755..100644
--- a/map-tool/config-files/deployment_template_shannon_windows.json
+++ b/map-tool/config-files/deployment_template_C6678_windows.json
diff --git a/map-tool/config-files/maptoolCfg_tomahawk.json b/map-tool/config-files/maptoolCfg_C6472.json
index 221bcf3..b12f4ec 100644
--- a/map-tool/config-files/maptoolCfg_tomahawk.json
+++ b/map-tool/config-files/maptoolCfg_C6472.json
@@ -1,5 +1,5 @@
1{ 1{
2 "deploymentCfgFile" : "./config-files/deployment_template_tomahawk.json", 2 "deploymentCfgFile" : "./config-files/deployment_template_C6472.json",
3 "LoadImageName" : "c6472-le.bin", 3 "LoadImageName" : "c6472-le.bin",
4 "prelinkExe" : "prelink6x", 4 "prelinkExe" : "prelink6x",
5 "ofdTool" : "ofd6x", 5 "ofdTool" : "ofd6x",
diff --git a/map-tool/config-files/maptoolCfg_tomahawk_windows.json b/map-tool/config-files/maptoolCfg_C6472_windows.json
index 94451f1..d467f03 100755..100644
--- a/map-tool/config-files/maptoolCfg_tomahawk_windows.json
+++ b/map-tool/config-files/maptoolCfg_C6472_windows.json
@@ -1,8 +1,8 @@
1{ 1{
2 "deploymentCfgFile" : ".\\config-files\\deployment_template_tomahawk_windows.json", 2 "deploymentCfgFile" : ".\\config-files\\deployment_template_C6472_windows.json",
3 "LoadImageName" : "c6472-le.bin", 3 "LoadImageName" : "c6472-le.bin",
4 "prelinkExe" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\prelink6x", 4 "prelinkExe" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\prelink6x",
5 "ofdTool" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\ofd6x.exe", 5 "ofdTool" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\ofd6x.exe",
6 "malApp" : "..\\mad-loader\\mal/malApp\\build\\mal_app.exe", 6 "malApp" : "..\\mad-loader\\mal\\malApp\\build\\mal_app.exe",
7 "nmlLoader" : "..\\mad-loader\\nmlLoader\\build\\nml.exe" 7 "nmlLoader" : "..\\mad-loader\\nmlLoader\\build\\nml.exe"
8} 8}
diff --git a/map-tool/config-files/maptoolCfg_nyquist.json b/map-tool/config-files/maptoolCfg_C6616.json
index e313bb2..f81f2ee 100644
--- a/map-tool/config-files/maptoolCfg_nyquist.json
+++ b/map-tool/config-files/maptoolCfg_C6616.json
@@ -1,5 +1,5 @@
1{ 1{
2 "deploymentCfgFile" : "./config-files/deployment_template_nyquist.json", 2 "deploymentCfgFile" : "./config-files/deployment_template_C6616.json",
3 "LoadImageName" : "c6616-le.bin", 3 "LoadImageName" : "c6616-le.bin",
4 "prelinkExe" : "prelink6x", 4 "prelinkExe" : "prelink6x",
5 "ofdTool" : "ofd6x", 5 "ofdTool" : "ofd6x",
diff --git a/map-tool/config-files/maptoolCfg_shannon.json b/map-tool/config-files/maptoolCfg_C6678.json
index 421837a..ee5e647 100644
--- a/map-tool/config-files/maptoolCfg_shannon.json
+++ b/map-tool/config-files/maptoolCfg_C6678.json
@@ -1,5 +1,5 @@
1{ 1{
2 "deploymentCfgFile" : "./config-files/deployment_template_shannon.json", 2 "deploymentCfgFile" : "./config-files/deployment_template_C6678.json",
3 "LoadImageName" : "c6678-le.bin", 3 "LoadImageName" : "c6678-le.bin",
4 "prelinkExe" : "prelink6x", 4 "prelinkExe" : "prelink6x",
5 "ofdTool" : "ofd6x", 5 "ofdTool" : "ofd6x",
diff --git a/map-tool/config-files/maptoolCfg_shannon_windows.json b/map-tool/config-files/maptoolCfg_C6678_windows.json
index 692d784..74db510 100755..100644
--- a/map-tool/config-files/maptoolCfg_shannon_windows.json
+++ b/map-tool/config-files/maptoolCfg_C6678_windows.json
@@ -1,8 +1,8 @@
1{ 1{
2 "deploymentCfgFile" : ".\\config-files\\deployment_template_shannon_windows.json", 2 "deploymentCfgFile" : ".\\config-files\\deployment_template_C6678_windows.json",
3 "LoadImageName" : "c6678-le.bin", 3 "LoadImageName" : "c6678-le.bin",
4 "prelinkExe" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\prelink6x", 4 "prelinkExe" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\prelink6x",
5 "ofdTool" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\ofd6x.exe", 5 "ofdTool" : "G:\\Program Files\\Texas Instruments\\cgt-7.2.0\\bin\\ofd6x.exe",
6 "malApp" : "..\\mad-loader\\mal/malApp\\build\\mal_app.exe", 6 "malApp" : "..\\mad-loader\\mal\\malApp\\build\\mal_app.exe",
7 "nmlLoader" : "..\\mad-loader\\nmlLoader\\build\\nml.exe" 7 "nmlLoader" : "..\\mad-loader\\nmlLoader\\build\\nml.exe"
8} 8}
diff --git a/map-tool/maptool.py b/map-tool/maptool.py
index e38d82d..9bfa8c9 100755
--- a/map-tool/maptool.py
+++ b/map-tool/maptool.py
@@ -1920,7 +1920,7 @@ class elfFile:
1920 return True 1920 return True
1921 1921
1922 def parse(self): 1922 def parse(self):
1923 __ofdarg = '-x ' + '-o ' + self.xmlFileName + ' ' + self.file 1923 __ofdarg = '-x ' + '-o ' + self.xmlFileName + ' ' + '"' + self.file + '"'
1924 executeShellCmd(ofdTool,__ofdarg) 1924 executeShellCmd(ofdTool,__ofdarg)
1925 from xml.etree.ElementTree import ElementTree as ET 1925 from xml.etree.ElementTree import ElementTree as ET
1926 root = ET(file=self.xmlFileName) 1926 root = ET(file=self.xmlFileName)
@@ -2181,7 +2181,7 @@ if errorCode != None:
2181 2181
2182# Run Prelinker 2182# Run Prelinker
2183if runPrelinker(aList, globalLibList, prelinkCmdFileName, fileSystemDir) != 0: 2183if runPrelinker(aList, globalLibList, prelinkCmdFileName, fileSystemDir) != 0:
2184 print 'ERROR: Prelinker run failed' 2184 print 'ERROR: Prelinker run pass-1 failed'
2185 sys.exit(-7) 2185 sys.exit(-7)
2186 2186
2187# Since Prelinker can change the size of the ELF files 2187# Since Prelinker can change the size of the ELF files
@@ -2210,6 +2210,7 @@ if errorCode != None:
2210 2210
2211# Run Prelinker - Second Pass 2211# Run Prelinker - Second Pass
2212if runPrelinker(aList, globalLibList, prelinkCmdFileName, fileSystemDir)!= 0: 2212if runPrelinker(aList, globalLibList, prelinkCmdFileName, fileSystemDir)!= 0:
2213 print 'ERROR: Prelinker run pass-2 failed'
2213 sys.exit(-11) 2214 sys.exit(-11)
2214 2215
2215# Generate Application activation Records 2216# Generate Application activation Records