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
6
votes
2 answers

Using PREMIRRORS in Bitbake configuration

How do I use PREMIRRORS in Bitbake local configurations or recipes? I want to provide my own download locations for some slow or inaccessible third-party URLs, but the official PREMIRRORS documentation is vague and lacks examples.
Darien
  • 3,482
  • 19
  • 35
6
votes
1 answer

best approach of image versioning in yocto

What is the best approach for maintaining image versions in Yocto. I mean suppose we build an image and given it to customer, in future we provided bug fixes to the customer.. How can we know which version of yocto image customer is using.. Is there…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
6
votes
1 answer

Using Conditional Syntax (Overrides) in BitBake

Reading a book on Yocto. Got to the following page, which says: BitBake provides a very easy-to-use way to write conditional metadata. It is done by a mechanism called overrides. The OVERRIDES variable contains values separated by colons (:),…
flashburn
  • 4,180
  • 7
  • 54
  • 109
6
votes
1 answer

Add packages to yocto host sdk

I'm trying to cross-compile a programme for a Yocto qemu using Yocto's sdk tools. After setting up the sdk and sourcing it, trying to cross-compile the programme fails thusly: *** Unable to find the ncurses libraries or the *** required header…
Patchwork
  • 143
  • 1
  • 3
  • 9
6
votes
2 answers

Yocto recipe python whl package

I am writing a custom yocto recipe that should install a python package from a .whl file. I tried it using a recipe that contains: inherit pypi…
Mathias
  • 61
  • 1
  • 3
6
votes
1 answer

How to force package to be recompiled on Yocto

TL;DR: Is there a way to force to recompile a package every time an image is generated? I have a bbappend with a do_deploy_append appending to a file and if I modify this step, the recipe will not be recompiled when generating an image using it.…
David Bensoussan
  • 2,887
  • 2
  • 38
  • 55
6
votes
1 answer

Yocto Bitbake Recipe How To Override do_install() and do_install_append()

I am trying to add the open source "procps" package to my working Yocto build. This package installs a bunch of binaries that replace those provided by BusyBox. I only want one of these binaries - pgrep. In my layer I created a bbappend file named…
PhilBot
  • 748
  • 18
  • 85
  • 173
6
votes
2 answers

requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC

I'm building a gst-plugin through yocto 1.6. I've linaro 4.9 cross toolchain of 32 and 64-bit. When I'm building the plugin using 64-bit toolchain, it was success ( I got the plugin .so file) whereas if I build the same source using 32-bit toolchain…
Moorthy B S
  • 81
  • 1
  • 6
6
votes
2 answers

Yocto glibc-locale do_package installed but not shipped in any package

I am trying to build a custom image on yocto. When I create an image, I get an error in glibc-locale (do_package step). The error is ERROR: glibc-locale-2.24-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in…
test gprs
  • 169
  • 3
  • 16
6
votes
2 answers

How to setup syslog in yocto?

I like to configure syslog. It seems that are more than one way to set up syslog. I am asking for the common way/steps to do that. I have several use cases. To simplify I like to ask how to configure syslog to write an infinity long log file in…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
6
votes
5 answers

Post-install script on Yocto-built linux

I need to run a script on a target OS built by Yocto. This script needs to be ran as part of the install and thus must be ran only once (either after the entire OS install or on the first boot). It cannot be ran on the host system, as it depends on…
Igor
  • 329
  • 1
  • 3
  • 10
6
votes
2 answers

Yocto: bbappend file which remove System V init script

I'm currently installing dnsmasq with Yocto, but I would like to remove the automatic start. So I create a .bbappend file and I tried something like : pkg_postinst_${PN} () { update-rc.d dnsmasq -f remove } But it did not work, I don't know how…
PierreOlivier
  • 1,387
  • 9
  • 23
6
votes
1 answer

Licenses for packagegroups and images on Yocto

I am creating an image containing standard recipes and my owns. I wanted to list the licenses I use in all of the included packages and later check if I can use them for commercial application for example. I had the bad surprise packagegroups have a…
David Bensoussan
  • 2,887
  • 2
  • 38
  • 55
6
votes
1 answer

Can I build a Docker image to "cache" a yocto/bitbake build?

I'm building a Yocto image for a project but it's a long process. On my powerful dev machine it takes around 3 hours and can consume up to 100 GB of space. The thing is that the final image is not "necessarily" the end goal; it's my application that…
big_gie
  • 2,829
  • 3
  • 31
  • 45
6
votes
3 answers

Yocto Bitbake - Git Fetch always stuck

I am using YOCTO to build an image but the Bitbake process always get stuck at any task including fetch from git Ex: Currently 2 running tasks (1373 of 2477): 0: rpi-mkimage-native-git-r0 do_fetch (pid 2372) 1:…
iwahdan
  • 429
  • 1
  • 5
  • 14