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
15
votes
1 answer

Difference between wic and hddimg format in yocto

I have generated a core-image-minimal image for my Intel board in Yocto. Looking into tmp/deploy/images folder they are many images. I flashed *.wic image using dd command on USB and it created two partitions ( Boot and Platform ) and allowed only…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
15
votes
4 answers

Docker on embedded systems, why not?

There was a project thrown my way recently that involves the orchestration of several (Linux capable) embedded devices, deploying software to them, and allowing for the applications to be updated when the code base updates in a git repo. The initial…
Bobby
  • 1,439
  • 2
  • 16
  • 30
15
votes
5 answers

Lock a mutex multiple times in the same thread

I'm developing an application on an embedded linux OS (uClinux) and I need to be able to lock the mutex more than once (by the same thread). I have a mutex and a mutexattr defined and initialized as follows: pthread_mutexattr_t…
Megacan
  • 2,510
  • 3
  • 20
  • 31
15
votes
2 answers

arm-linux-gnueabihf-gdb versus gdb-multiarch

I'm trying to perform cross platform remote debugging from my x86 computer to a remote ARM device. (ex: Beagle Bone Black) I'm using Ubuntu 14.04 and Eclipse CDT. I installed the package gcc-arm-linux-gnueabihf but the gdb debugger is not in that…
ssinfod
  • 975
  • 2
  • 15
  • 31
15
votes
2 answers

How can I find which physical device /dev/console connects to?

There is a device file called /dev/console, whose (major,minor) is (5,1). When I boot with a serial console, it connects to my UART port as /dev/ttyS0 does. But when I boot with serial console disabled, the /dev/console seems to connect to…
user1937358
  • 239
  • 1
  • 2
  • 8
15
votes
1 answer

Detailed explanation for profile from "adb shell dumpsys meminfo my-app-name"?

Can anyone give me a detailed explanation about the profile gotten by adb shell dumpsys meminfo my-app-name? The result is just as below as it mentioned in How do I discover memory usage of my application in Android?: ** MEMINFO in pid 890…
user1802093
  • 151
  • 1
  • 1
  • 3
15
votes
1 answer

How to read a binary data over serial terminal in C program?

I read followed links and other sources, but didn't find answer for my question. Binary data over serial terminal Data gets corrupted during transmission over the serial port I communicate with my embedded device through a serial port. By default,…
Bakir
  • 193
  • 1
  • 2
  • 9
14
votes
2 answers

Zero-copy user-space TCP send of dma_mmap_coherent() mapped memory

I'm running Linux 5.1 on a Cyclone V SoC, which is an FPGA with two ARMv7 cores in one chip. My goal is to gather lots of data from an external interface and stream (part of) this data out through a TCP socket. The challenge here is that the data…
rem
  • 1,298
  • 2
  • 9
  • 16
14
votes
2 answers

How to cross-compile for MIPS?

I have a DVB receiver (set-top box) similar like Dreambox and it has MIPS cpu It has embedded Linux and I can connect to it with telnet Question is how to compile simple "Hello World" application in C? Where to get toolchain, SDK?
davispuh
  • 1,419
  • 3
  • 18
  • 30
14
votes
1 answer

Reading from USB device and writing to physical address

I have a USB device that outputs data of size of one byte, and I want to pass these bytes to FPGA component that exists on AXI bridge, FPGA and CPU are on the same chip... it's SoC FPGA Altera Cyclone V. CPU is ARM Cortex-A9. Kernel version…
14
votes
3 answers

What is the minimum amount of RAM required to run Linux kernel on an Embedded device?

What is the minimum amount of RAM required to run Linux kernel on an Embedded device? In Linux-0.11 for 80x86, the minimum RAM required was 2MB to load the kernel data structures and interrupt vectors. How much is the minimum needed RAM for present…
manav m-n
  • 11,136
  • 23
  • 74
  • 97
14
votes
3 answers

Embedded Developer, what skills are important

I want to make a list of things that need to learn that is valuable for my career. What skills do you think are vital for an embedded developer, now and the distant future? I have become quite proficient with C and ARM assembler through working…
MrGigu
  • 1,729
  • 3
  • 23
  • 37
14
votes
2 answers

I2C concurrent access on Linux, mutex

I'm writing a multithread C program in embedded Linux that accesses from userspace a number of I2C devices (slaves). Also, I access the same I2C device from multiple threads. I'm using SMBUS functions (i2c_smbus_write_byte_data,…
stef
  • 737
  • 4
  • 13
  • 31
14
votes
4 answers

Incorrect floating point behavior

When I run the below C++ program in a 32-bit powerpc kernel which supports software floating emulation (hardware floating point disabled), I get a incorrect conditional evaluation. Can some tell me what's the potential problem here? #include…
rajachan
  • 795
  • 1
  • 6
  • 20
14
votes
2 answers

Building a minimal Linux for Raspberry Pi

Now I got my Raspberry Pi. I am an experienced application software developer, but I've never done hardware stuff or low-level programming before. I want to build a minimal Linux, including drivers for all hardware on my Pi. For learning purpose, I…
powerboy
  • 10,523
  • 20
  • 63
  • 93