Forum Discussion
quartus_cpf - converting sof file to encrypted pof (with ekp included) for Max 10 FPGA
- 3 years ago
Hi DamBam,
There's a workaround provided by the engineering as below:
There are 2 ways to do this in command line:
1) Program the EKP and POF files separately.
Example:
quartus_pgm -c 1 -m jtag -o "p;test.ekp"
quartus_pgm -c 1 -m jtag -o "p;test.pof"
The outcome is the same as combine the EKP into the POF and program altogether.
For POF file, you need to ensure the "Allow encrypted POF only" option is disabled (default is disabled if you didn't make any change) when you generate using quartus_cpf.
For details, you can refer to https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_config.pdf
2) Save your GUI settings into a CDF file and play the CDF file in quartus_pgm
Steps:
a) Setup your settings in the GUI
b) Click File->Save As... and save the settings into a CDF file (test.cdf).
c) Play the CDF file in quartus_pgm:
quartus_pgm -c 1 test.cdf
Hope this works.
Regards,
Fakhrul
Hi DamBam,
I wish to follow up with you on this case. Do you still have further inquiries on this issue? Please feel free to let me know if there is any concern so that we could further assist you. Otherwise, this thread will be idling and marked as inactive, thus it will be transitioned to community support because there is no update received from you in a while.
Regards,
Fakhrul
- too_chappy1 year ago
New Contributor
Hi! Neither one of these methods worked for me using Quartus 23.1 and the Max10 10M08 Evaluation board.
I tried Step1, replacing the command above with my matching .ekp and .pof file. There was no errors, nothing appeared to happen because my LED on my board should have blinked. I tried Step2: Create CDF file using the quartus tool then using quartus_pgm to play back the CDF file. This also did not work. Trying to debug the issue, it looks like the problem is the ekp file is not getting loaded into the FPGA using the quartus_pgm. What is the command to load the .ekp file to the right configuration area?
If you can do it in the GUI it seems reasonable that you can do it through the command line. Has anyone been able to program their board using an encrypted file through the command line interface? If so, can you please post what command worked for you?
Thank you!!
- too_chappy1 year ago
New Contributor
It looks like for this command (quartus_pgm -c 1 -m jtag -o "p;test.ekp") to work it needs an extra argument to specify CFM0. I couldn't figure out what the right syntax to specify just CFM0.
Thoughts??
Thank you!