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
1 answer

TOOLCHAIN_HOST_TASK Vs TOOLCHAIN_TARGET_TASK

I am sorry for naive question. I could not understand the difference between these Yocto variables. The Manual says TOOLCHAIN_HOST_TASK: Lists packages that make up the host part of the SDK (i.e. the part that runs on the SDKMACHINE). When you…
TonyParker
  • 2,024
  • 5
  • 18
  • 27
10
votes
1 answer

QBackingStore::endPaint() called with active painter on backingstore paint device

I'm following this tutorial for deploy qml to yocto. I'm using beaglebone black not raspberry but i think it is not important. When i ran cmd "./QmlProject" on beaglebone black , I had an error: QBackingStore::endPaint() called with active painter…
Đại Ngoc
  • 109
  • 1
  • 10
10
votes
1 answer

What is difference between .bb ( recipe ) and .bbclass ( class ) in yocto

I just started understanding Yocto. I have not find much information about classes ( .bbclass ) files . I know .bb file is a recipe which contains the instruction to build a package. When do we have to write a recipe and when a class or what is the…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
10
votes
2 answers

Read a specific memory address via /dev/mem from the command line

For context, programming a driver to interact with an FPGA IP core on an embedded Linux (Yocto: krogoth) on a Xilinx board. For debugging purposes I would like to read out specific memory addresses from physical memory. /dev/mem looks promising. I…
Moritz
  • 2,987
  • 3
  • 21
  • 34
10
votes
1 answer

MTD Erase Block Size of zero for SRAM

Refined Question How do read and write text information from a MTD SRAM device with erase block size zero? Notes: I am using the 23K256 Driver Attempts to use MTD-Util tools have failed because libmtd cannot handle a erase block size of…
Liam Kelly
  • 3,524
  • 1
  • 17
  • 41
10
votes
3 answers

How to add a Linux kernel driver module as a Buildroot package?

I am currently building an Embedded Linux for my Zybo Board from Xilinx. For this I use Buildroot. Now I want to add a driver, written in C, which can be used by a user program to write to some specific registers, enabling it to control some LEDs.…
Daiz
  • 357
  • 1
  • 3
  • 20
10
votes
1 answer

Device Specific Data Structure with Platform Driver and Character Device Interface

I'm struggling with understanding the linkup between a platform device driver with a character device interface and storing data in a device specific data structure. I created a struct keeping track of data related to my device, and then add it to…
10
votes
1 answer

Linux: How to enable Execute in place (XIP) for RAMFS/TMPFS

I'm working on an embedded system where the rootfs is constructed in a tmpfs partition by the init process. After the rootfs is complete, it will do a pivot-root and start spawning processes located in the rootfs. But it seems like XIP is not…
Allan
  • 4,562
  • 8
  • 38
  • 59
10
votes
3 answers

How to attach file operations to sysfs attribute in platform driver?

I wrote a platform driver for a peripheral we developed and would like to expose some configuration options to the sysfs. I have managed to create the appropriate files using attribute structs (see below) and sysfs_create_file in the probe function,…
10
votes
5 answers

How to disable serial console(non-kernel) in u-boot

I am building a Yocto image for Intel Edison. One of the image's components is u-boot with an Edison-specific patch. By default, Edison's UART port is used for u-boot console. I want to disable this feature, but only on the serial interface(u-boot…
Egor
  • 401
  • 1
  • 7
  • 14
10
votes
3 answers

Embedded Linux or eCos?

One way to look at it - embedded Linux starts with desktop Linux & ditches the parts not needed for embedded systems (is this actually true?), whereas eCos is designed from the ground up for embedded systems. Now, assume an ARM processor, probably…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
10
votes
3 answers

what is the need of second stage boot loader ? why different bootloaders like first stage and second stage?

I know the first stage boot loader will make basic hardware initializations and calls the second stage boot loader like u-boot. But I still do not understand for why we need multiple stages of boot loaders. Why can't we have only one boot loader,…
Pradeep G
  • 111
  • 1
  • 1
  • 5
10
votes
2 answers

why does the i2cdetect always gives UU on my RTC in embedded Linux

I'd like to communicate read from my RTC in C code rather than the "hwclock" shell command. However, when I use i2cdetect, it shows 0x68(which is my RTC slave address) is having the status "UU", which means "Probing was skipped, because this…
henryyao
  • 1,758
  • 6
  • 23
  • 37
10
votes
1 answer

Pass large amount of binary data from u-boot to linux kernel

Have some issues with passing large amount of data (3 MB) from uboot to linux kernel 2.6.35.3 on imx50 ARM board. This data is required in kernel device driver probe function and then it should be released. First uboot load data from flash to RAM,…
Mikhail Boiko
  • 187
  • 2
  • 8
10
votes
5 answers

I need to implement a way to sleep this thread until it has work to do

Alright, so this question isn't exactly about thread management... well, sort of. I am looking for different solutions to this configuration. I have a few ideas, but am looking for any solutions that could satisfy the problem. And will weigh the…
linsek
  • 3,334
  • 9
  • 42
  • 55