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.

Unable to rebuild the TI’s C6657 PDK

Hi, 

I downloaded and installed the TI’s bios_mcsdk_02_01_01_04_setupwin32.exe. One of the packages installed is the pdk_C6657_1_1_1_4. I need to modify and rebuild the drivers. However, when I ran pdkbuilder.bat @packages\ti\drv, it failed (see the file attached). Do you have a fix for it?

Thanks,

Min

C:\ti\workspace2\pdk_C6657_1_1_1_4\packages>.\ti\drv\pdkbuilder.bat

C:\ti\workspace2\pdk_C6657_1_1_1_4\packages>REM ********************************
*********************************************

C:\ti\workspace2\pdk_C6657_1_1_1_4\packages>REM Procedure to build using XDC. Ob
solete

C:\ti\workspace2\pdk_C6657_1_1_1_4\packages>REM ********************************
*********************************************
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/qm
ss'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/qms
s'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/cp
pi'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/cpp
i'
gmake: *** ti/drv/tsip: No such file or directory.  Stop.
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/hy
plnk'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/hyp
lnk'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/sr
io'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/sri
o'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/pc
ie'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/pci
e'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/tc
p3d'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/tcp
3d'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/em
ac'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/ema
c'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/rm
'
rm -rf ./lib/*/
process_begin: CreateProcess(NULL, rm -rf ./lib/*/, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [clean_package] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/rm'

gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl'
gmake -f ./lib/ti.csl.intc.ae66.mk lib/ti.csl.intc.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl
'
cle66 src/intc/_csl_intcCombEventDispatcher.c ...
if [ ! -d lib/src/intc ]; then mkdir -p lib/src/intc ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/intc/_csl_intcCombEventDispatcher.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl'

gmake: *** [lib/ti.csl.intc.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/csl'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/qm
ss'
gmake -f ./lib/ti.drv.qmss.ae66.mk lib/ti.drv.qmss.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/qmss'
cle66 src/qmss_drv.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/qmss_drv.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
qmss'
gmake: *** [lib/ti.drv.qmss.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/qms
s'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/cp
pi'
gmake -f ./lib/ti.drv.cppi.ae66.mk lib/ti.drv.cppi.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/cppi'
cle66 src/cppi_drv.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/cppi_drv.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
cppi'
gmake: *** [lib/ti.drv.cppi.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/cpp
i'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/hy
plnk'
gmake -f ./lib/ti.drv.hyplnk.ae66.mk lib/ti.drv.hyplnk.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/hyplnk'
cle66 src/hyplnk.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/hyplnk.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
hyplnk'
gmake: *** [lib/ti.drv.hyplnk.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/hyp
lnk'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/sr
io'
gmake -f ./lib/ti.drv.srio.ae66.mk lib/ti.drv.srio.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/srio'
cle66 src/srio_drv.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/srio_drv.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
srio'
gmake: *** [lib/ti.drv.srio.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/sri
o'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/pc
ie'
gmake -f ./lib/ti.drv.pcie.ae66.mk lib/ti.drv.pcie.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/pcie'
cle66 src/pcie.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/pcie.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
pcie'
gmake: *** [lib/ti.drv.pcie.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/pci
e'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/tc
p3d'
gmake -f ./lib/ti.drv.tcp3d.ae66.mk lib/ti.drv.tcp3d.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/tcp3d'
cle66 src/tcp3d_drv.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/tcp3d_drv.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
tcp3d'
gmake: *** [lib/ti.drv.tcp3d.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/tcp
3d'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/em
ac'
gmake -f ./lib/ti.drv.emac.ae66.mk lib/ti.drv.emac.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/emac'
cle66 src/emac_drv.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/emac_drv.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
emac'
gmake: *** [lib/ti.drv.emac.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/ema
c'
gmake: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/rm
'
gmake -f ./lib/ti.drv.rm.ae66.mk lib/ti.drv.rm.ae66
gmake[1]: Entering directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv
/rm'
cle66 src/rm.c ...
if [ ! -d lib/src ]; then mkdir -p lib/src ; fi;
! was unexpected at this time.
gmake[1]: *** [lib/src/rm.oe66] Error 255
gmake[1]: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/
rm'
gmake: *** [lib/ti.drv.rm.ae66] Error 2
gmake: Leaving directory `C:/ti/workspace2/pdk_C6657_1_1_1_4/packages/ti/drv/rm'


C:\ti\workspace2\pdk_C6657_1_1_1_4\packages>

  • Hi Min,

    Thank you for pointing this out; I can see the same errors that you are seeing. It seems to have something to do with running gmake on windows and not recognizing paths.

    I tested rebuilding the driver by using MinGW (msys shell). There is a makefile in each of the driver and csl folders. On a bash shell, you should be able to navigate to an individual folder and do "make clean", followed by "make all" for the specific driver you want to rebuild. You will have to set the path for the C6000 compiler to the variable C6X_GEN_INSTALL_PATH.

    Using MinGW is just a workaround; I will update when I can provide a fix for pdkbuilder.bat.

    -Ivan

  • Min,

    For some reason, I am not able to reproduce the errors again and gmake works fine. Here are the steps I took:

    1. copy pdkbuilder.bat and pdksetupenv.bat from pdk_C6657_1_1_1_4\packages\ti\drv to pdk_C6657_1_1_1_4\packages directory
    2. open a command prompt and set the four variables path variables (set them according to your own system's paths): 
    1. set C6X_GEN_INSTALL_PATH="C:\ti\C6000 Code Generation Tools 7.4.1"
    2. set XDC_INSTALL_PATH=c:\ti\xdctools_3_23_04_60
    3. set  CG_XML_BIN_INSTALL_PATH=c:\ti\cg_xml\bin
    4. set EDMA3_LLD_INSTALL_PATH=c:\ti\edma3_lld_02_11_05_02
    • In command prompt, navigate to the pdk_C6657_1_1_1_4\packages folder
    • run pdksetupenv.bat
    • run pdkbuilder.bat
    Can you try this out and let me know if this works? If it does not, do not close the command prompt immediately - navigate to an individual drv directory (eg. pdk_C6657_1_1_1_4\packages\ti\drv\rm) and run the command "gmake clean", followed by "gmake all". See if this gives any errors.
    -Ivan