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.

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.

Before you start

The use of the tag should be limited to questions specifically related to Embedded Linux. General Linux questions should be tagged . Questions about the internals of the Linux kernel or regarding writing Linux kernel modules should be tagged or , respectively.

Please browse the list of frequently asked questions to see if your question is similar to one that has already been answered.

Important notes that may save you time

  • The Embedded Linux Wiki exists to preserve and present information about the development and use of Linux in embedded systems.
4518 questions
1
vote
0 answers

GStreamer H264 stream to HTML5 webpage

I have a Linux board with a camera connected to it that is recording whatever goes on to a mp4 file(s) on the SD card of the board. I'm using gstreamer which connects to the /dev/video1 source and uses H264 encoding. I run it with a command similar…
1
vote
1 answer

How to stop writing to a capture file using tcpdump after it reaches a specific size

I am looking for some solution to stop capturing the tcpdump packet after it capture a specified size .I am using the below command to achieve this but it looks like the tcpdump is not writing all the captured packet to the specified…
Prasad Roy
  • 117
  • 2
  • 11
1
vote
0 answers

How to emulate cortex-m linux with qemu?

this is my code and I want to run it on a cortex-m4 linux based board (stm32f429) but before that I want to test my program on my pc using qemu. #include int main() { std::cout << "Hello, World!" << std::endl; return 0; } I have…
1
vote
0 answers

Yocto - Warrior - how to create wic image installer

Hi: I'm on Yocto warrior 2.7.1. I am a bit stuck on one thing. I needed to create an additional r/w partition for persistent application storage, so I found that the only way to accomplish this was with wic. Thanks to this answer I was able to get…
H. Egan
  • 51
  • 6
1
vote
0 answers

SELinux init_daemon_domain(avahi_t,avahi_exec_t) vs. files_types(avahi_t)

I am running into a problem with labeling. In order to lock down access to a file /etc/avahi/avahi-daemon.conf I decided to label it as a part of the avahi_t domain. I am working on an embedded system. When I boot up the system from a version…
Tippy
  • 11
  • 1
1
vote
1 answer

How can I create a Bulk USB Gadget WinUSB Device

I created an small embedded WinUSB device which offers 2 bulk endpoints. This device can communicate with Linux and with Windows10 without installing driver, or a .inf file. Now we want to use the same API with a embedded Linux. The USB-Gadget mode…
rundekugel
  • 1,118
  • 1
  • 10
  • 23
1
vote
1 answer

C++ read /sys/class/net/eth0/operstate encountered permission denied

I have to read the status of the ethernet interface in embedded linux using C++ I attempt to open and read the file /sys/class/net/eth0/operstate, but i observed that fail() member function always returns true and the errno is permission denied. My…
KJ L
  • 115
  • 2
  • 14
1
vote
0 answers

how to set arm spi interrupt to IRQ_TYPE_EDGE_BOTH

As a newbie on this topic, I am trying to change the dts of an optical port to IRQ_TYPE_EDGE_BOTH to catch the event when a port is plugged (EDGE_RISING) or removed (EDGE_FALLING). however, the kernel complains when set irq mode to…
pepero
  • 7,095
  • 7
  • 41
  • 72
1
vote
0 answers

Device driver for SD card connected using a custom bus - Platform driver or block driver?

I have to write a driver for a custom chip, to interface it with an SD card using SD protocol, which will have filesystems on it. Now the obvious answer is that, since its an SD card(a block device), I will have to go with Block device driver…
1
vote
1 answer

How to poll a byte for at most 1ms?

This is the problem piece of code. #define CSSPDR SPI::Mem[2] // Data Recieve / Data Transmit #define CSSPSR SPI::Mem[3] // SPI Status Register #define SPI_BUSY ((CSSPSR & 0x10) == 0x10) #define SPI_READ_BUFF_EMPTY ((CSSPSR &…
SF.
  • 13,549
  • 14
  • 71
  • 107
1
vote
1 answer

Raw and TCP Socket plug in Same Vlan Cause Communication Problem in Device

Hi I have an embedded device which is 2 different port. One is communicate with raw socket another device. Other port is using TCP/IP packet type. When I plug these two ports into the switch which is same vlan it cause a network problem. My device…
Caglarr
  • 31
  • 5
1
vote
1 answer

Cannot add systemd-analyze to Buildroot image

I decided to use systemd in my embedded linux system to be able to use systemd-analyze tool. I can add both systemd and systemd-analyze in my config, but after runing my system on Raspberry Pi 4, I can't run systemd-analyze (command not found). Do I…
IzZy
  • 364
  • 3
  • 16
1
vote
0 answers

Yocto PREMIRROR/SOURCE_MIRROR_URL with url arguments (SAS_TOKEN) possible?

I sucessfully created a premirror for our yocto builds on an Azure Storage Blob, that works if I set the access level to "Blob (Anonymous read).." Now I wanted to keep the blob completely private, and access only via SAS Tokens. SAS_TOKEN =…
Jahn
  • 103
  • 1
  • 8
1
vote
0 answers

RTOS vs embedded linux

There was a discussion here that is now closed:…
russellr
  • 58
  • 1
  • 8
1
vote
1 answer

How do I configure the GPIO before building the image with Yocto Project for BeagleBone Black

I am starting with Yocto Project. I wish to control GPIOs of BeagleBone Black with the image built with Yocto. Please help me. I simply find it hard to arrange the puzzles. Believe me I have "googled", but did not find something to glue the…
George
  • 653
  • 6
  • 18
1 2 3
99
100