How to build images through yocto
Repo Tool overview
Table of Contents
More details about repo tool is present at
https://source.android.com/source/developing.html
Step 1: Preparing the Build Environment
Install Repo
#Download the Repo script: $ curl https://storage.googleapis.com/git-repo-downloads/repo > repo #Make it executable: $ chmod a+x repo #Move it on to your local home directory path: $ mv repo ~/bin/ #Add it to your path $ PATH=$PATH:~/bin #If it is correctly installed, you should see a Usage message when invoked with the help flag. $ repo --help |
Fetch all sources
#repo init to the project of desire $ repo init -u git://github.com/Xilinx/yocto-manifests.git -b <current-release> #repo sync to get all sources $ repo sync #repo start a branch $ repo start <current-release> --all
<current-release> : rel-v2018.1, rel-v2017.3 etc
Source environment
#source the environment to build using bitbake $ source setupsdk |
Step 2: Build using bitbake
$ MACHINE=zcu102-zynqmp bitbake petalinux-image-minimal |
Step 3: Checking build artifacts.
After the build is complete, you will find the build artifacts under build/tmp/deploy/<MACHINE>/ directory
Related Articles
Xilinx Yocto
Boot using pre-build images
SD boot with Yocto images