cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
267 Views
Registered: ‎07-23-2019

Creating Vitis platform for petalinux

 

When creating a platform in Vitis and selecting petalinux as the OS, there is a warning about some details need to be specified. Fine. But when the project is open, I'm not sure which are the directories I should point to. I built a petalinux project that boots but, some things don't exist, like the Bif file or the sysroot directory.

What am I missing? 

3 Replies
Highlighted
Moderator
Moderator
197 Views
Registered: ‎03-25-2019

Re: Creating Vitis platform for petalinux

 @archangel-lightworks,

You should generate your sysroot file from your PetaLinux project using the following commands:

  petalinux-build --sdk
  petalinux-package --sysroot

Further details could be found in the "SDK Generation (Target Sysroot Generation)" section of the UG1144.

Best regards,
Abdallah
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Newbie
Newbie
90 Views
Registered: ‎12-19-2019

Re: Creating Vitis platform for petalinux

will you please explain whole process or refer a document for creating a platform in vitis for Petalinx 2019.2.

0 Kudos
Highlighted
Moderator
Moderator
66 Views
Registered: ‎09-12-2007

Re: Creating Vitis platform for petalinux

You need to create the sysroots:

  • mkdir -p images/linux/sysroot_dir
  • petalinux-build --sdk
  • petalinux-package --sysroot -d sysroot_dir

 

Copy the following file to a "boot" folder:

  • fsbl.elf
  • uboot.elf
  • bl31.elf
  • bitstream

Create the BIF:

the_ROM_image:
{
  [fsbl_config] a53_x64
  [bootloader] <zcu102_base/boot/fsbl.elf>
  [pmufw_image] <zcu102_base/boot/pmufw.elf>
  [destination_device=pl] <bitstream>
  [destination_cpu=a53-0, exception_level=el-3, trustzone] <zcu102_base/boot/bl31.elf>
  [destination_cpu=a53-0, exception_level=el-2] <zcu102_base/boot/u-boot.elf>
}
 
Copy the image.ub to a53/xrt/image
 
Then launch Vitis, and create platform project:
cap1.PNG
cap2.PNG
cap3.PNG
cap4.PNGcap5.PNG
Then build. This will take a while as it is copying the sysroots to your newly created platform