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.

Rebuilding the Flash and Boot Utils package for a particular platform

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Can someone explain me the steps to Rebuild SFH tool on Windows

I have installed

Below is the steps for Rebuilding Flash and Boot Utils

  • For a particular platform, the extracted package will consist of a 'Common' directory and a '<PlatformName>' directory.
  • Open a Cygwin prompt, which is like a Unix/Linux prompt under Windows.
    • If using v2.36 or earlier, add necessary components to path
      export PATH=<arm-compiler-root>/bin:<C6000-Compiler-Root>/bin:$PATH
    • If using v2.40 or later, edit the ARM_TOOLS_PATH, ARM_TOOLS_PREFIX, and DSP_TOOLS_PATH variables in Common/build.mak as needed for your system
  • Enter into the <PlatformName> directory.
cd <PlatformName>
  • Edit device.mak to include only the part number and flash type required, in order to speed up the build process
vim device.mak
  • [Optional] To rebuild only the command-line tools (not the CCS projects), cd into the GNU directory.
cd GNU
  • [Optional] To rebuild only the CCS projects (requires CCS v3), cd into the CCS directory
cd CCS
  • If you're rebuilding everything then stay in the <Platform> directory
  • Run 'make clean' and 'make'.
make clean
make
  • If you wish to clean-up already built components, run 'make clean' from the path you wish to clean.

The Build file that i created is given below.

#############################################################
# Common build definitions for Makefile use                 #
#############################################################
# Taqi Mustafa

ARM_TOOLS_PATH?="C:\CodeSourcery\Sourcery G++\arm-none-linux-gnueabi\"
ARM_TOOLS_PREFIX?=arm-none-gnueabi-

CROSSCOMPILE?=$(ARM_TOOLS_PATH)bin\\$(ARM_TOOLS_PREFIX)
ARM_CROSSCOMPILE=$(CROSSCOMPILE)

DSP_TOOLS_PATH?="C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\"

DSP_LIB_PATH=$(DSP_TOOLS_PATH)lib\\
DSP_CROSSCOMPILE=$(DSP_TOOLS_PATH)bin\\

  • When i try to Rebuild all file using Make command on cygdrive, it gives an error.

    ......makefile:176: recipe for target 'ubl.OMAPL138_LCDK_NOR.obj' failed
    make[3]: *** [ubl.OMAPL138_LCDK_NOR.obj] Error 1
    make[3]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl/build'
    make[3]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl/build'
    "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\"bin\\cl6x -c -g -DUBL_NOR -DC6748 -I=../../../Common/include -I=../../../../Common/include -I=../../../../Common/arch/c6000/include -I=../../../../Common/ubl/include -I=../../../../Common/ubl/include -I=../../../../Common/drivers/include -I=../../../../Common/gnu/include -I=../../../../Common/ubl/include -DAIS_RBL -ms3 -mo -mv6740 --obj_extension=C6748_NOR.obj ../../../../Common/ubl/src/ubl.c
    /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /bin/sh: -c: line 1: syntax error: unexpected end of file
    makefile:176: recipe for target 'ubl.C6748_NOR.obj' failed
    make[3]: *** [ubl.C6748_NOR.obj] Error 1
    make[3]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl/build'
    make[3]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl/build'
    "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\"bin\\cl6x -c -g -DUBL_NOR -DC6748_LCDK -I=../../../Common/include -I=../../../../Common/include -I=../../../../Common/arch/c6000/include -I=../../../../Common/ubl/include -I=../../../../Common/ubl/include -I=../../../../Common/drivers/include -I=../../../../Common/gnu/include -I=../../../../Common/ubl/include -DAIS_RBL -ms3 -mo -mv6740 --obj_extension=C6748_LCDK_NOR.obj ../../../../Common/ubl/src/ubl.c
    /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /bin/sh: -c: line 1: syntax error: unexpected end of file
    makefile:176: recipe for target 'ubl.C6748_LCDK_NOR.obj' failed
    make[3]: *** [ubl.C6748_LCDK_NOR.obj] Error 1
    make[3]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl/build'
    makefile:44: recipe for target 'all' failed
    make[2]: *** [all] Error 2
    make[2]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/ubl'
    make[2]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/genecc'
    make[2]: csc: Command not found
    makefile:73: recipe for target '../genecc_OMAP-L138.exe' failed
    make[2]: *** [../genecc_OMAP-L138.exe] Error 127
    make[2]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/genecc'
    make[2]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils'
    make[3]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/HexAIS'
    make -C ../AISextra all
    make[4]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra'
    make -C src
    make[5]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra/src'
    "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\"bin\\cl6x -O=2 -c --obj_directory=./dsp_obj -I=../../../../../Common/include -I=../../../../Common/include -I=../../../Common/include -I=../include -ms3 -mo -mv6740 --symdebug:none aisextra.c
    /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /bin/sh: -c: line 1: syntax error: unexpected end of file
    makefile:87: recipe for target 'dsp_obj/aisextra.obj' failed
    make[5]: *** [dsp_obj/aisextra.obj] Error 1
    make[5]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra/src'
    makefile:42: recipe for target 'all' failed
    make[4]: *** [all] Error 2
    make[4]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra'
    makefile:80: recipe for target '../AISextra/ARM_AISExtra_OMAP-L138.out' failed
    make[3]: *** [../AISextra/ARM_AISExtra_OMAP-L138.out] Error 2
    make[3]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/HexAIS'
    make[3]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra'
    make -C src
    make[4]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra/src'
    "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\"bin\\cl6x -O=2 -c --obj_directory=./dsp_obj -I=../../../../../Common/include -I=../../../../Common/include -I=../../../Common/include -I=../include -ms3 -mo -mv6740 --symdebug:none aisextra.c
    /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /bin/sh: -c: line 1: syntax error: unexpected end of file
    makefile:87: recipe for target 'dsp_obj/aisextra.obj' failed
    make[4]: *** [dsp_obj/aisextra.obj] Error 1
    make[4]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra/src'
    makefile:42: recipe for target 'all' failed
    make[3]: *** [all] Error 2
    make[3]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils/AISextra'
    make[2]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/AISUtils'
    make[2]: Entering directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/slh'
    make[2]: csc: Command not found
    makefile:73: recipe for target '../slh_OMAP-L138.exe' failed
    make[2]: *** [../slh_OMAP-L138.exe] Error 127
    make[2]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/slh'
    make[1]: Leaving directory '/cygdrive/c/Documents and Settings/Administrator/Desktop/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU'

  • How to give Proper vaild path in Build.mak ?

  • Hi,

    We can build sfh source code at windows through "Cygwin Setup"

    ARM_TOOLS_PATH?="C:\CodeSourcery\Sourcery G++\arm-none-linux-gnueabi\"
    ARM_TOOLS_PREFIX?=arm-none-gnueabi-


    This error seems to me cross compiler name mismatch,