Yocto on the Zedboard 101
Contents
1. Introduction
Yocto provides tools and metadata for creating custom embedded systems with following main features :
- Images are tailored to specific hardware and use cases
- But metadata is generally arch-independent
- Unlike a distro, kitchen sink is not included (we know what we need in advance)
Other keywords and their meanings are explained here:
- An image is a collection of baked recipes (packages)
- A ‘recipe’ is a set of instructions for building packages
- Where to get the source and which patches to apply
- Dependencies (on libraries or other recipes, for example)
- Config/compile options, install customization
- A layer is a logical collection of recipes representing the core, a board support package (BSP), or an application stack
1.1. Packages to be installed
|
|
1.2. Clone Yocto and recipes (zeus branch)
|
|
1.3. Build configuration
|
|
- Modifications in
conf/local.conf
:
|
|
-
You may also like to change the package type from
rpm
todeb
: modifyPACKAGE_CLASSES '= "package_rpm"
byPACKAGE_CLASSES '= "package_deb"
-
Modifications in
conf/bblayers.conf
in order to add the cloned layers:
|
|
1.4. Generate image (and take a coffee…)
|
|
Once complete the images for the target machine will be available in the output directory poky/build/tmp/deploy/images/zedboard-zynq7
.
1.5 Modify the uEnv.txt
file
We need to modify uEnv.txt
a little bit according to a Xilinx layer README-booting.md
|
|
2. Creating the SD card
Partitions
Create two partitions on the SD card:
- Partition #1 : 100 MB, fat16.
- Partition #2 : remaining space, ext3.
Copy the following files in partition #1:
|
|
Extract the core-image-minimal
archive in partition #2:
|
|
Now, everything should be OK!
|
|