petalinux-boot --qemu Examples - 2022.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-04-26
Version
2022.1 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, Zynq UltraScale+ MPSoC, and MicroBlaze.

  • Boot customized 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