Rebuild Xen - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 English

After creating a PetaLinux project for Zynq UltraScale+ MPSoC and AMD Versal™ adaptive SoC, follow the steps to build Xen images:

  1. Go to cd <proj root directory>.
  2. In the petalinux-config command, select Image Packaging Configuration > Root filesystem type (INITRD).
  3. In petalinux-config -c rootfs, select PetaLinux Package Groups > Packagegroup-petalinux-xen > [*] packagegroup-petalinux-xen.
    Note: If you enable Xen when /switch_root is enabled, you see build failures as Xen only supports ramfs boot. ext4-based boot is enable if you enable switch_root. To resolve the issue, change the previous config to petalinux-image-minimal from petalinux-initramfs-image.
  4. Enable the following configuration to add the xen.dtsi file into system.dtb petalinux-config → DTG Settings → Enable Xen dtsi
  5. Select the xen rootfs packages or package groups.
  6. Run petalinux-build.
  7. 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 previous load addresses based on the image/RootFS size without overlapping.