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
8
votes
3 answers

Difference between SRC_URI and FILESEXTRAPATHS_prepend in bitbake

Why do we need to give path of files in SRC_URI even though we are including the files path in FILESEXTRAPATHS_prepend variable? For example: SUMMARY = "Simple Hello application" LICENSE = "MIT" LIC_FILES_CHKSUM =…
vivek
  • 467
  • 2
  • 6
  • 18
8
votes
1 answer

What is linuxrc purpose and is it needed in the rootfs?

Question My question is, What does linuxrc do? Do i need it in my rootfs? Does it have anything to do with using systemd vs initd? Background I am currently attempting to build a rootfs for an ARM 7 processor using Yocto. The only modification I…
Liam Kelly
  • 3,524
  • 1
  • 17
  • 41
8
votes
2 answers

Why do I get /etc/cups conflicts between attempted installs in Yocto?

I have a recipe to compile a printer driver and have a few simple lines to run in do_install. do_install() { install -d ${D}${libdir}/cups/filter install -m 755 ${B}/src/rastertoprinter ${D}${libdir}/cups/filter/ install -d…
egfconnor
  • 2,637
  • 1
  • 26
  • 44
8
votes
1 answer

Python 3 in Yocto very slow on Raspberry Pi

We've used Python 2 for an embedded application that we're currently prototyping on Raspberry Pi. It's been a bit slow, but acceptable. Now we've ported the application to Python 3. But for some reason the application runs about 4 times slower than…
Jonatan
  • 3,752
  • 4
  • 36
  • 47
8
votes
3 answers

How to make /var/log persistent in Yocto Fido (poky)

I'm trying to get /var/log to be persistent in my fido build. The default setting on poky is, that there is a symlink in /var which points log -> volatile/log. volatile is a mounted on a tmpfs. So far i figured out that the symlink should be created…
Fl0v0
  • 900
  • 11
  • 27
8
votes
6 answers

How do I get Qt SDK configured properly with Yocto project?

I'm new to Yocto Project. The initial idea is to create a custom image based on core-image-full-cmdline (this is with no windowing system) and generate a Qt5 SDK against this image. So my target to be able to run Qt applications needs to have…
anat0lius
  • 2,145
  • 6
  • 33
  • 60
8
votes
1 answer

How to pass cmake runtime parameter in yocto

I am working on yocto, I have a component which I am compiling manually using cmake command. I need to select some options using cmake while compiling. cmake -Dex=on ..., which enables "ex" Now I am trying to do the same in the yocto, for…
anikhan
  • 1,147
  • 3
  • 18
  • 44
8
votes
1 answer

Yocto: Adding kernel module recipe to image, but it doesn't load on boot

For testing purposes, I am using the example recipe provided by yocto to demonstrate how to build kernel modules. SUMMARY = "Example of how to build an external Linux kernel module" LICENSE = "GPLv2" LIC_FILES_CHKSUM =…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
8
votes
2 answers

"sh: : unknown operand" in Yocto

The following works in Ubuntu but not Yocto (Poky). root@system:~/# x='abc' root@system:~/# y='' root@system:~/# [[ $(echo $x) != '' ]] && echo true true root@system:~/# [[ $(echo $y) != '' ]] && echo true sh: : unknown operand In Ubuntu the last…
geotheory
  • 22,624
  • 29
  • 119
  • 196
8
votes
2 answers

What is best practice to do small changes in source code in Yocto

Is it good practice to edit source code in poky/build/tmp/work directory ? because if we accidentally cleansstate ,the changes will be erased. Alternatively we can edit source code in "files" directory along with recipe file but since mostly code…
waqas
  • 81
  • 1
  • 1
  • 5
8
votes
4 answers

Bitbake: How to list all recipe and append files used in an image?

I'm using OpenEmbedded-Core and have created a custom layer with priority 6. Months of development have gone by, and now I want to increase my layer's priority to 8 because an append file from another layer with priority 7 is interfering with an…
user5071535
  • 1,312
  • 8
  • 25
  • 42
8
votes
1 answer

How do you use a specific package version in a Yocto image recipe?

My current project is based on Yocto Daisy, with custom layer declarations in one git repo and application code contained in another git repo. The application code lifecycle is somewhat separate from the custom layer lifecycle, so I'd like to be…
Nick Stevens
  • 386
  • 1
  • 3
  • 7
7
votes
3 answers

How to deploy files to /boot partition with Yocto

I'm trying to deploy some binary files to /boot in a Yocto image for RPi CM3 but it deploys them to the wrong location. do_install() { install -d ${D}/boot/overlays install -m 0664 ${WORKDIR}/*.dtb ${D}/boot/overlays/ install -m 0664…
7
votes
1 answer

PHP odbc driver as shared extension

I am using php with version 5.6.31 in embedded project with yocto-linux as operating system. What I wants to do is have odbc driver as shared library instead of hard-link. Reason for this is I have 2 different use-cases with use PHP with one…
7
votes
1 answer

How to render to a second screen without being the DRM master?

I have an embedded process that renders to a screen directly using DRM & KMS APIs. It's running on a minimal Yocto distribution (no desktop or Wayland). I would like to render to a second screen that is attached to the same GPU from another process.…
Fritz
  • 141
  • 8