Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Table of Contents
excludeTable of Contents

...

Install the standard Yocto dependencies for your host machine per the Yocto Reference Manual.

Repo

Repo is a repository management tool that is built on top of Git. Repo unifies the many Git repositories when necessary, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of development.The repo command is an executable Python script that you can put anywhere in your path. In working with the source files, you will use Repo for across-network operations. For example, with a single Repo command you can download files from multiple repositories into your local working directory.

Info

For more info about Repo, please see https://source.android.com/source/developing.html.

Install Repo

Here we will simply install the repo script from Google.

Code Block
themeMidnight
# Cd into a directory where you keep utilities and make sure it's in your PATH
$ cd ~/bin/

# Download the repo script
$ curl https://storage.googleapis.com/git-repo-downloads/repo > repo 

# Make repo executable
$ chmod a+x repo 

$# Test repo is working
$ repo --help

...

Code Block
themeMidnight
# Fetch the manifest and checkout the target release version
$ repo init -u githttps://github.com/Xilinx/yocto-manifests.git -b <current-release>

# Fetch all the source from the repositories in the manifest
$ repo sync 

# OPTIONAL: Create a development branch on each repo
(OPTIONAL)
$ repo start <name> --all

...

Finally bitbake the target image "petalinux-image-minimal".  You can pass the target machine on the command line or add it to your local.conf as the default machine.  When the build is completes, your images are located in "build/tmp/deploy/images/<machine>".  In this example we are building for the ZCU102.

Code Block
themeMidnight
$ MACHINE=zcu102-zynqmp bitbake petalinux-image-minimal

...

Info
titleDevice Tree Blobs

There may be multiple dtb files in your machine's deploy directory:

  1. <machine>-system.dtb is the dtb generated by DTG.  This will include device tree nodes that include PCW and PL devices.
  2. <kernel-dts>.dtb is the dtb generated from the dts in the kernel tree.  This is good for debugging if the kernel won't boot with the PL.

...