petalinux-boot --qemu Examples - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.2 English

The following examples demonstrate the correct usage of the petalinux-boot --qemu command.

  • Load and boot a prebuilt U-Boot elf using QEMU.
    $ petalinux-boot --qemu --prebuilt 2
  • Load and boot a prebuilt U-Boot elf using QEMU in root mode.
    $ petalinux-boot --qemu --root --prebuilt 2
  • Specify the cpio rootfile systemf for QEMU boot. Supports Zynq, ZynqMP, and MicroBlaze.

  • Boot customised rootfs image with kernel using QEMU:
    $ petalinux-boot --qemu --kernel --rootfs <specify custom cpio rootfs path>
  • Specify this option to disable GDB through QEMU boot:
    $ petalinux-boot --qemu --prebuilt 2/--prebuilt 3 --qemu-no-gdb
    $ petalinux-boot --qemu --u-boot/--kernel --qemu-no-gdb