Forum Discussion
Executing a application/executable file on customized boot image for DE1SOC board
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
Hi
I have tried out your zImage and able to run the led application successfully.
Please find the screenshot below:
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
54 Replies
- tehjingy_Altera
Regular Contributor
Hi Snehal_p
I managed to create a setup over here.
However I do not see the problem that you are experiencing.
The changes that you make is to the Kernel Image right?
Could you share me your zImage file that you are working on?
I tried using the latest zImage from the CycloneV GHRD and the application is able to blink on my end.
Could you test out the devmem command again?
- Try reading the sysID from the FPGA. Expected result from this is you will get a value of "0xACD51302"
- "devmem 0xff210000"
- Try turning on the led manually. Expected result all LED0:7 will turn on.
- "devmem 0xff210008 16 0xFF"
- Try turning off the led manually. Expected result all LED0:7 will turn off.
- "devmem 0xff210008 16 0x00"
Regards
Jingyang,Teh
- snehal_p
Contributor
Hello Jingyang,
PFA zImage it is the customized image with linux kernel 4.14.1, using devmem gives error please find attached screenshot for the same
Thanks,
snehal_p
- Try reading the sysID from the FPGA. Expected result from this is you will get a value of "0xACD51302"
- tehjingy_Altera
Regular Contributor
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
- tehjingy_Altera
Regular Contributor
Hi
I have tried out your zImage and able to run the led application successfully.
Please find the screenshot below:
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
- snehal_p
Contributor
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
- tehjingy_Altera
Regular Contributor
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
- snehal_p
Contributor
Hello Jingyang,
Thanks,
PFA binary file.
Could this be OS of my system
I'm using Ubuntu 20.04.4 LTS
Thanks,
snehal_p
- tehjingy_Altera
Regular Contributor
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
- snehal_p
Contributor
Hello Jingyang,
I'm using DE1SOC Board. PFA link for demonstration project https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=165&No=836&PartNo=4#contents
Thanks,
snehal_p
- snehal_p
Contributor
- tehjingy_Altera
Regular Contributor
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
- tehjingy_Altera
Regular Contributor
Hi Snehal
Are you still facing problem with launching DS?
Regards
Jingyang, Teh
- snehal_p
Contributor
Hello Jingyang,
Yes, I'm sill facing issues with launching DS5.
Thanks,
snehal_p
- tehjingy_Altera
Regular Contributor
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
- snehal_p
Contributor
Hello Jingyang,
Yes, I followed the steps in the document.
Thanks,
snehal_p
- tehjingy_Altera
Regular Contributor
Hi Snehal
Happy New Year!
That is weird.
Could you try to print out the environmental variable " SOCEDS_DEST_ROOT"?
Regards
Jingyang, Teh
- snehal_p
Contributor
- snehal_p
Contributor
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
- tehjingy_Altera
Regular Contributor
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
- snehal_p
Contributor
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
- snehal_p
Contributor
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