Forum Discussion
run hello world in custom rootFS for agilex"
Looking for HPS Linus steps to add C Hello world and adding binaries/precompiled utilities to Linux rfs.
Thanks
16 Replies
- EBERLAZARE_I_Intel
Regular Contributor
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
- add your c file in recipes-images/poky/files (mkdir)
- In recipes-images/poky/gsrd-console-image.bb, add the followings
- FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
- SRC_URI:append = " <CFILE>"
- Add this under nfs_rootfs() function:
- 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
- MK_086
Occasional Contributor
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
- EBERLAZARE_I_Intel
Regular Contributor
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?
- MK_086
Occasional Contributor
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
- EBERLAZARE_I_Intel
Regular Contributor
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.
- KennyT_altera
Super Contributor
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.