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

SoC EDS issue

jjac705
Beginner
2,452 Views

Hi,

 

I attempted the SoC EDS as per the pdf SoC_software_lab_16.0.pdf on rocketboards.org. I was asked to see the link to create a u-boot-socfpga. In that, it was told to clone a github file which I did but when I tried to use the command 'make', I get the same issue again and again.

 

Kindly help me out of this.

 

Capture.PNG

0 Kudos
20 Replies
aikeu
Employee
2,432 Views

Hi jjac705,


I think the document you are referring to may not work if using later version of Quartus.

Refer to this link for building bootloader:

https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10


Thanks.

Regards,

Aik Eu



0 Kudos
jjac705
Beginner
2,422 Views

Hi Aik,

 

I have read above link before. It talks about how to use a Linux host. However, I don't have a Linux host but a Windows host.

I am not sure on how to build a bootloader in the Windows platform.

 

Kindly look into the matter please.

 

Thanking You

Yours Sincerely

Jerry Jacob

Linux_host.PNG

0 Kudos
aikeu
Employee
2,410 Views

Hi jjac705,


You will require a linux environment to build the necessary files. Either you use virtual machine or install WSL to have the linux environment.

https://learn.microsoft.com/en-us/windows/wsl/install


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,390 Views

Hi Aik Eu,

 

I have the WSL in Windows 10 and have installed Ubuntu 20.04 LTS. 

I am not sure on how to use this link https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10 to create the u-boot.

I am not sure on where should I start especially while using a Windows platform.

 

Jerry Jacob

0 Kudos
aikeu
Employee
2,380 Views

Hi jjac705,


Follow from the top of the web page where there you can click on the different instructions provided.

First you will need to know how your system is booting from, etc qspi or sd card.

You can start with looking into the building the U-boot section and try to execute the steps to generate the required files for your system to boot up.


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,365 Views

Hi aikeu,

 

I have attempted to make the Linux kernel as per the instructions given in the link https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10?elq_cid=7076518_ts1673294693388&erpm_id=10201171_ts1673294693388. I have done this in the Embedded Command Shell.bat. 

I am using Quartus Prime Standard 19.1. 

 

When I put the command 'export CROSS_COMPILE=arm-none-linux-gnueabihf' and then make socfpga_defconfig, I got an error.

However, I changed to 'export CROSS_COMPILE=arm-linux-gnueabihf' and then did make socfpga_defconfig then it says that the compiler is old. 

 

What can I do to get out of this?

 

Regards,

Jerry Jacob

Compilertoo_old.PNG

0 Kudos
aikeu
Employee
2,355 Views

Hi jjac705,


In the building bootloader document, you will need to start with download and setup the toolchain first. example as below:

Depends on your requirement, you can build U-boot first without the Linux kernel to have the system boot up.


Download and setup the toolchain required for Cyclone V SoC and Arria 10 SoC:

wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz

tar xf gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz

rm gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz

export PATH=`pwd`/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin:$PATH


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,342 Views

Hi Aikeu,

 

I attempted to use the above. When I used, rm gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz, I got an info where it says No such file or directory.

 

Capture.PNG

 

Regards,

Jerry Jacob

0 Kudos
aikeu
Employee
2,325 Views

Hi jjac705,


"rm gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz" is to remove the tar.xz files which you get from

"wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz" after that files have been extracted with "tar xf gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz".

The tar.xz file will not be required after it has been extracted so that line using the rm cmd is used to remove it.


Thanks

Regards,

Aik Eu


0 Kudos
aikeu
Employee
2,305 Views

Hi jjac705,


Any new follow up on your side?


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,288 Views

Hi Aik Eu,

 

