Executing a application/executable file on customized boot image for DE1SOC board - 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘ https://supporttickets.intel.com’ , view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions. If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 10 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal Could we follow up the i2c issue on the new forum that you created? https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/interfacing-RTC-module-to-hps-driven-i2c-pins/m-p/1449952#M23958 Since that the original issue that was created for this case have been resolved. Is it ok if we close this case? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, The application file is getting compiled by adding main() to the c code for rtc ds3231. but it is giving controller timed out PFA screenshot of the error. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal_p Could you give me more time to look into this issue? Since that the library is an Arduino base, I need to see if we could compile it to properly. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, PFA details. https://github.com/contiki-os/contiki Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, PFA details. https://github.com/contiki-os/contiki Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal_p Could you share me the git repo that you got the library for the rtcds3231 ? Also please share me the make file that you are using to build the library? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Thanks, PFA screenshot of error I'm getting after making changes to the path. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal Could you try adding the following parameter into your make file to solve the define error: ALT_DEVICE_FAMILY = soc_cv_av As for the library error could you use the directory path below: C:/intelFPGA/18.1/embedded/ip/altera/hps/altera_hps/hwlib/include We will use the directory a folder up. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, PFA error screenshot while compiling c program. Can you please help me with the library files for rtcds3231 and i2c, also the steps to use .h files. I ge similar error when I try to compile demonstration code for gsensor. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, PFA error screenshot while compiling c program. Can you please help me with the library files for rtcds3231 and i2c, also the steps to use .h files Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Any update on this case? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal_p For the SD Card Image could you try out the sd card image from the link below: https://releases.rocketboards.org/2022.11/gsrd/c5_gsrd/ As for the compilation error, could you try checking the GNU version with the command "ldd --version". Could you try upgrading the GNU version if it is below 1.4.19. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Thank you! Happy New Year! PFA screenshot. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal Happy New Year! That is weird. Could you try to print out the environmental variable " SOCEDS_DEST_ROOT"? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Yes, I followed the steps in the document. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Yes, I'm sill facing issues with launching DS5. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal Are you still facing problem with launching DS? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, I'm still facing issues launching DS5 can you PFA screenshot to analyze what the issue is Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang , Thanks, PFA binary file. Could this be OS of my system I'm using Ubuntu 20.04.4 LTS Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board hello, PFA error message thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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. Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board 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 Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal_p Sorry that I do not have an update at the moment. Please give me some more time to work on this. I will try to give you an update by the end of Friday this week. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, Thanks, application file does not run each time we program it executed few times. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board HI Snehal_p Please give me sometime while I try to reproduce the issue on my side here. I find it weird that it could run once only each time. Let me try out the steps from the website and try making changes to it whether i could reproduce the issue on your side. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, "mmcblk0p1" is a sd card. Files in sdcard are all compiled for each change in linux environment. As you see in the debug log that I got output for led switch program and all the executable files gave respective output, but when I reprogram FPGA or HPS or both it starts giving the unhandled fault error. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal I see that you are mounting a device "mmcblk0p1" is this an sd card or a flash device? Are the files in the mmcblk0p1 the same through each start? If so, this could be the reason. The files needs to be compile for each change in linux environment. Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Thanks, I tried with the commands but it is giving invalid argument. Also I tried executing file and every application file I have generated worked well, PFA screenshot and debug log, but when I executed it again it is giving issues. PFA debuglog and help me analyze the issue. Zimage used is customized . Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi snehal_p You could try one of this command "memtool" or "devmem". Try entering the command in the linux environment on your target and see if either command is available in your target environment. Next try command below to read : devmem 0xFF2010008 16 memtool md -l 0xFF2010008 Next try command below to write: devmem 0xFF2010008 16 0xFF memtool mw -l 0xFF2010008 0xFF Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, PFA uboot.scr I'm new to using SOC and linux, can you please help me with steps to write to hps memory region Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi snehal_p Just to confirm, you did not make any changes to the uboot right? Could you share your u-boot.scr of the custom image? Right now I am suspecting it could be some privilege issue that causes the application to fail to read from the h2f bridge. Could we try accessing the memory region from the linux user space manually to check the privilege in linux user space? In the linux user space do you have any tool to read to write memory region like "memtool" "devmem"? Could you try the following steps: 1.Write to memory address 0xFF2010008 with value 0xFF 2.Observe the led should turn on. 3.reading the memory address 0xFF2010008 it should be the value 0xFF 4.Write to memory address 0xFF2010008 with value 0x00 5.Observe the led should turn Off. 6.reading the memory address 0xFF2010008 it should be the value 0x00 Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Yes, I followed the same steps. It is still giving issues. Also I'm facing issues in launching DS5 eclipse despite of successful installation. Can you help me with the linux commands to diagnose what the actual issue is. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi snehal_p Did you tried running the steps under the "Section 11: Writing a User-space Application" in the rocketboard link https://www.rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide to recreate the demonstration project led switch application in the new customize linux operating system? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang , The application that was run was the demonstration project led switch application. Customization I changed the linux version. PFA screenshot of the error received when I execute the application file. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Snehal The application that was run on the customized image was it a copied version from the non-customized image? What are the major changes made to the customized image? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Jingyang, I tried running the application on non customized image ,it works. Also with customized image it gave output once please find attached screenshot , but again when I try executing it gives error. Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi Any update on this case? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi snehal_p Sorry for the late reply as there was a public holiday. Have you tried running the led application on the non customized image? Is it working? What are the changes you made to the image? Did you made any changes to the application code?If yes could you share with me the changes you made? Did you compile the application on the user space of the non customized image? Regards Jingyang, Teh Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hello Jingyang, Thanks for your response, following is the link of steps for compilation https://www.rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide Please let me know if more information is needed Thanks, snehal_p Replies: Re: Executing a application/executable file on customized boot image for DE1SOC board Hi snehal_p Could you share the steps that was used to compile the application file? What are the environment details run on the DE1SOC board? Regards Jingyang, Teh - 2022-10-17

external_document