Book Image

Using Yocto Project with BeagleBone Black

By : Hafiz Muhammad I Sadiq, Irfan Sadiq
Book Image

Using Yocto Project with BeagleBone Black

By: Hafiz Muhammad I Sadiq, Irfan Sadiq

Overview of this book

Table of Contents (17 chapters)
Using Yocto Project with BeagleBone Black
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Changing upstart scripts


Before we start writing our recipe, we need to decide which upstart service manager type we will use. We have two options. One is SysVinit, which we were using until now. The second one is to use systemd. We will use the latter system because it is new and emerging, you should know about it, and I like it. It has a much better startup time. To enable it, we need to add the following lines to our auto.conf file:

DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

We will have to build the full image again using the usual commands.

Tip

It is recommended that you force recompile virtual/kernel so that all the modules are also rebuilt.

I used the following command to recompile virtual/kernel:

$ bitbake -C compile virtual/kernel; bitbake core-image-sato

If you want to check systemd, it is recommended that you add systemd-analyze to the image by adding it to the preceding package group and play with it...