Launching QEMU Using Xilinx Yocto toolchains

To get you up and running quickly, in this part we will focus on booting a pre-built image of QEMU for Xilinx's VCK190 Development Board, up to the first Linux prompt.

For more information on Yocto please follow this link.




Install the repo

Repo is a tool that enables the management of many git repositories given a single manifest file. The repo will fetch the git repositories specified in the manifest and, by doing so, sets up a Yocto Project build environment for you.

# Download the Repo script.
curl -k https://storage.googleapis.com/git-repo-downloads/repo > repo
# Generally, curl is install at /usr/bin/curl. If it is installed at custom location please point it to correct location.
  
# Make it executable.
chmod a+x repo

# If it is correctly installed, you should see a Usage message when invoked with the help flag.
repo --help

Fetch all sources

# initialize the repo.
repo init -u git://github.com/Xilinx/yocto-manifests.git -b <release-version>

# repo sync to get all sources
repo sync

Example of release-version: rel-v2020.2, rel-v2020.1 and rel-v2019.2 etc.

Source environment

# source the environment to build using bitbake.
source setupsdk

Build using bitbake

# provide machine name to build for.
MACHINE=<machine-name> bitbake petalinux-image-minimal

Examples of machine-name: vck190-versal, zcu102-zynqmp, zcu702-zynqmp etc.

This step can take a lot of time depending upon host machine processing power. It will also required significant disk space, please see Yocto for more details.

Running QEMU

MACHINE=<machine-name> runqemu petalinux-image-minimal

After you enter the above command, the QEMU boot sequence loads the Linux image built with bitbake (previous step). At the prompt login, enter root as the username and root as the password.

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.


© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy