Operating Systems and Embedded Software · Operating system
Embedded Linux
Also known as Linux for embedded systems, custom Linux distribution, Linux-based ECU software
The use of the Linux kernel with a purpose-built user space on a dedicated device, such as an ECU, gateway or infotainment unit, rather than a general-purpose desktop or server distribution.
Explanation
An embedded Linux system combines the Linux kernel, a bootloader, board support (often a device tree) and a root filesystem containing only the libraries and services the product needs. Images are normally produced on a development host with build systems such as the Yocto Project or Buildroot, which cross-compile every component for the target processor.
Linux is attractive because it runs on many processor architectures, provides memory protection through the MMU, mature networking (including SocketCAN for CAN buses) and a large driver base. The kernel is distributed under the GNU General Public License v2, which brings source-disclosure obligations that product teams must manage.
Standard Linux is not a hard real-time operating system. Timing-critical functions are usually placed on a microcontroller or RTOS, or handled with the PREEMPT_RT configuration and careful system design. Using Linux in safety-related functions needs additional argumentation under the applicable safety standard, and teams must plan how to track security fixes over the vehicle's service life.
How it works
A build starts from a machine (board) configuration and a list of required packages. The build system fetches sources, builds or imports a cross-toolchain, compiles the kernel, bootloader and user-space packages, and assembles a root filesystem image. At power-on the bootloader loads the kernel and device tree, the kernel initialises drivers and mounts the root filesystem, and an init system starts the product's services. Updates replace the image or individual components.
Automotive applications
- In-vehicle infotainment and digital cockpit units
- Telematics control units and connectivity gateways
- Domain and zonal controllers running service-oriented middleware
- Data loggers and test benches using SocketCAN
Example
A telematics unit runs a Yocto-built Linux image on an Arm SoC. The kernel's SocketCAN driver reads vehicle CAN traffic, a user-space service aggregates selected signals, and an MQTT client forwards them over the cellular modem to a fleet back-end.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Linux kernel release 6.x (admin guide README) (opens in a new tab)
“Linux is a clone of the operating system Unix, written from scratch by Linus Torvalds”
- Yocto Project Overview and Concepts Manual: Introducing the Yocto Project (opens in a new tab)
“The Yocto Project is an open source collaboration project that helps developers create custom Linux-based systems that are designed for embedded products”
- The Buildroot user manual (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.