Forum Discussion

Avina's avatar
Avina
Icon for New Contributor rankNew Contributor
2 years ago

Encrypting configuration .sof file using Command line interface

Hi,

I need to convert .sof file into .jic & .ekp files using the command line in order to use it in an automatic post flow script.

I was trying to run the following command:

quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -k key_file.key key1:key2

i got an error "size of file(s) in EPCS128 exceeds memory capacity"

i need to enable the compression option - could someone advise the correct syntax for the compression enable??

AN556 page 16 mention to use an option file which contains the string compression=on

what kind of file format is the option file? could someone attach example of file with the correct syntax?

regards

Avi

5 Replies

    • Avina's avatar
      Avina
      Icon for New Contributor rankNew Contributor

      Hi Fakhrul,

      thanks for your reply,

      your answer doesn't help me to much.. i need to compress the .sof file and create a .jic encrypted file

      i need the complete syntax (include the compression option enable) to run in the command line.

      the following command ended with the following error:

      quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -k key_file.key key1:key2

      "size of file(s) in EPCS128 exceeds memory capacity"

      hope you can answer me quickly

      Regards,

      Avi

  • FakhrulA_altera's avatar
    FakhrulA_altera
    Icon for Regular Contributor rankRegular Contributor

    Please be advised that due to the absence of a response from you regarding the previous notification we provided, we will be transitioning this thread to community support. If you have any new questions or concerns, we kindly suggest opening a new thread to receive assistance from Intel experts. However, if you do not have any further inquiries, the community users will be available to assist you on this thread. Thank you for your understanding.


  • Avina's avatar
    Avina
    Icon for New Contributor rankNew Contributor

    Hi,

    Juliusz gave me the following solution:

    quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -o bitstream_compression=on -k key_file.key:key1:key2
    Adding option bitstream_compression allows to create compressed bitstream.

    it helped to compress the file and now i need to check if the file is also encrypted.

    i will let you know as soon as i test it on the board

    Avi.