Forum Discussion
Thank you for your continued support on this issue, I truly do appreciate it.
One point of clarification, the two links you provided in the previous reply are for a different version of the Stratix 10 GX development kit. If the contents are the same, or at least if the steps to produce a programming file to load into Flash is the same, then that is fine. But I just wanted to be sure that we aren't talking about two different development boards. The board I am using is the following:
Intel® Stratix® 10 GX FPGA Development Kit
Specifically the L-tile version. The Intel page only has the downloadable design files for the H-tile version, however I am hopeful that it does not matter.
Within that design package, the build_hw.sh contained in the factory_recovery/build_factory_source/PRD/ folder attempts to produce a .pof from a .sof, which I don't believe is possible (.pof not a supported format for a Stratix 10? That is what Convert Programming File tells me anyways). And the build_hw.sh does not execute out of the box anyways as it gives a syntax error when attempting to execute.
I will await further instruction as you requested, but again if we are working on two different development boards I wanted to be sure to point that out before we go too far. Thanks again for your support here!
Here are a couple of issues I've resolved with the build_hw.sh, in case it helps as the team works out the issues with the curently-documented process.
EOL format is incorrect for execution in Nio2 command shell or Linux prompt... need to do an EOL conversion to Unix format in a text editor capable of performing EOL conversion. This resolved the syntax error issue upon trying to execute exactly as taken out of the .zip file.
quartus_cpf, which is the program invoked to convert a .sof into a .pof, is not supported for Stratix 10 devices. I was mistaken previously thinking .pof is not supported for S10, it is but rather it is the Quartus Convert Programming File application that does not support Stratix 10. I used Programming File Generator from within Quartus to produce a .pof file from my .sof (attempting to copy the .cof settings from the build_hw.sh script... note that the Stratix 10 GX dev kit settings are different from those in the Signal Integrity dev kit you linked earlier so I think it is important to use the right dev kit file), then specified that .pof file as input so that the conversion step in build_hw.sh is skipped and we avoid the error of quartus_cpf not working.
Next, I get syntax errors with the length calculation using 'expr':
Generating binary file...
expr: syntax error
dd: invalid number: ‘’
So if I manually typed that series of commands in, I come up with a skip value of 46137391. Finally manually typing the 'dd' command in using the hand-calculated length value, I can produce a .bin file.
After loading the .bin file in to the portal as you suggested earlier, it still doesn't work. So there is still work to do for Intel, but I wanted to point out the issues that I found in the build_hw.sh script:
- EOL conversion needed to avoid syntax error
- .sof conversion does not work since it uses quartus_cpf, and that can't be used for Stratix 10 devices
- syntax error regarding the 'expr' steps causes final .bin file generation to fail due to empty input argument to 'dd' command