Forum Discussion
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
- FakhrulA_altera
Regular Contributor
Hi Avina,
You might want to take a look at a related post:
quartus_cpf - converting sof file to encrypted pof (with ekp included) for Max 10 FPGA
Regards,
Fakhrul
- Avina
New 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
Regular Contributor
Hi Avina,
Could you try to check the compression command found in table 4 on page 14, here: https://cdrdv2.intel.com/v1/dl/getContent/733068?fileName=ug-683432-733068.pdf
Btw, have you tried using Quartus GUI? Is it working?
Also, can you try to use the latest Quartus version?
Regards,
Fakhrul
- FakhrulA_altera
Regular 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
New 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.