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
30
votes
3 answers

How to find which Yocto Project recipe populates a particular file on an image root filesystem

I work with the Yocto Project quite a bit and a common challenge is determining why (or from what recipe) a file has been included on the rootfs. This is something that can hopefully be derived from the build system's environment, log & meta data. …
shibley
  • 1,528
  • 1
  • 17
  • 23
30
votes
7 answers

Driving Beaglebone GPIO through /dev/mem

I'm trying to write a C program for blinking a LED on the Beaglebone. I know I can use the sysfs way...but I'd like to see if it is possible to get the same result mapping the physical address space with /dev/mem. I have a header file,…
Salvatore
  • 1,145
  • 3
  • 21
  • 42
29
votes
2 answers

What does request_mem_region() actually do and when it is needed?

I'm studying on writing embedded linux driver, and decided to fire a few GPIOs to make sure I understand the book (LDD3, chap9.4.1) correctly. I am able to control the correct GPIO pins as intended (making it high and low, I probed with a…
I'm a frog dragon
  • 7,865
  • 7
  • 46
  • 49
29
votes
5 answers

Tool to visualize the device tree file (dtb) used by the Linux kernel?

I am looking for a tool which can graphically represent the hardware device tree used in linux kernel. I am trying to understand linux kernel for particular arm chipset. It would be a really useful tool to have.
Punit Soni
  • 1,229
  • 3
  • 17
  • 26
27
votes
1 answer

How to interpret /proc/mounts?

When i do the following. "cat /proc/mounts". tmpfs /export/ftp/import tmpfs rw,relatime,size=102400k 0 0 tmpfs /export/ftp/export tmpfs rw,relatime,size=10240k,mode=755 0 0 The documentation of embedded device said that import and export are…
New to Rails
  • 2,824
  • 5
  • 27
  • 43
27
votes
3 answers

Tips for learning embedded linux

I want to learn the basics of embedded linux. To do this I am assuming that I need to go and buy some sort of hardware board and have the linux kernel code. I have no idea where to start with this and any tips/pointers would be most welcome. Ideally…
code_fodder
  • 15,263
  • 17
  • 90
  • 167
26
votes
3 answers

Year 2038 solution for embedded Linux (32 bit)?

What is the proper way to handle times in C code for 32-bit embedded Linux (ARMLinux) to ensure that the code continues to work properly after 03:14:07 UTC on 19 January 2038 (when a signed 32-bit time_t overflows)? Given that time_t is signed…
Ian Goldby
  • 5,609
  • 1
  • 45
  • 81
25
votes
3 answers

List all harddrives in a linux system

I'm having problems to detect which one of my block devices is the hard drive. My system has a cd-rom drive, USB drives, and a single hard drive of unknown vendor/type. How can I identify the hard drive with a linux command, script, or C…
Allan
  • 4,562
  • 8
  • 38
  • 59
25
votes
2 answers

Tracking down mysterious high-priority thread suspend inside the kernel

Description I'm working on an embedded Linux system (using kernel 3.4 and bionic, Android-like) that is running on a multi-core ARMv7a SoC. We have a user-space thread that is basically servicing events coming out of the kernel. The events are…
23
votes
3 answers

Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?

Bootloaders like U-Boot that do not implement the Open Firmware API, are expected to pass to the kernel a binary form of the flattened device tree - LinuxFDTBlob Why are the DTS files present in the kernel as well? Isn't that redundant? As an…
Hamzahfrq
  • 696
  • 1
  • 6
  • 25
23
votes
5 answers

Duplicating identical BeagleBone Black setups

After having set-up and customized my "master" BeagleBone Black (BBB) with applications etc. on the on-board eMMC, I want to duplicate it on other BBB boards. What is the best way to duplicate the BBB? My understanding of options: SD-Card:…
Philipp
  • 4,659
  • 9
  • 48
  • 69
22
votes
5 answers

Is there a way to check the exact list of packages that will be installed in the image in Yocto?

In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an image file before executing the image building…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
22
votes
5 answers

embedded web browser

I'm looking for Linux embedded web browser, or preferably just a rendering object (it will not be used for actual browsing, just for displaying web based gui). The requirements are: Written in C/C++ (small footprint) Support Dynamic HTML…
Ilya
  • 3,104
  • 3
  • 23
  • 30
21
votes
2 answers

How to use bluetoothctl like hcitool lescan to report repeated proximity beacons

I can use hcitool lescan with the --duplicates flag to capture periodic LE Advertising Reports (proximity beacons) from two nearby BLE devices: $ sudo hcitool lescan --duplicates LE Scan ... C8:0F:10:29:4D:98 MI1S C8:0F:10:29:4E:75…
jfathman
  • 788
  • 3
  • 8
  • 13
21
votes
0 answers

Linux timer hangs sometime and stops at 1ns

I have an embedded board with PowerPC 5200 running Realtime Linux with version 2.6.33. My application is using one high-resolution timer in Linux for alarms. This timer sometimes didn’t expire. The problem happens very rarely, it may go many months…
Vijay Katoch
  • 548
  • 1
  • 6
  • 14