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

Executing a application/executable file on customized boot image for DE1SOC board

snehal_p
New Contributor I
15,877 Views

Hello,

 

I'm trying to execute a simple led switch application on customized boot image.

PFA screenshot of the error received.

Can anyone help me diagnose what the issue is?

 

Thanks,

snehal_p

 

0 Kudos
1 Solution
JingyangTeh_Altera
14,383 Views

Hi

 

I have tried out your zImage and able to run the led application successfully.

 

Please find the screenshot below:

 

 

2022-11-30_10h29_47.png

 

 

Did you flash the FPGA configuration before booting into the linux environment?

 

As for the fitter error, you will need to run both of the TCL script below (located:soc_system\synthesis\submodules):

 

hps_sdram_p0_parameters.tcl

hps_sdram_p0_pin_assignments.tcl

 

 

Regards

Jingyang, Teh

 

View solution in original post

0 Kudos
54 Replies
JingyangTeh_Altera
5,097 Views

Hi Snehal_p


The command I shared the first time is the wrong address, it got an additional zero.

Could you try it one more time? The address of the LED bank should be 0xff210008 instead of 0xFF2010008.

Let me try out your version of zImage and get back to you.


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
5,085 Views

Hello Jingyang,

Thanks,

Yes, let me try with devmem

I came across the palce and route error, can you please help me with this.

PFA error message.

0 Kudos
snehal_p
New Contributor I
5,085 Views

hello,

PFA error message

thanks,

snehal_p

0 Kudos
JingyangTeh_Altera
14,384 Views

Hi

 

I have tried out your zImage and able to run the led application successfully.

 

Please find the screenshot below:

 

 

2022-11-30_10h29_47.png

 

 

Did you flash the FPGA configuration before booting into the linux environment?

 

As for the fitter error, you will need to run both of the TCL script below (located:soc_system\synthesis\submodules):

 

hps_sdram_p0_parameters.tcl

hps_sdram_p0_pin_assignments.tcl

 

 

Regards

Jingyang, Teh

 

0 Kudos
snehal_p
New Contributor I
5,075 Views

Hello Jingyang,

 

Thanks for the prompt support, fitter error solved.

Let me test with my zImage, actually problem occurs while executing the application file

Can you try executing hps led hex demostration using my zImage

 

Thanks,

snehal_p

0 Kudos
JingyangTeh_Altera
5,055 Views

Hi snehal_p


Sorry for the late reply.


Yes I did tried running the led hex demonstration on your zImage and it was successfull.

Maybe you could try sending me your copy of the led hex demonstration binary? and I will try it out on my board here.


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
5,042 Views

Hello Jingyang,

 

Thanks,

PFA  binary file.

Could this be OS of my system

I'm using Ubuntu 20.04.4 LTS

 

Thanks,

snehal_p

0 Kudos
JingyangTeh_Altera
5,032 Views

Hi Snehal_p


I tried running your application and zImage, there are able to run without crashing.

However I notice that the application is not able to bling the led on the board.

You are working on a DE1SOC or DE0-Nano-Soc?

The link that you shared is using a DE0-Nano-Soc.

Could you share me the source of your application and your quartus image?

To check if you are accessing the correct memory address for the led.


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
5,025 Views
0 Kudos
snehal_p
New Contributor I
5,011 Views

Hello Jingyang,

 

I'm still facing issues launching DS5 can you PFA screenshot to analyze what the issue is

 

Thanks,

snehal_p

0 Kudos
JingyangTeh_Altera
4,996 Views

Hi Snehal


Could try following the installation steps for SOCED in the link below:

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


You could refer to the linux steps under "Linux Installation".


Regards

Jingyang, Teh


0 Kudos
JingyangTeh_Altera
4,988 Views

Hi Snehal


Are you still facing problem with launching DS?


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
4,979 Views

Hello Jingyang,

Yes, I'm sill facing issues with launching DS5.

Thanks,

snehal_p

 

0 Kudos
JingyangTeh_Altera
4,966 Views

Hi Snehal


Did you went through the installation for SoCED in the link below?

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


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
4,915 Views

Hello Jingyang,

Yes, I followed the steps in the document.

 

Thanks,

 

snehal_p

0 Kudos
JingyangTeh_Altera
4,857 Views

Hi Snehal


Happy New Year!


That is weird.

Could you try to print out the environmental variable " SOCEDS_DEST_ROOT"?



Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
4,821 Views

Hello Jingyang,

Thank you!

Happy New Year!

PFA screenshot.

 

Thanks,

snehal_p

 

0 Kudos
snehal_p
New Contributor I
4,809 Views

Hello Jingyang,

 

I'm facing issues with the booting process.

zImage and rootfs I'm using are readily available from rocketsboard link.

PFA screenshots one with zImage for 3.10ltsi receiving garbage value after starting kernel and for original terasic console it is getting stuck after starting kernel 

Thanks,

snehal_p

0 Kudos
JingyangTeh_Altera
4,792 Views

Hi Snehal


Could you try upgrading your version of Quartus? I see that your quartus version is quite old, the latest version now is 22.1.


Which version of rootfs you are using? Could you try using the rootfs from the GSRD as well?


Regards

Jingyang, Teh


0 Kudos
snehal_p
New Contributor I
4,783 Views

Hello Jingyang,

 

I'm using the readily available images

  • zImage is present in location “SDCard_Booting/CycloneVSoC-examples-master/SD-operating-system/Angstrom-v2013.12/Files_to_build_SD_DE1-SoC/zImages/Original Terasic Console/zImage”
  • Root File System is present in location “SDCard_Booting/CycloneVSoC-examples-master/SD-operating-system/Angstrom-v2013.12/Files_to_build_SD_DE1-SoC/Angstrom-console-rootfs.tar.gz”

 

Thanks,

sneahl_p

0 Kudos
snehal_p
New Contributor I
4,771 Views

Hello Jingyang,

 

I'm trying to generate rootf using steps https://www.rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide

Getting the error pfa screenshot.

Can you please help me with this.

 

Thanks,

snehal_p

0 Kudos
Reply