Launching QEMU Using Xilinx PetaLinux
This page will take you through the basic steps of running QEMU using Xilinx's PetaLinux.
Although the instructions here are targeting Xilinx's VCK190, the same steps can be repeated for any of the supported pre-built BSPs that can be found at the Embedded Development Downloads page.
To get you up and running quickly in this part we will focus on booting a pre-built image of QEMU for Xilinx's ZCU102 Development Board up to the first Linux prompt.
Download and Install PetaLinux
Go to the Embedded Development Downloads page. Please check the PetaLinux Tools documentation for installation instructions.
Download a Pre-Built PetaLinux VCK190 BSP
To get started quickly, Xilinx strongly recommends that you download the pre-built VCK190 board support package (BSP) from the Embedded Development Downloads page.
Create a Project Based on the VCK190 BSP
Open a terminal/console and type the following:
source <petalinux-install-path>/settings.sh
Select settings.sh for bash-based shells or settings.csh for C-based shells.
petalinux-create -t project -s <path to bsp>/xilinx-vck190-v2020.2-final.bsp -n xilinx-qemu-first-run cd xilinx-qemu-first-run
Boot to Linux Prompt
petalinux-boot --qemu --prebuilt 3
After you enter the final command above, first it will print all the commands used for booting QEMU, followed by QEMU boot sequence which loads the pre-built Linux image. At the prompt login, enter root as the username and root as the password.
You can pass additional arguments to QEMU using the qemu-args "...." option. Enter any additional argument within the double-quotes. To quit the emulation, press CTRL+A followed by X. To switch between the serial port and the monitor, use CTRL+A followed by C.
If you want to load the pre-built U-Boot image instead of Linux, you can use --prebuilt 2
instead of --prebuilt 3
.
Related content
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy