Questions tagged [yocto]
Framework for building installable images
255
questions
0
votes
0
answers
22
views
Yocto Project for a New Board
I am trying to hunt down specifics on Yocto in regards to how to set up the filesystem before the build of poky.
I have a new board that I wanted to try Yocto on.
I have this FS so far after source oe-...
1
vote
0
answers
66
views
Automatic Partition Resizing during Boot in Linux
I have a Linux system with a storage device containing multiple partitions. Specifically, the device (/dev/sdX) has three partitions (sda1, sda2, and sda3). The third partition (sda3) is intended for ...
0
votes
1
answer
28
views
How to set static IP for 2 network interfaces in systemd linux
I have a Yocto distro that uses systemd (like ArchLinux) to allow static IP configuration via /etc/systemd/network/20-wired.network file.
I need to set a static IP for 2 network interfaces (eth0 & ...
0
votes
0
answers
38
views
How do I remove ntpd from the final image with my own recipe?
I want to get rid of all ntpd related stuff from my yocto linux image.
Currently I include the meta-openembedded layer, which is responsible that the NTP service ntpd is installed on my final image.
...
0
votes
0
answers
34
views
Broadcom USB Wireless Driver Installation
I try to use a USB Wireless Stick. The hardware is well recognized with lsusb :
Bus 001 Device 003: ID 0a5c:bd1e Broadcom Corp. BCM43143 802.11bgn (1x1) Wireless Adapter
I tried to install the ...
0
votes
1
answer
32
views
Yocto - rootfs size is smaller on target than in workdir
I use Yocto to build an image for my development board and I noticed that the same command du -sh showed smaller value when I checked it on the running system than in the yocto work directory. The ...
0
votes
0
answers
44
views
The OOM killer kill process when there is enough memory available in linux
DotNET process got killed by OOM-Killer when ~150MB memory was available in system, and OOM min criteria is set 20MB.
Note: we are using Linux version 5.4.3-yocto-standard+g852f89dfab60
TCPBufferRcv....
0
votes
0
answers
12
views
why doesn't systemd start automatically on boot from beagleboard
I have built beagleboard images (core-image-minimal, core-image-base and core-image-sata) with yocto poke, after linux kernel (v5.19) starts, I don't see systemd starts unlike debian or angstrom ...
0
votes
0
answers
51
views
Podman Integration
As I am trying to integrate podman in yocto build system as already done in docker. For docker i haven't faced any issues just followed these steps: https://elinux.org/images/b/b4/03_integrating-...
0
votes
1
answer
151
views
Stream MP4 file over usb
I have an embedded system running a custom distro built using Yocto. Later down the line, I will have a usb camera plugged into the system, but for not I would like to use a .mp4 file as a "dummy&...
1
vote
0
answers
32
views
avahi-daemon runs with wrong hostname
I have a problem on one device where the avahi-daemon is running with the wrong hostname and it is messing up my system.
The hostname is ABC-100001 but when I check the process list it shows that
...
1
vote
0
answers
59
views
How can daemons source environment variables on a machine without persistent storage
I'm working on a Yocto Project build of an AARCH64 system, where I need the monit daemon (or at least a process started by monit) to access an environment variable I'm setting.
It's my understanding ...
1
vote
0
answers
84
views
Why are serial ports losing bytes after Linux upgrade?
I have an embedded Linux system built using Yocto. Recently I upgraded from Dunfell (kernel 5.4) to Kirkstone (kernel 5.15) and I started having problems with the serial port. Large chunks of bytes ...
1
vote
0
answers
103
views
Yocto Linux, root logging error : libcrypt does not support MD5 or SHA512
I'm building Linux image using yocto 4.2. I've already set up the root password on the local.conf file with hash generated my MD5 using openssl openssl passwd -1 root
INHERIT += "extrausers"
...
2
votes
1
answer
599
views
UFW Couldn't determine iptables version
I am building a custom embedded Linux platform based on the NXP i.MX8 with Yocto. I want to use UFW to setup the firewall. When I boot the system and try to use UFW it returns an error
Couldn't ...
1
vote
1
answer
153
views
"-dev package mylib-dev contains non-symlink" error when building lib using Yocto bitbake
I am trying to build Linux distribution using Yocto project, the target board is STM32MP157A-DK1 board ,I am using distribution package and meta data delivered by STMicroelectronics for OpenSTLinux.
I ...
0
votes
0
answers
218
views
How to modify timesyncd.conf in a yocto recipe
I have a yocto build and now I am trying to write a recipe in which I can adjust the parameters in the configuration file under /etc/systemd/timesyncd.conf.
Responsible for the file is probably the ...
0
votes
0
answers
97
views
openBMC AST2500-EVB auto reboot
I have built openBMC for AST2500-EVB and when I run the .mtd image by qemu, the u-boot runs successfully but during the linux kernel boot, it stops automatically and u-boot runs again. This loops ...
0
votes
1
answer
108
views
what are the potential benefits of using YOCTO for generating custom distro and rootfs over using the ones supplied by vendor [closed]
I read about comparisons between buildroot and YOCTO project (google) regarding building rootfs and wanted to ask a more general question:
What are the potential benefits of building my own rootfs ...
0
votes
1
answer
146
views
Why is the time to complete cmp command varying so wildly?
I am using the cmp command to compare a 1GB files stored on an SD card to a reference 1GB file stored in main memory. The completion times for a single cmp command vary significantly, ranging from 17 ...
2
votes
1
answer
24
views
I cannot boot bananapro board possibly because of SD card layout
I managed to compile a linux distribution thanks to yocto. I have 4 different files which are :
bootloader u-boot-sunxi-with-spl.bin-bananapi-2020.01-r0
kernel uImage--5.4.111-r0-bananapi-...
1
vote
1
answer
412
views
How do I edit '/etc/ld.so.conf' in a yocto recipe?
As suggested by Zac Anger, i copy this question over here:
I have a yocto recipe in which I copy/install some stuff to an image. After that, I want to add a line to the /etc/ld.so.conf file like this, ...
0
votes
0
answers
80
views
Building image for QSPI flash memory
I am working with development board which runs Linux system built in Yocto. I boot the board from the SD card. My boot partition has three files: BOOT.bin (bootstrap), u-boot.bin and u-boot.env. I ...
0
votes
1
answer
131
views
IIO Unable to refill buffer: Connection timed out (110) error when running iio_readdev
I have made a custom Linux image with Yocto for use with CN0540 and DE10-Nano. The manufacturer of the CN0540 (Analog Devices) provides an evaluation image for the board, which works without issue, ...
0
votes
0
answers
71
views
How to install the wireless LAN card driver on embedded Linux
I wanted to use AP mode with embedded Linux and wireless LAN card
I connected the wireless LAN card to the embedded board with USB, but the commands like ifconfig and iwconfig didn't recognize it
...
0
votes
1
answer
162
views
Get bitbake to use a different locale
I'm running through the Yocto Quick Build tutorial, and I've got to the command
bitbake core-image-sato
This is producing the error
Your system need to support the en_US.UTF-8 locale.
Can I change ...
0
votes
0
answers
368
views
Creating a separate image for boot partition in Yocto
I have a Yocto Linux image with two partitions: boot and rootfs.
I would like to create two separate images: one with rootfs and the second one with bootstrap and u-boot files. I have two questions ...
0
votes
0
answers
389
views
export $(dbus-launch) does not work via application or script
I'm working on an embedded linux board running yocto custom distribution (https://github.com/phytec/meta-ampliphy) based on poky. I have 2 C apps running simultaneously and intercom'ing via dbus. ...
1
vote
2
answers
478
views
Why all output of my C program directed to stdout is sent to journald?
I work on yocto based linux distribution. I'm no expert on systemd and neither on systemd-journald.
My C program my_c_program is started at boot by the script my_script.sh. Below there is the file ...
3
votes
0
answers
319
views
USB audio driver not getting built
I am having a problem with driver support for a USB sound card on an embedded system based on Raspberry Pi and Yocto Kirkstone.
The sound card is enumerated correctly by the USB subsystem, but doesn't ...
2
votes
0
answers
262
views
How do I symbolically link /etc/resolv.conf to /var/run/systemd/resolve/stub-resolv.conf in Yocto
I'm trying to setup a Yocto build using NetworkManager v1.22.16 and systemd 244.5. systemd-resolved - /etc/resolv.conf recommends I setup /etc/resolv.conf as a symbolic link to /var/run/systemd/...
1
vote
0
answers
1k
views
Compiling CFLAGS in a Yocto Recipe File
Issue: I have 2 macros I added in a c file and I have 2 machines. Using Yocto recipe I wish to build the code with specific macros for specific machines.
Breaking down the issue in sub parts -
hello.c
...
2
votes
1
answer
1k
views
Yocto QEMU arm image
I've built a yocto image for the raspberry pi model 3 and I'd like to run it in Qemu.
The build process for the core-image-minimal runs fine and if I build it for the raspberry3-64 machine instead of ...
0
votes
0
answers
693
views
Add systemd-analyze to yocto build
I'm building a yocto image for a raspberry pi model 3 and in order to analyze and later optimize the boot process I'd like to add the systemd-analyze package.
So I added
IMAGE_INSTALL_append = " ...
0
votes
0
answers
398
views
yocto multilib support for building arm 32-bit libraries
I'm trying to build image to support both 32-bit and 64-bit user application on 64-bit aarch64 target. I have modified the conf/local.conf as below to build 32-bit libraries. Bitbake build the lib32 ...
0
votes
0
answers
98
views
Need to redirect serial port snooping to network UDP socket
Good morning everyone,
I did a little bit of search, but could not really find an answer that would directly apply
I have an embedded device which is sending and receiving data over an RS485 ...
0
votes
1
answer
200
views
System Service to Monitor a folder
I am developing an embedded Linux image. I currently have a udev rule to monitor for USB attach/detach events. If a USB is attached a script is run to search the device for an upgrade.sh script.
I now ...
0
votes
0
answers
19
views
ping doesn't outogoing from embedded device
I'm observing a strange behaviour on my embedded device (OS YOCTO) using WiFi meawhile the wired ethernet interface is operating but with cable disconnected and without IP.
I'm working with DHCP
Test:
...
0
votes
1
answer
551
views
why does application not start with systemd script
I would like to executea script as root whenever I boot the system.
I wrote a shell script:
# cat /home/root/demo_wrap.sh
#!/bin/bash
`/home/root/demo_start.sh` > /dev/null &
that works great ...
0
votes
0
answers
101
views
Removing kernel.img from my grub in yocto
The boot partition contains a kernel image that is put there by bitbake machinery.
and eventually this is installed to my rootfs (still could'nt identify which recipe is installing it ).
I would like ...
1
vote
1
answer
169
views
Yocto/poky on QEMU: Incoming SSH works but no internet
I am trying to debug a Linux system built with Yocto using QEMU. I run both Yocto and QEMU under Ubuntu 22.04 that I run using WSL. The image I am using is core-image-full-cmdline.
For some reason, ...
0
votes
0
answers
194
views
After compiling bash it doesn't use ("/etc/bash.bashrc")
In a yocto image I'm not getting /etc/bash.bashrc, even if I create it manually, bash isn't using it. How can I configure bash to use SYS_BASHRC as well.
In short, how can I compile bash to use system ...
0
votes
1
answer
675
views
Yocto - check if a device tree is enabled in the image
I am currently generating a specialized Yocto image for a Beaglebone device. In the resulting /tmp/deploy/images folder I can see the resulting image, plus alot of device tree files .dtb for different ...
0
votes
1
answer
49
views
Replicating Raspberry Pi OS with Yocto [closed]
Raspberry Pi OS makes it very easy to experiment with Raspberry Pi and Linux.
Will to have a system with your own customizations built for you automatically, however, leads you to using Yocto.
Is ...
1
vote
0
answers
111
views
Use device tree or Kconfig to load a driver
I would like to add and enable a new device in an embedded Linux image.
Is it enough to just specify the information in a device tree file and then the driver for the device will get loaded based on ...
0
votes
0
answers
75
views
Yocto - configuration for different hardware
I am new to Yocto and only really getting into it.
Let's say i develop a customized kernel image with a specific BSP for a product with an ARM device with various connected peripherals, and it all ...
1
vote
1
answer
153
views
Reusing source files between machines in bitbake
My goal is to share source files between some machines, but not all. In this example, machine_a and machine_b have source directories that are exact copies of each other an I'd like to combine them ...
0
votes
1
answer
842
views
Why does the redis-server take too long to load in memory the database at boot?
My Linux distribution uses the redis database.
At boot the redis-server needs about 80 seconds to load the dataset. The following is a log that shows what I have written:
redis-server[249]: 249:M 17 ...
1
vote
0
answers
173
views
Yocto install python application using bdist_wheel
I am trying to install my custom python3-based application on my raspberry pi CM4 board based on Yocto Kirkstone. As mentioned in the migration notes of kirkstone, distutils method for installing ...
1
vote
1
answer
664
views
What is the recipe which adds /etc/hosts file to the yocto-base Linux distribution?
I'm developing a Yocto distribution and I need to substitute the default file /etc/hosts by a new hosts file where I have to insert some DNS settings.
The default file which I have found in the image ...