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
yocto
3,818
questions
33
votes
3
answers
22k
views
How to find which Yocto Project recipe populates a particular file on an image root filesystem
I work with the Yocto Project quite a bit and a common challenge is determining why (or from what recipe) a file has been included on the rootfs. This is something that can hopefully be derived from ...
33
votes
6
answers
44k
views
Bitbake list of targets
thx for reading,
I am working in a project where we create a secimage (linux yocto image).
I am not familiar with all the tools used there and neither am I familiar with the technical terms to use. ...
28
votes
3
answers
39k
views
Quick rebuild of device tree only with Yocto/bitbake?
So, each time I modify the device tree I typically change the dts in a custom recipe and rebuild the image. The rebuild takes a long time since it rebuilds the entire kernel, and then the image needs ...
25
votes
5
answers
44k
views
Is there a way to check the exact list of packages that will be installed in the image in Yocto?
In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an ...
25
votes
3
answers
56k
views
Yocto - Files/directories were installed but not shipped in any package
I'm using Yocto to install clBLAS library (https://github.com/clMathLibraries/clBLAS) using the recipe https://github.com/CogentEmbedded/meta-opencl/blob/master/meta-ocl-common/recipes-graphics/clblas/...
24
votes
2
answers
17k
views
Where are bitbake python functions documented
I'm trying to find documentation for "bb.utils.contains".
I found the code in pokey/bitbake/lib/utils.py, but that code is poorly documented.
For instance, it takes a parameter named "d". What is "d"?...
23
votes
4
answers
45k
views
How do I write a yocto/bitbake recipe to copy a directory to the target root file system
I have a directory of 'binary' (i.e. not to be compiled) files and just want them to be installed onto my target root file system.
I have looked at several articles, none of which seem to work for ...
22
votes
10
answers
21k
views
Bitbake: "The metadata is not deterministic and this needs to be fixed"
I'm building a Bitbake recipe and getting the following error message:
ERROR: When reparsing virtual:native:/path/to/poky/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb....
22
votes
2
answers
12k
views
How do I generate an ordered lists of the executed tasks when bitbaking a package?
I know that I can list the possible tasks with:
bitbake package -c listtasks
But this list also includes tasks that need to be called explicitly (like do_devshell or do_clean), and I wish to watch ...
22
votes
3
answers
58k
views
bitbake SRC_URI file://
If I have a tarball, helloworld.tar.gz in a local directory, say /home/user/tarballs/, how can I make my bitbake recipe fetch from that directory?
my helloworld.bb is
SECTION = "examples"
LICENSE = ...
22
votes
1
answer
11k
views
What is the difference between do_compile[noexec] and empty function in bitbake recipe?
If I want to disable a particular build step, I can use either of these:
do_configure[noexec] = "1"
OR
do_configure() {
}
What is the difference between these alternatives? I have heard there can ...
21
votes
2
answers
44k
views
Enable systemd services using yocto
Hi this is my layer tree
├── conf
│ └── layer.conf
├── COPYING.MIT
├── README
└── recipes-hello
├── helloworld
│ ├── helloworld-0.1
│ │ ├── helloworld.c
│ │ ├── helloworld....
20
votes
5
answers
44k
views
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 safe to use rm -rf or is ...
20
votes
2
answers
34k
views
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 ...
20
votes
11
answers
69k
views
Unable to start bitbake server
I am trying to learn yocto by following the video tutorials on their main website. I installed the poky-rocko-18.0.0 and after setting up the build environment I tried to build the linux image using ...
20
votes
2
answers
58k
views
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 ...
20
votes
2
answers
38k
views
Docker image format
I would like to build a Docker image without docker itself. I have looked at [Packer](http://www.packer.io/docs/builders/docker.html, but it requires that Docker be installed on the builder host.
I ...
20
votes
6
answers
38k
views
modifying kernel config in Yocto
I am trying to modify the kernel config without luck.
There is a BSP in meta-xxx-yyy/ with recipes-kernel/linux/linux_git.bb.
I try to override the kernel config in my layer named meta-xxx-mylayer ...
19
votes
1
answer
27k
views
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 ...
18
votes
6
answers
58k
views
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 ...
18
votes
2
answers
28k
views
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 have written. I want to build by Yocto an image including the program I have written. I like to know how to setup the fetcher ...
18
votes
1
answer
16k
views
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 :
./...
18
votes
2
answers
29k
views
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 ...
17
votes
1
answer
26k
views
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: ...
16
votes
3
answers
27k
views
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 ...
16
votes
3
answers
55k
views
How patching works in yocto
I am using BBB to understand the yocto-project. I am not sure how patching works. This is my project directory
├── meta-testlayer
├── poky
meta-test layer contains a "helloworld" example
├──...
16
votes
6
answers
17k
views
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 ...
16
votes
2
answers
20k
views
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.
16
votes
1
answer
32k
views
Yocto using .bbappend file to override writing of default init scripts for initramfs
I am trying to write a .bbappend file that will append to the initramfs-live-boot_1.0.bb which has a statement inside the do_install() that writes the contents of init-live.sh, a shell script that ...
16
votes
2
answers
13k
views
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 ...
15
votes
2
answers
16k
views
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 ...
15
votes
3
answers
39k
views
How to change the config of u-boot in Yocto
Building linux for an iMX6 dev board using the Yocto Project, and I want to change the .config used to build u-boot-imx (u-boot for the iMX dev board) - e.g. change the auto boot delay to 1 second as ...
14
votes
5
answers
31k
views
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.
14
votes
7
answers
30k
views
yocto: rebuild part of project
I have a project which is using yocto for building libraries including gstreamer. I found out that I need to patch some gstreamer element thus creating new bitbake recipe with patch..
I usually have ...
14
votes
5
answers
50k
views
Yocto: : does bitbake cleanall ,cleans dependencies as well
bitbake cleanall
Removes all output files, shared state cache, and downloaded source files for a target
It is not clear or documented if it cleans all build time dependencies as well
14
votes
1
answer
15k
views
Request for clarification on Yocto inheritance
I've recently made a foray into building Linux-based embedded systems, a far cry from my usual embedded stuff where I have total control over everything.
As part of that, I'm looking into the Yocto/...
14
votes
2
answers
10k
views
Yocto - Create and populate a separate /home partition
I'm creating quite a simple Yocto image based on x86.
I want the / file system to be readonly, so I set the
IMAGE_FEATURES_append = " read-only-rootfs "
in a custom copy of the original core-image-...
14
votes
1
answer
23k
views
What is the job for oe_runmake in yocto?
I want to know about the oe_runmake in yocto.
13
votes
3
answers
22k
views
Using populate_sdk to include kernel headers
How do I include the linux kernel headers as part of the SDK package in Yocto?
I'm using Yocto 1.8 (fido) in an embedded project and want to do out-of-tree kernel module development. Currently, I can ...
13
votes
3
answers
41k
views
How to determine dependencies of recipes in yocto?
I want to add the gedit package to the the image. But I am not able to find the dependencies of the gedit package. How to find the dependencies (DEPENDS) in yocto?
13
votes
3
answers
36k
views
WORKDIR in a yocto recipe
When I open bitbake files (ending with .bb extension), most of the files are using the WORKDIR variable as shown below.
S = "${WORKDIR}/git"
can you please tell me where this WORKDIR is defined.
13
votes
2
answers
6k
views
Yocto/bitbake/OpenEmbedded: Best place for build/conf/local.conf's content?
I'm trying out yocto (2.0, jethro) and I want to build an image starting from core-image-minimal. This works fine.
Every website out there mention modifying the file build/config/local.conf with (...
13
votes
4
answers
45k
views
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 ...
13
votes
1
answer
9k
views
Difference between Yocto Project and OpenEmbedded?
On Yocto Project FAQ:
The Yocto Project and OpenEmbedded share a core collection of metadata
called openembedded-core. However, the two organizations remain
separate, each with its own focus. ...
13
votes
4
answers
7k
views
Yocto version control
We are struggling for version control of our application ,RFS, Uboot and kernel
We have a hello world program. Every time we are changing (patching) new functionality to the program, we have to keep ...
13
votes
1
answer
11k
views
What is difference between .bb ( recipe ) and .bbclass ( class ) in yocto
I just started understanding Yocto. I have not find much information about classes ( .bbclass ) files . I know .bb file is a recipe which contains the instruction to build a package. When do we have ...
12
votes
5
answers
18k
views
Why does BitBake error if it can't find www.example.com?
BitBake fails for me because it can't find https://www.example.com.
My computer is an x86-64 running native Xubuntu 18.04. Network connection is via DSL. I'm using the latest versions of the ...
12
votes
5
answers
26k
views
How to disable serial console(non-kernel) in u-boot
I am building a Yocto image for Intel Edison.
One of the image's components is u-boot with an Edison-specific patch. By default, Edison's UART port is used for u-boot console. I want to disable this ...
12
votes
1
answer
8k
views
Difference between class-target and class-native in yocto recipe
I am trying to understand Yocto recipes.
Following is one of the line from a Yocto Recipe:
DEPENDS_append_class-target = " grub-efi-native"
What I understood is this recipe depends on ...
12
votes
3
answers
24k
views
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 = &...