Versal Prime - VCK190 Evaluation Kit Ethernet TRD Tutorial |
Build the TRD Package for VMK180 Board |
Steps to Build the TRD Package for VMK180 Board¶
Prerequisites¶
Vivado Design Suite 202x.x
PetaLinux 202x.x tools
Accessing the Tutorial Reference Files¶
Download the TRD package from TRD Home Page .
Unzip the TRD package.
Navigate to the
../vck190-ethernet-trd-202x.x>
which is the working directory.
Build the hardware Design¶
Go to the platform directory
../vck190-ethernet-trd-202x.x/vivado
.Source the 202x.x Vivado Tool.
Run the Makefile to build the hardware design for the vck190 Evaluation Board.
make design_xsa
Note:Do not run the Synthesis and Implementation steps. This can be achieved by commenting source ../runs.tcl command in
../vck190_ethernet_platform/scripts/main.tcl
Open Vivado Tool in GUI Mode.
Open Project
../vck190-ethernet-trd-202x.x/vivado/vck190_ethernet_platform/project/mrmac_subsys.xpr
Open the settings in Project Manager pane, and in Project Settings General tab click Project device to change the Board part.
In the Boards tab, search for vmk180 and select the Versal VMK180 Evaluation Platform (xcvm1802-vsva2197-2MP-e-S) as shown below.
After selection, the project settings looks like below for the VMK180 Evaluation Board.
Click OK to proceed. A popup will shows up as below, click No to proceed further.
Open Report Tab and click Report IP Status
The list of IPs to be upgraded will be listed down, click Upgrade Selected to upgrade the IPs.
Save and Validate the Block design.
In the Project Manager pane on the left-hand side under Program and Debug, click on Generate Device Image. The device image (pdi) for the design will be generated and available at
$working_dir/vivado/<platform_name>/projec/impl_1/mrmac_subsys_wrapper.pdi
.To generate the XSA, select File → Export→ Export Hardware. While generating XSA make sure to Include device Image.
Build the petalinux Image¶
Go to the petalinux directory
../vck190-ethernet-trd/petalinux/xilinx-vck190-trd/
Source the 202x.x petalinux tool.
The project needs to be configured with the XSA file for VMK180
petalinux-config --get-hw-description=<path of xsa> --silentconfig
Run the below commands to build and package the wic image in compressed format:
petalinux-build petalinux-package --boot --psm no --plm no --add images/linux/Image --load 0x00200000 --add images/linux/rootfs.cpio.gz.u-boot --load 0x04000000 --add images/linux/boot.scr --load 0x20000000 --force --uboot petalinux-package --wic --wic-extra-args "-c xz"
The generated compressed image file will be located at
images/linux/petalinux-sdimage.wic.xz
.To uncompress wic file use following command
xz -d -v images/linux/petalinux-sdimage.wic.xz
Follow the steps mentioned in Setting up the Board and Application Deployment to run the application.
Next Steps¶
Go back to the VCK190 Ethernet TRD design start page
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© 2022 Xilinx