Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Otavio Salvador, Daiane Angolini

Rating No ratings yet

The Yocto Project powers some of the world's most demanding embedded Linux products, from medical devices and industrial gateways to networking gear and consumer electronics. With this book, you join the engineers who rely on it every day to ship reliable, reproducible Linux systems. Embedded Linux Development Using Yocto Project, 4th Edition, is your hands-on guide to the Yocto Project 6.0 (Wrynose) LTS release. You'll move from your first QEMU boot to a custom production distribution running on real hardware, mastering Poky and BitBake along the way. The book covers custom layers and recipes, the Standard and Extensible SDKs, Toaster, package feeds, Build History, devshell debugging, and GPL compliance backed by SPDX 3.0 SBOMs and CVE scanning. A brand-new chapter on Managing BitBake Configuration walks through the bitbake-setup and bitbake-config-build workflows reshaping how teams bootstrap, share, and reproduce builds. You'll package BitBake Configuration Templates and Fragments, manage registries, and synchronize configurations across teams. By the end, you'll be ready to bake images for BeagleBone Black, Raspberry Pi 4 and 5, and VisionFive RISC-V boards, generate SBOMs ready for EU CRA and U.S. EO 14028 reporting, speed up iteration with QEMU, and lead embedded Linux projects with confidence. What you will learn Bootstrap projects with bitbake-setup and BitBake Configuration Fragments Drive builds from Toaster's web dashboard for full visibility Assemble packages and host package feeds for production rollouts Author custom layers, recipes, machines, and distributions Build applications and the Linux kernel with standard and extensible SDKs Pinpoint regressions with Build History, devshell, and Package Information Boot custom images on BeagleBone Black, Raspberry Pi 4/5, and VisionFive Generate SPDX 3.0 SBOMs, scan CVEs, and meet EU CRA reporting needs

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on field guide to building reproducible, production-grade embedded Linux with the Yocto Project 6.0 (Wrynose) LTS, taking you from a first QEMU boot to custom layers, SDKs, package feeds, and compliance-ready SBOMs. Best for embedded engineers and build/infrastructure developers comfortable on the Linux command line who need to ship and maintain real hardware products. 【Book Arc】 - **Opening (~0%–15%)**: Establishes the foundation — what the Yocto Project and OpenEmbedded layers are, how to bake a first image, and how to reproduce a build from a clean machine. It solves the "where do I even start" problem. - **Early (~15%–30%)**: Introduces the toolchain around the build: the VS Code BitBake extension, BitBake's role in the workflow, layer structure, and the three kinds of metadata you will meet everywhere afterward. - **Early–Middle (~30%–45%)**: Moves into the mechanics of metadata and packaging — dependency graphs, task scheduling, source fetching and mirrors, the temporary build directory, package formats, versioning, and runtime dependencies. - **Middle (~45%–65%)**: Deepens into authoring: custom layers, recipes, machines, and distributions, plus the Standard and Extensible SDKs for building applications and the Linux kernel. - **Late (~65%–85%)**: Turns to production operations — package feeds, Build History, devshell debugging, Toaster's web dashboard, QEMU emulation for faster iteration, and the new bitbake-setup / bitbake-config-build configuration workflows. - **Ending (~85%–100%)**: Closes on compliance and longevity — SPDX 3.0 SBOMs, CVE scanning, GPL/copyleft obligations, and a Best Practices chapter for keeping a product maintainable over a multi-year lifecycle. 【Key Takeaways】 - **Reproducibility is the whole point** (Opening): the early goal is a build any engineer can recreate from a clean machine, which becomes the baseline everything else depends on. - **Layers are the unit of organization** (Early): only BitBake and the `meta` layer are strictly required; `meta-yocto` layers are reference content, and production builds typically substitute their own distribution and BSP layers. - **Dependencies are expressed as task graphs** (Middle): `DEPENDS` and `RDEPENDS` declare build-time and runtime relationships, and BitBake schedules parallel work wherever prerequisites allow. - **Packaging sits at the center of every build** (Middle): images, SDKs, and feeds are all produced from consistent, versioned packages, with license metadata stamped onto each one. - **Versioning has three moving parts** (Middle): `PE:PV-PR` governs ordering and feed monotonicity, and the PR Service automates revision bumps for published feeds. - **SDKs are underused but powerful** (Late): the Standard SDK is described as commonly undervalued, while the Extensible SDK supports application and kernel development outside the full build. - **Compliance is a build output, not an afterthought** (Ending): SPDX 3.0 SBOMs and CVE scanning are framed as deliverables supporting EU CRA and U.S. EO 14028 reporting. - **Best practices protect multi-year maintenance** (Ending): manage layers deliberately, avoid too many layers or excessive kernel patches, avoid `AUTOREV` as `SRCREV`, and maintain the Shared State Cache. 【Reading Tips】 - Deep-read the metadata and packaging chapters (Middle); they are the conceptual hinge for everything later. Skim the tooling setup chapters if your host is already configured. - Treat the Best Practices chapter as a checklist to revisit before starting a real product, not as a one-time read. - The new BitBake configuration chapter (bitbake-setup, fragments, registries) is worth close attention if your team needs to share and reproduce builds across machines. - Watch for the Shared State Cache caveat: `cleanall` does not clear a shared sstate mirror, so a rebuild may skip `do_fetch` entirely — this surprises many readers. - Hardware chapters assume access to BeagleBone Black, Raspberry Pi 4/5, or VisionFive boards; use QEMU to follow along if you lack the hardware. 【Coverage Limits】 This guide is synthesized from stratified excerpts covering roughly the first half of the book plus the table of contents and preface; later chapters on SDKs, Toaster, package feeds, compliance, and best practices are summarized from headings and front matter rather than full text.
Excerpt 1
ions with Build History, devshell, and Package Information Boot custom images on BeagleBone Black, Raspberry Pi 4/5, and VisionFive Generate SPDX 3.0 SBOMs,...
View in text
Excerpt 2
y define their own distribution layer in place of meta‑poky and use a vendor or community BSP layer in place of meta‑yocto‑bsp. Chapter 12 describes how to e...
View in text
Excerpt 3
inal, sources the environment, and starts the emulator. The QEMU window appears on top of the editor while the terminal streams boot output in the background...
View in text
Excerpt 4
kage version), and PR (package revision). ${PE}:${PV}-${PR} PE is unset by default, which version comparisons treat as epoch 0. It only changes when you need...
View in text
Excerpt 5
pace onto every developer laptop. Typical contents include: • Compilers • Linkers • Debuggers • External libraries • Header files • Profilers • Supporting ut...
View in text
Excerpt 6
on • Adjusting default DISTRO_FEATURES and MACHINE_FEATURES • Interaction between MACHINE_FEATURES and DISTRO_FEATURES • Understanding the scope of variables...
View in text
Excerpt 7
tions themselves, starting with extending an existing task. 183 Customizing Existing Recipes Variable Default expanded value includedir /usr/include Table 13...
View in text
Excerpt 8
loads directory beneath it, and every BitBake Setup created underneath receives a build/conf/site.conf symlink back to that one file. The dl‑dir setting deci...
View in text
Tags
AI categories
Programming LanguageLinuxSoftware
ISBN: 1806695073
Publisher: Packt Publishing
Publish Year: 2026
Language: English
Pages: 346
File Format: PDF
File Size: 4.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…