4,619 questions
1
vote
0
answers
62
views
U-boot recipe failing to apply patch
I am trying to make GPIOs start up low based on a patch to my yocto u-boot recipe. I apply a patch to my u-boot recipe using devtool. The patch adds new inputs to the board_init file in u-boot (which ...
1
vote
1
answer
71
views
GCC 14.2.0 Coverage (.gcda files) Not Generated at Runtime After Upgrade from GCC 8.5.0 + glibc 2.23
I have created a cflow build and when loading the image in the system, I could see only fewer number of gcda files.
After upgrading from GCC 8.5.0 to GCC 14.2.0, runtime code coverage (.gcda file ...
1
vote
0
answers
112
views
XNNPACK on raspberry pi5
How can I enable XNNPACK on a Raspberry Pi 5 for an INT8 TensorFlow Lite model?
I have a quantized INT8 TensorFlow Lite model that I want to run efficiently on my Raspberry Pi 5.
I’ve read that ...
0
votes
0
answers
168
views
Is I2C device interface thread-safe on Linux?
I have a single board computer with a I2C GPIO expander device, listed as /dev/i2c-0. In my multithreaded program I open() this character device and read/write to it on separate threads using ...
0
votes
1
answer
194
views
Embedded Linux Uart to be used as RS485
I have been working on multiple projects of Embedded Linux from last 5 years but there is a small problem when I use UART.
I am using STM32MP13F with MYIR board. The UART is connected to half duplex ...
1
vote
1
answer
93
views
Forced to deal with underscores in name
I'm trying to create a Bitbake recipe which imports the Clickhouse python library. I'm following the example set in this post. I have a unique problem in that the name of the recipe is very sensitive ...
1
vote
0
answers
125
views
Stable path to i2c device
I have a device driver that provides quite simple functionality that does not belong to any of the classes. The driver exposes one attribute through sysfs.
Currently I can get an access to my device ...
-2
votes
1
answer
215
views
Lack of alias in kernel module .ko file built with Yocto [closed]
I am trying to build a driver for my IP in an FPGA. I have:
static const struct of_device_id myip_of_match[] = {
{ .compatible = "xlnx,myip-controller-1.022", },
{},
};
...
1
vote
1
answer
71
views
Why must sched_class structures be tightly aligned in memory in the Linux kernel?
Each scheduling policy (like SCHED_NORMAL, SCHED_FIFO etc..) is implemented as a struct sched_class, and instances like fair_sched_class, rt_sched_class, dl_sched_class, etc., are defined using the ...
0
votes
0
answers
80
views
Add a /etc/sysctl.d/50-foo.conf to a kernel image build
I'm building a kernel image, with my own kernel module being added to the build, using my own Makefile and Kbuild scripts. The final complete kernel image gets flashed to a ROM. I have a few kernel ...
0
votes
0
answers
136
views
How to configure a GPIO button with interrupt in the Device Tree on BeagleBone Black?
I'm developing a Linux kernel driver for the BeagleBone Black and want to use two GPIOs available on the P9 expansion header:
P9.15 → gpio1_16 → connected to an LED
P9.23 → gpio1_17 → connected to a ...
0
votes
0
answers
75
views
does ioremap work on ARM? Unhandled fault: imprecise external abort (0x1406)
When testing linux kernel 5.10 on Zynq-7010 FPGA with multiple sequential interrupts I get Unhandled fault: imprecise external abort (0x1406) from the interrupt handler an example of the failure (from ...
0
votes
0
answers
69
views
Xilinx Zynq 7000 pin number under Linux
If I'm working for example with the Xilinx ZU2CG SoC, and a pin named as an "AC3" (xczu2cgsfvc784 pinout) is interesting for me, where can I find what is the gpio number under Linux for that ...
0
votes
0
answers
72
views
crashkernel doesn't load for raspberry pi 3B arm64 linux kernel
I have built 6.6.x linux kernel : https://github.com/raspberrypi/linux/tree/rpi-6.6.y for RPi3B+ (arm64 target). The rootfs came from buildroot-2025.05-arm64. I am running it on RPi3B+ and following ...
0
votes
0
answers
490
views
Adding device tree overlay in yocto for raspberry pi
I am trying to add a device tree overlay file in yocto for the raspberry pi. I have read this answer however there are still some things I am not understanding.
I have created a workspace using dev-...
1
vote
1
answer
71
views
CONFIG_NF_NAT for Armv7 in 6.1.137 Kernel (multi_v7_defconfig) missing? [closed]
I am trying to set up port forwarding on an armv7 (CyclonV) device with a custom yocto image using a Xenomai4 Kernel 6.1.137. Iptables tells me, I have no 'nat' table and need a different kernel. I do ...
0
votes
1
answer
102
views
USB FunctionFS Gadget: "Invalid argument" with Combined Full-Speed and High-Speed Descriptors (Kernel 4.9.118)
Problem Description
I'm developing a USB 2.0 gadget using Linux FunctionFS (ConfigFS) on an embedded device running kernel 4.9.118. My goal is to implement a vendor-specific bulk data interface that ...
0
votes
0
answers
30
views
Remote debug program for Linux uses GDBServer
When writing a console program in the C programming language for the Linux (the Linux is installed on the Respberry Pi), you can use remote development and debugging using the Eclipse on the Windows ...
1
vote
1
answer
64
views
Compiling C++ sources for PLC based on Linux RT (Arm Cortex A8)
I'm a full beginner in Linux.
I need to program some PLC (ADAM 5630 of Advantech). It is based on the CPU TI Cortex A8 and has Linux RT 3.12 (Linux adam5630 3.12.10-rt15-ti2013.12.01; Distributor: ...
1
vote
1
answer
865
views
ERROR in emulator start after aosp build Andorid Emulator I tried running
After successfully compiling the AOSP build from the repo tried starting the emulator with the command provided in the documentation
$launch_cvd --daemon
but encountered the following error log:
06-...
1
vote
0
answers
127
views
Issues cross-compiling kernel modules for an unknown embedded linux kernel
I've been working on learning cross-compilation for embedded linux, with the eventual end goal being to compile an RTL8188 Wifi USB dongle kernel module for an old embedded linux device that doesn't ...
1
vote
2
answers
113
views
boost::thread::try_join_for throwing invalid argument [generic:22] after upgrading boost from 1.48 to 1.88
I am using an embedded linux (Yocto project) and recently upgraded to the latest boost version.
The compiler used is arm-poky-linux-gnueabi-g++ (GCC) 13.3.0
The problem I am facing can be reproduced ...
0
votes
1
answer
161
views
Yocto and patches. How are they applied? Can I patch a patch?
Background
I have a boot2qt recipe that I have inherited based on 5.15.5 that has been customised. One of the customisations is to alter the kernel splash screen but I can't figure out how it is ...
0
votes
0
answers
60
views
"rauc status mark-active other" in the scheme with 1 slot
The question is about how the rauc status mark-active other command work with the layouts with only 1 slot for the element (A/B scheme is not supported).
We use RAUC for updates management on our ...
0
votes
0
answers
169
views
How do I build a compatible Android driver module (.ko) for an embedded linux AOSP? I currently get an insmod error
I've been trying to build compatible Android modules (.ko) for my target platform: STM32MP25F7-EV1. It runs OpenSTDroid Distribution, a modified version of AOSP. I've successfully built my desired ...
0
votes
0
answers
200
views
U-Boot and MAC addresses in production
I'm porting a board over to a newer version of Yocto and this includes U-Boot. In the old U-Boot the MAC address was set in uEnv.txt by setting the ethaddr variable. This worked well as every board ...
2
votes
2
answers
200
views
UART times out writing data
I have built a custom yocto image for my BBB and I'm having trouble with the UART. I have two uarts mapped ttyS1 and ttyS4. But for some reason I'm having trouble with ttyS1 timing out writing data, ...
0
votes
0
answers
93
views
How to configure the RK3568 ETH0_REFCLKO_25M pin to operate at 25MHz? Currently, it outputs a frequency of 125MHz
How to configure the RK3568 ETH0_REFCLKO_25M pin to operate at 25MHz? Currently, it outputs a frequency of 125MHz. This pin is used for clocking the KSZ9031 Ethernet PHY.
Current settings dts:
&...
0
votes
1
answer
101
views
How to implement 1-wire communication on STM32MP13 MPU?
What method should be used to implement 1-wire communication (master) on STM32MP13x board? After doing the research I've found that:
for RPI, kernel module w1-gpio can be used to achive 1-wire ...
0
votes
0
answers
57
views
300ms delay in network, kernel's TCP write buffer filled to the brim in embedded linux
I'm writing a semi-realtime application for an embedded board running BusyBox which packages and sends some telemetry data (around 100KB) on a TCP socket every 100 milliseconds. This board uses the ...
0
votes
2
answers
101
views
platform_device_register() causing kobject error
I am a noob in learning Linux, and I am learning platform device and driver functionality, and I am testing a simple Linux device code here.
#include "platform.h"
struct platform_device *...
0
votes
0
answers
122
views
USB host vs, gadget linux device driver
I'm trying to learn USB linux device drivers to implement a project idea I have:
Primary device is a Rasp Pi with USB port
Secondary device is a custom USB stick that I'm going to design with some ...
0
votes
0
answers
57
views
How can I integrate a PSHOLD GPIO power-off mechanism on i.MX93 while retaining PSCI functionality?
We are developing a product using the i.MX93 SoC. Our board design requires that a dedicated PSHOLD GPIO pin be toggled to completely cut power during shutdown. We attempted to use the gpio‑poweroff ...
0
votes
0
answers
111
views
Warning from rcu_note_context_switch in custom Linux kernel
I am working on a custom platform running embedded Linux with custom kernel modules (I have no access to them).
From time to time, the following message appears on the console:
[ 634.900724] ---------...
2
votes
1
answer
335
views
How to achieve low level access to SD card to send raw mmc commands?
I am trying to send raw mmc commands to SD card using Linux MMC subsystem mmc-utils and ioctl and running into Connection timed out (errno: 110). The SD card is micro-sd card that is used in raspberry ...
0
votes
0
answers
99
views
Add a PWM pin on BeagleBone Black
I need to add two new PWM pins to my DTS file on a BeagleBone Black. How can I do that?
It has the P9_42 as the PWM pin, but I'm having some difficulty in adding another PWM pin. I'll use in mg90 for ...
0
votes
0
answers
51
views
How to fix "Error: selected processor does not support..." during Linux Kernel compilation for the board LicheePi Zero? [duplicate]
I'm trying to compile the LicheePi Zero linux kernel by following different pages but so far I haven't succeeded. I'm using the Ubuntu WSL console on Windows11.
When I run the following command make
...
0
votes
0
answers
73
views
QML Material style ripple showing at top left corner of screen instead of on the Button element
I am developing a QML application for an HMI device running embedded linux. I have develoed my application on Ubuntu desktop pc with Qt6.8.1 and Material style QtQuick controls. On desktop the UI ...
3
votes
1
answer
305
views
Endless kernel (5.10.204) loading
I'm rebuilding the kernel (5.10.204) to run on the aio-3588jq board under the rk3588 processor.
After loading the cfg80211 certificate (cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'), ...
0
votes
2
answers
117
views
Warnings in DTS Linux
While I compile DTS for my device, it gives me warnings, that don't really make sense to me.
There are two spi-chips on my device, their description is DTS is the following:
spi-gpio {
compatible =...
0
votes
0
answers
33
views
Makefile for kernel module with multiple sources [duplicate]
I am trying to build a kernel module through yocto.
I have this simple Makefile that builds the module from a single source file and then everything is fine:
obj-m := my_nand_controller.o
KERNEL_SRC :...
0
votes
0
answers
48
views
Not able to access internet on my embedded board using my 4G modue
I have a custom board based on radxa rock 5 and im trying to access internet using my 4G sim. Using the PPP protocol to enable connection and dialling up internet. Im using scripts to automate the ...
1
vote
1
answer
433
views
Error: MODPOST i2c_slave_register undefined
I am trying to follow the linux i2c slave documentation https://docs.kernel.org/i2c/slave-interface.html
when I attempt to compile the kernel module using make I get this error:
ERROR: modpost: "...
1
vote
0
answers
93
views
Add prefix to crosstool-ng sysroot binaries in `sysroot/usr/`
I am building a cross-native toolchain with crosstool-ng: build=x86_64, host=target=arm.
I need this new toolchain to include a different glibc than the one already installed to the system at /.
On ...
0
votes
0
answers
71
views
Getting 'Operation Timeout' error while connecting to hidden network via DBus, but able to connect using connmanctl
I am trying to connect to a hidden Wi-Fi network using Connman in my Qt project via DBus.
I am able to connect to non-hidden networks without any issue, but when trying to connect to a hidden network, ...
0
votes
1
answer
97
views
Existing solution for generating high-frequency digital waveforms on GPIO in Linux [closed]
We're transitioning from embedded firmware to Linux development and have a specific requirement: we need to generate a digital waveform (a sequence of 1s and 0s) on a GPIO pin at a specific frequency ...
1
vote
0
answers
117
views
Can I inspect the rootfs from this QSPI dump?
I was messing around with a cheap IP camera from Amazon. The board uses an Ingenic T20, which seems to be very common for this application. I desoldered the QSPI NOR Flash and dumped it with another ...
0
votes
0
answers
430
views
How to build docker container based on Yocto image?
I want to build docker container based on yocto to create Linux environment for Application to run on Host machine instead of actual Linux Board.
I know how to build docker container based any base ...
1
vote
1
answer
73
views
ndo_start_xmit() not called when using cansend command
A little background, I want to receive CAN frames to Linux SOM, which does not have CAN peripheral, so I use stm32 which acts just like a bridge that sends CAN frames over UART to SoM. That part is ...
0
votes
0
answers
172
views
Making a Custom Vendor Specific USB Interface
I'm trying to make a USB gadget, using the ConfigFS utilities. I'm following this clear guide and have successfully created a usb gadget with an interface.
My problem is that I would like to implement ...