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: HS Device Flashing With SD card

Part Number: TDA4VM


Hi,

I want to burn a custom key to eFuses. My steps are as follows:

  1. Download keywriter_patch.tar.gz from https://www.ti.com/tool/download/PROCESSOR-SDK-RTOS-J721E/08.00.00.12, decompress and replace the keywriter file in pdk_jacinto_08_00_00_37/packages/ti/boot folder
  2. Download the OTP Keywriter add-on package, replace pdk_jacinto_08_00_00_37/packages/ti/boot/keywriter/tifs_bin/j721e/ti-fs-keywriter.bin, and copy ti_fek_public.pem file to pdk_jacinto_08_00_00_37/packages/ti/boot/keywriter/scripts
  3.  Generate Key
    $ cd pdk_jacinto_08_00_00_37/ti/boot/keywriter/scripts
    $ ./gen_keywr_cert.sh -g
  4. Generate the corresponding X509 certification file
    $ cd pdk_jacinto_08_00_00_37/ti/boot/keywriter/scripts
    $ ./gen_keywr_cert.sh -s keys/smpk.pem --smek keys/smek.key -t ti_fek_public.pem -a keys/aes256.key
  5. Generate Keywriter image
    $ cd pdk_jacinto_08_00_00_37/ti/build
    $ make keywriter_img -j8
  6. Flashing the keys to eFuses
    $ cp pdk_jacinto_08_00_00_37/ti/boot/keywriter/binary/keywriter_img_j721e_release.tiimage /media/allen/boot/tiboot3.bin
    $ cp pdk_jacinto_08_00_00_37/ti/drv/sciclient/soc/V1/tifs-hs-enc.bin /media/allen/boot/tifs.bin
    Set the board to SD card boot mode, install the SD card and power on

But there is no log on all the serial ports, HS Device Flashing failed, please tell me what is wrong with the above operation?

Regards,

Allen

  • Hi Allen,

    To begin with it is best to check the UART boot mode. SW8: 00000000 SW9: 011100000.

    Connect to the MCU_UART(J43). Check if you get CCCCCCCC... on the terminal.

    Then you can use UART boot mode to flash. This should be a good starting point.

    One question: Is this a standard TDA4VM board or a custom board?

    - Keerthy

  • Hi Allen,

    Can you please try using keywriter-fs.bin in the below step and try. Thats how it went through for me, though I was trying UART flashing

    $ cp  OTP_KEYWRITER_ADD_ON_j721e_sr1_1_v2021.05b/addon/ti-fs-keywriter.bin /media/allen/boot/tifs.bin 

  • Hi Dwarakesh,

    I am using a custom board, with different GPIO for MCU_UART0, so there is no log from the MCU UART. Now it normal by modifying the keywriter software.

    In addition, using SD card to flash eFuses, just rename keywriter_img_j721e_release.tiimage to tiboot3.bin and put it into SD card, no need for additional tifs.bin files.

    Thanks for your reply.

  • Hi Allen,

    Thanks for the reply. That makes sense. I was using UART boot, so had to flash tifs.bin(and hence the copy of ti-fs-keywriter.bin was required) along with the UART flash programmer, before I could program the OSPI with the keywriter image. In case of SDCard I believe there is no requirement of flashing binaries to be pushed into TDA4(except connecting the card to PC and updating) and keywriter image has tifs.bin already inbuilt.