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.

TDA4VM: OTP Keywriter Build failure

Part Number: TDA4VM

Hi,

I have the following error while compiling the source code for keywriter on a Windows 10 machine (Command used: gmake keywriter_img):

C:\ti\ti-processor-sdk-rtos-j721e-evm-08_02_00_05\pdk_jacinto_08_02_00_21\packages\ti\build>gmake keywriter_img
gmake -C C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build -fC:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build/keywriter.mk
gmake[1]: Entering directory 'C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/xdctools_3_61_04_40_core/bin/mkdir -p C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/binary/keywriter_img/obj/j721e_evm/mcu1_0/release
process_begin: CreateProcess(NULL, C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/xdctools_3_61_04_40_core/bin/mkdir -p C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/binary/keywriter_img/obj/j721e_evm/mcu1_0/release, ...) failed.
make (e=2): The system cannot find the file specified.
gmake[1]: *** [C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/build/makerules/common.mk:184: C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/binary/keywriter_img/obj/j721e_evm/mcu1_0/release] Error 2
gmake[1]: Leaving directory 'C:/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
gmake: *** [makefile:361: keywriter_img] Error 2

Additional info:

  1. PDK downloaded from https://www.ti.com/tool/download/PROCESSOR-SDK-RTOS-J721E
  2. I have Code Composer Studio and OTP add on package Installed.
  3. xdctools_3_62_01_16_core is set up in environment variable
  • Hi Alisha,

    Please use the below patch to fix the compilation issue on 8.2 SDK :

    diff --git a/packages/ti/boot/keywriter/soc/common/linker.lds b/packages/ti/boot/keywriter/soc/common/linker.lds
    index 221af807b..200688b89 100644
    --- a/packages/ti/boot/keywriter/soc/common/linker.lds
    +++ b/packages/ti/boot/keywriter/soc/common/linker.lds
    @@ -74,9 +74,9 @@ __SVC_STACK_SIZE=0x2000;
     MEMORY
     {
            RESET_VECTORS      (X)          : origin=0x41C00100         length=0x100
    -    OCMRAM_Keywriter   (RWIX)  : origin=0x41C00200         length=0x73000-0x200
    -    OCMRAM_Certificate (RWIX)  : origin=0x41C73000         length=4
    -    OCMRAM_Stack       (RWIX)  : origin=0x41C73000+0x2000  length=0xA000
    +    OCMRAM_Keywriter   (RWIX)  : origin=0x41C00200         length=0x7F000-0x200
    +    OCMRAM_Certificate (RWIX)  : origin=0x41C7F000         length=4
    +    OCMRAM_Stack       (RWIX)  : origin=0x41C7F000+0x2000  length=0xA000
     }
    
     SECTIONS

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Thanks for the feedback. However this does not seem to resolve the issue. I have the same errors (This build is on Linux Virtual Machine):

    error #10010: errors encountered during linking;
       "/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08
       _02_00_21/packages/ti/boot/keywriter/binary/j721e/keywriter_img_j721e_releas
       e.xer5f" not built
    tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/build/makerules/rules_ti_cgt_arm.mk:354: /home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/binary/j721e/keywriter_img_j721e_release.xer5f] Error 1
    make[2]: Leaving directory '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
    make[1]: *** [/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/build/makerules/common.mk:411: mcu1_0] Error 2
    make[1]: Leaving directory '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
    make: *** [makefile:361: keywriter_img] Error 2

    I also noticed in one of the Technical Reference Manuals that upon installing the OTP add on package, I should have the following available:

    However my OTP install directory only contains the TI FEK public key and TIFS binary. Am I missing something here?

  • Hi Alisha,

    Can you try on any Linux machine with ubuntu PC? The above patch fixes the issue on Linux.
    Or you have only windows?

    - Keerthy

  • Hello Keerthy,

    I have only Windows. It would be difficult to organize a Linux PC. But should it not work on both Windows as well Linux Virtual Machine? It fails for me on both.

    Also the build steps are not very clear to me. I ran now the following commands and have a different error:

    • make clean
    • make keywriter_img

    make[2]: *** No rule to make target '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/drv/pmic/lib/j721e_evm/r5f/release/pmic.aer5f', needed by '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/binary/j721e/keywriter_img_j721e_release.xer5f'.  Stop.
    make[2]: Leaving directory '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
    make[1]: *** [/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/build/makerules/common.mk:411: mcu1_0] Error 2
    make[1]: Leaving directory '/home/lki1kor/ti/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/boot/keywriter/build'
    make: *** [makefile:361: keywriter_img] Error 2

    Could you please let me know the exact build procedure? Is it required to build the entire SDK in order to build the keywriter? The documentation seems very unclear to me

  • Hi Alisha,

    You will need to install the J721e RTOS SDK: https://www.ti.com/tool/download/PROCESSOR-SDK-RTOS-J721E/08.02.00.05

    Then follow the steps mentioned in the README.

    The RTOS SDK will have the directory structure you have mentioned:


    I also noticed in one of the Technical Reference Manuals that upon installing the OTP add on package, I should have the following available:

    You will need to copy TI FEK public key and TIFS binary to the respective places that the README describes.

    Linux virtual machine should be good enough to build.

    Regards,
    Keerthy

  • Hello Keerthy,

    I have performed the exact steps you have mentioned but still have same errors. How shall I proceed?

  • Hello Keerthy,

    I ran the following commands and I was finally able to build the keywriter image:

    From the error above, it was looking for ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/drv/pmic/lib/j721e_evm/r5f/release/pmic.aer5f which was available after building the SBL.

    I tried this on Windows as well but doesn't seem to work. Could you please confirm if keywriter build is currently supported on Windows or not?

    Thanks a lot for your support!