diff options
author | Ivan Pang | 2012-05-10 09:47:09 -0500 |
---|---|---|
committer | Ivan Pang | 2012-05-10 09:47:09 -0500 |
commit | 996dc2805716aedeeb59d7b6d2b7963249071174 (patch) | |
tree | c4b1f00a96947c72cfd4b92493557fe28b9d9320 /boot_loader/examples/pcie/pcieboot_helloworld | |
parent | 1bc0e3fe9c991ac0633fa8b72731e60fae54aabf (diff) | |
download | mcsdk-tools-996dc2805716aedeeb59d7b6d2b7963249071174.tar.gz mcsdk-tools-996dc2805716aedeeb59d7b6d2b7963249071174.tar.xz mcsdk-tools-996dc2805716aedeeb59d7b6d2b7963249071174.zip |
Added 6657 PCIE boot examples
Diffstat (limited to 'boot_loader/examples/pcie/pcieboot_helloworld')
10 files changed, 368 insertions, 0 deletions
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.ccsproject b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.ccsproject new file mode 100644 index 0000000..f8e7770 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.ccsproject | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | |||
4 | <projectOptions> | ||
5 | <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="7.2.4"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="rts6600_elf.lib"/> | ||
10 | </projectOptions> | ||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.cproject b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.cproject new file mode 100644 index 0000000..642c509 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.cproject | |||
@@ -0,0 +1,93 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <macros> | ||
9 | <stringMacro name="TI_MCSDK_PCIEBOOT_DIR" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/> | ||
10 | </macros> | ||
11 | <externalSettings/> | ||
12 | <extensions> | ||
13 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
14 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
16 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
17 | </extensions> | ||
18 | </storageModule> | ||
19 | <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> | ||
20 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
21 | <configuration artifactExtension="out" artifactName="../bin/pcieboot_helloworld_evm6657l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> | ||
22 | <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> | ||
23 | <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.DebugToolchain.1037150944" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug.1937793861"> | ||
24 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1059557122" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
25 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/> | ||
26 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
27 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
28 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.1.0.01"/> | ||
29 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
30 | <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6657:1.0.0.0;"/> | ||
31 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> | ||
32 | </option> | ||
33 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1416136851" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.3.1" valueType="string"/> | ||
34 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.targetPlatformDebug.445774872" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.targetPlatformDebug"/> | ||
35 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.builderDebug.725071068" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.builderDebug"/> | ||
36 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.compilerDebug.234213403" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.compilerDebug"> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.SILICON_VERSION.601271597" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.SILICON_VERSION" value="6600" valueType="string"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL.643725866" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEFINE.35315292" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEFINE" valueType="definedSymbols"> | ||
40 | <listOptionValue builtIn="false" value="_EVMC6657L_"/> | ||
41 | </option> | ||
42 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.INCLUDE_PATH.1431986500" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
43 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
44 | <listOptionValue builtIn="false" value=""${TI_PDK_C6657_INSTALL_DIR}/packages/ti/platform""/> | ||
45 | <listOptionValue builtIn="false" value=""${TI_PDK_C6657_INSTALL_DIR}/packages""/> | ||
46 | </option> | ||
47 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DIAG_WARNING.311449320" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DIAG_WARNING" valueType="stringList"> | ||
48 | <listOptionValue builtIn="false" value="225"/> | ||
49 | </option> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI.1163602791" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI.eabi" valueType="enumerated"/> | ||
51 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DISPLAY_ERROR_NUMBER.10327928" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__C_SRCS.1224731726" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__C_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__CPP_SRCS.1291131476" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__CPP_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM_SRCS.46619028" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM_SRCS"/> | ||
55 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM2_SRCS.517358694" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM2_SRCS"/> | ||
56 | </tool> | ||
57 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug.1937793861" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug"> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.OUTPUT_FILE.2069018769" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.OUTPUT_FILE" value=""../bin/pcieboot_helloworld_evm6657l.out"" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.MAP_FILE.83896803" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.MAP_FILE" value=""../bin/pcieboot_helloworld_evm6657l.map"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.LIBRARY.176342557" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.LIBRARY" valueType="libs"> | ||
61 | <listOptionValue builtIn="false" value=""ti.platform.evm6657l.ae66""/> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | </option> | ||
64 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.SEARCH_PATH.1086582858" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.SEARCH_PATH" valueType="stringList"> | ||
65 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
67 | <listOptionValue builtIn="false" value=""${TI_PDK_C6657_INSTALL_DIR}/packages/ti/platform/evmc6657l/platform_lib/lib/debug""/> | ||
68 | </option> | ||
69 | </tool> | ||
70 | </toolChain> | ||
71 | </folderInfo> | ||
72 | </configuration> | ||
73 | </storageModule> | ||
74 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
75 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | ||
76 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
77 | </cconfiguration> | ||
78 | </storageModule> | ||
79 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
80 | <project id="pcieboot_helloworld.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/> | ||
81 | </storageModule> | ||
82 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
83 | <project-mappings> | ||
84 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
85 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
86 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
87 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
88 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
89 | </project-mappings> | ||
90 | </storageModule> | ||
91 | <storageModule moduleId="refreshScope"/> | ||
92 | <storageModule moduleId="scannerConfiguration"/> | ||
93 | </cproject> | ||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.project b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.project new file mode 100644 index 0000000..b865e52 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/.project | |||
@@ -0,0 +1,102 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>pcieboot_helloworld_evmc6657l</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | <dictionary> | ||
12 | <key>?name?</key> | ||
13 | <value></value> | ||
14 | </dictionary> | ||
15 | <dictionary> | ||
16 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
17 | <value>true</value> | ||
18 | </dictionary> | ||
19 | <dictionary> | ||
20 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
21 | <value>all</value> | ||
22 | </dictionary> | ||
23 | <dictionary> | ||
24 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
25 | <value>-k</value> | ||
26 | </dictionary> | ||
27 | <dictionary> | ||
28 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
29 | <value>${CCS_UTILS_DIR}/bin/gmake</value> | ||
30 | </dictionary> | ||
31 | <dictionary> | ||
32 | <key>org.eclipse.cdt.make.core.buildLocation</key> | ||
33 | <value>${BuildDirectory}</value> | ||
34 | </dictionary> | ||
35 | <dictionary> | ||
36 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
37 | <value>clean</value> | ||
38 | </dictionary> | ||
39 | <dictionary> | ||
40 | <key>org.eclipse.cdt.make.core.contents</key> | ||
41 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
42 | </dictionary> | ||
43 | <dictionary> | ||
44 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
45 | <value>true</value> | ||
46 | </dictionary> | ||
47 | <dictionary> | ||
48 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
49 | <value>true</value> | ||
50 | </dictionary> | ||
51 | <dictionary> | ||
52 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
53 | <value>true</value> | ||
54 | </dictionary> | ||
55 | <dictionary> | ||
56 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
57 | <value>all</value> | ||
58 | </dictionary> | ||
59 | <dictionary> | ||
60 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
61 | <value>false</value> | ||
62 | </dictionary> | ||
63 | <dictionary> | ||
64 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
65 | <value>true</value> | ||
66 | </dictionary> | ||
67 | </arguments> | ||
68 | </buildCommand> | ||
69 | <buildCommand> | ||
70 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
71 | <triggers>full,incremental,</triggers> | ||
72 | <arguments> | ||
73 | </arguments> | ||
74 | </buildCommand> | ||
75 | </buildSpec> | ||
76 | <natures> | ||
77 | <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature> | ||
78 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
79 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
81 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
82 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
83 | </natures> | ||
84 | <linkedResources> | ||
85 | <link> | ||
86 | <name>README.pdf</name> | ||
87 | <type>1</type> | ||
88 | <locationURI>TI_MCSDK_PCIEBOOT_DIR/docs/README.pdf</locationURI> | ||
89 | </link> | ||
90 | <link> | ||
91 | <name>src</name> | ||
92 | <type>2</type> | ||
93 | <locationURI>TI_MCSDK_PCIEBOOT_DIR/pcieboot_helloworld/src</locationURI> | ||
94 | </link> | ||
95 | </linkedResources> | ||
96 | <variableList> | ||
97 | <variable> | ||
98 | <name>TI_MCSDK_PCIEBOOT_DIR</name> | ||
99 | <value>$%7BPARENT-2-PROJECT_LOC%7D</value> | ||
100 | </variable> | ||
101 | </variableList> | ||
102 | </projectDescription> | ||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/header.txt b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/header.txt new file mode 100644 index 0000000..9786996 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/header.txt | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | * | ||
33 | */ | ||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat new file mode 100644 index 0000000..02d05bb --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat | |||
@@ -0,0 +1,27 @@ | |||
1 | set C6000_CG_DIR="C:\ti\ccsv5\tools\compiler\c6000" | ||
2 | set TOOL_DIR="..\..\..\..\..\..\" | ||
3 | set TARGET=6657 | ||
4 | set ENDIAN=little | ||
5 | set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%; | ||
6 | |||
7 | |||
8 | @echo off | ||
9 | |||
10 | echo C6000_CG_DIR set as: %C6000_CG_DIR% | ||
11 | echo TARGET set as: %TARGET% | ||
12 | echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR% | ||
13 | |||
14 | echo Converting .out to HEX ... | ||
15 | if %ENDIAN% == little ( | ||
16 | %C6000_CG_DIR%\bin\hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm%TARGET%l.out | ||
17 | ) else ( | ||
18 | %C6000_CG_DIR%\bin\hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm%TARGET%l.out | ||
19 | ) | ||
20 | |||
21 | ..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin | ||
22 | |||
23 | ..\..\..\..\..\..\hfile2array\hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode | ||
24 | |||
25 | move pcieBootCode.h ..\..\..\linux_host_loader\pcieBootCode_%TARGET%.h | ||
26 | |||
27 | |||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh new file mode 100644 index 0000000..b7b05c2 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh | |||
@@ -0,0 +1,23 @@ | |||
1 | export CGT_INSTALL_DIR=~/ti/TI_CGT_C6000_7.3.1 | ||
2 | export TOOL_DIR="../../../../../../" | ||
3 | export TARGET=6657 | ||
4 | export ENDIAN=little | ||
5 | export PATH=${PATH};${SystemRoot}/system32;${SystemRoot}; | ||
6 | |||
7 | echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR} | ||
8 | echo TARGET set as: ${TARGET} | ||
9 | echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR} | ||
10 | |||
11 | echo Converting .out to HEX ... | ||
12 | if [ ${ENDIAN} == little ] | ||
13 | then | ||
14 | ${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out | ||
15 | else | ||
16 | ${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out | ||
17 | fi | ||
18 | |||
19 | ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin | ||
20 | |||
21 | ../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode | ||
22 | |||
23 | mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h | ||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_image.rmd b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_image.rmd new file mode 100644 index 0000000..a0effff --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_image.rmd | |||
@@ -0,0 +1,11 @@ | |||
1 | -a | ||
2 | -boot | ||
3 | -e _c_int00 | ||
4 | |||
5 | ROMS | ||
6 | { | ||
7 | ROM1: org = 0x80000000, length = 0x200000, memwidth = 32, romwidth = 32 | ||
8 | files = { pcieboot_helloworld.btbl } | ||
9 | } | ||
10 | |||
11 | |||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/macros.ini_initial b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/macros.ini_initial new file mode 100644 index 0000000..5f9fb3f --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/macros.ini_initial | |||
@@ -0,0 +1 @@ | |||
TI_MCSDK_PCIEBOOT_DIR="../../../../ | |||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/pcieboot_helloworld.cmd b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/pcieboot_helloworld.cmd new file mode 100644 index 0000000..bf36f80 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/pcieboot_helloworld.cmd | |||
@@ -0,0 +1,64 @@ | |||
1 | /****************************************************************************** | ||
2 | * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com | ||
3 | * | ||
4 | * Redistribution and use in source and binary forms, with or without | ||
5 | * modification, are permitted provided that the following conditions | ||
6 | * are met: | ||
7 | * | ||
8 | * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * | ||
11 | * Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the | ||
14 | * distribution. | ||
15 | * | ||
16 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | * its contributors may be used to endorse or promote products derived | ||
18 | * from this software without specific prior written permission. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | * | ||
32 | *****************************************************************************/ | ||
33 | /* | ||
34 | * Linker command file | ||
35 | * | ||
36 | */ | ||
37 | |||
38 | -c | ||
39 | -heap 0x2000 | ||
40 | -stack 0x2000 | ||
41 | |||
42 | /* Memory Map 1 - the default */ | ||
43 | MEMORY | ||
44 | { | ||
45 | DDR (RWX) : org = 0x80000000, len = 0x20000000 | ||
46 | LL2 (RWX) : org = 0x00800000, len = 0x00010000 | ||
47 | } | ||
48 | |||
49 | SECTIONS | ||
50 | { | ||
51 | .text > DDR | ||
52 | platform_lib > DDR | ||
53 | .const > DDR | ||
54 | .neardata > LL2 | ||
55 | .fardata > DDR | ||
56 | .switch > DDR | ||
57 | .cinit > DDR | ||
58 | .stack > LL2 | ||
59 | .sysmem > LL2 | ||
60 | .bss > LL2 | ||
61 | .far > LL2 | ||
62 | .cio > LL2 | ||
63 | } | ||
64 | |||
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c b/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c index 7a4c026..ffe9b4e 100644 --- a/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c +++ b/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c | |||
@@ -52,6 +52,10 @@ | |||
52 | #define KICK1 (CHIP_LEVEL_REG + 0x003C) | 52 | #define KICK1 (CHIP_LEVEL_REG + 0x003C) |
53 | 53 | ||
54 | /* Magic address RBL is polling */ | 54 | /* Magic address RBL is polling */ |
55 | #ifdef _EVMC6657L_ | ||
56 | #define MAGIC_ADDR 0x8ffffc | ||
57 | #endif | ||
58 | |||
55 | #ifdef _EVMC6678L_ | 59 | #ifdef _EVMC6678L_ |
56 | #define MAGIC_ADDR 0x87fffc | 60 | #define MAGIC_ADDR 0x87fffc |
57 | #endif | 61 | #endif |