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
11
votes
2 answers

how to access and debug a FDT/DTS device tree from a Linux driver (seg-fault)

I have written a Linux kernel-module to act as an FPGA driver for a custom board based off the Freescale P2020RDB. The driver contains several #defines to specify various addresses, sizes, bus-widths, etc. I would like to access the board's…
Trevor
  • 1,613
  • 3
  • 22
  • 34
11
votes
1 answer

Adding entry to task_struct and initializing to default value

I want to add an entry to process control block structure (task_struct). Let say a way to tag some process. I want to initialize this field to 0 for all the process except "some special processes", later by calling sched_setscheduler() I will set…
David
  • 4,634
  • 7
  • 35
  • 42
11
votes
3 answers

Embedded Linux - Booting phases

I would like to systematize my U-Boot/linux knowledge. Is it true that minimum 2 bootloader phases are needed in each embedded platform? Or can following process vary? 1st-stage bootloader (can be U-Boot) is stored in internal the processor's ROM…
Bartlomiej Grzeskowiak
  • 1,009
  • 5
  • 16
  • 35
11
votes
2 answers

What is the best way to learn board bringup and hw diagnostics?

This is my background, I have a Masters in Computer Engineering and most of my work experience involved writing device drivers for various consumer electronics. I have done 8051 and 8086 controller programming as part of my curriculum. I have also…
Santhosh
  • 891
  • 3
  • 12
  • 31
11
votes
2 answers

Docker Buildx Cannot Pull From Local for Inherited Image

I have 2 Dockerfiles on my Host Machine ( Ubuntu 20.04 ). I am running docker-ce version Docker version 19.03.12, build 48a66213fe with Experimental Features enabled. I am able to build each of them with "docker buildx" for the ARM architecture and…
PhilBot
  • 748
  • 18
  • 85
  • 173
11
votes
4 answers

Write to file without zero fill in Linux

Let's say that the intent is to create a file with a large hole at the beginning that we will write to later on, on an embedded device running Linux. We open the file, obtain a file descriptor and call lseek on it to seek to a certain, known…
11
votes
2 answers

What are linux irq domains, why are they needed?

What are irq domains, i read kernel documentation (https://www.kernel.org/doc/Documentation/IRQ-domain.txt) they say: The number of interrupt controllers registered as unique irqchips show a rising tendency: for example subdrivers of different…
11
votes
2 answers

What are ATAGs for a device that uses Linux Kernel?

I am trying to understand how a kernel boots. I am currently trying to port a new kernel to hTC Incredible S VIVO (s710e) device, but I cannot get it to boot. So, I looked into the device's original kernel, and looked through some documentation, and…
rqmok
  • 834
  • 2
  • 9
  • 20
11
votes
3 answers

USB device enumeration fails: "device descriptor read/64, error -32"

I'm developing a ttyACM device with ST microcontroller, and with the same code, my host could sometimes enumerate it successfully (below) but sometimes it just dump the below message. What does error -32 mean? [FAIL TO ENUMERATE] usb 1-2.1: new…
Shan
  • 323
  • 2
  • 6
  • 12
11
votes
2 answers

USB Port Speed Linux

How to programatically determine the usb port speed in embedded devices running the Linux kernel?
bluegenetic
  • 1,365
  • 4
  • 11
  • 15
11
votes
1 answer

Configuration registers for LPC bus in Poulsbo System Controller Hub (US15W)

We have a system based around an Atom Z510/Intel SCH US15W Q7 card (running Debian Linux.) We need to transfer blocks of data from a device on the Low Pin Count Bus. As far as I know this chipset does not provide DMA facilities, meaning the…
11
votes
3 answers

how to rebuild rootfs in buildroot

I am going to setup build environment to make my own linux embedded system for AT91SAM9X25 Board. I am using buildroot to do this. The make command build all targets, the first it build toolchain then packages and then rootfs and images of rootfs…
Yuri
  • 1,179
  • 4
  • 13
  • 27
11
votes
1 answer

What "compatible" key to use in device tree?

I'm trying to write a device tree overlay to recognize a SPI-based enc28j60 module to my BeagleBone Black. This module doesn't show up in /kernel-dev/Documentation/devicetree/bindings but there does exist a driver for it in the kernel. Does the lack…
sholsapp
  • 15,542
  • 10
  • 50
  • 67
11
votes
1 answer

what does 'low memory' mean in linux

HI I'm Korean and getting little confused on "The boot program first copies itself to a fixed high-memory address to free up low memory for the operating system". What I know about low memory that I found by googling was that this is first 640K…
Young Hyun Yoo
  • 598
  • 10
  • 21
10
votes
1 answer

How can I programmatically get the amount of memory currently available from C/C++ code?

In my middleware software layer I am receiving a lot of crashes due with the message, page allocation failure. order:10, mode:0xd1 As I understand the crash can occur due to number of reasons, running out of dynamic memory for further allocations or…
Alok Save
  • 202,538
  • 53
  • 430
  • 533