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

how to know the Interrupt/GPIO number for a specific pin in linux

i'm doing a project in which i need to handle an interrupt in Linux. the board i'm using is an ARM9Board based on the s3c6410 MCU by Samsung (arm 11 processor) and it has the following I/O interface : as the image shows i have EINTx pins for…
Abd elrahman Diab
  • 135
  • 1
  • 2
  • 7
9
votes
2 answers

Getting uname information from a compressed kernel image

Is there a good way to extract the same information that uname does from a compressed kernel image? I want this to be able to check the dog tags of kernel sitting in dormant mtd's on an Embedded Linux system and compare it to the currently running…
waffleman
  • 4,159
  • 10
  • 39
  • 63
9
votes
6 answers

Linux total available memory

I'm trying to figure out a good formula for finding out how much memory is available. I'm using the following formula currently: freeMem = MemFree + Buffers + Cached - Shmem. However, according to this formula my embedded system is losing memory. …
atomicbaum
  • 311
  • 1
  • 3
  • 6
9
votes
2 answers

default baud rate - linux/u-boot

I'm working on the development of an embedded linux system using u-boot. U-boot sets the baud rate of the ttyS0 serial port with the console= bootarg, but I would also like to set the default baud rate of ttyS[1-3] (to something other than 9600). In…
dan6470
  • 309
  • 2
  • 4
  • 9
9
votes
2 answers

what is the meaning of the content of /proc/ioports

I got a strange text by 'catting' the /proc/ioports file of my PC linux, 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0070-007f : rtc0 ... What I dont understand is the anterior part of each entry, look at the first…
user718146
  • 400
  • 1
  • 4
  • 16
9
votes
1 answer

Difference between class-target and class-native in yocto recipe

I am trying to understand Yocto recipes. Following is one of the line from a Yocto Recipe: DEPENDS_append_class-target = " grub-efi-native" What I understood is this recipe depends on package grub-efi-native, while on the other hand, what I am…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
9
votes
4 answers

Safely writing to compact flash on embedded Linux

I'm developing an embedded Linux system that runs from compact flash and tmpfs. The flash is mounted read-only and should normally stay that way, but occasionally I need to write something to the flash. What precautions should I take when writing to…
eater
  • 2,697
  • 1
  • 21
  • 24
9
votes
4 answers

How do I find Linux config options in menuconfig?

Various web pages tell me that to get full truthful stack backtraces in the Linux kernel, I need to set CONFIG_FRAME_POINTER=y in my .config file. So I run make menuconfig and try to find it in there, but it's hardly intuitive where to navigate to…
phonetagger
  • 7,701
  • 3
  • 31
  • 55
9
votes
2 answers

What is the use of vmlinux file generated when we compile linux kernel

I am compiling Linux Kernel to my ARM board. I have seen file called vmlinux generated in kernel root folder. Can someone give good explanation about this file and it's use.
Kumara
  • 301
  • 1
  • 3
  • 10
9
votes
2 answers

How to get the pid of another process in c?

I am using the getpid and get the pid of current process. Now I am try to get the pid of other process using process name. How to get the other process pid? #include #include #include int main(void) { …
sakthi
  • 675
  • 2
  • 10
  • 18
9
votes
1 answer

Is there any way to make a call to linux kernel with my own softirq

Similar to how system call works on int 0x80, is it possible to implement my own ISR inside kernel so that on softirq assume int 0x120 or with any other softirq Program Counter can jump from user space to kernel space? Is entering kernel in…
Samrat Das
  • 1,781
  • 1
  • 21
  • 33
9
votes
1 answer

Debugging Linux Kernel using GDB in qemu unable to hit function or given address

I am trying to understand kernel bootup sequence step by step using GDB in qemu environment. Below is my setting: In one terminal im running ~/Qemu_arm/bin/qemu-system-arm -M vexpress-a9 -dtb ./arch/arm/boot/dts/vexpress-v2p-ca9.dtb -kernel…
vinay hunachyal
  • 3,781
  • 2
  • 20
  • 31
9
votes
1 answer

Qt Creator remote debugging

I have an application that I run on an Embedded Linux device. In Eclipse, I can run remote debugging using the eclipse-cdt-launch-remote plugin where I point a binary to run, and where to put it on the device with some environment variables to be…
YoloMcSwaggy
  • 119
  • 1
  • 1
  • 6
9
votes
7 answers

Execute a program in kernel space in Linux

If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have? I have looked at KML(kernel mode linux) but that is specific to IA-32 architecture. I want a solution which is cross platform and can work on…
binW
  • 13,220
  • 11
  • 56
  • 69
9
votes
6 answers

How to set root password on Yocto / Poky image?

I am building an image with Yocto/Poky release Daisy 1.6.3. What is the correct way or config file where to set the root password? The default password is empty and I can't find a place where to specify it.
Alessandro Da Rugna
  • 4,571
  • 20
  • 40
  • 64