user7345878
user7345878

Reputation: 552

Building a yocto image for RPi3

Recently I started with yocto-project to build images for raspberry-pi. I cloned poky and meta-raspberrypi under a directory named as yocto_project on my ubuntu host. Initiated the build using source oe-init-build-env rpi-build. The first image I created the rpi-basic-image which was a successful attempt.

Upon booting RPi with the image I got a CLI based interface, but the problem is few commands are missing. Came to know by-default all the packages didn't get combine with image, we need to add it manually for example systemd.

If I run bitbake-layers show-recipes I get long list of all the recipes available for RPi. So I added the text IMAGE_INSTALL_append = " systemd" after reading some documents online to append systemd. After this when I bitbake rpi-basic-image got error as ERROR: Nothing RPOVIDES 'systemd' (but /path_to/rpi-basic-image.bb RDEPENDS on or otherwise requires it) ERROR: systemd was skipped: 'systemd' not in DISTRO_FEATURES ERROR: Required build target 'rpi-basic-image' has no buildable providers

Don't have clue, why I get this error. How to resolve it. Also do I have to manually add those packages/recipes using build/local.conf to get all the commands. Need a good explanation/guidance .

Upvotes: 0

Views: 2179

Answers (1)

h0ch5tr4355
h0ch5tr4355

Reputation: 2192

From Selecting an Initialization Manager - Yocto Development Manual:

 DISTRO_FEATURES_append = " systemd"
 VIRTUAL-RUNTIME_init_manager = "systemd"

You can set those variables in your local.conf.

Upvotes: 1

Related Questions