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

ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

I'm trying to install scipy via pip on my 64 bit ARMV8 board. I have already installed openblas which is required by scipy. So, no issues with that. When i gave pip3 install scipy --trusted-host pypi.org --trusted-host files.pythonhosted.org , I got…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
104
votes
1 answer

Image vs zImage vs uImage

What is the difference between them? I know that u-boot needs a kernel in uImage format. The system I use first boots from stage 1 loader and then it calls u-boot. I want to discard u-boot and directly boot from stage 1 loader. Which type of kernel…
yildizabdullah
  • 1,895
  • 5
  • 24
  • 37
64
votes
4 answers

Working of __asm__ __volatile__ ("" : : : "memory")

What basically __asm__ __volatile__ () does and what is significance of "memory" for ARM architecture?
vnr1992
  • 761
  • 1
  • 6
  • 7
62
votes
1 answer

What is the difference between RTOS and Embedded Linux?

RTOS and Embedded Linux are used for embedded systems programming. Is Embedded Linux itself an RTOS ? Can anyone list the comparison or difference please?
NayabSD
  • 1,112
  • 2
  • 15
  • 26
56
votes
7 answers

Learning Kernel Programming

I want to learn lLinux Kernel programming. What would be the starting points for that? What could be some of the simpler problems to target?
Geek
  • 23,089
  • 20
  • 71
  • 85
55
votes
4 answers

How to write a simple Linux device driver?

I need to write an SPI Linux character device driver for omap4 from scratch. I know some basics of writing device drivers. But, I don't know how to start writing platform specific device driver from scratch. I've written some basic char drivers, and…
Sagar Jain
  • 7,475
  • 12
  • 47
  • 83
54
votes
3 answers

How to compile dts Linux device tree source files to dtb?

I have a device tree file (.dts) and I want to compile the file for my powerpc based board. How can I do it on my machine, which is not powerpc based?? Can I do it with the DTC installed on my Ubuntu system? Or will it be more like using a separate…
53
votes
5 answers

Implementing an update/upgrade system for embedded Linux devices

I have an application that runs on an embedded Linux device and every now and then changes are made to the software and occasionally also to the root file system or even the installed kernel. In the current update system the contents of the old…
trenki
  • 7,133
  • 7
  • 49
  • 61
52
votes
5 answers

How does the linux kernel manage less than 1GB physical memory?

I'm learning the linux kernel internals and while reading "Understanding Linux Kernel", quite a few memory related questions struck me. One of them is, how the Linux kernel handles the memory mapping if the physical memory of say only 512 MB is…
TheLoneJoker
  • 1,589
  • 1
  • 23
  • 36
51
votes
5 answers

How to know linux scheduler time slice?

I'm looking for the value of the time slice (or quantum) of my Linux kernel. Specific Questions: Is there a /proc file which expose such an information ? (Or) Is it well-defined in the Linux header of my distributions ? (Or) Is there a C function…
backlash
  • 777
  • 1
  • 6
  • 12
39
votes
1 answer

Measurement of TLB effects on a Cortex-A9

After reading the following paper https://people.freebsd.org/~lstewart/articles/cpumemory.pdf ("What every programmer should know about memory") I wanted to try one of the author's test, that is, measuring the effects of TLB on the final execution…
D4l3k
  • 575
  • 3
  • 13
34
votes
2 answers

Userspace vs kernel space driver

I am looking to write a PWM driver. I know that there are two ways we can control a hardware driver: User space driver. Kernel space driver If in general (do not consider a PWM driver case) we have to make a decision whether to go for user…
Katoch
  • 2,709
  • 9
  • 51
  • 84
33
votes
6 answers

Cross compiling a kernel module

I'm trying to cross compile a helloworld kernel (2.6.x) module for ARM architecture on my intel x86 host. The codesourcery tool chain for ARM is located at: /home/ravi/workspace/hawk/arm-2009q3 The kernel source is located at…
32
votes
6 answers

Write a bash shell script that consumes a constant amount of RAM for a user defined time

I am trying to write a bash shell script that consumes a high amount of RAM on an embedded device for a user defined time. How do I do it without using arrays ?
Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208
31
votes
2 answers

How to create a defconfig file from a .config?

I have done make menuconfig for a board defconfig and modified few configurations. When I select save, a new .config was created in the Kernel top directory. I want to create new defconfig for this .config file created. Can I copy the .config as a…
user3693586
  • 1,227
  • 5
  • 18
  • 40
1
2 3
99 100