Questions tagged [yocto]

Framework for building installable images

The Yocto framework can be used to build installable images for embedded Linux applications, containing the root file system, kernel, device tree and bootloader.

It starts by building the SDK used to generate all components. This way the image becomes independent from the build host and stays reproducable and consistent over time.

Compared to buildroot, it is more complex, but offers a more modular approach, being able to generate update packages instead of just building a monolithic image. It is also designed to easily derive the configuration for one board from a similar board.

244 questions
16
votes
2 answers

${D} variable in install command

I have seen the following install command used in multiple yocto recipes install -d ${D}${libdir} I am aware of the install command and its purpose, however I am unable to understand the purpose of ${D} variable as it is often nowhere defined in…
shery6405
  • 163
  • 1
  • 1
  • 5
15
votes
2 answers

How do I tell which device tree blob (dtb file) I'm using?

I'm working with TS-4900, an embedded 'Computer on Module' plugged into a baseboard, running Yocto Linux. It uses U-Boot to start, and supposedly basing on the model of the baseboard it chooses the right dtb file to start, and possibly if it fails…
SF.
  • 2,891
  • 2
  • 25
  • 26
10
votes
1 answer

Can not execute "Hello, World!" C program with user other than 'root'

I have written a "Hello, World!" C file myCFile.c on an x86 embedded board on the Debian OS. #include int main() { printf("hello\n") } I compile the program: gcc myCFile.c However, tester@localhost:~/test$ ./a.out -bash: ./a.out:…
Pravin.2087
  • 143
  • 1
  • 7
8
votes
5 answers

Open: cryptsetup out of memory ("Not enough available memory to open a keyslot.")

I am working on my yocto distribution including cryptsetup in the 2.3.2 version I am running such distribution on a board with 1 GB RAM and I am incurring in an "out of memory" error trying to open an encrypted partition that I am not able to…
EagleOne
  • 393
  • 1
  • 3
  • 12
8
votes
2 answers

/etc/sudoers vs /etc/sudoers.d/ file for enabling sudo for a user

I am using Yocto to build image for a board. I have disable the root user. I am adding a new user, lets say adminuser1. As it looks to me there are two options to make adminuser1 as admin. Add adminuser1 to sudoers in /etc/sudoers Create a new file…
sob
  • 342
  • 1
  • 4
  • 14
7
votes
3 answers

How do I generate the /sys/kernel/debug/tracing folder in kernel with yocto project?

I was tying to use perf on Renesas target and I configured the yocto "local.conf" as showed in this link. #avoid stripping binaries INHIBIT_PACKAGE_STRIP = "1" #add the debug information EXTRA_IMAGE_FEATURES= "debug-tweaks tools-debug dbg-pkgs…
gemad
  • 83
  • 1
  • 5
6
votes
4 answers

systemd-journald persistent logs do not work with bind mount /var/log

I am using Yocto to produce a custom image for a small embedded Linux system with SystemD Version 241. The root file system is Read-Only. I am using bind mounts and overlayfs to make the /var/log/journal directory exist on a separate Read/Write…
PhilBot
  • 69
  • 8
  • 22
6
votes
2 answers

Meaning of ?= and ??= in bitbake/yocto

What does the different assignment types mean in bitbake recipe scripts, such as: BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" MACHINE ??= "qemux86" What of above is analogous to Ruby's…
Frankie_Fomalhaut
  • 331
  • 1
  • 2
  • 7
5
votes
3 answers

Why isn't my systemd service automatically starting?

Here is my boondocks-agent.service file. I have installed it in /lib/systemd/system: [Unit] Description=Boondocks agent Requires=\ balena.service After=\ balena.service…
RQDQ
  • 153
  • 1
  • 1
  • 6
5
votes
1 answer

Why non-ASCII characters are displayed using a question mark?

I'm working on an embedded linux distribution based on Yocto Morty. I have used an Ubuntu distribution to create the following two files: fòò.dàt bàr.dàt I have stored the files into a pendrive and connected the pendrive to my embedded system. I…
Grynium
  • 123
  • 2
  • 6
5
votes
1 answer

Write udev rule from bitbake recipe

I can compile and install stuff on yocto by creating a bitbake recipe. I would like to run my code when a specific device is connected. Is there an elegant way to add a udev rule from a bitbake recipe? Doing something like echo "" >>…
JonasVautherin
  • 395
  • 1
  • 9
  • 19
5
votes
0 answers

Failed to load libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory

Created my own Yocto Linux distribution for Raspberry Pi 2 (See Embarcados Tutorial HERE), added meta-browser + chromium recipe. The image built works great and I can run Chromium BUT ... ... when I do, I am getting the following Error messages,…
zabumba
  • 904
  • 10
  • 28
  • 50
5
votes
1 answer

Make an SD card to boot the distribution image created with Yocto

I have managed to build images for my own compiled Linux kernel source code using Yocto. Yocto has produced image files according to: http://www.crashcourse.ca/wiki/index.php/Yocto_Project_Quick_Start Example from above link: $ ls -F …
JohnyTex
  • 205
  • 2
  • 10
4
votes
0 answers

Ownership of a disk image created with wic

I’m facing an issue when trying to write an image on a SD card. The image was generated by the Wic tool : wic create sdimage-8G.wks -e gnuradio-dev-image -o images/$MACHINE where gnuradio-dev-image is the name of the image to use the artifacts…
William
  • 41
  • 3
4
votes
0 answers

Show splash screen instantly after system is powered

I would like to execute a command instantly after system is powered. My project is realized in an embedded Linux environment (Yocto-based, with U-boot bootloader), therefore I would like to show a splash screen -almost instantly after powered- on a…
mozcelikors
  • 291
  • 5
  • 13
1
2 3
16 17