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.

PROCESSOR-SDK-AM437X: AM437X 2.1.9.1. Generating EtherCAT sources using the Patch file (Option #1)

Part Number: PROCESSOR-SDK-AM437X

2.1.9.1. Generating EtherCAT sources using the Patch file (Option #1)

 C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\p
atch>patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocol
s\ethercat_slave\patch\TI_ECAT.patch -d src123
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: EtherCATSampleLibrary.h
|===================================================================
|--- EtherCATSampleLibrary.h
|+++ EtherCATSampleLibrary.h
--------------------------
File to patch: C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\e
thercat_slave\patch\TI_ECAT.patch
patching file C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\et
hercat_slave\patch\TI_ECAT.patch
Hunk #1 FAILED at 12.
Hunk #2 FAILED at 23.
patch.exe: **** Can't rename file C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\thir
d_party\protocols\ethercat_slave\patch\TI_ECAT.patch to C:\ti\PRU-ICSS-EtherCAT_
Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\TI_ECAT.patch.orig
: Permission denied

  • C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch>
    C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch>patch-2.5.9-7-bin\bin\patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protoc
    ols\ethercat_slave\patch\TI_ECAT.patch -d C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\src123 -p 1
    missing header for unified diff at line 5 of patch
    can't find file to patch at input line 5
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |Index: EtherCATSampleLibrary.h
    |===================================================================
    |--- EtherCATSampleLibrary.h
    |+++ EtherCATSampleLibrary.h
    --------------------------
    File to patch: C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\TI_ECAT.patch
    patching file C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\TI_ECAT.patch
    Hunk #1 FAILED at 12.
    Hunk #2 FAILED at 23.
    patch-2.5.9-7-bin\bin\patch.exe: **** Can't rename file C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\TI_ECAT.patch to C:\ti\PRU-ICSS-EtherCA
    T_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch\TI_ECAT.patch.orig : Permission denied

    C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.10.00\third_party\protocols\ethercat_slave\patch>

  • 请问是按照下面文档里的步骤一步步操作下来的吗?前面的步骤有报错么?
    https://software-dl.ti.com/processor-industrial-sw/esd/docs/indsw/EtherCAT_Slave/01_00_08/PRU_ICSS_EtherCAT.html

    • Download Windows Patch Utility from gnuwin32 sourceforge. ( Note that this is not a TI tool - See licensing information page for more details)
    • Download Dos2Unix/Unix2Dos-Text file format converters from gnuwin32 sourceforge. ( Note that this is not a TI tool. See licensing information page for more details)
    • Extract the zip files to the Windows PC. Patch file utility(Patch.exe) and unix2dos.exe utility can be found in their bin folders.
    • Launch DOS Command prompt ( Start->Run->cmd).
    • CD to the folder [INSTALL-DIR]/third_party/protocols/ethercat_slave/patch which contains TI_ECAT.patch.
    • Execute unix2dos.exe as given below

    [Dos2Unix/Unix2Dos-DIR]/bin/unix2dos.exe TI_ECAT.patch

    • CD to patch file utility bin folder.
    • Execute patch.exe as given below

    patch.exe -i PATCH_FILE_NAME -d SOURCE_DIR

    where PATCH_FILE is name of the patch file with full path and

    SOURCE_DIR is Directory with full path where source files are present.

  • 前面没有错误。patch.exe出错

  • 前面的步骤没有报错。patch.exe出错

    PRU-ICSS-Industrial_Drives_01.00.02.03/docs/Industrial_Protocol_Package_Getting_Started_Guide.pdf文档中的例子PRU-ICSS-Profinet测试也不行。安装软件第一次不出现.patch.orig : Permission denied。后面都出现.patch.orig : Permission denied。按照例子操作也不成功

    Eg: D:\patch_utility\patch-2.5.9-7-bin\bin\patch.exe -i C:\ti\PRU-ICSS-Profinet_Slave_01.00.02.02\protocols\pdk_patches\04.02.00\PRSDK-3454- finalPrioQueue_mismatch.patch -d C:\ti\pdk_am335x_1_0_9\packages -p0 --binary --verbose

  • 请问您的问题解决了么?我看您点了确认答案。

  • 目标路径不对。问题已解决