Questions tagged [embedded]
The use of Unix in embedded computer systems such as networking equipment, mobile phones, media players, set-top boxes, etc.
818 questions
1
vote
1
answer
89
views
How is an overlayfs different from just mounting another disk/partition over a directory?
I have OpenWRT installed on some of my routers and to add additional storage for settings as well as programs that might be installed on the router and maybe logs, OpenWRT recommends you plug storage ...
1
vote
0
answers
41
views
UVC camera only works properly when usbmon is running
I have the following setup:
i.MX8MM + uDP72020 (PCIe to USB-3.0) + UVC-Camera
Linux: 6.6.69
GStreamer: 1.24.0 (imx)
GStreamer pipeline I am using:
gst-launch-1.0 -e -vvv v4l2src device=/dev/video0 \
...
0
votes
1
answer
81
views
Allwinner A10 tablet - Not able to go past "Starting kernel..."
I had an old tablet lying around so I created the page according to linux-sunxi (https://linux-sunxi.org/Softwinners_crane). I was trying to get Linux running on it.
A different tablet was similar (as ...
0
votes
1
answer
35
views
Is it possible to connect a serial port visible from userspace back into the kernel's BlueZ stack?
I have a linux kernel and device tree that presents the userspace with a serial port /dev/ttymxc0.
The serial port is connected to a Bluetooth device which is used by a user-space Bluetooth stack.
If ...
0
votes
0
answers
44
views
DE1-SOC 5CSEMA5F31 isn't detected in Quartus Program Device
I'm having trouble programming my DE1-SoC from the Quartus Programmer. The board is powered and connected correctly and I've managed to find and program it before, multiple times, but even then ...
1
vote
1
answer
142
views
Failing to SSH into a DE1-SoC even though I seem to have all dependencies met
I'm following Altera's guide for running Linux on the DE1-SoC board, specifically section 5.3 - Installing the Driver.
The instructions provided in the guide are for a Windows host, and I'm on a linux ...
0
votes
0
answers
223
views
Setting up U-boot's fw_env.config
I have managed to install Alpine Linux on a Marvell Octeon NIC. One thing I'm missing for this to be a clean setup is managing the u-boot variables in firmware.
That will also allow to query the card'...
1
vote
0
answers
33
views
How to collect statistics of data transmission in Linux USB gadget device?
I am working on an embedded Linux system (kernel-5.10.188), where USB mass_storage gadget is enabled and configured.
After the mass_stoage is enabled and connected to another USB host, is there a way ...
0
votes
0
answers
42
views
Bit banging PWM on Orange PI with Rockwell chip
I've read up on bit banging and I know how it works but I don't know how to implement it. I tried just using libraries written by other people in C or python but I'm using an orange pi 3B which uses a ...
6
votes
0
answers
2k
views
how eMMC boot partitions work (/dev/mmcblk0boot0) and their handling in linux
i would like to fully understand the (special?) handling of eMMC boot partitions (in Linux).
As far as i understand, eMMCs offer some kind of low level partitioning. There is a special meaning to (at ...
1
vote
0
answers
40
views
Adding MCP23017 to device-tree and accessing ICs connected to expander
I try access multiple ICs via I2C over the MCP23017 I/O Expander for a custom embedded board. I know ICs I2C adresses.
How should I add the MCP23017 to the device-tree?
I think I need to add the ICs ...
2
votes
1
answer
227
views
Roughly how camera sensor drivers work
I am trying to write a MIPI CSI-2 camera sensor driver for an embedded Linux image. Of course, there are tons of driver source codes on the Github etc. but I am having a hard time understanding how ...
0
votes
2
answers
135
views
DRM initializing very late
I'm porting an embedded Linux device to mainline from a vendor kernel. I am almost there but there is one issue I can't seem to get rid of, which is DRM initializing very slowly.
Here's the setup:
SOC:...
0
votes
0
answers
51
views
Configuring 2 UVC Gadgets with UDC controller
We are testing the use-case of delivering 2 UVC streams from the qcomm SoC. Should the hardware allow this feature? I have enabled 2 gadgets, but when I activate the second one, I get resource busy ...
0
votes
1
answer
50
views
ALSA lib not outputing on custom linux
I am running a custom linux distribution on a custom board running on an ATSAMA5D29. I am managed to get the sound to work on the demo board, but when running it on custom hardware I get the error:
# ...
1
vote
2
answers
109
views
Failed to core dump with send_sig(task, SIGSEGV, 1) from Linux kernel
I am working in an embedded Linux system, and now I want to trigger a core dump from within kernel by using send_sig(task, SIGSEGV, 1).
There is a process A having 10 threads, occasionally, there is a ...
0
votes
0
answers
147
views
No cerificate is in /etc/ssl/certs
I am working on an embedded Linux system (kernel-5.18.18) for an SOC platform.
The system has openssl compiled, and there is an application connecting to cloud server. But the application failed to ...
1
vote
0
answers
168
views
Ubuntu and Debian hard freeze, has display but no mouse and keyboard
I bought 2 rugged fanless embedded computers that appeared to be quite robust with name brand extended temperature components, vibration dampening, etc. I installed Ubuntu 24.04.1 and my desktop ...
1
vote
0
answers
81
views
How to interpert hwlat trace results on an ARM Cortex-A7?
I’m working with an STM32MP157D-DK1, trying to use the hwlat tracer for the board's arm Cortex-A7 CPU, to check for typical hardware latency.
The following attempt was made to use the hwlat tracer on ...
0
votes
1
answer
171
views
How to prevent a Linux shell from intercepting escape sequence so it can be sent over serial TTY
I am working on an embedded system that is connected over USB serial TTY (i.e. /dev/ttyUSB0), which needs to interpret arrow keys sent via a virtual terminal such as screen. The problem is, the shell (...
1
vote
0
answers
239
views
How do I prevent two recipes from installing the same file in a bitbake?
I am trying to create an SDK using bitbake -c populate_sdk fsl-image-gui. I am doing this in a Docker Container built from Ubuntu 22.04. This is for Yocto Kirkstone. Two recipes in this bitbake are ...
0
votes
3
answers
143
views
Sending to linux serial tty from embedded system too fast
I use an embedded computer to send data to a Linux serial port for transfer to a remote server. The terminal mode is "none". After my embedded system logs in, it sends data for example,
...
0
votes
2
answers
240
views
Can't establish a direct TCP/IP connection over ethernet between STM32MP157 and a host
This is a beginner's question on networking. I tried to find a solution on the web, but to no success.
Goal: Establish a TCP/IP connection over ethernet directly between my linux host pc and an ...
0
votes
1
answer
210
views
How to get root-Access and/or update/extract firmware via UART
I would like to try to equip my non-specific China-Wall-Brick-WiFi-Router with root access and update it if necessary.
Here is a sample image of the device:
The problem is: The device has no official ...
0
votes
1
answer
76
views
Writing to an External USB Flash Drive When Power Could Be Lost
I'm looking into building a small embedded device, probably using a Banana Pi M2 Zero. In any case, the device will not have a graceful "turnoff" - it will simply lose power. However, I'm ...
1
vote
1
answer
284
views
drmModePageFlip() is failing when process started by systemd service
I created one Linux(STM32MP157 Olinuxino) application which uses DRM and OpenGL libs. The app is running without any issues when started from terminal. My application calls drmModePageFlip() twice ...
1
vote
1
answer
207
views
Is systemd viable for embedded when storage is not a concern?
Excuse me if this is a dumb question. I've been experimenting with this old nas box i bought, cross compiling anything and everything i could get my hands on. And now i want to take it a step further ...
2
votes
0
answers
281
views
Remote control and display of embedded Linux devices
Background information - We have two custom embedded Linux devices that both contain their own GUI for operating and controlling each device and it's software/firmware. The devices are class 2 medical ...
0
votes
1
answer
151
views
Keypad driver does not input character with input_report_key()
I am trying to create Linux input device driver and to test things I took at existing gpio-matrix-keypad driver. Using print I know that input_report_key() is called with correct keycode, but it doesn'...
0
votes
1
answer
61
views
Embedded Linux - How come virtual kernel memory is bigger than physical memory?
I'm running a custom Linux distribution on my ARM-based system (it's got two A7s).
The Linux kernel version is 4.86.9.
In the process of investigating some weird graphical glitches occuring on the ...
0
votes
1
answer
95
views
How would one build a working Linux volume for a 32-bit PowerPC headless platform using a non-PPC host?
Is there a tool similar to debootstrap for a recent Linux distribution that supports PPC so I could build a working system or have an automated process to cross-compile a base install?
0
votes
1
answer
365
views
How to scan barcode in JPEG format with zbar in Linux?
I am working on an embedded Linux system (kernel-5.10.24). Now I am trying to use zbar-0.23 to scan barcodes in JPEG format, but I don't know how to do that.
There is an example/scan_image.c, which ...
2
votes
3
answers
221
views
Is Linux /usr/share/zoneinfo/ Platform Agnostic?
I am working with an embedded Linux (ARM/busybox) system. It has systemd and the timedatectl system executable, but it does not have /etc/timezone, /usr/share/zoneinfo, nor the zic timezone data ...
0
votes
0
answers
249
views
How can I force systemd journalctl to output log in sequential order in case of frequent clock changes?
I have a standalone debian-based system that -- for the simplicity -- can be taken as not having RTC. The system clock can be set during operation, both forwards and backwards.
I thought that ...
-1
votes
1
answer
247
views
Which SD card journaling file system for Windows and Linux?
I have to make a choice between all SD card file system for an embedded device under Linux.
The goals are :
Read and Write under Windows and Linux
Journaling file system to prevent system crash or ...
0
votes
1
answer
836
views
shutdown now extremely slow due to service with DefaultDependencies=no
I have an embedded Linux system that takes a really long time to shutdown when a specific service that I've made is running. It needs to start running as soon as possible thats why it has the ...
0
votes
1
answer
94
views
How to route sgtl5000 audio within the chip?
I have an embedded device with an sgtl5000 audio codec, linked to an iMX8 CPU via SPI.
According to the datasheet, there is a direct route from LINE_IN to HP_OUT, which avoids sound travelling through ...
-1
votes
1
answer
85
views
I am trying to emulate a board which has a OLED display, but can't see anything. Can you tell me if there is something important I am not considering? [closed]
I am just a newbie that is trying to learn. I can't see anything in the OLED display (ssd0303).
I am just using this demo: https://www.freertos.org/portlm3s811keil.html
as you can see it says that:
...
1
vote
0
answers
459
views
Is it possible to specify sleep mode "freeze, mem, suspend and etc." using systemctl?
As far as i know we can know we can check which low power configurations are available for our Linux computer by reading /sys/power/state file. We can turn low power mode by writing one of this ...
1
vote
1
answer
302
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
1
answer
151
views
Handle Partition Changes Embedded System
I have to update some outdated embedded systems. But the RAUC Update contains four partitions, while the old systems have only three partitions.
The additional Partition is at the start of the disk ...
0
votes
0
answers
98
views
Accessing internet from device connected to AP
I have two interfaces uap0 and eth0 in my embedded Linux device. uap0 acts as an access point for other devices to connect to Linux Device. eth0 interface is connected to my router. And my router is ...
0
votes
1
answer
748
views
Unable to ping or ssh into embedded Linux device: eno1 has no IPv4 address
I am trying to ssh into an embedded Linux device (let's call it petalinux) connected to my Ubuntu server running 22.04 (let's call it oip). petalinux and oip are connected by a direct ethernet cable ...
1
vote
0
answers
57
views
Need to modify OS of a device which use Embeded linux with u-boot
I have a Congatec device running Linux with U-Boot (U-Boot SPL 2015.10+fslc+g4e28939_).
I need to modify certain settings within this embedded Linux environment.
The challenge lies in the fact that ...
1
vote
1
answer
11k
views
How to find the port number given the ip address
I could find the ip address of my board by using ifconfig but I need the port number as well to set Linux TCF agent. I tried netstat with several options but could not find as it returns too many and ...
0
votes
1
answer
416
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&...
0
votes
0
answers
70
views
`w` not working on Buildroot
I'm working remotely on an embedded device running Buildroot. My colleagues are working on this same device, so it's important to know who else is logged in.
For a previous project (running on a non-...
0
votes
1
answer
625
views
Shift the address in the hex file with Offset
I want to update the hexfile start address with offset. For example, i have a hex file name abc.hex and start with address 0x0000 to 0xFFFF. But I want to shift the context in the hexfile to the ...
1
vote
1
answer
2k
views
Mounting OverlayFS in fstab at startup
Is It possible to Mount OverlayFS from external partition in fstab and benefit from systemd services extensions at startup ? Thus overlay directory tree will add new systemd services configuration ...
0
votes
0
answers
443
views
Usb device wont enumerate after booting kernel on a custom board : usb 1-1: device descriptor read/64, error -71
When i plug in my usb device I get the following errors:
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, ...