Questions tagged [embedded-linux]

Embedded Linux is the use of Linux in embedded computer systems such as mobile phones, personal digital assistants, media players, set-top boxes, and other consumer electronics devices, networking equipment, machine control, industrial automation, navigation equipment and medical instruments.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
34 views

compiling linux distribution but without using yocto [closed]

I am pretty new to embedded Linux and yocto overall just out of curiosity I had this question is it possible to compile Linux for (eg : arm soc or x86 ) without using yocto or any other build system ...
pro-codes's user avatar
0 votes
0 answers
33 views

Display works when U-Boot loads but not with Arch Linux ARM [closed]

I installed Arch Linux ARM on my old Allwinner A31s tablet. I can use it via UART/serial console but I can't get the display to work. The tablet turns on, U-Boot loads and shows your submarine logo on ...
fr2z93's user avatar
  • 1
0 votes
0 answers
21 views

Yocto linux is missing g_ether and systemd libraries [closed]

When systemctl is called: systemctl: error while loading shared libraries: libsystemd-shared-239.so: cannot open shared object file: No such file or directory Linux config: # USB Host ...
kairuki 's user avatar
0 votes
0 answers
32 views

Unable to get messages from dmesg from platform.c/bus.c compiling linux kernel with loglevel=8 [closed]

I am trying to make an LCD panel work with linux kernel Arm 5.10(TI platform sdk). From panel-simple.c, after platform_driver_register function(macro which refers to __platform_driver_register), ...
jchandren's user avatar
0 votes
0 answers
26 views

How to find the interrupt numbers form a design?

Given a VIVADO design on ZYNQ 7000 board and asked to run an Linux application through UIO, one needs to find weather the Kernel is properly configured or not. One can use petalinux to generate the ...
Creator's user avatar
  • 21
-4 votes
0 answers
53 views

C time-dependent unit test

Currently, I am writing code in C for an embedded Linux system, and I need a unit test for system reboot function. Using this function, you can schedule a future reboot. The user can, for example, set ...
Yuval Froman's user avatar
-4 votes
0 answers
240 views
+50

