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: 
Adventurer
Adventurer
985 Views
Registered: ‎07-11-2018

Compiling Peta linux with custom FPGA

Jump to solution

Hi

I compiled petalinux successfully with default FPGA bit file. Now I want to build petalinux with custom FPGA file.

I need inputs to build how to build custom FPGA to generate images, to build this is it required to install Vivado SDK and Xilinx_SDK_2018.1_0405_1_Lin64.bin

 

Please suggest.

 

Thanks

Umamahesh

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
912 Views
Registered: ‎04-24-2017

Re: Compiling Peta linux with custom FPGA

Jump to solution

Hi @umamahesh,

 

You need to use below commands if you are using custom hdf.

 

$ petalinux-create -t project -n <porject_name> --template zynq
$ petalinux-config --get-hw-description=<PATH_TO_HDF>

If you are using ZC702 Eval board using your own hdf.

 

 

$ petalinux-config ---> DTG Settings ---> (zc702) MACHINE_NAME
$ petalinux-config ---> u-boot Configuration  ---> (zynq_zc702_config) u-boot config target

 

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
4 Replies
Moderator
Moderator
977 Views
Registered: ‎04-24-2017

Re: Compiling Peta linux with custom FPGA

Jump to solution

Hi @umamahesh,

 

Yes you need Vivado tools to be installed.

  1. Generate the hdf(include bitstream) refer UG1209.
  2. Build petalinux using your hdf refer UG1144.
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Participant rsey
Participant
963 Views
Registered: ‎07-18-2018

Re: Compiling Peta linux with custom FPGA

Jump to solution

Hello,

 

This is also a good source if you don't have time to go through UG1209 and UG1144.

 

https://www.slideshare.net/shtaxxx/debian-linux-on-zynq-setup-flow-vivado-20154

 

 

P.S. But be careful at page 41, ps7_cortex9_0 should be ps7_cortexa9_0.

 

\Razi

\Razi
-- Don’t forget to Reply, Kudo, and Accept as Solution --
0 Kudos
Adventurer
Adventurer
933 Views
Registered: ‎07-11-2018

Re: Compiling Peta linux with custom FPGA

Jump to solution

Hi Sandeep,

 

I got a custom fpga bit file from FPGA team, I downloaded xilinx-zc702-v2018.1-final.bsp (for Zynq 7020).

I created petalinux as shown below

 

petalinux-create -t project -s xilinx-zc702-v2018.1-final.bsp

 

To build petalinux with custom fpga, I run as follows

 

petalinux-config --get-hw-description=<path to hdf file>

 

Following is the error

 

INFO: Getting hardware description...
WARNING: Usage of HDF is going to be deprecated in future releases.Please use DSA(Device Support Archive) instead.
INFO: Rename cmt_som_design_wrapper.hdf to system.hdf
[INFO] generating Kconfig for project
ERROR: [HDF 64-4] /home/petalinux/xilinx-zc702-2018.1/project-spec/hw-description/system.hdf is not valid Hardware Handoff File                                                                      
ERROR: [Hsi 55-1451] Error: running open_hw_design.

ERROR: Failed to generate /home/petalinux/xilinx-zc702-2018.1/build/misc/config/Kconfig.syshw
ERROR: Failed to Kconfig project
ERROR: Failed to generate System hardware Kconfig file.

 

Please suggest asap.

 

Thanks

Umamahesh

0 Kudos
Moderator
Moderator
913 Views
Registered: ‎04-24-2017

Re: Compiling Peta linux with custom FPGA

Jump to solution

Hi @umamahesh,

 

You need to use below commands if you are using custom hdf.

 

$ petalinux-create -t project -n <porject_name> --template zynq
$ petalinux-config --get-hw-description=<PATH_TO_HDF>

If you are using ZC702 Eval board using your own hdf.

 

 

$ petalinux-config ---> DTG Settings ---> (zc702) MACHINE_NAME
$ petalinux-config ---> u-boot Configuration  ---> (zynq_zc702_config) u-boot config target

 

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------