Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
445 Discussions

sopc-create-header-files appears to have broken on SoC EDS 19.1 under Windows

DWhit11
Novice
2,849 Views

Have used this happily previously on same .sopc system but now in SoC EDS command shell in 19.1 it fails. Have installed 64 bit Cygwin as per install instructions and WSL with Ubuntu 18.04.

 

Error:

swinfo2header: Failed to load *.swinfo file "/tmp/sopc-create-header-files.1468.tmp.swinfo"

sopc-create-header-files: swinfo2header --swinfo /tmp/sopc-create-header-files.1468.tmp.swinfo --sopc /cygdrive/c/Projects/SprintNavMini/FPGA/MiniSyrinxHPS.sopcinfo --single hps_0.h --module hps_0 failed

 

Any suggestions / things to try?

 

Kind regards,

Dave

 

0 Kudos
4 Replies
Fawaz_Al-Jubori
Employee
2,775 Views

Hello,

 

Can you try the steps in this link to create the header files:

 

https://github.com/altera-opensource/u-boot-socfpga/blob/socfpga_v2019.04/doc/README.socfpga

 

Which soc device are you using?

0 Kudos
NBRUN4
Beginner
2,775 Views

Hello DWhit11

 

I had exactly the same problem as you and i solved it.

You may have several versions of Quartus installed on your OS. Remove those you don't need.

Then, add complete path in your script for swinfo2header and all functions (such as sopcinfo2swinfo).

 

Best Regards,

0 Kudos
Patrick77
Novice
2,607 Views

Hi NBRUN4,

    May I ask how did you exactly "add complete path in your script for swinfo2header and all functions" ?

    I met the same problem and found your solution, but I don't quite understand it.

0 Kudos
Saulius
Beginner
2,227 Views

Hi Patrick77

Permanent solution:

 Go to advanced system settings:

Saulius_0-1623199794548.png

Saulius_1-1623199841510.png

Click on Environment Variables...:

Saulius_2-1623199881761.png

And in "System variables" double click "Path" variable:

Saulius_3-1623200041070.png

And replace the version number in the quortus line (don't forget to change the directory name if youre using a standard quortus version or pro version. Mine is lite):

 

Saulius_4-1623200161248.png

 



Another solution:
You need to edit file:  
                        C:\intelFPGA_lite\16.1\quartus\sopc_builder\bin\sopc-create-header-files
You need to edit lines with swinfo2header and sopcinfo2swinfo.
Add:
                        /cygdrive/c/intelFPGA_lite/16.1/quartus/sopc_builder/bin/
before swinfo2header and sopcinfo2swinfo.
It should be something like this:
                       /cygdrive/c/intelFPGA_lite/16.1/quartus/sopc_builder/bin/swinfo2header

                       /cygdrive/c/intelFPGA_lite/16.1/quartus/sopc_builder/bin/sopcinfo2swinfo

Saulius_0-1623197938857.png

Saulius_1-1623197973752.png

Good luck

0 Kudos
Reply