summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravindBatni2011-08-22 10:06:49 -0500
committerAravindBatni2011-08-22 10:06:49 -0500
commit158b08902f0d3ac8117c44fce2e30d5cdb26609d (patch)
treefebad3512b0627f4c284596ba8dd72bd53803dd1
parent6e060535e975c4e0e39acc0fbda272a1f954d464 (diff)
downloadmcsdk-tools-158b08902f0d3ac8117c44fce2e30d5cdb26609d.tar.gz
mcsdk-tools-158b08902f0d3ac8117c44fce2e30d5cdb26609d.tar.xz
mcsdk-tools-158b08902f0d3ac8117c44fce2e30d5cdb26609d.zip
added the linux shell scripts for boot loader examples
-rwxr-xr-xboot_loader/examples/ethernet/simple/simple.sh1
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh20
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.sh20
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh22
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh23
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_post/evmc6670l/bin/pcieboot_post_elf2HBin.sh22
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.sh22
-rw-r--r--boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.sh22
-rw-r--r--boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.sh20
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh22
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh22
-rw-r--r--post/evmc6670l/bin/post_romparse.sh43
-rw-r--r--post/evmc6678l/bin/post_romparse.sh43
13 files changed, 302 insertions, 0 deletions
diff --git a/boot_loader/examples/ethernet/simple/simple.sh b/boot_loader/examples/ethernet/simple/simple.sh
new file mode 100755
index 0000000..6c5a34a
--- /dev/null
+++ b/boot_loader/examples/ethernet/simple/simple.sh
@@ -0,0 +1 @@
make simple.eth
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh
new file mode 100755
index 0000000..af73029
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh
@@ -0,0 +1,20 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6670
3export ENDIAN=little
4
5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6echo TARGET set as: ${TARGET}
7
8echo Converting .out to HEX ...
9if [ ${ENDIAN} == little ]
10then
11${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
12else
13${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
14fi
15
16../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin
17
18../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode
19
20mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.sh
new file mode 100755
index 0000000..dfb5417
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.sh
@@ -0,0 +1,20 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6678
3export ENDIAN=little
4
5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6echo TARGET set as: ${TARGET}
7
8echo Converting .out to HEX ...
9if [ ${ENDIAN} == little ]
10then
11${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
12else
13${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
14fi
15
16../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin
17
18../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode
19
20mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh
new file mode 100755
index 0000000..4c4ba33
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6670
4export ENDIAN=little
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out
16fi
17
18../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin
19
20../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode
21
22mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
new file mode 100755
index 0000000..89f07fb
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
@@ -0,0 +1,23 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6678
4export ENDIAN=little
5export PATH=${PATH};${SystemRoot}/system32;${SystemRoot};
6
7echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
8echo TARGET set as: ${TARGET}
9echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
10
11echo Converting .out to HEX ...
12if [ ${ENDIAN} == little ]
13then
14${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out
15else
16${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out
17fi
18
19../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin
20
21../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode
22
23mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h
diff --git a/boot_loader/examples/pcie/pcieboot_post/evmc6670l/bin/pcieboot_post_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_post/evmc6670l/bin/pcieboot_post_elf2HBin.sh
new file mode 100755
index 0000000..a2cfbbd
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_post/evmc6670l/bin/pcieboot_post_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6670
4export ENDIAN=little
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10cp ../../../../../../post/evmc${TARGET}l/bin/post_evm${TARGET}l.out .
11
12echo Converting .out to HEX ...
13if [ ${ENDIAN} == little ]
14then
15${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
16else
17${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
18fi
19
20../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_post.btbl pcieboot_post.h pcieboot_post.bin
21../../../../../../hfile2array/hfile2array pcieboot_post.h post.h post
22mv post.h ../../../linux_host_loader/post_${TARGET}.h
diff --git a/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.sh
new file mode 100755
index 0000000..ac1ec24
--- /dev/null
+++ b/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.sh
@@ -0,0 +1,22 @@
1export C6000_CG_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6678
4export ENDIAN=little
5
6echo C6000_CG_DIR set as: ${C6000_CG_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10cp ../../../../../../post/evmc${TARGET}l/bin/post_evm${TARGET}l.out .
11
12echo Converting .out to HEX ...
13if [ ${ENDIAN} == little ]
14then
15${C6000_CG_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
16else
17${C6000_CG_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
18fi
19
20../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_post.btbl pcieboot_post.h pcieboot_post.bin
21../../../../../../hfile2array/hfile2array pcieboot_post.h post.h post
22mv post.h ../../../linux_host_loader/post_${TARGET}.h
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.sh b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.sh
new file mode 100644
index 0000000..f2ab47b
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6670
3export ENDIAN=little
4
5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6echo TARGET set as: ${TARGET}
7
8echo Converting .out to HEX ...
9if [ ${ENDIAN} == little ]
10then
11${CGT_INSTALL_DIR}/bin/hex6x -order L srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
12else
13${CGT_INSTALL_DIR}/bin/hex6x -order M srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
14fi
15
16../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_ddrinit.btbl srioboot_ddrinit.h srioboot_ddrinit.bin
17
18../../../../../../hfile2array/hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
19
20mv srioDdrInit.h ../../../srioboot_example/src/
21
22
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.sh b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.sh
new file mode 100644
index 0000000..8a8a40d
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.sh
@@ -0,0 +1,20 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6678
3export ENDIAN=little
4
5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6echo TARGET set as: ${TARGET}
7
8echo Converting .out to HEX ...
9if [ ${ENDIAN} == little ]
10then
11${CGT_INSTALL_DIR}/bin/hex6x -order L srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
12else
13${CGT_INSTALL_DIR}/bin/hex6x -order M srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
14fi
15
16../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_ddrinit.btbl srioboot_ddrinit.h srioboot_ddrinit.bin
17
18../../../../../../hfile2array/hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
19
20mv srioDdrInit.h ../../../srioboot_example/src/
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh
new file mode 100644
index 0000000..551866b
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6670
4export ENDIAN=little
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
16fi
17
18../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
19
20../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
21
22mv srioBootCode.h ../../../srioboot_example/src/
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
new file mode 100644
index 0000000..e02f6f1
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TOOL_DIR="../../../../../../"
3export TARGET=6678
4export ENDIAN=little
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
16fi
17
18../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
19
20../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
21
22mv srioBootCode.h ../../../srioboot_example/src/
diff --git a/post/evmc6670l/bin/post_romparse.sh b/post/evmc6670l/bin/post_romparse.sh
new file mode 100644
index 0000000..e8b4295
--- /dev/null
+++ b/post/evmc6670l/bin/post_romparse.sh
@@ -0,0 +1,43 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6670
3export ENDIAN=little
4export IBL_ROOT_DIR="../../../boot_loader/ibl"
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}l.out
16fi
17
18${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
19
20if [ ${ENDIAN} == little ]
21then
22${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
23else
24${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
25fi
26
27if [ ${ENDIAN} == little ]
28then
29${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
30else
31${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
32fi
33
34${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
35
36${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
37
38echo Generating I2C ROM data ...
39${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
40
41mv i2crom.ccs post_i2crom.dat
42
43rm -f *.ccs *.b
diff --git a/post/evmc6678l/bin/post_romparse.sh b/post/evmc6678l/bin/post_romparse.sh
new file mode 100644
index 0000000..6fb267b
--- /dev/null
+++ b/post/evmc6678l/bin/post_romparse.sh
@@ -0,0 +1,43 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6678
3export ENDIAN=little
4export IBL_ROOT_DIR="../../../boot_loader/ibl"
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}l.out
16fi
17
18${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
19
20if [ ${ENDIAN} == little ]
21then
22${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
23else
24${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
25fi
26
27if [ ${ENDIAN} == little ]
28then
29${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
30else
31${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
32fi
33
34${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
35
36${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
37
38echo Generating I2C ROM data ...
39${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
40
41mv i2crom.ccs post_i2crom.dat
42
43rm -f *.ccs *.b