On Linux, set up the Petalinux environment in a terminal window by sourcing <Petalinux_install_path>/settings.sh
Create a new Petalinux project with versal template. Name it as plnx-vssr-trd
cd $VSSR_WS petalinux-create -t project --template versal -n plnx-vssr-trd cd plnx-vssr-trd
Petalinux Hardware Configuration.
Point to the hardware XSA generated in the Build the Vivado Design section (or provided in the pre-built images). Below command picks the hw XSA from the workspace’s vivado build area:
petalinux-config --get-hw-description=$VSSR_WS/hw_ws/vivado/versal_restart_trd.runs/impl_1/
Add The board/machine name in the DTG Settings —> MACHINE_NAME, According to the following table
Board
Machine Name
VCK190
versal-vck190-reva-x-ebm-01-reva
VMK180
versal-vmk180-reva-x-ebm-01-reva
Change INITRAMFS/INITRD Image name to petalinux-initramfs-image. This will ensure to switch to rootfs on the sd card after initial boot from initramfs.
Save and Exit petalinux configuration
Configure Static IP using petalinux config, Petalinux Ethernet IP configuration (Optional. Default=DHCP)
petalinux-config
Select Subsystem AUTO Hardware Settings —> Ethernet Settings —> Primary Ethernet —> ethernet_0
Unselect Obtain IP address automatically and set the static IP
Save and Exit petalinux configuration
Add vssr-trd yocto layer
# Copy the layer sources cp -rf $REPO_SRC/sw/yocto-layers/meta-vssr-trd project-spec/ # Add Yocto layer in the petalinux configuration petalinux-config
Add new user layer and enter the layer path at Yocto Settings —> User Layers —> user layer 0
Save and Exit petalinux configuration
Add layer to include artifacts in the build:
./project-spec/meta-vssr-trd/scripts/add-layer.sh
Build the Petalinux project:
petalinux-build
Output images are generated in following directory:
${VSSR_WS}/plnx-vssr-trd/images/linux