Forum Discussion

james57's avatar
james57
Icon for Occasional Contributor rankOccasional Contributor
2 years ago
Solved

hps_debug.sof file generation

Hi,

I am currently working on the GSRD for an Htile S10 -

Stratix 10 SoC H-Tile GSRD | Documentation | RocketBoards.org

I am working on building the SD Card version, and hit a snag during the GHRD. After following the steps referenced in the GSRD and using the git files from the following -

https://github.com/altera-opensource/ghrd-socfpga

I have generated each of the output files

"

  • ghrd_1sx280hu2f50e1vgas.sof - FPGA SOF file, without HPS FSBL
  • ghrd_1sx280hu2f50e1vgas_hps_debug.sof - FPGA SOF, with HPS Debug FSBL
  • ghrd_1sx280hu2f50e1vgas.pr_partition_0.rbf - PR bitsream for the baseline persona
  • alternate_persona.pr_partition_0.rbf - PR bitstream for the alternate persona

"

except for the "ghrd_1sx280hu2f50e1vgas_hps_debug.sof", which is needed in the next step "building core rbf". I have come to the conclusion that it is because my build is not generating a file called "hps_debug.ihex". I am wondering why this file is not being generated.

I was more confident that the problem was this .ihex file when I came across this archive -

Index of /ghrd_release/stratix10/ (rocketboards.org)

specifically the htile_devkit_ghrd from 12-NOV-2022, which includes this missing "hps_debug.ihex" file, and when running the scrub, generate and make all commands, generating the "debug.sof" file perfectly. When I add this .hex file into my design it also runs perfectly. What am I missing?

Overall my goal is to get this default git build from the GSRD H-tile to generate the "hps_debug.sof" so I can continue.

  • Hi All,

    If this occurs to anyone, please note that the work around I have been using is to run this command...

    quartus_pfg -c -o hps_path=software/hps_debug/hps_debug.ihex output_files/ghrd_1sx280hu2f50e1vgas.sof output_files/ghrd_1sx280hu2f50e1vgas_hps_debug.sof

    Please note that you need the .ihex file I mentioned which can be obtained from the link in the first question on this thread.

    Thanks,

    James

10 Replies

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

    Hi james57,


    I will try to build on my side to see if got the similar problem that you encountered.


    Thanks.

    Regards,

    Aik Eu


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

    Hi james57,


    I have tried to build that part and I also dont have the ghrd_1sx280hu2f50e1vgas_hps_debug.sof in my output files. I will try to check with the team regarding this.


    Thanks.

    Regards,

    Aik Eu


    • james57's avatar
      james57
      Icon for Occasional Contributor rankOccasional Contributor

      Hi @aikeu ,

      I appreciate the help, let me know when you have any updates.

      Thanks

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

    Hi james57,


    I am consulting the team regarding this matter and will get back to you as soon as possible.


    Thanks.

    Regards,

    Aik Eu


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

    Hi james57,


    After I consulted my team and tried to build the GSRD again I managed to get the ghrd_1sx280hu2f50e1vgas_hps_debug.sof - FPGA SOF

    I tried to remove and rebuild everything from zero again and I managed to get that file in the output folders.

    my previous attempts might encountered some issue where I may have source the wrong version of tools.


    To make it clear, I try to make sure my quartus and nios2_command_shell.sh version used is the same as the GSRD.

    Make sure executing all the steps from Setting up Environment & Building the Hardware Design

    Do let me know if there is any problems.


    Thanks.

    Regards,

    Aik Eu


    • james57's avatar
      james57
      Icon for Occasional Contributor rankOccasional Contributor

      HI @aikeu

      I have been trying on my own as well and have been able to create it as well from time to time but not consistently.

      Beyond that I am only able to create it while using the 1sx280hu2f50e1vgas board specified, none of the others. Weird.

      Thank you for your help.

      I will let you know if I have any more concerns.

      James

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

    Hi james57,


    I will close this thread as the issue has been resolved.


    Thanks.

    Regards,

    Aik Eu


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

    Hi james57,


    I am closing the thread for now since the issue has been resolved on your side. Do consider re-open a new thread if there is new follow up.


    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


    Thanks.

    Regards,

    Aik Eu


  • james57's avatar
    james57
    Icon for Occasional Contributor rankOccasional Contributor

    Hi All,

    If this occurs to anyone, please note that the work around I have been using is to run this command...

    quartus_pfg -c -o hps_path=software/hps_debug/hps_debug.ihex output_files/ghrd_1sx280hu2f50e1vgas.sof output_files/ghrd_1sx280hu2f50e1vgas_hps_debug.sof

    Please note that you need the .ihex file I mentioned which can be obtained from the link in the first question on this thread.

    Thanks,

    James