After creating a PetaLinux project for Zynq UltraScale+ MPSoC and AMD Versal™ adaptive SoC, follow the steps to build Xen images:
- Go to
cd <proj root directory>. - In the
petalinux-configcommand, select . - In
petalinux-config -c rootfs, select .Note: If you enable Xen when /switch_rootis enabled, you see build failures as Xen only supports ramfs boot. ext4-based boot is enable if you enableswitch_root. To resolve the issue, change the above config topetalinux-image-minimalfrompetalinux-initramfs-image. - Enable the following configuration to add the xen.dtsi file into system.dtb petalinux-config → DTG Settings → Enable Xen dtsi
- Select the xen rootfs packages or package groups.
- Run
petalinux-build. - The build artifacts are in images/linux in the project directory.
Note: By default, the
petalinux-build command does not build Xen. The default
root file system does not contain the Xen tools. You have to use Xen RootFS. Important: You are required to update dom0 memory in xen-bootargs in the
xen.dtsi file based on the image/RootFS
size. Also, adjust the above load addresses based on the image/RootFS size without
overlapping.