![]() ZCU670 Evaluation Kit Tutorial |
Using Vivado to Build the Hardware Design and petalinux images |
Build Flow¶
This tutorial explains the steps to build the hardware design and software images from the TRD source package.
Prerequisites¶
Vivado Design Suite 2023.2
PetaLinux 2023.2 tools
Note: After sourcing the Vivado tool open
../.Xilinx/Vivado/Vivado_init.tcland addenable_beta_devicecommand into it to enable all beta devices
To Build the TRD Package with the top Makefile:¶
Follow the below steps to generate petalinux images using the top Makefile in ../zcu670-ethernet-trd-2023.2/Makefile path.
Go to the working directory
cd ../zcu670-ethernet-trd-2023.2
Run the following command to build and generate sdcard image.
This Makefile calls lower level Makefiles to build hardware XSA and petalinux images. The image generation may take a hour time depends on the system specification.
make sdcard
The generated images will be located at:
../zcu670-ethernet-trd-2023.2/petalinux/xilinx-zcu670-trd/images/linux
To Build the Hardware Platform XSA:¶
Follow the steps below to build XSA using the Makefile in ../zcu670-ethernet-trd-2023.2/vivado/zcu670_25G_PTP_subsys/Makefile path.
Go to the platform directory.
cd ../zcu670-ethernet-trd-2023.2/vivado/zcu670_25G_PTP_subsys
To build the XSA, Source Vivado tool and run the following command.
The Makefile uses scripts/main.tcl file to create a Vivado project, populate the block design and finally build a XSA. The XSA generation may take a hour time depends on the system specification.
make xsa
The generated XSA will be located at:
../zcu670-ethernet-trd-2023.2/vivado/zcu670_25G_PTP_subsys/project/xxv_ptp_subsys_wrapper.xsa
To Build the Petalinux Images:¶
Follow the steps below to build petalinux images using the Makefile in ../zcu670-ethernet-trd-2023.2/petalinux/xilinx-zcu670-trd path.
Go to the petalinux BSP folder.
cd ../zcu670-ethernet-trd-2023.2/petalinux/xilinx-zcu670-trd
To build boot images, source petalinux tool and run the following command.
The Makefile configures the hardware platform required to build the petalinux images and create BOOT.BIN, which comprise of FSBL, UBoot, PMU firmware and hardware bit file.
make boot
The generated images will be located at:
../zcu670-ethernet-trd-2023.2/petalinux/xilinx-zcu670-trd/images/linux
Note: The XSA used to configure petalinux is available in ../zcu670-ethernet-trd-2023.2/prebuilt/xsa/ path.
Copy the image (image.ub , BOOT.BIN and boot.scr ) to the FAT32 formatted SD card and insert the card in SD card slot to run the design. This image is functionally equivalent to the prebuilt sdcard image provided with package.
Next Steps¶
References¶
License¶
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2023 Advanced Micro Devices, Inc
