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
20
votes
4 answers

Function caller in linux kernel

Is there a way to get function caller in linux kernel? I know __func__ returns the function name which is executing. I am looking for the function which called "__func__"
BHS
  • 991
  • 3
  • 12
  • 26
20
votes
6 answers

modifying kernel config in Yocto

I am trying to modify the kernel config without luck. There is a BSP in meta-xxx-yyy/ with recipes-kernel/linux/linux_git.bb. I try to override the kernel config in my layer named meta-xxx-mylayer where I have recipes-kernel/linux/linux_git.bbappend…
Michal Koziel
  • 242
  • 1
  • 2
  • 9
20
votes
6 answers

What is the difference between the firmware and the operating system?

In embedded devices such as printer, switches, I am confused what the difference between the firmware and the operating system is. Are embedded devices operating systems similar to PCs (Linux and Windows)? For example, I have a printer which has an…
19
votes
1 answer

How to switch linux kernel console after boot process?

On my embedded system I usually use /dev/ttyS0 as a main console. This is achieved by passing kernel parameter console=/dev/ttyS0 and when init takes its part, getty is fired on the same device as specified in inittab by eg.…
Honza
  • 1,734
  • 3
  • 16
  • 22
18
votes
5 answers

Continuous Integration/ Unit testing in embedded C++ systems

What tools are generally used for unit testing and especially continuous integration for embedded systems? I am especially thinking that you usually have to cross-compile and deploy, and also that you can't easily visualize the target platform. …
Olav
  • 1,758
  • 4
  • 27
  • 49
18
votes
2 answers

Hello Word Device Tree Based device driver

I have read and almost gone through all the linux kernel documentation on the device tree and device tree overlays.I am not able to understand if we have to create a new entree in the device tree of the platform or to create a new overlay for the…
Raulp
  • 7,758
  • 20
  • 93
  • 155
18
votes
4 answers

How to do power save on a ARM-based Embedded Linux system?

I plan to develop a nice little application that will run on an arm-based embedded Linux platform; however, since that platform will be battery-powered, I'm searching for relevant information on how to handle power save. It is kind of important to…
Johan
  • 20,067
  • 28
  • 92
  • 110
18
votes
0 answers

How to change device (LCD) parameters dynamically on Android Linux ARM device

I am trying to use loadable Kernel module to modify the LCD display parameters. Following is compiled code for the kernel. void set_fb_video () { platform_device_unregister(&goldfish_lcd); …
Mahendra Gunawardena
  • 1,956
  • 5
  • 26
  • 45
18
votes
3 answers

u-boot : Relocation

This one is a basic question related to u-boot. Why does the u-boot code relocate itself ? Ok, it makes sense if u-boot is executing from NOR-flash or boot ROM space but if it runs from SDRAM already why does it have to relocate itself once again ? …
Leo Messi
  • 822
  • 10
  • 19
17
votes
8 answers

Getting U-boot's Version from Userspace

Does anyone know of a way to get U-boot version installed from userspace? There is the fw_printenv command that provides access to U-boot's environment variables, but not the version.
waffleman
  • 4,159
  • 10
  • 39
  • 63
17
votes
5 answers

Determining CPU utilization

Is there a command or any other way to get the current or average CPU utilization (for a multi-processor environment) in Linux? I am using embedded Linux in a small system. Basically, I need to determine the CPU utilization, so that if it is high, I…
user191776
16
votes
8 answers

C vs C++ in embedded Linux

I am developing an application for embedded Linux (ARM). It will execute 500 times/sec, therefore speed is important. I would prefer to use C++ but I am afraid it will be slower than C even if I avoid fancy features like virtual functions. Is there…
16
votes
3 answers

How to use an own device tree and modified kernel config in Yocto?

I am working to build an own "embeeded linux" with yocto. It is based on the SAMA5D3x-MB + SAMA5D3x-CM(RONETIX) with the SAMA5D35. I have two questions: 1.) changing the device tree I build an image based on: MACHINE ??= "sama5d3xek" After the…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
16
votes
8 answers

Embedded Linux for total beginner

I want to learn how to develop in embedded linux. What materials should I need? I don't have the actual embedded device so I plan to use some device emulator for the PC. I want to know how to load the kernel and the filesystem in the device.
domlao
  • 15,663
  • 34
  • 95
  • 134
15
votes
4 answers

How to move from microcontrollers to embedded linux?

As a kind of opposite to this question: "Is low-level embedded systems programming hard for software developers" I would like to ask for advice on moving from the low level embedded systems to programming for more advanced systems with OS,…
Purple Tentacle
  • 1,606
  • 1
  • 17
  • 19