7.3 Embedded Linux
How a Linux board boots, building an image with Yocto or Buildroot, the device tree, writing drivers and kernel modules, inter-process communication and the…
Lessons
- The Linux boot process · ROM code, U-Boot, the kernel, initramfs and init.
- Linux build systems · Yocto, Buildroot and OpenWrt: layers, recipes and images.
- The device tree · Nodes, compatible strings, overlays and how drivers find hardware.
- Linux drivers and kernel modules · Modules, character devices, platform drivers and probe.
- Linux IPC mechanisms · Pipes, shared memory, sockets, message queues, signals and D-Bus.
- Linux userspace basics · Root filesystem, flash filesystems, init systems and BusyBox.
Project: Smart-home gateway
A small Linux board that links a house's Zigbee lamps and sensors to the owner's phone: it falls back to the old system when an update fails to boot, builds from a checked package list, finds its radio in the device tree, exposes it through a character driver, and keeps its daemons talking and running.