UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer keyshavmor2611
Observer
226 Views
Registered: ‎06-07-2018

Questions regarding the Petalinux building process

I was curious about at what point does the Petalinux project source the kernel and the u-boot files?

1. Is it while creating the project?

2. Is it while configuring the project?

3. Is it while building the project and the images.

This is very important. Also it would be nice to know in which format or file compression are the Kernel and u-boot sourced?

Are all the packages downloaded in the yocto repository sourced  during configuration or during building?

Clarfiications would be deeply appreciated.

Regards,

Keyshav

0 Kudos
2 Replies
Moderator
Moderator
192 Views
Registered: ‎06-27-2017

Re: Questions regarding the Petalinux building process

Hi @keyshavmor2611 ,

 

Once configuration is done. Then Source will be fetched while building the project.

Kernel image(image.ub) if FIT image format will consist of Kernel executable, device tree and rootfs.

U-boot is u-boot.elf binded along with Boot image.

You can refer UG1208 to understand about Boot images and creating Boot.bin

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Observer keyshavmor2611
Observer
186 Views
Registered: ‎06-07-2018

Re: Questions regarding the Petalinux building process

Hi Kranthi,
It is still a bit unclear. when you do petalinux-config and go to kernel source, it says linux-xlnx but does not point to the file from where the project sources it. This either means that the kernel source path is already know to the project when the project is created or is know to it through reading some file when you run petalinux-config command. Clarity on this would be great.

When you say that source will be fetched, does that mean that some path and file are mentioned in the boot script which instructs which kernel file (image.ub) to fetch from ?
Is this the part of the FSBL.elf or the u-boot.elf ? And is it possible to view this script?
We are basically aiming at TFTP boot and NFS root file system with which we are successful. I am also aware of bootargs present in device tree which show what boot arguments the uboot would use.
Having said that , kernel image path is not mentioned in the bootargs and the kernel image is searched for in the tftpboot directory when netboot command is run. So is there a u-boot script which we can examine ? Is it possible ?

Regards,
Keyshav
0 Kudos