Mastering embedded Linux

This training course will help you get up and running with embedded Linux. During the hands-on sessions, you will learn how to use open source components, including the Yocto Project, to build a reliable Linux system that will run on a typical embedded development board, the BeagleBone Black. You will learn about cross toolchains, the role of the bootloader, the importance of device trees, and the Linux kernel. You will delve into architectural issues such as file system layout, how to split functions between user and kernel space and real-time programming.

Download course details as a PDF
Click here for information about booking a course


4 days


£2000 (excluding VAT)

Upcoming courses

None scheduled: contact us to request a quote


This course is ideal for software engineers who are familiar with embedded devices but need to apply that knowledge to Linux development, and to those who are familiar with Linux, but want to apply that knowledge to embedded systems


Essential: good knowledge of the C programming language, since this is used in the programming portions of the course
Desirable: either a good background in embedded devices, or a reasonable proficiency in Linux command-line tools. Delegates with neither will find the learning curve rather steep

Course materials

All students will receive:

  • A printed copy of the presentations and lab notes
  • A USB flash drive containing worked solutions to the problems, plus electronic copies of the course materials
  • A free copy of the trainer's book, “Mastering Embedded Linux Programming”

Hands-on labs

An essential part of the training are the lab sessions, which take approximately 50% of the time. We normally work in pairs using a modern development board such as the BeagleBone Black. Each group will also need a laptop or desktop to run the system development tools. We will provide a bootable USB memory stick with an appropriate version of Linux and cross tool-chain so there is no need to install Linux beforehand.

Course outline

Embedded Linux

  • Linux as an embedded operating system
  • Working with open source licenses

Toolchain, bootloader and kernel

  • The toolchain: choosing, installing and testing
  • The bootloader: how to load Linux into memory using U-Boot
  • The Linux kernel: customising and cross-compiling
  • Device trees: how they work and how to modify them to fit your hardware

Root filesystem and networking

  • Directory layout
  • Important programs: init and the shell
  • Creating a basic network configuration
  • Creating user accounts

Embedded Linux build systems

  • Buildroot
  • The Yocto Project

Init, device manager and log daemon

  • Choices for init: Busybox, SysV, systemd
  • Examples using Busybox init and systemd
  • Device managers: populating /dev
  • Options for the system log daemon

File systems and flash memory

  • Flash memory: NOR, NAND and eMMC
  • Choosing the right file system: JFFS2, UBIFS, EXT4 and tmpfs
  • Designing a robust in-field update mechanism

Linux kernel programming and device drivers

  • Writing kernel code: kernel modules
  • Anatomy of a simple device driver
  • Kernel debugging: interpreting an oops message; interactive debugging using kgdb

Developing and debugging

  • Application program interfaces: the POSIX standard
  • Calling device drivers from user space
  • Debugging applications remotely using gdbserver

Real time

  • Real-time: hard or soft? Impact on kernel and applications
  • Approaching hard real-time with the PREEMPT_RT patch