Add MAD boot example for SCBP6618X
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_ddrinit / evmc6670l / bin / pcieboot_ddrinit_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2 export TARGET=6670
3 export ENDIAN=little
5 echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6 echo TARGET set as: ${TARGET}
8 echo Converting .out to HEX ...
9 if [ ${ENDIAN} == little ]
10 then
11 ${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
12 else
13 ${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
14 fi
16 ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin
18 ../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode
20 mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h