TMDS3240130SP2: C6678在Ubuntu下生成IBL程序

Part Number: TMDS3240130SP2


由于在Ubuntu下安装了CCS9.3,于是修改了setupenvLnx.sh文件:
  1 #!/bin/bash
  2 export OS="Linux"
  3 
  4 if [ -z $C6X_CGT_VERSION ]; then
  5    #C6X_CGT_VERSION=7.4.1
  6     C6X_CGT_VERSION=7.4.24
  7 fi
  8 
  9 if [ -z "$C6X_BASE_DIR" ]; then
 10     for dir in /home/caiyupei/ti/c6000_${C6X_CGT_VERSION} /home/caiyupei/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5 ; do
 11         if [ -x $dir/bin/cl6x ]; then
 12             C6X_BASE_DIR=$dir
 13             break
 14         fi
 15     done
 16 fi
 17 
 18 if [ ! -x $C6X_BASE_DIR/bin/cl6x ] ; then
 19     echo "You must define the C6X_BASE_DIR to point to TI CGT compiler for C6000"
 20     exit 2
 21 fi
 22 
 23 #make sure its exported
 24 export C6X_BASE_DIR
 25 
 26 export PATH=$C6X_BASE_DIR/bin:$PATH
 27 export TOOLSC6X=$C6X_BASE_DIR
 28 export TOOLSC6XDOS=$C6X_BASE_DIR
 29 export TOOLSBIOSC6XDOS=$C6X_BASE_DIR
依次运行source setupenvLnx.sh
make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51
但报下面错误:
make -f makestg1 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 \ ENDIAN_MODE=little ARCH=c64x TARGET=c66x EVM=c6678l SPI=no SPI_DEFS='SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1' \ CEXCLUDES='COFF BIS NAND_GPIO' c66x make[1]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/make' make -f makestg2 ARCH=c64x TARGET=c66x ENDIAN=little I2C_SIZE_BYTES=0x20000 I2C_BUS_ADDR=0x50 INTERNAL_UTILS= SPI_DEFS='SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1' utils make[2]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/make' make -C ../util/btoccs make[3]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/btoccs' gcc -o b2ccs b2ccs.c gcc -o b2i2c b2i2c.c b2i2c.c: In function ‘blockCheckSum’: b2i2c.c:146:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] exit (-1); ^ b2i2c.c:146:5: warning: incompatible implicit declaration of built-in function ‘exit’ b2i2c.c:146:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ gcc -o ccs2b ccs2b.c gcc -o bfaddsect bfaddsect.c bfaddsect.c: In function ‘main’: bfaddsect.c:166:24: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘unsigned char *’ [-Wformat=] sscanf (argv[i+3], "%x", &newchars[i]); ^ gcc -o bfmerge bfmerge.c gcc -o ccs2bin ccs2bin.c ccs2bin.c: In function ‘parseit’: ccs2bin.c:74:14: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (!strcmp (argv[i], "-swap")) ^ make[3]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/btoccs' make -C ../util/romparse TARGET=c66x make[3]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/romparse' Checking command line dependencies same make[3]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/romparse' make -C ../util/i2cConfig c66x MAINDEFS='-DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x50 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE='"ibl_c66x/ibl_init.i2c.be.ccs"' -DEXE_FILE_1='""' -DEXE_FILE_2='"ibl_c66x/ibl.i2c.be.ccs"'' make[3]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig' make -f makestg2 ARCH=c64x I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 TARGET=c66x c66x make[4]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig' Checking command line dependencies same making hw make -C ../../hw/c64x/make hw make[5]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/hw/c64x/make' Checking command line dependencies same make[5]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/hw/c64x/make' making device make -C ../../device/c64x/make CDEFS='-DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x50 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE=ibl_c66x/ibl_init.i2c.be.ccs -DEXE_FILE_1= -DEXE_FILE_2=ibl_c66x/ibl.i2c.be.ccs' device make[5]: Entering directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/device/c64x/make' q -I -a -ele.oa -o$.da ../../../device/c64x/c64x.s /bin/sh: q: 未找到命令 ../../../make/c64x/makeeco.mk:207: recipe for target 'c64x.da' failed make[5]: [c64x.da] Error 127 (ignored) Checking command line dependencies same cl6x -c -k -mi200 -ml0 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr -mv6400+ -I../../../device/c66x -I../../../cfg/c66x -I../../../device -I../../.. -I../../../arch/c64x -I/include -I/lib -I../../../hw/plls -I../../../hw/pscs -I../../../hw/gpio -I../../../hw/ddrs/emif31 -I../../../hw/qm -I../../../hw/cpdma -I../../../hw/pa -I../../../hw/serdes -I../../../hw/nands -I../../../hw/nors -I../../../driver/eth -I../../../hw/spi -I../../../hw/uart -as -ss -DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x50 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE=ibl_c66x/ibl_init.i2c.be.ccs -DEXE_FILE_1= -DEXE_FILE_2=ibl_c66x/ibl.i2c.be.ccs -dTNFNAME=c66x.c ../../../device/c66x/c66x.c -eo.le.oc make[5]: cl6x:命令未找到 ../../../make/c64x/makeeco.mk:174: recipe for target 'c66x.le.oc' failed make[5]: *** [c66x.le.oc] Error 127 make[5]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/device/c64x/make' makestg2:102: recipe for target 'device' failed make[4]: *** [device] Error 2 make[4]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig' Makefile:60: recipe for target 'c66x' failed make[3]: *** [c66x] Error 2 make[3]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig' makestg2:215: recipe for target 'utils' failed make[2]: *** [utils] Error 2 make[2]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/make' makestg1:115: recipe for target 'le_target' failed make[1]: *** [le_target] Error 2 make[1]: Leaving directory '/home/caiyupei/ti/pdk_c667x_2_0_16/packages/ti/boot/ibl/src/make' Makefile:321: recipe for target 'evm_c6678_i2c' failed make: *** [evm_c6678_i2c] Error 2 
请问怎么解决?