RPMSG-lite in imx7d-pico stop in while (0 == rpmsg_lite_is_link_up(rl_instance)) {

I've been trying this project for a long time (https://www.youtube.com/watch?v=4zMyjaEgj2U&t=1208s) (originally made for imx7s-warp) But strangely (as per photo) it only reaches the line (while (!...
neuberfran's user avatar
0 votes
0 answers
28 views

How to download a cross compilation toolchain that matches the arm64 ubuntu base [closed]

My arm board uses the ubuntu base file system, and the client requires me to provide a cross compilation toolchain to compile their application environment. Where do I need to download the cross ...
tinwer's user avatar
  • 1
0 votes
0 answers
60 views

Getting SOC temp linux-mainline on sun8i

Here is my environment: Mainline linux kernel 5.15.35 OrangePi Plus 2E Yocto-based linux distro What I would expect to see here is something in /sys/class/thermal/thermal_zoneX, however the contents ...
smthingshwere's user avatar
0 votes
0 answers
33 views

Serial port telegrams timestamping on ARM embedded Linux

I want to build an ethernet based distributed measurement system with embedded NXP i.MX 6 ULL boards (measurment nodes). Measurment data is taken from a serial ineterface with a baudrate of 9600. For ...
DrNick's user avatar
  • 1
0 votes
1 answer
36 views

Cyclic dependency when building openthread for buildroot

I'm trying to build an openthread border router using buildroot for a beaglebone black, and I'm facing the following error: CMake Error: The inter-target dependency graph contains the following ...
Joshua John's user avatar
0 votes
0 answers
67 views

How to solve the problem so that the driver port (uart4) works adequately?

UART4 serial port driver (dw-apb-uart) has only two lines - Rx and Tx. Linux kernel v6.5.8 is used. Allwinner A40i processor. This is exactly RS485, the UART is connected to the RS485 transceiver ...
Rarebeast's user avatar
0 votes
0 answers
51 views

/etc/apparmor.d directory missing

I am working on an embedded platform which is built using yocto framework. I can see that the apparmor is enabled in the platform however the directory /etc/apparmor.d/ is missing. Can anyone point ...
gst's user avatar
  • 1,259
0 votes
1 answer
17 views

Dynamically generate a service file in openbmc

I need to implement the BIOS update functionality in the openbmc's phosphor-software-manager. In the following code snippet, versionId is a variable that can change dynamically. How can I dynamically ...
林姿均's user avatar
3 votes
0 answers
61 views

Increase linux kworker thread priority?

I have a dual core 1GHz ARM system with linux where the business application should do low-latency serial IO> <10ms response time, receive ~10byte request, send ~20byte response. After a few ...
Gyorgy Szekely's user avatar
0 votes
0 answers
44 views

What is required to show an interrupt number in /proc/interrupts?

This question is referring to embedded linux. I undrstand to see the interrupts running one should do cat /proc/interrupts. I undestand that an interrupt has to be there to show, the questions is what ...
Creator's user avatar
  • 21
-1 votes
0 answers
40 views

Wayland get compsitor status

Is it possible for a c++ application using libwayland-client.so to get the connection status of the compositor / display server it opened a connection to (e.g. KWin, Sway, ...)? I fail to find it in ...
Allon Ren's user avatar
1 vote
0 answers
137 views

Two interrupts are defined in system-user.dtsi file but why only one interrupt in /proc/interrupts?

There is a design in VIVADO for DMA transfer. I want to use uio device and I have a /dev/uio0 directory along with information in /sys/class/uio/uio0/maps/map0 directory. In my pl.dtsi I have two ...
Creator's user avatar
  • 21
0 votes
2 answers
31 views

D-bus connection name and object path

I have started understanding D-bus. I have couple of doubhts related to D-bus connection name(dbus_bus_request_name) and Object path(dbus_connection_register_object_path) registration. 1. We can ...
user3693586's user avatar
  • 1,227
1 vote
0 answers
43 views

What is (special in) the elf format for static-pie? And what preforms the fixups to the GOT?

I'm trying to create some static-pie programs to run in a no-MMU environment. As far as I can tell static-pie programs are encoded in the ELF format, but use the ET_DYN e_type in their ELF header. ...
Echelon X-Ray's user avatar
0 votes
0 answers
78 views

How to boot AOSP 11 via U-Boot (RK3566/Quartz64-A)?

I'm trying to boot Android 11 using U-Boot and it's not decompressing the kernel image. My bootcommand is as follows: echo Starting AOSP boot sequence && env set devnum 0 && mmc dev $...
xdevs23's user avatar
  • 3,878
0 votes
0 answers
58 views

How to enable telnet and ssh packages using yocto

I am using yocto build system. I need telnet and ssh for my custom board. Can you help how I can enable telnet and ssh in yocto build system.
Ravi A's user avatar
  • 441
0 votes
2 answers
72 views

How to add simple GPIO defnition to a device tree (Yocto)?

I'm working with TI AM64XX and a base project that has limited definition of some GPIO of the board on the device tree. And I need more GPIOs than what it's defined in the DTS in order to use in my c/...
AnswerAndGetaCandy's user avatar
0 votes
0 answers
46 views

copy_from_user fails with write error : bad address

I am writing a test kernel module to simulate locks/unlocks. Below is the code : #define MODULE_NAME "lock_injection" #define COMMAND_BUF_SIZE 128 static DEFINE_MUTEX(my_mutex); static ...
Naveen's user avatar
  • 7,994
0 votes
0 answers
45 views

I can't figureout the issue when ESP32 connecting to BG95-M3

I have a circuit board that is connecting a ESP32-C3-WROOM-02-N4 to BG95-M3. Looking into the schematic it looks like the BG95-M3 is connected to pin 7 and 6 in ESP32 but I'm not 100% sure. When I use ...
James's user avatar
  • 3
0 votes
0 answers
76 views

beaglebone black debian uart example c programing

I am running Embedded Linux. but right now I'm new. I want your help on something. Debian distribution is installed in Beaglebone. I want to make a uart communication. I am using the beagbone board P9-...
mmkaratokus's user avatar
0 votes
1 answer
61 views

can't access /dev/mem in a docker container

I'm trying to read a memory mapped register on a Zynq running linux. I'm using python but I'm pretty sure my issue is system related. Outside of docker I can open /dev/mem and mmap the appropriate ...
Trevor's user avatar
  • 1,389
0 votes
1 answer
37 views

I cannot write to 24fc512 i2c memory chip from Linux

For few days now, I struggle to write some data in the memory of a 24fc512 i2c chip from Linux. I tried both a Raspberry Pi 4 and a Beaglebone Black. The IC has 4.7 KOhm pullup resistors on SCL and ...
CostinC's user avatar
  • 21
1 vote
0 answers
68 views

Improve read speed of a virtual filesystem

I am using sysfs to capture CPU information. These sysfs files allow us the ability to get a lot of kernel subsystem information in user space through virtual files. My question boils down to reading ...
Kron's user avatar
  • 63
0 votes
0 answers
60 views

How can I add a ch341 driver to a custom linux for Toradex Colibri IMX7d?

We are running a java program on a Toradex Colibri IMX7d and we need to communicate through the USB port using a cable that needs the ch341 serial driver. I attempted to customise a linux kernel bu ...
Ariel H.'s user avatar
  • 782
0 votes
1 answer
69 views

Bluetooth programming on embbedded linux

I'm a newbie to embedded programming and trying to create a simple application that runs on a peripheral device. The application needs to advertise Bluetooth service with a specified UUID so other ...
Nguyen  Minh Binh's user avatar
1 vote
1 answer
105 views

Exactly why is the size of this struct 32?

I needed help in finding the size of the struct below #include <stdio.h> struct bottle{ float* weight; int* qnty; char* type; char* color; }; int main(){ printf("%zu\n&...
Subzee's user avatar
  • 11
1 vote
0 answers
36 views

How to avoid SO and ELF file dependencies in yocto SDK?

Backtsory: I have updated the whole Yocto from Dunfell to Kirkstone, and the normal images are working as expected. We are using commonapi version 3.1.12.4 and for some reasons we cannot update it. ...
ZBT248's user avatar
  • 91
0 votes
1 answer
155 views

How to check if interrupts are working or not?

I have booted linux into my ZYNQ 7000 (AVNET) board through Jtag, tftpboot. Next, made it boot from QSPI. The purpose of this project is to transfer data between PS and PL through DMA. I have done the ...
Creator's user avatar
  • 21
0 votes
0 answers
37 views

Petalinux-package, unsupported part in bitfile

I have used the PetaLinux tools to add an application to the system image and built it. I am now attempting to add it into the bitstream file so that I can program it into my FPGA. I am using a Trenz ...
embedded.kyle's user avatar
1 vote
0 answers
56 views

I have encountered a strange problem when i want to compile a linux driver

make -C /home/doney/100ask_imx6ull_mini-sdk/Linux-4.9.88 M=`pwd` modules make[1]: Entering directory '/home/doney/100ask_imx6ull_mini-sdk/Linux-4.9.88' Building modules, stage 2. MODPOST 1 ...
Doney's user avatar
  • 11
0 votes
2 answers
96 views

How to update a hardware watchdog from boot?

I have set up a Linux system using Yocto on a Zynq-7000 with Petalinux 2021.1. My current task involves resetting a hardware watchdog every 2 seconds. Resetting the watchdog once my system is already ...
Boune's user avatar
  • 1
1 vote
1 answer
45 views

Is It bad for performance if a bunch of threads are in a blocking state?

Does the Linux or BSD kernel slow down if a program has a bunch of threads in a blocking io state, or is the performance deficit so negligible that it can be ignored. I am writing a server program ...
Troy Hamilton's user avatar
0 votes
1 answer
57 views

u-boot compilation ERROR for beagle bone board (i am using Ubuntu platform)

After successful of hard coding the board id. getting a error in building the U-boot in the 3rd step i have tried to compile the U-BOOT and I Got successful compile for the below two steps. make ARCH=...
DHANRAJ V's user avatar
1 vote
2 answers
145 views

Developing Rust app in buildroot (problem with cargo build --offline --locked)

I created a new buildroot package which is a Rust application built with cargo. I followed the buildroot manual for Cargo packages, and my .mk is quite simple: MY_RUST_APP_VERSION = 1.1.0 ...
Filip Kubicz's user avatar
1 vote
1 answer
52 views

Controlling a servo using c on beagle bone black

I can't seem to get the servo to move. I am using pin p9_14, my servo is a Tower Pro SG92R, and I have Debian on my beaglebone black I'm trying to solve it using no libraries if possible(for practice) ...
Jefferiouscodious's user avatar
1 vote
1 answer
41 views

How to sign an application binary, write the signature to a file and install it to rootfs in yocto build?

I have a bitbake recipe that builds a simple C hello world application and the generated application binary gets installed to the rootfs. SRC_URI = "file://hello.c" S = "${WORKDIR}&...
shakta's user avatar
  • 43
0 votes
0 answers
38 views

When bundling an initramfs with a kernel, where should the INITRAMFS_IMAGE variable get set?

I am currently setting INITRAMFS_IMAGE="core-image-custom-initramfs" in my local.conf and things are working fine. However, I would prefer to move this out of the local.conf and it is not ...
shakta's user avatar
  • 43
0 votes
0 answers
22 views

Extended Partition using MSDOS and WIC

I am trying to generate a wic image. Following is my requirement fat16-boot partition-32MB A 6GB extended partition which is further divided into 8 logical partitions : 4 of 512MB and 4 of 1024MB ...
Nipun Pal's user avatar
0 votes
0 answers
28 views

Why is the appended `ROOTFS_POSTPROCESS_COMMAND` not getting executed when the deploy artifact it installs is rebuilt?

I am building a yocto (kirkstone) distribution that uses a kernel with a bundled initramfs containing logic to start the system. The kernel image containing the bundled initramfs gets built but not ...
shakta's user avatar
  • 43
0 votes
0 answers
77 views

Setting the direction of PCA953X I2C GPIO expander pins in the device tree

I've into an interesting problem that I'm hoping someone can help we with. I'm trying to bring up a board which utilises a PCA9537 I2C GPIO Expander chip to control the reset pins of various ICs on ...
rje's user avatar
  • 1
-1 votes
1 answer
62 views

Package is not properly installed in Yocto

I'm building a custom Linux image with yocto and I'm attemping to add "libgpiod" package to the image built. The libgpiod recipe is located at project/sources/meta-openembedded/meta-oe/...
Edher Carbajal's user avatar
0 votes
1 answer
74 views

how to make u-boot to load rootfs from 2nd partition of sd card?

I am trying to make u-boot to load rootfs from sd cards second partition while loading kernel and device tree from the first partition. Has anyone faced this situation before? I've set the bootargs as ...
Zafer Delice's user avatar
0 votes
0 answers
38 views

How to know if TCF agent is running ot not in my ZYNQ board?

I have booted linux into my ZYNQ 7000 (AVNET) board through Jtag, tftpboot. Next, made it boot from QSPI. The TCF agent was enabled in my Petalinux configuration. Now I am trying to run a linux ...
Creator's user avatar
  • 21
0 votes
1 answer
54 views

Askfirst in shell

I came across an error in an open source software called askfirst while working on a embedded device. I know askfirst is used to run commands based on user input on stdin. But when I press ctrl + \ ...
Dillip Murali's user avatar

1
2 3 4 5
92