Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: TOC

Zynq UltraScale+ MPSoC Power Advantage Tool Linux 2019.1

Zynq UltraScale+ MPSoC Power Advantage Tool Linux 2019.1

It is sometimes helpful to have an example of power management. The Power Advantage Tool Linux code has power management API's, as well as other demo configurations. This section describes how to build and run the Power Advantage Tool Linux code from sources.

This example highlights some PL Power Management methods.

1 Linux Design

1.1 Building the Linux Design

The steps to rebuild the Linux design from sources are as follows:
  • You will need a CentOS (supported version) Linux computer
  • Install Vivado and SDK as described here.

1.1 Preparing the Linux Kernel using PetaLinux 2019.1

This section describes how to build the Linux images for zcu102 target platform using latest release PetaLinux SDK of version 2018.1.

1.1.1 Download the PetaLinux petalinux-v2019.1-final-installer.run and ZCU102 BSP for corresponding board.




1.1.1.1.Install PetaLinux by running the above downloaded installer
. /petalinux-v2019.1-installer.run
(e.g. Petalinux_installation_path = /scratch/Xilinx/PetaLinux)
Note: please refer the Petalinux user guide.

1.1.1.2.After installation is done set the PetaLinux environment by running below command in bash shell
(bash)
source <Petalinux_installation_path>/settings.sh
(e.g. source /scratch/Xilinx/PetaLinux/settings.sh)
Note: Or use source <Petalinux_installation_path>/settings.csh command for c shell.
Cross check that the PETALINUX environment variable is set to the above installation path
echo $PETALINUX

1.1.1.3.Create the PetaLinux project in a working directory with the below command
(cd /scratch/edt)
petalinux-create -t project –s <path to the downloaded zcu102 bsp>
(e.g. petalinux-create -t project –s /home/jerrywo/Downloads/xilinx-zcu102-v2019.1-final.bsp)
Change the directory to the created Petalinux project.
(e.g. cd /scratch/edt/xilinx-zcu102-2019.1)

1.1.1.4.Initially configure the PetaLinux project with the corresponding hardware file.
(The file may be copied to /scratch/edt/xilinx-zcu102-2019.1 from your Windows machine C:\zynqus\pwr\sw\pl_lib_wrapper_hw_platform\system.hdf)
petalinux-config --get-hw-description=<path to folder containing system.hdf file>
(e.g. petalinux-config --get-hw-description=/scratch/edt/xilinx-zcu102-2019.1)

...