]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/commitdiff
added the linux shell scripts for boot loader examples
authorAravindBatni <aravindbr@ti.com>
Mon, 22 Aug 2011 15:06:49 +0000 (11:06 -0400)
committerAravindBatni <aravindbr@ti.com>
Mon, 22 Aug 2011 15:06:49 +0000 (11:06 -0400)
13 files changed:
boot_loader/examples/ethernet/simple/simple.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_post/evmc6670l/bin/pcieboot_post_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.sh [new file with mode: 0755]
boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.sh [new file with mode: 0644]
boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.sh [new file with mode: 0644]
boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.sh [new file with mode: 0644]
boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh [new file with mode: 0644]
post/evmc6670l/bin/post_romparse.sh [new file with mode: 0644]
post/evmc6678l/bin/post_romparse.sh [new file with mode: 0644]

diff --git a/boot_loader/examples/ethernet/simple/simple.sh b/boot_loader/examples/ethernet/simple/simple.sh
new file mode 100755 (executable)
index 0000000..6c5a34a
--- /dev/null
@@ -0,0 +1 @@
+make simple.eth\r
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 (executable)
index 0000000..af73029
--- /dev/null
@@ -0,0 +1,20 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TARGET=6670\r
+export ENDIAN=little\r
+\r
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
+echo TARGET set as: ${TARGET}\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
+else\r
+${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin\r
+\r
+../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode\r
+\r
+mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h\r
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 (executable)
index 0000000..dfb5417
--- /dev/null
@@ -0,0 +1,20 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TARGET=6678\r
+export ENDIAN=little\r
+\r
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
+echo TARGET set as: ${TARGET}\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
+else\r
+${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin\r
+\r
+../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode\r
+\r
+mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h\r
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 (executable)
index 0000000..4c4ba33
--- /dev/null
@@ -0,0 +1,22 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TOOL_DIR="../../../../../../"\r
+export TARGET=6670\r
+export ENDIAN=little\r
+\r
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
+echo TARGET set as: ${TARGET}\r
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out\r
+else\r
+${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin\r
+\r
+../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode\r
+\r
+mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h\r
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 (executable)
index 0000000..89f07fb
--- /dev/null
@@ -0,0 +1,23 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TOOL_DIR="../../../../../../"\r
+export TARGET=6678\r
+export ENDIAN=little\r
+export PATH=${PATH};${SystemRoot}/system32;${SystemRoot};\r
+\r
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
+echo TARGET set as: ${TARGET}\r
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out\r
+else\r
+${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin\r
+\r
+../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode\r
+\r
+mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h\r
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 (executable)
index 0000000..a2cfbbd
--- /dev/null
@@ -0,0 +1,22 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TOOL_DIR="../../../../../../"\r
+export TARGET=6670\r
+export ENDIAN=little\r
+\r
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
+echo TARGET set as: ${TARGET}\r
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}\r
+\r
+cp ../../../../../../post/evmc${TARGET}l/bin/post_evm${TARGET}l.out .\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out\r
+else\r
+${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_post.btbl pcieboot_post.h pcieboot_post.bin\r
+../../../../../../hfile2array/hfile2array pcieboot_post.h post.h post\r
+mv post.h ../../../linux_host_loader/post_${TARGET}.h\r
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 (executable)
index 0000000..ac1ec24
--- /dev/null
@@ -0,0 +1,22 @@
+export C6000_CG_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
+export TOOL_DIR="../../../../../../"\r
+export TARGET=6678\r
+export ENDIAN=little\r
+\r
+echo C6000_CG_DIR set as: ${C6000_CG_DIR}\r
+echo TARGET set as: ${TARGET}\r
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}\r
+\r
+cp ../../../../../../post/evmc${TARGET}l/bin/post_evm${TARGET}l.out .\r
+\r
+echo Converting .out to HEX ...\r
+if [ ${ENDIAN} == little ]\r
+then\r
+${C6000_CG_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out\r
+else\r
+${C6000_CG_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out\r
+fi\r
+\r
+../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_post.btbl pcieboot_post.h pcieboot_post.bin\r
+../../../../../../hfile2array/hfile2array pcieboot_post.h post.h post\r
+mv post.h ../../../linux_host_loader/post_${TARGET}.h\r
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 (file)
index 0000000..f2ab47b
--- /dev/null
@@ -0,0 +1,22 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TARGET=6670
+export ENDIAN=little
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
+fi
+
+../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_ddrinit.btbl srioboot_ddrinit.h srioboot_ddrinit.bin
+
+../../../../../../hfile2array/hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
+
+mv srioDdrInit.h ../../../srioboot_example/src/
+
+
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 (file)
index 0000000..8a8a40d
--- /dev/null
@@ -0,0 +1,20 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TARGET=6678
+export ENDIAN=little
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M srioboot_ddrinit.rmd srioboot_ddrinit_evm${TARGET}l.out
+fi
+
+../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_ddrinit.btbl srioboot_ddrinit.h srioboot_ddrinit.bin
+
+../../../../../../hfile2array/hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
+
+mv 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 (file)
index 0000000..551866b
--- /dev/null
@@ -0,0 +1,22 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TOOL_DIR="../../../../../../"
+export TARGET=6670
+export ENDIAN=little
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
+fi
+
+../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
+
+../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
+
+mv 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 (file)
index 0000000..e02f6f1
--- /dev/null
@@ -0,0 +1,22 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TOOL_DIR="../../../../../../"
+export TARGET=6678
+export ENDIAN=little
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
+fi
+
+../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
+
+../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
+
+mv 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 (file)
index 0000000..e8b4295
--- /dev/null
@@ -0,0 +1,43 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TARGET=6670
+export ENDIAN=little
+export IBL_ROOT_DIR="../../../boot_loader/ibl"
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}l.out
+fi
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
+
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
+fi
+
+if [ ${ENDIAN} == little ]
+then
+${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
+else
+${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
+fi
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
+
+echo Generating I2C ROM data ...
+${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
+
+mv i2crom.ccs post_i2crom.dat
+
+rm -f *.ccs *.b
diff --git a/post/evmc6678l/bin/post_romparse.sh b/post/evmc6678l/bin/post_romparse.sh
new file mode 100644 (file)
index 0000000..6fb267b
--- /dev/null
@@ -0,0 +1,43 @@
+export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
+export TARGET=6678
+export ENDIAN=little
+export IBL_ROOT_DIR="../../../boot_loader/ibl"
+
+echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
+echo TARGET set as: ${TARGET}
+echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
+
+echo Converting .out to HEX ...
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}l.out
+fi
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
+
+if [ ${ENDIAN} == little ]
+then
+${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}l.out
+else
+${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}l.out
+fi
+
+if [ ${ENDIAN} == little ]
+then
+${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
+else
+${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
+fi
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
+
+${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
+
+echo Generating I2C ROM data ...
+${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
+
+mv i2crom.ccs post_i2crom.dat
+
+rm -f *.ccs *.b