I ma struggling with HPS platform in Cyclone V SoC. I attempted to do it in Quartus 17.1,19.1 and 20.1 and I get stuck in each of them. I put forth another question based on SoC EDS 20.1 ( https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Cannot-complete-the-linaro-part/m-p/1446947/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExDWTdNOFpNVVlFOVpWfDE0NDY5NDd8U1VCU0NSSVBUSU9OU3xoSw#M23889) where I followed this link https://www.rocketboards.org/foswiki/Documentation/SoCEDS#Install_SoC_EDS_AN1

 

Honestly very very clueless regarding this matter. It seems like in every version there are some drastic changes made and being a beginner in this matter, things get very confusing. I just need to know how  to configure the ARM processor in Cyclone V as this issue has been affecting my project dearly. Else I just want to know if there is any other way to justify a 32-bit output of a VHDL program in Cyclone V using Quartus.

 

Do let me know.

 

Thanking You 

Yours Sincerely 

Jerry Jacob

0 Kudos
aikeu
Employee
2,222 Views

Hi jjac705,


There were some changes on the software build handling from older to newer Quartus version. I recommend to use the newer Quartus build process in order to get a better support.

By the way I do not understand the last part of your question "to justify a 32-bit output of a VHDL program in Cyclone V using Quartus." Can elaborate more if possible.


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,203 Views

Hi Aik Eu,

 

Actually I have some VHDL codes where my output was 32 bits. I have done the software simulation on ModelSim. I was suggested by one of my peer that HPS can be used to display the outputs for the same. Hence, I embarked on doing the same.

I attempted to use the same VHDL codes on Quartus using the Signaltap logic analyzer and it seems like the samples are not enough.  It seems I need to turn back to HPS again. 

Hope you understood my plight.

 

Thanking You 

Yours Sincerely 

Jerry Jacob

0 Kudos
aikeu
Employee
2,173 Views

Hi jjac705,


Do you still having issue with the building bootloader steps?

I have tried the steps before, do let me know if there is any problem.


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,162 Views

Hi Aikeu,

 

I am not getting the flow of these steps. Since I am very new to this, I am confused on what should I do. I may require intense help. 

 

Thanking You 

Yours Sincerely 

Jerry Jacob

0 Kudos
aikeu
Employee
2,147 Views

Hi jjac705,


Which steps that you fail to perform the bulid? Firstly you will need to decide where you system booting up from(etc, sd-card or qspi ..). Can show me the steps where you fail to build then I will look into it.

There are pre-built images that you can find in the link below for working comparison just in case you have problem with your build. You can compare with the working ghrd if your system does not boot up properly.

https://releases.rocketboards.org/ghrd_release/


Thanks.

Regards,

Aik Eu


0 Kudos
jjac705
Beginner
2,128 Views

Hi Aikeu,

 

I was attempting to do this link https://www.rocketboards.org/foswiki/Documentation/HWLib?elq_cid=7076518_ts1675282356531&erpm_id=10201171_ts1675282356531#Setup_HWLibs in Quartus 20.1 Prime Standard Edition. 

I was able to successfully compile Linaro on MSYS. However, when I attempt to run the Uboot, I am a bit puzzled when they say run the Serial terminal and do these.

jjac705_0-1675283865310.png

I checked this link too https://www.rocketboards.org/foswiki/Documentation/CycloneVSoCGSRD#Release_Contents and I attempted to write the SD card too and my PUTTY shows something like this

jjac705_1-1675283957324.png

I am using an SoCkit for Quartus Prime 20.1 Standard edition. I an unsure about the way forward.

 

Thanking You 

Yours Sincerely

Jerry Jacob

 

0 Kudos
aikeu
Employee
2,120 Views

Hi jjac705,


Firstly, you will require to have a linux environment to build your project which runs with linux cmd.

After you have downloaded the project from here https://www.rocketboards.org/foswiki/Documentation/CycloneVSoCGSRD#Release_Contents then only you will have the cv_soc_devkit_ghrd.tar.gz

Then only you run the below linux cmds to make a new directory(cv_soc_devkit_ghrd) then extract the files from cv_soc_devkit_ghrd.tar.gz


mkdir cv_soc_devkit_ghrd

tar -xzvf cv_soc_devkit_ghrd.tar.gz -C cv_soc_devkit_ghrd/


In your linux environment, you must have soc eds installed.

https://www.rocketboards.org/foswiki/Documentation/SoCEDS#Install_SoC_EDS

Then only you can run the embedded_cmd_shell.sh from the specific directory after the installation of SoC_EDS.


As for the pre-build sd-card image, follow Creating SD Card on Windows

https://www.rocketboards.org/foswiki/Documentation/CycloneVSoCGSRD#Release_Content

rename the prebuilt sd-card image to sdimage.img then only follow the steps to write into your sd card.

Your hardware system will perform sd-card boot up with your board switches settings as below:


  • SW1: All OFF
  • SW2: All OFF
  • SW3: ON-OFF-ON-OFF-ON-ON
  • SW4: OFF-OFF-ON-ON


you will get boot up logs when your system boot up without issue.



Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
2,066 Views

Hi jjac705,


Do you having any built issues to follow up from previously?


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
2,044 Views

Hi jjac705,


We do not receive any response from you to the previous question/reply/answer that I have provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


Thanks.

Regards,

Aik Eu


0 Kudos
Reply