Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
All support for Intel NUC 7 - 13 systems has transitioned to ASUS. Read latest update.
20577 Discussions

AGFB014R24B2E2EV : Customizing and Porting HPS U-Boot & Linux

MK_086
Novice
1,108 Views

Dear Experts,

 

We are able to bring up the AGFB014R24B2E2EV Eval board with Yocto build U-boot and Linux from QSPI flash by following the steps as in,

 

https://www.rocketboards.org/foswiki/Documentation/AgilexSoCGSRD#Build_Yocto

 

We would like to know the steps/sequences on how to customize the U-Boot & Linux with driver enable/disable options, rootfs path sharing, compile and port this to Eval board.

 

Thanks 

 

0 Kudos
14 Replies
EBERLAZARE_I_Intel
1,088 Views

Hi,


For device tree you may refer to:

https://www.rocketboards.org/foswiki/Documentation/HOWTOCreateADevicetreeForAgilexSoC


For building rootfs:

https://www.rocketboards.org/foswiki/Projects/AgilexSoCWithEMMCStorageOnHPS#Building_Rootfs



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
MK_086
Novice
1,060 Views

Hi @EBERLAZARE_I_Intel ,

 

Thanks for sourcing the links, we are on generating these images to test or load on EVM.

 

Regards

 

0 Kudos
EBERLAZARE_I_Intel
1,058 Views

Hi,


Thanks, if you have new questions or feedback regarding the documentation let me know.


0 Kudos
EBERLAZARE_I_Intel
1,026 Views

Hi,


Do you have any other questions?


If there are no further update for this ticket, you may help to close it.


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
MK_086
Novice
1,014 Views

Hi @EBERLAZARE_I_Intel ,

 

The link shared above to Build Rootfs is always downloading from git and compiling. Please provide us with the steps to customize files in Rootfs, launching the custom C application after Linux booting is completed.

Regards

 

0 Kudos
EBERLAZARE_I_Intel
980 Views

Hi,


Customization of rootfs do you mean something like, as for our example we are using Yocto, so are you aiming to customize the Yocto rootfs? OR a different/custom rootfs?


Launch C application code is pretty general, you can store in the rootfs partition:

https://itsfoss.com/run-c-program-linux/



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
MK_086
Novice
965 Views

Hi @EBERLAZARE_I_Intel ,

Looking for the process/steps to store the c executable in rootfs partition and how to make it run at the Linux boot up.

Thanks

 

0 Kudos
EBERLAZARE_I_Intel
947 Views

Hi,


Thanks for confirming the info, let me check with our internal expert on that.


0 Kudos
EBERLAZARE_I_Intel
918 Views

Hi,


I am still working on it, I will get back to you soon.


0 Kudos
EBERLAZARE_I_Intel
914 Views

Hi,


You can access the rootfs partition and store the .c after building the img:

https://www.rocketboards.org/foswiki/Projects/AgilexSoCWithEMMCStorageOnHPS#Building_Rootfs

> Creating the eMMC Image

 

Are you familiar with Linux machine? You can store the .c in the rootfs/ext3, you can do something like:

https://midnightprogrammer.net/post/create-mount-and-unmount-img-files-in-ubuntu/


Then do the following when booting to Linux:

https://vitux.com/how-to-write-and-run-a-c-program-in-linux/



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
EBERLAZARE_I_Intel
908 Views

Hi,


Additionally, you can follow these steps:

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


On the customization, 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


If you need help or have any questions regarding the GSRD let me know.



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
MK_086
Novice
892 Views

Hi @EBERLAZARE_I_Intel ,
The above-listed steps of GSRD help.
Does it require compiling using the bitbake_image command or is it possible to compile rfs alone? Any supported command lists would help.
Thanks

 

0 Kudos
EBERLAZARE_I_Intel
862 Views

Hi,


My apologies for the late respond, I did not have computer access for few days.


Yes, it requires bitbake_image, as of now there are no additional commands particular builds.


Do you have any further 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
EBERLAZARE_I_Intel
842 Views

Hi,


I’m hope that your question has been addressed, 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