Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20803 Discussions

run hello world in custom rootFS for agilex"

MK_086
Novice
1,659 Views
Hi,
Looking for HPS Linus steps to add C Hello world and adding binaries/precompiled utilities to Linux rfs.

Thanks
0 Kudos
16 Replies
Kenny_Tan
Moderator
1,641 Views

Kindly note that there will be some slowness on the first reply due to the public holiday, we will get back to you as soon as possible.



0 Kudos
EBERLAZARE_I_Intel
1,605 Views

Hi,


I will have the test this week on our board, might take some time, I already finish the build.


I will let you know the result after, thanks for your patience.


0 Kudos
EBERLAZARE_I_Intel
1,521 Views

Hi,


My apologies for the very late responds I was able to locate the "files" folder in Linux.


Are you able to run bitbake and build package from your side?



0 Kudos
MK_086
Novice
1,475 Views

Hi,

Glad to hear about this. No, our trails didn't work much as shared in my thread.

Could you please share the steps and solution for this?

Thanks

 

0 Kudos
EBERLAZARE_I_Intel
1,447 Views

Hi,


First step for the gitclone you do this instead of the mentioned step:

$ git clone -b kirkstone https://github.com/altera-opensource/gsrd-socfpga


Then continue as normal including this:

you can modify the recipe in: recipes-images/poky/gsrd-console-image.bb 

  1. add your c file in recipes-images/poky/files (mkdir)
  2. In recipes-images/poky/gsrd-console-image.bb, add the followings 
    1. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
    2. SRC_URI:append = " <CFILE>"
  3. Add this under nfs_rootfs() function:
    1. cp ${WORKDIR}/<CFILE> ${IMAGE_ROOTFS}/home/root


Then continue step 4. (build_setup) and until bitbake and package in the Custom GSRD steps :

https://github.com/altera-opensource/gsrd-socfpga


0 Kudos
MK_086
Novice
1,377 Views
Hi,
Thanks for the detailed steps.
We will get access to this compilation setup after a week. Will share the results after that, thanks for your patience.
Regards
0 Kudos
EBERLAZARE_I_Intel
1,393 Views

Hi,


Did you manage to bitbake yet? I did the previous and it did worked for me.


0 Kudos
EBERLAZARE_I_Intel
1,308 Views

Hi,


Do you have any update for this week?


0 Kudos
MK_086
Novice
1,288 Views
Hi,
While following these commands, we are facing problem to download the files from git as,

ubuntu@Precision-3650:~$ git clone -b langdale git://git.yoctoproject.org/poky.git Cloning into 'poky'... fatal: unable to connect to git.yoctoproject.org: git.yoctoproject.org[0: 52.88.119.210]: errno=Connection timed out git.yoctoproject.org[1: 44.232.17.94]: errno=Connection timed out git.yoctoproject.org[2: 54.214.149.138]: errno=Connection timed out

Can you help us to get through this?

Also, have a question that we are looking for help to autorun a Linux application from rootFS on Linux power on. Can you share us these steps as well please?
Thanks
0 Kudos
EBERLAZARE_I_Intel
1,269 Views

Hi,


Yeah, I can check that as well, it should be in the config of the kernel somewhere.


Also, regarding the connection error, it seems to be your VPN, can you try a different machine? Or you may need to set up proxy to bypass it.


0 Kudos
EBERLAZARE_I_Intel
1,240 Views

Hi Kumar,


Can you check my previous comments?:


https://www.simplified.guide/linux/automatically-run-program-on-startup

You can refer this to auto start an application, it can be in any code e.g C, python.




0 Kudos
EBERLAZARE_I_Intel
1,215 Views

Hi,


Any latest update for your testing?


0 Kudos
MK_086
Novice
1,204 Views
Hi,
Thanks for checking.
We were facing several run time issues as shared before in multiple setups and halted our progress.
Any inputs on this please?
Thanks
0 Kudos
EBERLAZARE_I_Intel
1,188 Views

Hi,


Can you try this:

git clone -b langdale https://github.com/altera-opensource/gsrd-socfpga


0 Kudos
EBERLAZARE_I_Intel
1,152 Views

Hi,


Did the previous workaround work for you?


0 Kudos
EBERLAZARE_I_Intel
1,103 Views

Hi,


Please try to use the previous workaround provided, also I see that you have a case filed in IPS we will have our expertise to support you there.


I now transition this thread to community support. If you have a new question, 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.



p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


0 Kudos
Reply