This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6678: Makefile default options c6678

Part Number: TMS320C6678

Hello,

I see there are multiple options inside the Makefile located under C:\ti\pdk_c667x_2_0_4\packages\ti\boot\ibl\src\make.

If I want to build the IBL for NAND boot mode, should I explicitly say :

make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 NAND=yes NAND_EMIF=yes ? 

My second question is, what should the make command look like if i want to build the IBL for TFTP boot mode?

Thanks,

Viney

  • Hi Viney,

    The usage is provided in the make file:
    #*******************************************************************************************
    #* FILE PURPOSE: Top level make for the IBL
    #*******************************************************************************************
    #* FILE NAME: Makefile
    #*
    #* DESCRIPTION: Builds the Intermediate Boot Loader (IBL)
    #*
    #* Usage: make c6455 | c6472 | c6474 | c6457 | c66x
    #* [DEBUG=yes] /* Compiles for debug */
    #* [ETH=no] /* Disables ethernet support */
    #* [BIS=no] /* Disables BIS interpreter */
    #* [COFF=no] /* Disables COFF interpreter */
    #* [BLOB=no] /* Disables BLOB interpreter */
    #* [ELF=no] /* Disables ELF interpreter */
    #* [NAND=no] /* Disables NAND support through EMIF/SPI/GPIO */
    #* [NAND_SPI=no] /* Disables NAND support through SPI */
    #* [NAND_EMIF=no] /* Disables NAND support through EMIF */
    #* [NAND_GPIO=no] /* Disables NAND support through GPIO */
    #* [NOR=no] /* Disables NOR through EMIF/SPI */
    #* [NOR_SPI=no] /* Disables NOR support through SPI */
    #* [NOR_EMIF=no] /* Disables NOR support through EMIF */
    #* [SPI=no] /* Disables SPI */
    #* [I2C=no] /* Disables I2C */
    #* [EMIF=no] /* Disables EMIF */
    #* [MULTI_BOOT=no] /* Disables Multi-boot feature */
    #* [SPI_MODE=<0,1,2,3>] /* Selects the SPI operating mode */
    #* [SPI_ADDR_WIDTH=<16,24>] /* Selects the SPI address width */
    #* [SPI_NPIN=<4,5>] /* Selects the number of pins on the interface */
    #* [SPI_CSEL=<1,2>] /* Sets the SPI CSEL value in 5 pin mode */
    #* [SPI_C2TDEL=x] /* Sets the SPI C to T delay value */
    #* [SPI_CLKDIV=x] /* Sets the SPI module clock divider */
    #* [SPI_USE_ROM=yes] /* Uses SPI interface parameters from boot ROM, if available */
    #* [ENDIAN= both | big | little] /* Selects the endian of the build */
    #* [I2C_BUS_ADDR= 0x50 | 0x51] /* The initial I2C bus address */
    #* [COMPACT_I2C=yes] /* Mimimizes the size of the I2C */
    #* [I2C_MAP_ADDR= 0x500 | 0x800] /* The IBL configuration parameter offset */
    #*
    #*
    #* or to make a board specific configuraiton
    #*
    #* make evm_c6455 | evm_c6472 | evm_c6474 | evm_c6457 | evm_c66x
    #*
    #* or to test the builds by making all the devices and testing excludes
    #*
    #* make test_build
    #*******************************************************************************************

    So your understanding:
    [quote]If I want to build the IBL for NAND boot mode, should I explicitly say :

    make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 NAND=yes NAND_EMIF=yes ? [quote]
    is generally correct, with the small clarification that you should use: evm_c6678 (as stated in the above board configuration examples).
    The command will build for evm_c6678, with NAND support through EMIF.

    Best Regards,
    Yordan