Forum Discussion

MK_086's avatar
MK_086
Icon for Occasional Contributor rankOccasional Contributor
3 years ago

run hello world in custom rootFS for agilex"

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

Thanks

16 Replies

  • 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


    • MK_086's avatar
      MK_086
      Icon for Occasional Contributor rankOccasional 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
  • 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's avatar
      MK_086
      Icon for Occasional Contributor rankOccasional 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

  • 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's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper 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.