Questions tagged [yocto]

An open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded products regardless of the hardware architecture

The Yocto Project is a Linux Foundation workgroup defined as:

The Yocto Project provides open source, high-quality infrastructure and tools to help developers create their own custom Linux distributions for any hardware architecture, across multiple market segments. The Yocto Project is intended to provide a helpful starting point for developers.

The Yocto Project is an open source collaboration project that provides templates, tools and methods to help us create custom Linux-based systems for embedded products regardless of the hardware architecture.

It was founded in 2010 as a collaboration among many hardware manufacturers, open-source operating systems vendors, and electronics companies to bring some order to the chaos of embedded Linux development.

In conclusion, Yocto Project is a a community open source project that is a combination of communities, companies, projects, and tools, and gather people with the same purpose to build Linux-based embedded Project.


Documentation :

3641 questions
18
votes
6 answers

How to export DBUS_SESSION_BUS_ADDRESS

I'm trying to run D-Bus on an embedded system (Yocto Linux) and connect to it from my application code. I get the following error when I call dbus_bus_get(DBUS_BUS_SESSION, &err); Using X11 for dbus-daemon autolaunch was disabled at compile time,…
User55412
  • 882
  • 2
  • 10
  • 27
18
votes
2 answers

Is there any way to list systemd services in linux "in-the-order-of" they were loaded?

I am trying to understand the dependencies between different systemd services in my new project. We are using yocto build system and systemd/system services. If I perform, systemctl -l It will list all the services in alphabetic order. But I am…
user3128488
  • 367
  • 1
  • 2
  • 7
17
votes
2 answers

An example of using FILES_${PN}

I have a trouble of understanding the FILES_${PN} even after I have read the manual. For example, I was working on this example of making startup script. After I wrote something similar to, I got these error messages. ERROR: initscriptd-1.0-r0…
Yahia Farghaly
  • 857
  • 2
  • 10
  • 20
17
votes
2 answers

Bitbake not installing my file in the rootfs image

I have created a bitbake recipe that would copy 2 of my files (firmware binaries for VPU) into `/lib/firmware/` directory on targets root filesystem. I have tried many options so I'm now not sure what in my recipe is unnecessary/redundant and what…
lewiatan
  • 1,126
  • 2
  • 21
  • 37
17
votes
1 answer

How to give options for "configure" using yocto recipes?

I want write a recipe in yocto to build my custom component. In that i would like to enable some flags according to machine. eg: if machine is x86 my configure command should be like : ./configure --enable-x86 if it is x64 ./configure…
A R
  • 2,697
  • 3
  • 21
  • 38
16
votes
6 answers

Why does the yocto bblayers.conf file use absolute paths?

The yocto project allows the use of relative path in most of its configuration files but not within the ./build/conf/bblayers.conf file. What is the reason for blocking the use of anything but absolute paths for the BBLAYERS and…
TafT
  • 2,764
  • 6
  • 33
  • 51
16
votes
1 answer

How to configure yocto to use the latest git commit?

I am a very lazy person. While working on a HW/SW project the software changes permanently. In this development stage, changing the commit/reversion-tags in the recipes is very nasty. I want Yocto to fetch the latest git commit. Is this possible/How…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
16
votes
3 answers

How to use an own device tree and modified kernel config in Yocto?

I am working to build an own "embeeded linux" with yocto. It is based on the SAMA5D3x-MB + SAMA5D3x-CM(RONETIX) with the SAMA5D35. I have two questions: 1.) changing the device tree I build an image based on: MACHINE ??= "sama5d3xek" After the…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
16
votes
1 answer

How does Shared State Cache in Yocto work?

Can any one explain to me more comprehensively how the sstate cache works in yocto? This explanation is far from clear. I don't understand when such situation occurs: NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Running setscene…
mastier
  • 872
  • 1
  • 10
  • 22
15
votes
2 answers

How to setup an Yocto recipe to build from a local git source?

Hej I am playing a bit around with Yocto, a Raspberry Pi and some code I wrote. Now I want that Yocto is building an image including the program I wrote. I like to know how to setup the fetcher to fetch from a local git repro. My setup is simple.…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
15
votes
5 answers

How should the sstate-cache directory be deleted in Yocto?

The size of my sstate-cache directory of my YoctoProject "fido" environment is more than 3GB. How can I delete the sstate-cache directory in yocto/build-dir? Is it save to use rm -rf or is there any other method?
yoctotutor.com
  • 5,145
  • 4
  • 26
  • 36
15
votes
2 answers

Yocto SDK with cmake toolchain file

I provide a Yocto SDK to cross-build an application for an embedded target. The application itself is built using CMake. The SDK setup script provides many necessary environment variables (like location of the cross-compiler, sysroot, etc.), which…
Georg P.
  • 2,785
  • 2
  • 27
  • 53
15
votes
2 answers

What is Bitbake and Poky?

Can someone please briefly explain what is Bitbake, Poky, Recipes in simple words? I just want a basic understanding of what these are. Thanks.
P Singh
  • 151
  • 1
  • 1
  • 4
15
votes
2 answers

How to write a BitBake driver recipe which requires kernel source header files?

Introduction I have a do_install task in a BitBake recipe which I've written for a driver where I execute a custom install script. The task fails because the installation script cannot find kernel source header files within
karobar
  • 1,250
  • 8
  • 30
  • 61
14
votes
5 answers

How do I add more python modules to my yocto/openembedded project?

I wish to add more python modules to my yocto/openembedded project but I am unsure how to? I wish to add flask and its dependencies.
timelmg
  • 151
  • 1
  • 1
  • 3