[{"data":1,"prerenderedAt":9828},["ShallowReactive",2],{"search-index":3,"doc-articles":105},[4,9,13,17,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101],{"_path":5,"title":6,"description":7,"date":8},"/dev/eu-cyber-resilience-act-firmware-evidence-pack","CRA Firmware Evidence: Scope, Dates and Preparation","Practical breakdown of the EU Cyber Resilience Act requirements for embedded firmware teams, covering technical obligations, SBOM requirements, vulnerability handling, and the evidence pack needed for compliance.","2026-04-19T08:00:00.000Z",{"_path":10,"title":11,"description":12,"date":8},"/dev/pkg/firmware-sboms-spdx-cyclonedx-2026","Firmware SBOMs: SPDX, CycloneDX and Publication Workflows","Practical comparison of SPDX and CycloneDX for firmware SBOMs, covering what to include, automation approaches, tooling, and publication strategies for embedded Linux products.",{"_path":14,"title":15,"description":16,"date":8},"/dev/pkg/spdx-3-0-embedded-builds-practical","SPDX 3.0 for Embedded Builds: Packages, Files, and Relationships Engineers Actually Use","Practical guide to SPDX 3.0 for embedded Linux, covering the data model, package and file elements, relationship types, and how to produce useful SPDX documents from Yocto and Buildroot builds.",{"_path":18,"title":19,"description":20,"date":8},"/dev/slsa-build-provenance-firmware-sign-verify","SLSA Build Provenance for Firmware: What to Collect, How to Sign, How to Verify","Practical implementation guide for SLSA build provenance in firmware pipelines, covering provenance generation, signing with Sigstore, verification workflows, and integration with SBOMs.",{"_path":22,"title":23,"description":24,"date":25},"/dev/vex-csaf-embedded-not-affected-scale","VEX and CSAF for Embedded Vulnerability Status","How to produce and distribute VEX documents and CSAF advisories for embedded firmware, enabling downstream consumers to filter false positives from vulnerability scans.","2026-04-15T20:03:00.000Z",{"_path":27,"title":28,"description":29,"date":30},"/dev/yocto-5-2-walnascar-highlights-embedded-2026","Yocto 5.2 Walnascar: Release Changes and Migration Context","Key changes in Yocto 5.2 Walnascar relevant to embedded product teams, covering toolchain updates, security improvements, SPDX 3.0 support, and migration notes.","2026-04-12T08:14:00.000Z",{"_path":32,"title":33,"description":34,"date":35},"/dev/yocto-esdk-faster-iteration-2026","Yocto eSDK in 2026: Faster Application Iteration Without Full Rebuild Cycles","How to use Yocto's extensible SDK to speed up application development by building and testing packages without running full BitBake builds.","2026-04-11T07:09:00.000Z",{"_path":37,"title":38,"description":39,"date":40},"/dev/yocto-layers-maintainable-strategy-2026","Maintaining Yocto Layers: Appends, Forks and Upgrades","Practical guidance on structuring Yocto layers for long-term maintainability, covering layer boundaries, naming conventions, version pinning, and upgrade workflows.","2026-04-07T13:41:00.000Z",{"_path":42,"title":43,"description":44,"date":45},"/doc/bootlin-toolchains-arm-riscv-2026","Bootlin Toolchains in Practice: Picking the Right Prebuilt Toolchain for ARM and RISC-V","How to select and validate Bootlin prebuilt cross-compilation toolchains for ARM Cortex-A, Cortex-M, and RISC-V targets in embedded Linux projects.","2026-03-10T16:05:00.000Z",{"_path":47,"title":48,"description":49,"date":50},"/doc/buildroot-vs-yocto-2026","Buildroot vs Yocto: BSPs, Build Workflow and Maintenance","A detailed comparison of Buildroot and Yocto for embedded Linux, covering build performance, long-term maintenance, layer ecosystems, and practical decision criteria for product teams in 2026.","2026-03-05T08:12:00.000Z",{"_path":52,"title":53,"description":54,"date":55},"/doc/cross-compilation-toolchain-triplet-clib-2026","Cross-Compilation: Target Triplets and glibc vs musl","Practical guidance on selecting cross-compilation toolchains for embedded Linux, understanding target triplets, and choosing between glibc and musl for your production firmware.","2026-03-07T07:43:00.000Z",{"_path":57,"title":58,"description":59,"date":60},"/doc/erofs-vs-squashfs-2026","EROFS vs SquashFS: Compression, Performance and OTA Trade-offs","Detailed comparison of EROFS and SquashFS for embedded Linux in 2026, covering read performance, compression ratios, deduplication, and integration with OTA update schemes.","2026-03-22T14:22:00.000Z",{"_path":62,"title":63,"description":64,"date":65},"/doc/ota-updates-rauc-swupdate-mender-2026","RAUC vs SWUpdate vs Mender: Embedded Linux OTA Compared","Comparison of RAUC, SWUpdate, and Mender for embedded Linux OTA updates, covering update models, rollback strategies, fleet management, and integration with Yocto and Buildroot.","2026-03-28T19:07:00.000Z",{"_path":67,"title":68,"description":69,"date":70},"/doc/plat/device-tree-debugging-overlays-validation-2026","Device Tree Debugging for Embedded Linux: Overlays, Common Errors, and Validation","Practical guide to debugging device tree issues in embedded Linux, covering overlay mechanics, common DTS errors, validation tools, and runtime debugging techniques.","2026-04-05T06:58:00.000Z",{"_path":72,"title":73,"description":74,"date":75},"/doc/plat/porting-checklist-bootloader-kernel-rootfs-2026","Porting Checklist 2026: Bootloader → Kernel → RootFS for New Boards","Complete checklist for porting embedded Linux to a new board, from bootloader bring-up through kernel configuration to root filesystem validation, with practical tips for each stage.","2026-04-02T15:16:00.000Z",{"_path":77,"title":78,"description":79,"date":80},"/doc/real-time-linux-preempt-rt-latency-2026","PREEMPT_RT Linux: Configuration and Cyclictest Latency Tests","Practical guide to PREEMPT_RT on embedded Linux covering kernel configuration, IRQ threading, latency measurement with cyclictest, and tuning techniques with explicit test conditions and interpretation limits.","2026-03-23T05:48:00.000Z",{"_path":82,"title":83,"description":84,"date":85},"/doc/rootfs-integrity-dm-verity-immutable-images","dm-verity for Rootfs Integrity: Design, Trust and Recovery","How to design and implement dm-verity-protected root filesystems for embedded Linux, covering hash tree generation, kernel integration, error handling, and update strategies.","2026-03-19T08:56:00.000Z",{"_path":87,"title":88,"description":89,"date":90},"/doc/rtos-vs-embedded-linux-zephyr-2026","RTOS vs Embedded Linux: Zephyr, FreeRTOS and Linux Compared","Practical comparison of RTOS (Zephyr, FreeRTOS) and embedded Linux for product design, covering latency, memory footprint, ecosystem maturity, and hybrid architectures.","2026-03-30T09:35:00.000Z",{"_path":92,"title":93,"description":94,"date":95},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust","U-Boot Secure Boot: FIT Signatures and Chain of Trust","Understand U-Boot FIT signatures, trusted control device trees and boot-chain limits with a versioned example and explicit rejection and recovery tests.","2026-03-14T06:29:00.000Z",{"_path":97,"title":98,"description":99,"date":100},"/doc/verified-boot-patterns-uboot-keys-failure-modes","Verified Boot Patterns in U-Boot: What to Verify, Where Keys Live, and Failure Modes","Deep dive into U-Boot verified boot patterns covering signature scopes, key storage options, common failure modes, and practical debugging techniques for embedded Linux platforms.","2026-03-16T18:11:00.000Z",{"_path":102,"title":103,"description":104},"/image-manifest","ProteanOS Image Manifest","This document lists all hero and supporting images needed for the website.",[106,1576,2415,3069,3338,4329,4867,5931,6410,7517,8296,9301],{"_path":67,"_dir":107,"_draft":108,"_partial":108,"_locale":109,"title":68,"description":69,"date":70,"lastmod":70,"draft":108,"hero":110,"tags":111,"category":115,"body":116,"_type":1570,"_id":1571,"_source":1572,"_file":1573,"_stem":1574,"_extension":1575},"plat",false,"","/images/hero/device-tree-debugging-overlays-validation-2026-1600x900.jpg",[112,113,114],"Embedded Linux","ProteanOS","Device Tree","doc-plat",{"type":117,"children":118,"toc":1540},"root",[119,127,134,139,210,215,221,234,247,376,390,402,408,413,421,442,448,461,467,472,478,484,489,554,589,595,600,625,630,636,641,693,698,704,710,715,817,823,828,836,841,846,859,977,982,988,993,1012,1018,1123,1129,1268,1274,1299,1309,1350,1356,1361,1477,1482,1488,1510,1523,1529,1534],{"type":120,"tag":121,"props":122,"children":123},"element","p",{},[124],{"type":125,"value":126},"text","The device tree is supposed to be a clean hardware description that separates board-specific details from driver code. In practice, it is one of the most frequent sources of bugs in embedded Linux bring-up. Drivers fail silently because a node is misconfigured, overlays do not apply as expected, and validation tools catch only a fraction of real-world errors. This guide covers the debugging techniques that actually work.",{"type":120,"tag":128,"props":129,"children":131},"h2",{"id":130},"how-the-device-tree-flows-through-the-system",[132],{"type":125,"value":133},"How the device tree flows through the system",{"type":120,"tag":121,"props":135,"children":136},{},[137],{"type":125,"value":138},"Understanding the flow helps locate where problems originate:",{"type":120,"tag":140,"props":141,"children":142},"ol",{},[143,172,187,199],{"type":120,"tag":144,"props":145,"children":146},"li",{},[147,153,155,162,164,170],{"type":120,"tag":148,"props":149,"children":150},"strong",{},[151],{"type":125,"value":152},"DTS source files",{"type":125,"value":154}," (",{"type":120,"tag":156,"props":157,"children":159},"code",{"className":158},[],[160],{"type":125,"value":161},".dts",{"type":125,"value":163},", ",{"type":120,"tag":156,"props":165,"children":167},{"className":166},[],[168],{"type":125,"value":169},".dtsi",{"type":125,"value":171},") are written by the developer",{"type":120,"tag":144,"props":173,"children":174},{},[175,180,182],{"type":120,"tag":148,"props":176,"children":177},{},[178],{"type":125,"value":179},"DTC (Device Tree Compiler)",{"type":125,"value":181}," compiles them into a ",{"type":120,"tag":148,"props":183,"children":184},{},[185],{"type":125,"value":186},"DTB (Device Tree Blob)",{"type":120,"tag":144,"props":188,"children":189},{},[190,192,197],{"type":125,"value":191},"The ",{"type":120,"tag":148,"props":193,"children":194},{},[195],{"type":125,"value":196},"bootloader",{"type":125,"value":198}," (U-Boot) may modify the DTB at runtime (fixups, overlays)",{"type":120,"tag":144,"props":200,"children":201},{},[202,203,208],{"type":125,"value":191},{"type":120,"tag":148,"props":204,"children":205},{},[206],{"type":125,"value":207},"kernel",{"type":125,"value":209}," receives the DTB and uses it to configure drivers and subsystems",{"type":120,"tag":121,"props":211,"children":212},{},[213],{"type":125,"value":214},"Bugs can be introduced at any stage. The DTS might have a typo. DTC might not warn about semantic errors. U-Boot fixups might overwrite your settings. A kernel driver might expect a property format different from what you provided.",{"type":120,"tag":128,"props":216,"children":218},{"id":217},"common-dts-errors",[219],{"type":125,"value":220},"Common DTS errors",{"type":120,"tag":222,"props":223,"children":225},"h3",{"id":224},"missing-status-okay",[226,228],{"type":125,"value":227},"Missing ",{"type":120,"tag":156,"props":229,"children":231},{"className":230},[],[232],{"type":125,"value":233},"status = \"okay\"",{"type":120,"tag":121,"props":235,"children":236},{},[237,239,245],{"type":125,"value":238},"Nodes default to ",{"type":120,"tag":156,"props":240,"children":242},{"className":241},[],[243],{"type":125,"value":244},"status = \"disabled\"",{"type":125,"value":246}," in many SoC-level DTSI files. If you don't override it in your board DTS, the driver never probes:",{"type":120,"tag":248,"props":249,"children":253},"pre",{"code":250,"language":251,"meta":109,"className":252,"style":109},"/* SoC DTSI */\nuart3: serial@12340000 {\n    compatible = \"vendor,uart\";\n    reg = \u003C0x12340000 0x1000>;\n    status = \"disabled\";\n};\n\n/* Your board DTS — this is required! */\n&uart3 {\n    status = \"okay\";\n    pinctrl-0 = \u003C&uart3_pins>;\n    pinctrl-names = \"default\";\n};\n","dts","language-dts shiki shiki-themes github-dark",[254],{"type":120,"tag":156,"props":255,"children":256},{"__ignoreMap":109},[257,268,277,286,295,304,313,323,332,341,350,359,368],{"type":120,"tag":258,"props":259,"children":262},"span",{"class":260,"line":261},"line",1,[263],{"type":120,"tag":258,"props":264,"children":265},{},[266],{"type":125,"value":267},"/* SoC DTSI */\n",{"type":120,"tag":258,"props":269,"children":271},{"class":260,"line":270},2,[272],{"type":120,"tag":258,"props":273,"children":274},{},[275],{"type":125,"value":276},"uart3: serial@12340000 {\n",{"type":120,"tag":258,"props":278,"children":280},{"class":260,"line":279},3,[281],{"type":120,"tag":258,"props":282,"children":283},{},[284],{"type":125,"value":285},"    compatible = \"vendor,uart\";\n",{"type":120,"tag":258,"props":287,"children":289},{"class":260,"line":288},4,[290],{"type":120,"tag":258,"props":291,"children":292},{},[293],{"type":125,"value":294},"    reg = \u003C0x12340000 0x1000>;\n",{"type":120,"tag":258,"props":296,"children":298},{"class":260,"line":297},5,[299],{"type":120,"tag":258,"props":300,"children":301},{},[302],{"type":125,"value":303},"    status = \"disabled\";\n",{"type":120,"tag":258,"props":305,"children":307},{"class":260,"line":306},6,[308],{"type":120,"tag":258,"props":309,"children":310},{},[311],{"type":125,"value":312},"};\n",{"type":120,"tag":258,"props":314,"children":316},{"class":260,"line":315},7,[317],{"type":120,"tag":258,"props":318,"children":320},{"emptyLinePlaceholder":319},true,[321],{"type":125,"value":322},"\n",{"type":120,"tag":258,"props":324,"children":326},{"class":260,"line":325},8,[327],{"type":120,"tag":258,"props":328,"children":329},{},[330],{"type":125,"value":331},"/* Your board DTS — this is required! */\n",{"type":120,"tag":258,"props":333,"children":335},{"class":260,"line":334},9,[336],{"type":120,"tag":258,"props":337,"children":338},{},[339],{"type":125,"value":340},"&uart3 {\n",{"type":120,"tag":258,"props":342,"children":344},{"class":260,"line":343},10,[345],{"type":120,"tag":258,"props":346,"children":347},{},[348],{"type":125,"value":349},"    status = \"okay\";\n",{"type":120,"tag":258,"props":351,"children":353},{"class":260,"line":352},11,[354],{"type":120,"tag":258,"props":355,"children":356},{},[357],{"type":125,"value":358},"    pinctrl-0 = \u003C&uart3_pins>;\n",{"type":120,"tag":258,"props":360,"children":362},{"class":260,"line":361},12,[363],{"type":120,"tag":258,"props":364,"children":365},{},[366],{"type":125,"value":367},"    pinctrl-names = \"default\";\n",{"type":120,"tag":258,"props":369,"children":371},{"class":260,"line":370},13,[372],{"type":120,"tag":258,"props":373,"children":374},{},[375],{"type":125,"value":312},{"type":120,"tag":222,"props":377,"children":379},{"id":378},"incorrect-reg-addresses",[380,382,388],{"type":125,"value":381},"Incorrect ",{"type":120,"tag":156,"props":383,"children":385},{"className":384},[],[386],{"type":125,"value":387},"reg",{"type":125,"value":389}," addresses",{"type":120,"tag":121,"props":391,"children":392},{},[393,395,400],{"type":125,"value":394},"A wrong base address means the driver reads garbage or hangs. Cross-reference every ",{"type":120,"tag":156,"props":396,"children":398},{"className":397},[],[399],{"type":125,"value":387},{"type":125,"value":401}," property with the SoC TRM. Off-by-one errors in the address or size are common when converting between hex and decimal.",{"type":120,"tag":222,"props":403,"children":405},{"id":404},"missing-or-wrong-clock-references",[406],{"type":125,"value":407},"Missing or wrong clock references",{"type":120,"tag":121,"props":409,"children":410},{},[411],{"type":125,"value":412},"Many drivers refuse to probe if their clock reference is missing or points to the wrong clock. The error message is often unhelpful:",{"type":120,"tag":248,"props":414,"children":416},{"code":415},"vendor-uart 12340000.serial: could not get clock\n",[417],{"type":120,"tag":156,"props":418,"children":419},{"__ignoreMap":109},[420],{"type":125,"value":415},{"type":120,"tag":121,"props":422,"children":423},{},[424,426,432,434,440],{"type":125,"value":425},"Check: is the clock node enabled? Does the ",{"type":120,"tag":156,"props":427,"children":429},{"className":428},[],[430],{"type":125,"value":431},"clocks",{"type":125,"value":433}," property point to the correct clock ID? Does the clock provider node have the right ",{"type":120,"tag":156,"props":435,"children":437},{"className":436},[],[438],{"type":125,"value":439},"#clock-cells",{"type":125,"value":441},"?",{"type":120,"tag":222,"props":443,"children":445},{"id":444},"pin-mux-conflicts",[446],{"type":125,"value":447},"Pin mux conflicts",{"type":120,"tag":121,"props":449,"children":450},{},[451,453,459],{"type":125,"value":452},"Two peripherals assigned to the same pins. The second one to probe fails, often silently. The pinctrl subsystem logs conflicts at boot if you enable ",{"type":120,"tag":156,"props":454,"children":456},{"className":455},[],[457],{"type":125,"value":458},"CONFIG_PINCTRL_DEBUG",{"type":125,"value":460},".",{"type":120,"tag":222,"props":462,"children":464},{"id":463},"interrupt-number-mismatches",[465],{"type":125,"value":466},"Interrupt number mismatches",{"type":120,"tag":121,"props":468,"children":469},{},[470],{"type":125,"value":471},"SoC TRMs number interrupts differently than the device tree expects. ARM GIC interrupts: the DT uses the GIC SPI number (peripheral interrupt minus 32 on most SoCs). Getting this wrong means the driver never receives interrupts.",{"type":120,"tag":128,"props":473,"children":475},{"id":474},"validation-tools",[476],{"type":125,"value":477},"Validation tools",{"type":120,"tag":222,"props":479,"children":481},{"id":480},"dtc-warnings",[482],{"type":125,"value":483},"DTC warnings",{"type":120,"tag":121,"props":485,"children":486},{},[487],{"type":125,"value":488},"DTC itself catches syntax errors and some semantic issues:",{"type":120,"tag":248,"props":490,"children":494},{"code":491,"language":492,"meta":109,"className":493,"style":109},"dtc -I dts -O dtb -W all -o board.dtb board.dts\n","bash","language-bash shiki shiki-themes github-dark",[495],{"type":120,"tag":156,"props":496,"children":497},{"__ignoreMap":109},[498],{"type":120,"tag":258,"props":499,"children":500},{"class":260,"line":261},[501,507,513,519,524,529,534,539,544,549],{"type":120,"tag":258,"props":502,"children":504},{"style":503},"--shiki-default:#B392F0",[505],{"type":125,"value":506},"dtc",{"type":120,"tag":258,"props":508,"children":510},{"style":509},"--shiki-default:#79B8FF",[511],{"type":125,"value":512}," -I",{"type":120,"tag":258,"props":514,"children":516},{"style":515},"--shiki-default:#9ECBFF",[517],{"type":125,"value":518}," dts",{"type":120,"tag":258,"props":520,"children":521},{"style":509},[522],{"type":125,"value":523}," -O",{"type":120,"tag":258,"props":525,"children":526},{"style":515},[527],{"type":125,"value":528}," dtb",{"type":120,"tag":258,"props":530,"children":531},{"style":509},[532],{"type":125,"value":533}," -W",{"type":120,"tag":258,"props":535,"children":536},{"style":515},[537],{"type":125,"value":538}," all",{"type":120,"tag":258,"props":540,"children":541},{"style":509},[542],{"type":125,"value":543}," -o",{"type":120,"tag":258,"props":545,"children":546},{"style":515},[547],{"type":125,"value":548}," board.dtb",{"type":120,"tag":258,"props":550,"children":551},{"style":515},[552],{"type":125,"value":553}," board.dts\n",{"type":120,"tag":121,"props":555,"children":556},{},[557,558,564,566,572,573,579,581,587],{"type":125,"value":191},{"type":120,"tag":156,"props":559,"children":561},{"className":560},[],[562],{"type":125,"value":563},"-W all",{"type":125,"value":565}," flag enables additional warnings. Pay attention to warnings about missing ",{"type":120,"tag":156,"props":567,"children":569},{"className":568},[],[570],{"type":125,"value":571},"#address-cells",{"type":125,"value":163},{"type":120,"tag":156,"props":574,"children":576},{"className":575},[],[577],{"type":125,"value":578},"#size-cells",{"type":125,"value":580},", and ",{"type":120,"tag":156,"props":582,"children":584},{"className":583},[],[585],{"type":125,"value":586},"compatible",{"type":125,"value":588}," strings.",{"type":120,"tag":222,"props":590,"children":592},{"id":591},"dt-schema-yaml-schema-validation",[593],{"type":125,"value":594},"dt-schema (YAML schema validation)",{"type":120,"tag":121,"props":596,"children":597},{},[598],{"type":125,"value":599},"The kernel includes YAML schemas for many bindings. Validate your DTB against them:",{"type":120,"tag":248,"props":601,"children":603},{"code":602,"language":492,"meta":109,"className":493,"style":109},"make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/serial/vendor,uart.yaml\n",[604],{"type":120,"tag":156,"props":605,"children":606},{"__ignoreMap":109},[607],{"type":120,"tag":258,"props":608,"children":609},{"class":260,"line":261},[610,615,620],{"type":120,"tag":258,"props":611,"children":612},{"style":503},[613],{"type":125,"value":614},"make",{"type":120,"tag":258,"props":616,"children":617},{"style":515},[618],{"type":125,"value":619}," dtbs_check",{"type":120,"tag":258,"props":621,"children":622},{"style":515},[623],{"type":125,"value":624}," DT_SCHEMA_FILES=Documentation/devicetree/bindings/serial/vendor,uart.yaml\n",{"type":120,"tag":121,"props":626,"children":627},{},[628],{"type":125,"value":629},"This catches missing required properties and wrong property types. It does not catch wrong values (e.g., wrong clock ID).",{"type":120,"tag":222,"props":631,"children":633},{"id":632},"fdtdump-fdtget",[634],{"type":125,"value":635},"fdtdump / fdtget",{"type":120,"tag":121,"props":637,"children":638},{},[639],{"type":125,"value":640},"Inspect the compiled DTB:",{"type":120,"tag":248,"props":642,"children":644},{"code":643,"language":492,"meta":109,"className":493,"style":109},"fdtdump board.dtb | less\nfdtget board.dtb /soc/serial@12340000 status\n",[645],{"type":120,"tag":156,"props":646,"children":647},{"__ignoreMap":109},[648,671],{"type":120,"tag":258,"props":649,"children":650},{"class":260,"line":261},[651,656,660,666],{"type":120,"tag":258,"props":652,"children":653},{"style":503},[654],{"type":125,"value":655},"fdtdump",{"type":120,"tag":258,"props":657,"children":658},{"style":515},[659],{"type":125,"value":548},{"type":120,"tag":258,"props":661,"children":663},{"style":662},"--shiki-default:#F97583",[664],{"type":125,"value":665}," |",{"type":120,"tag":258,"props":667,"children":668},{"style":503},[669],{"type":125,"value":670}," less\n",{"type":120,"tag":258,"props":672,"children":673},{"class":260,"line":270},[674,679,683,688],{"type":120,"tag":258,"props":675,"children":676},{"style":503},[677],{"type":125,"value":678},"fdtget",{"type":120,"tag":258,"props":680,"children":681},{"style":515},[682],{"type":125,"value":548},{"type":120,"tag":258,"props":684,"children":685},{"style":515},[686],{"type":125,"value":687}," /soc/serial@12340000",{"type":120,"tag":258,"props":689,"children":690},{"style":515},[691],{"type":125,"value":692}," status\n",{"type":120,"tag":121,"props":694,"children":695},{},[696],{"type":125,"value":697},"Useful for verifying that your DTS changes actually made it into the compiled blob.",{"type":120,"tag":128,"props":699,"children":701},{"id":700},"runtime-debugging",[702],{"type":125,"value":703},"Runtime debugging",{"type":120,"tag":222,"props":705,"children":707},{"id":706},"procdevice-tree-or-sysfirmwaredevicetree",[708],{"type":125,"value":709},"/proc/device-tree (or /sys/firmware/devicetree)",{"type":120,"tag":121,"props":711,"children":712},{},[713],{"type":125,"value":714},"The running kernel exposes the device tree it received. Compare it to what you expected:",{"type":120,"tag":248,"props":716,"children":718},{"code":717,"language":492,"meta":109,"className":493,"style":109},"# Check a specific property\ncat /proc/device-tree/soc/serial@12340000/status\n\n# List all nodes\nfind /proc/device-tree -name compatible -exec sh -c 'echo \"$1: $(cat \"$1\")\"' _ {} \\;\n",[719],{"type":120,"tag":156,"props":720,"children":721},{"__ignoreMap":109},[722,731,744,751,759],{"type":120,"tag":258,"props":723,"children":724},{"class":260,"line":261},[725],{"type":120,"tag":258,"props":726,"children":728},{"style":727},"--shiki-default:#6A737D",[729],{"type":125,"value":730},"# Check a specific property\n",{"type":120,"tag":258,"props":732,"children":733},{"class":260,"line":270},[734,739],{"type":120,"tag":258,"props":735,"children":736},{"style":503},[737],{"type":125,"value":738},"cat",{"type":120,"tag":258,"props":740,"children":741},{"style":515},[742],{"type":125,"value":743}," /proc/device-tree/soc/serial@12340000/status\n",{"type":120,"tag":258,"props":745,"children":746},{"class":260,"line":279},[747],{"type":120,"tag":258,"props":748,"children":749},{"emptyLinePlaceholder":319},[750],{"type":125,"value":322},{"type":120,"tag":258,"props":752,"children":753},{"class":260,"line":288},[754],{"type":120,"tag":258,"props":755,"children":756},{"style":727},[757],{"type":125,"value":758},"# List all nodes\n",{"type":120,"tag":258,"props":760,"children":761},{"class":260,"line":297},[762,767,772,777,782,787,792,797,802,807,812],{"type":120,"tag":258,"props":763,"children":764},{"style":503},[765],{"type":125,"value":766},"find",{"type":120,"tag":258,"props":768,"children":769},{"style":515},[770],{"type":125,"value":771}," /proc/device-tree",{"type":120,"tag":258,"props":773,"children":774},{"style":509},[775],{"type":125,"value":776}," -name",{"type":120,"tag":258,"props":778,"children":779},{"style":515},[780],{"type":125,"value":781}," compatible",{"type":120,"tag":258,"props":783,"children":784},{"style":509},[785],{"type":125,"value":786}," -exec",{"type":120,"tag":258,"props":788,"children":789},{"style":515},[790],{"type":125,"value":791}," sh",{"type":120,"tag":258,"props":793,"children":794},{"style":509},[795],{"type":125,"value":796}," -c",{"type":120,"tag":258,"props":798,"children":799},{"style":515},[800],{"type":125,"value":801}," 'echo \"$1: $(cat \"$1\")\"'",{"type":120,"tag":258,"props":803,"children":804},{"style":515},[805],{"type":125,"value":806}," _",{"type":120,"tag":258,"props":808,"children":809},{"style":515},[810],{"type":125,"value":811}," {}",{"type":120,"tag":258,"props":813,"children":814},{"style":509},[815],{"type":125,"value":816}," \\;\n",{"type":120,"tag":222,"props":818,"children":820},{"id":819},"dmesg-driver-probe-messages",[821],{"type":125,"value":822},"dmesg driver probe messages",{"type":120,"tag":121,"props":824,"children":825},{},[826],{"type":125,"value":827},"Enable verbose driver probing:",{"type":120,"tag":248,"props":829,"children":831},{"code":830},"# Kernel command line\nloglevel=8 initcall_debug\n",[832],{"type":120,"tag":156,"props":833,"children":834},{"__ignoreMap":109},[835],{"type":125,"value":830},{"type":120,"tag":121,"props":837,"children":838},{},[839],{"type":125,"value":840},"Look for \"probe\" and \"failed\" messages. Many drivers log why they failed to probe, but the messages scroll past quickly during boot.",{"type":120,"tag":222,"props":842,"children":844},{"id":843},"debugfs",[845],{"type":125,"value":843},{"type":120,"tag":121,"props":847,"children":848},{},[849,851,857],{"type":125,"value":850},"Many subsystems expose debug info under ",{"type":120,"tag":156,"props":852,"children":854},{"className":853},[],[855],{"type":125,"value":856},"/sys/kernel/debug/",{"type":125,"value":858},":",{"type":120,"tag":248,"props":860,"children":862},{"code":861,"language":492,"meta":109,"className":493,"style":109},"# Pin control\ncat /sys/kernel/debug/pinctrl/*/pinmux-pins\n\n# Clock tree\ncat /sys/kernel/debug/clk/clk_summary\n\n# GPIO\ncat /sys/kernel/debug/gpio\n\n# Regulators\ncat /sys/kernel/debug/regulator/regulator_summary\n",[863],{"type":120,"tag":156,"props":864,"children":865},{"__ignoreMap":109},[866,874,896,903,911,923,930,938,950,957,965],{"type":120,"tag":258,"props":867,"children":868},{"class":260,"line":261},[869],{"type":120,"tag":258,"props":870,"children":871},{"style":727},[872],{"type":125,"value":873},"# Pin control\n",{"type":120,"tag":258,"props":875,"children":876},{"class":260,"line":270},[877,881,886,891],{"type":120,"tag":258,"props":878,"children":879},{"style":503},[880],{"type":125,"value":738},{"type":120,"tag":258,"props":882,"children":883},{"style":515},[884],{"type":125,"value":885}," /sys/kernel/debug/pinctrl/",{"type":120,"tag":258,"props":887,"children":888},{"style":509},[889],{"type":125,"value":890},"*",{"type":120,"tag":258,"props":892,"children":893},{"style":515},[894],{"type":125,"value":895},"/pinmux-pins\n",{"type":120,"tag":258,"props":897,"children":898},{"class":260,"line":279},[899],{"type":120,"tag":258,"props":900,"children":901},{"emptyLinePlaceholder":319},[902],{"type":125,"value":322},{"type":120,"tag":258,"props":904,"children":905},{"class":260,"line":288},[906],{"type":120,"tag":258,"props":907,"children":908},{"style":727},[909],{"type":125,"value":910},"# Clock tree\n",{"type":120,"tag":258,"props":912,"children":913},{"class":260,"line":297},[914,918],{"type":120,"tag":258,"props":915,"children":916},{"style":503},[917],{"type":125,"value":738},{"type":120,"tag":258,"props":919,"children":920},{"style":515},[921],{"type":125,"value":922}," /sys/kernel/debug/clk/clk_summary\n",{"type":120,"tag":258,"props":924,"children":925},{"class":260,"line":306},[926],{"type":120,"tag":258,"props":927,"children":928},{"emptyLinePlaceholder":319},[929],{"type":125,"value":322},{"type":120,"tag":258,"props":931,"children":932},{"class":260,"line":315},[933],{"type":120,"tag":258,"props":934,"children":935},{"style":727},[936],{"type":125,"value":937},"# GPIO\n",{"type":120,"tag":258,"props":939,"children":940},{"class":260,"line":325},[941,945],{"type":120,"tag":258,"props":942,"children":943},{"style":503},[944],{"type":125,"value":738},{"type":120,"tag":258,"props":946,"children":947},{"style":515},[948],{"type":125,"value":949}," /sys/kernel/debug/gpio\n",{"type":120,"tag":258,"props":951,"children":952},{"class":260,"line":334},[953],{"type":120,"tag":258,"props":954,"children":955},{"emptyLinePlaceholder":319},[956],{"type":125,"value":322},{"type":120,"tag":258,"props":958,"children":959},{"class":260,"line":343},[960],{"type":120,"tag":258,"props":961,"children":962},{"style":727},[963],{"type":125,"value":964},"# Regulators\n",{"type":120,"tag":258,"props":966,"children":967},{"class":260,"line":352},[968,972],{"type":120,"tag":258,"props":969,"children":970},{"style":503},[971],{"type":125,"value":738},{"type":120,"tag":258,"props":973,"children":974},{"style":515},[975],{"type":125,"value":976}," /sys/kernel/debug/regulator/regulator_summary\n",{"type":120,"tag":121,"props":978,"children":979},{},[980],{"type":125,"value":981},"These files show the actual runtime state, which may differ from what the device tree requested.",{"type":120,"tag":128,"props":983,"children":985},{"id":984},"device-tree-overlays",[986],{"type":125,"value":987},"Device tree overlays",{"type":120,"tag":121,"props":989,"children":990},{},[991],{"type":125,"value":992},"Overlays allow modifying the device tree at runtime, typically applied by the bootloader. Common uses:",{"type":120,"tag":994,"props":995,"children":996},"ul",{},[997,1002,1007],{"type":120,"tag":144,"props":998,"children":999},{},[1000],{"type":125,"value":1001},"Enabling a peripheral for a specific board variant",{"type":120,"tag":144,"props":1003,"children":1004},{},[1005],{"type":125,"value":1006},"Adding a cape or shield description",{"type":120,"tag":144,"props":1008,"children":1009},{},[1010],{"type":125,"value":1011},"Adjusting configuration without rebuilding the base DTB",{"type":120,"tag":222,"props":1013,"children":1015},{"id":1014},"creating-an-overlay",[1016],{"type":125,"value":1017},"Creating an overlay",{"type":120,"tag":248,"props":1019,"children":1021},{"code":1020,"language":251,"meta":109,"className":252,"style":109},"/dts-v1/;\n/plugin/;\n\n&uart3 {\n    status = \"okay\";\n};\n\n&i2c1 {\n    temperature-sensor@48 {\n        compatible = \"ti,tmp102\";\n        reg = \u003C0x48>;\n    };\n};\n",[1022],{"type":120,"tag":156,"props":1023,"children":1024},{"__ignoreMap":109},[1025,1033,1041,1048,1055,1062,1069,1076,1084,1092,1100,1108,1116],{"type":120,"tag":258,"props":1026,"children":1027},{"class":260,"line":261},[1028],{"type":120,"tag":258,"props":1029,"children":1030},{},[1031],{"type":125,"value":1032},"/dts-v1/;\n",{"type":120,"tag":258,"props":1034,"children":1035},{"class":260,"line":270},[1036],{"type":120,"tag":258,"props":1037,"children":1038},{},[1039],{"type":125,"value":1040},"/plugin/;\n",{"type":120,"tag":258,"props":1042,"children":1043},{"class":260,"line":279},[1044],{"type":120,"tag":258,"props":1045,"children":1046},{"emptyLinePlaceholder":319},[1047],{"type":125,"value":322},{"type":120,"tag":258,"props":1049,"children":1050},{"class":260,"line":288},[1051],{"type":120,"tag":258,"props":1052,"children":1053},{},[1054],{"type":125,"value":340},{"type":120,"tag":258,"props":1056,"children":1057},{"class":260,"line":297},[1058],{"type":120,"tag":258,"props":1059,"children":1060},{},[1061],{"type":125,"value":349},{"type":120,"tag":258,"props":1063,"children":1064},{"class":260,"line":306},[1065],{"type":120,"tag":258,"props":1066,"children":1067},{},[1068],{"type":125,"value":312},{"type":120,"tag":258,"props":1070,"children":1071},{"class":260,"line":315},[1072],{"type":120,"tag":258,"props":1073,"children":1074},{"emptyLinePlaceholder":319},[1075],{"type":125,"value":322},{"type":120,"tag":258,"props":1077,"children":1078},{"class":260,"line":325},[1079],{"type":120,"tag":258,"props":1080,"children":1081},{},[1082],{"type":125,"value":1083},"&i2c1 {\n",{"type":120,"tag":258,"props":1085,"children":1086},{"class":260,"line":334},[1087],{"type":120,"tag":258,"props":1088,"children":1089},{},[1090],{"type":125,"value":1091},"    temperature-sensor@48 {\n",{"type":120,"tag":258,"props":1093,"children":1094},{"class":260,"line":343},[1095],{"type":120,"tag":258,"props":1096,"children":1097},{},[1098],{"type":125,"value":1099},"        compatible = \"ti,tmp102\";\n",{"type":120,"tag":258,"props":1101,"children":1102},{"class":260,"line":352},[1103],{"type":120,"tag":258,"props":1104,"children":1105},{},[1106],{"type":125,"value":1107},"        reg = \u003C0x48>;\n",{"type":120,"tag":258,"props":1109,"children":1110},{"class":260,"line":361},[1111],{"type":120,"tag":258,"props":1112,"children":1113},{},[1114],{"type":125,"value":1115},"    };\n",{"type":120,"tag":258,"props":1117,"children":1118},{"class":260,"line":370},[1119],{"type":120,"tag":258,"props":1120,"children":1121},{},[1122],{"type":125,"value":312},{"type":120,"tag":222,"props":1124,"children":1126},{"id":1125},"compiling-and-applying",[1127],{"type":125,"value":1128},"Compiling and applying",{"type":120,"tag":248,"props":1130,"children":1132},{"code":1131,"language":492,"meta":109,"className":493,"style":109},"# Compile\ndtc -I dts -O dtb -@ -o overlay.dtbo overlay.dts\n\n# Apply in U-Boot\nfdt apply overlay.dtbo\n\n# Or apply in Linux (ConfigFS)\nmkdir /sys/kernel/config/device-tree/overlays/my-overlay\ncat overlay.dtbo > /sys/kernel/config/device-tree/overlays/my-overlay/dtbo\n",[1133],{"type":120,"tag":156,"props":1134,"children":1135},{"__ignoreMap":109},[1136,1144,1186,1193,1201,1219,1226,1234,1247],{"type":120,"tag":258,"props":1137,"children":1138},{"class":260,"line":261},[1139],{"type":120,"tag":258,"props":1140,"children":1141},{"style":727},[1142],{"type":125,"value":1143},"# Compile\n",{"type":120,"tag":258,"props":1145,"children":1146},{"class":260,"line":270},[1147,1151,1155,1159,1163,1167,1172,1176,1181],{"type":120,"tag":258,"props":1148,"children":1149},{"style":503},[1150],{"type":125,"value":506},{"type":120,"tag":258,"props":1152,"children":1153},{"style":509},[1154],{"type":125,"value":512},{"type":120,"tag":258,"props":1156,"children":1157},{"style":515},[1158],{"type":125,"value":518},{"type":120,"tag":258,"props":1160,"children":1161},{"style":509},[1162],{"type":125,"value":523},{"type":120,"tag":258,"props":1164,"children":1165},{"style":515},[1166],{"type":125,"value":528},{"type":120,"tag":258,"props":1168,"children":1169},{"style":509},[1170],{"type":125,"value":1171}," -@",{"type":120,"tag":258,"props":1173,"children":1174},{"style":509},[1175],{"type":125,"value":543},{"type":120,"tag":258,"props":1177,"children":1178},{"style":515},[1179],{"type":125,"value":1180}," overlay.dtbo",{"type":120,"tag":258,"props":1182,"children":1183},{"style":515},[1184],{"type":125,"value":1185}," overlay.dts\n",{"type":120,"tag":258,"props":1187,"children":1188},{"class":260,"line":279},[1189],{"type":120,"tag":258,"props":1190,"children":1191},{"emptyLinePlaceholder":319},[1192],{"type":125,"value":322},{"type":120,"tag":258,"props":1194,"children":1195},{"class":260,"line":288},[1196],{"type":120,"tag":258,"props":1197,"children":1198},{"style":727},[1199],{"type":125,"value":1200},"# Apply in U-Boot\n",{"type":120,"tag":258,"props":1202,"children":1203},{"class":260,"line":297},[1204,1209,1214],{"type":120,"tag":258,"props":1205,"children":1206},{"style":503},[1207],{"type":125,"value":1208},"fdt",{"type":120,"tag":258,"props":1210,"children":1211},{"style":515},[1212],{"type":125,"value":1213}," apply",{"type":120,"tag":258,"props":1215,"children":1216},{"style":515},[1217],{"type":125,"value":1218}," overlay.dtbo\n",{"type":120,"tag":258,"props":1220,"children":1221},{"class":260,"line":306},[1222],{"type":120,"tag":258,"props":1223,"children":1224},{"emptyLinePlaceholder":319},[1225],{"type":125,"value":322},{"type":120,"tag":258,"props":1227,"children":1228},{"class":260,"line":315},[1229],{"type":120,"tag":258,"props":1230,"children":1231},{"style":727},[1232],{"type":125,"value":1233},"# Or apply in Linux (ConfigFS)\n",{"type":120,"tag":258,"props":1235,"children":1236},{"class":260,"line":325},[1237,1242],{"type":120,"tag":258,"props":1238,"children":1239},{"style":503},[1240],{"type":125,"value":1241},"mkdir",{"type":120,"tag":258,"props":1243,"children":1244},{"style":515},[1245],{"type":125,"value":1246}," /sys/kernel/config/device-tree/overlays/my-overlay\n",{"type":120,"tag":258,"props":1248,"children":1249},{"class":260,"line":334},[1250,1254,1258,1263],{"type":120,"tag":258,"props":1251,"children":1252},{"style":503},[1253],{"type":125,"value":738},{"type":120,"tag":258,"props":1255,"children":1256},{"style":515},[1257],{"type":125,"value":1180},{"type":120,"tag":258,"props":1259,"children":1260},{"style":662},[1261],{"type":125,"value":1262}," >",{"type":120,"tag":258,"props":1264,"children":1265},{"style":515},[1266],{"type":125,"value":1267}," /sys/kernel/config/device-tree/overlays/my-overlay/dtbo\n",{"type":120,"tag":222,"props":1269,"children":1271},{"id":1270},"common-overlay-problems",[1272],{"type":125,"value":1273},"Common overlay problems",{"type":120,"tag":121,"props":1275,"children":1276},{},[1277,1282,1284,1290,1292,1298],{"type":120,"tag":148,"props":1278,"children":1279},{},[1280],{"type":125,"value":1281},"Symbols not found:",{"type":125,"value":1283}," The base DTB must be compiled with ",{"type":120,"tag":156,"props":1285,"children":1287},{"className":1286},[],[1288],{"type":125,"value":1289},"-@",{"type":125,"value":1291}," (enable symbols) for overlays to reference nodes by label. Without symbols, the overlay cannot find ",{"type":120,"tag":156,"props":1293,"children":1295},{"className":1294},[],[1296],{"type":125,"value":1297},"&uart3",{"type":125,"value":460},{"type":120,"tag":121,"props":1300,"children":1301},{},[1302,1307],{"type":120,"tag":148,"props":1303,"children":1304},{},[1305],{"type":125,"value":1306},"Overlay order matters:",{"type":125,"value":1308}," If two overlays modify the same node, the order of application determines the final state. Document the required order.",{"type":120,"tag":121,"props":1310,"children":1311},{},[1312,1317,1319,1325,1327,1333,1335,1341,1343,1349],{"type":120,"tag":148,"props":1313,"children":1314},{},[1315],{"type":125,"value":1316},"Properties not merged as expected:",{"type":125,"value":1318}," Overlays replace properties, not merge them. If the base DTB has ",{"type":120,"tag":156,"props":1320,"children":1322},{"className":1321},[],[1323],{"type":125,"value":1324},"pinctrl-0 = \u003C&pins_a>",{"type":125,"value":1326}," and the overlay sets ",{"type":120,"tag":156,"props":1328,"children":1330},{"className":1329},[],[1331],{"type":125,"value":1332},"pinctrl-0 = \u003C&pins_b>",{"type":125,"value":1334},", the result is ",{"type":120,"tag":156,"props":1336,"children":1338},{"className":1337},[],[1339],{"type":125,"value":1340},"\u003C&pins_b>",{"type":125,"value":1342},", not ",{"type":120,"tag":156,"props":1344,"children":1346},{"className":1345},[],[1347],{"type":125,"value":1348},"\u003C&pins_a &pins_b>",{"type":125,"value":460},{"type":120,"tag":128,"props":1351,"children":1353},{"id":1352},"debugging-workflow",[1354],{"type":125,"value":1355},"Debugging workflow",{"type":120,"tag":121,"props":1357,"children":1358},{},[1359],{"type":125,"value":1360},"When a peripheral does not work after porting:",{"type":120,"tag":140,"props":1362,"children":1363},{},[1364,1382,1406,1423,1440,1457,1467],{"type":120,"tag":144,"props":1365,"children":1366},{},[1367,1372,1374,1380],{"type":120,"tag":148,"props":1368,"children":1369},{},[1370],{"type":125,"value":1371},"Check status:",{"type":125,"value":1373}," Is the node enabled? (",{"type":120,"tag":156,"props":1375,"children":1377},{"className":1376},[],[1378],{"type":125,"value":1379},"fdtget board.dtb /path/to/node status",{"type":125,"value":1381},")",{"type":120,"tag":144,"props":1383,"children":1384},{},[1385,1390,1392,1397,1399,1405],{"type":120,"tag":148,"props":1386,"children":1387},{},[1388],{"type":125,"value":1389},"Check compatible:",{"type":125,"value":1391}," Does the ",{"type":120,"tag":156,"props":1393,"children":1395},{"className":1394},[],[1396],{"type":125,"value":586},{"type":125,"value":1398}," string match a driver? (",{"type":120,"tag":156,"props":1400,"children":1402},{"className":1401},[],[1403],{"type":125,"value":1404},"grep -r \"compatible_string\" drivers/",{"type":125,"value":1381},{"type":120,"tag":144,"props":1407,"children":1408},{},[1409,1414,1416,1422],{"type":120,"tag":148,"props":1410,"children":1411},{},[1412],{"type":125,"value":1413},"Check clocks:",{"type":125,"value":1415}," Is the clock enabled and correct? (runtime: ",{"type":120,"tag":156,"props":1417,"children":1419},{"className":1418},[],[1420],{"type":125,"value":1421},"/sys/kernel/debug/clk/clk_summary",{"type":125,"value":1381},{"type":120,"tag":144,"props":1424,"children":1425},{},[1426,1431,1433,1439],{"type":120,"tag":148,"props":1427,"children":1428},{},[1429],{"type":125,"value":1430},"Check pins:",{"type":125,"value":1432}," Are pins muxed correctly? (runtime: ",{"type":120,"tag":156,"props":1434,"children":1436},{"className":1435},[],[1437],{"type":125,"value":1438},"/sys/kernel/debug/pinctrl/*/pinmux-pins",{"type":125,"value":1381},{"type":120,"tag":144,"props":1441,"children":1442},{},[1443,1448,1450,1456],{"type":120,"tag":148,"props":1444,"children":1445},{},[1446],{"type":125,"value":1447},"Check interrupts:",{"type":125,"value":1449}," Is the interrupt number correct? (",{"type":120,"tag":156,"props":1451,"children":1453},{"className":1452},[],[1454],{"type":125,"value":1455},"cat /proc/interrupts",{"type":125,"value":1381},{"type":120,"tag":144,"props":1458,"children":1459},{},[1460,1465],{"type":120,"tag":148,"props":1461,"children":1462},{},[1463],{"type":125,"value":1464},"Check dmesg:",{"type":125,"value":1466}," Does the driver report a probe failure?",{"type":120,"tag":144,"props":1468,"children":1469},{},[1470,1475],{"type":120,"tag":148,"props":1471,"children":1472},{},[1473],{"type":125,"value":1474},"Check power domain:",{"type":125,"value":1476}," Is the peripheral's power domain enabled?",{"type":120,"tag":121,"props":1478,"children":1479},{},[1480],{"type":125,"value":1481},"Work through this list systematically. Most device tree bugs are found in steps 1–4.",{"type":120,"tag":128,"props":1483,"children":1485},{"id":1484},"integration-with-proteanos",[1486],{"type":125,"value":1487},"Integration with ProteanOS",{"type":120,"tag":121,"props":1489,"children":1490},{},[1491,1493,1500,1502,1508],{"type":125,"value":1492},"ProteanOS board support packages include device tree sources that follow mainline kernel conventions. The ",{"type":120,"tag":1494,"props":1495,"children":1497},"a",{"href":1496},"/doc/plat/porting/",[1498],{"type":125,"value":1499},"porting guide",{"type":125,"value":1501}," covers how to create and submit device tree files for new boards. The ",{"type":120,"tag":1494,"props":1503,"children":1505},{"href":1504},"/doc/plat/porting-checklist-bootloader-kernel-rootfs-2026/",[1506],{"type":125,"value":1507},"porting checklist",{"type":125,"value":1509}," includes device tree validation as a milestone.",{"type":120,"tag":121,"props":1511,"children":1512},{},[1513,1515,1521],{"type":125,"value":1514},"For build system integration, device tree compilation is part of the standard ",{"type":120,"tag":1494,"props":1516,"children":1518},{"href":1517},"/dev/prokit/",[1519],{"type":125,"value":1520},"ProKit",{"type":125,"value":1522}," kernel build process.",{"type":120,"tag":128,"props":1524,"children":1526},{"id":1525},"summary",[1527],{"type":125,"value":1528},"Summary",{"type":120,"tag":121,"props":1530,"children":1531},{},[1532],{"type":125,"value":1533},"Device tree debugging is detective work. The device tree is a static description interpreted by dynamic code, and the gap between what you wrote and what the kernel understands is where bugs hide. Use validation tools before boot, runtime debug files after boot, and work through the seven-step checklist when things do not work. Document your device tree as thoroughly as your code—the next person debugging it will be you, six months from now.",{"type":120,"tag":1535,"props":1536,"children":1537},"style",{},[1538],{"type":125,"value":1539},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":109,"searchDepth":270,"depth":270,"links":1541},[1542,1543,1552,1557,1562,1567,1568,1569],{"id":130,"depth":270,"text":133},{"id":217,"depth":270,"text":220,"children":1544},[1545,1547,1549,1550,1551],{"id":224,"depth":279,"text":1546},"Missing status = \"okay\"",{"id":378,"depth":279,"text":1548},"Incorrect reg addresses",{"id":404,"depth":279,"text":407},{"id":444,"depth":279,"text":447},{"id":463,"depth":279,"text":466},{"id":474,"depth":270,"text":477,"children":1553},[1554,1555,1556],{"id":480,"depth":279,"text":483},{"id":591,"depth":279,"text":594},{"id":632,"depth":279,"text":635},{"id":700,"depth":270,"text":703,"children":1558},[1559,1560,1561],{"id":706,"depth":279,"text":709},{"id":819,"depth":279,"text":822},{"id":843,"depth":279,"text":843},{"id":984,"depth":270,"text":987,"children":1563},[1564,1565,1566],{"id":1014,"depth":279,"text":1017},{"id":1125,"depth":279,"text":1128},{"id":1270,"depth":279,"text":1273},{"id":1352,"depth":270,"text":1355},{"id":1484,"depth":270,"text":1487},{"id":1525,"depth":270,"text":1528},"markdown","content:doc:plat:device-tree-debugging-overlays-validation-2026.md","content","doc/plat/device-tree-debugging-overlays-validation-2026.md","doc/plat/device-tree-debugging-overlays-validation-2026","md",{"_path":72,"_dir":107,"_draft":108,"_partial":108,"_locale":109,"title":73,"description":74,"date":75,"lastmod":75,"draft":108,"hero":1577,"tags":1578,"category":115,"body":1580,"_type":1570,"_id":2412,"_source":1572,"_file":2413,"_stem":2414,"_extension":1575},"/images/hero/porting-checklist-bootloader-kernel-rootfs-2026-1600x900.jpg",[112,113,1579],"Porting",{"type":117,"children":1581,"toc":2370},[1582,1587,1593,1599,1622,1628,1633,1638,1644,1650,1655,1688,1693,1699,1704,1754,1759,1765,1770,1775,1793,1798,1804,1809,1817,1822,1828,1833,1841,1847,1853,1858,1864,1869,1875,1880,1886,1942,1947,1953,1959,1972,2005,2011,2016,2024,2029,2035,2061,2071,2081,2087,2092,2125,2130,2136,2142,2147,2155,2160,2166,2171,2179,2185,2203,2209,2222,2228,2234,2247,2253,2266,2272,2277,2283,2289,2294,2324,2330,2335,2341,2346,2350,2355,2366],{"type":120,"tag":121,"props":1583,"children":1584},{},[1585],{"type":125,"value":1586},"Porting embedded Linux to a new board follows a predictable sequence: get the bootloader running, boot a kernel, mount a root filesystem. Each stage has specific checkpoints and failure modes. This checklist distills the process into verifiable steps, based on practical experience bringing up ARM and RISC-V boards.",{"type":120,"tag":128,"props":1588,"children":1590},{"id":1589},"before-you-start",[1591],{"type":125,"value":1592},"Before you start",{"type":120,"tag":222,"props":1594,"children":1596},{"id":1595},"gather-documentation",[1597],{"type":125,"value":1598},"Gather documentation",{"type":120,"tag":994,"props":1600,"children":1601},{},[1602,1607,1612,1617],{"type":120,"tag":144,"props":1603,"children":1604},{},[1605],{"type":125,"value":1606},"SoC technical reference manual (TRM) — the essential document",{"type":120,"tag":144,"props":1608,"children":1609},{},[1610],{"type":125,"value":1611},"Board schematics — for pin muxing and peripheral connections",{"type":120,"tag":144,"props":1613,"children":1614},{},[1615],{"type":125,"value":1616},"SoC errata sheet — known silicon bugs that affect boot or driver behaviour",{"type":120,"tag":144,"props":1618,"children":1619},{},[1620],{"type":125,"value":1621},"Vendor BSP (if available) — even if you don't use it directly, it shows what works",{"type":120,"tag":222,"props":1623,"children":1625},{"id":1624},"set-up-serial-console",[1626],{"type":125,"value":1627},"Set up serial console",{"type":120,"tag":121,"props":1629,"children":1630},{},[1631],{"type":125,"value":1632},"You cannot debug boot problems without a serial console. Identify the debug UART on the schematic, connect a USB-to-UART adapter, and verify you can see characters at the correct baud rate (usually 115200).",{"type":120,"tag":121,"props":1634,"children":1635},{},[1636],{"type":125,"value":1637},"This is step zero. Everything else depends on it.",{"type":120,"tag":128,"props":1639,"children":1641},{"id":1640},"stage-1-bootloader",[1642],{"type":125,"value":1643},"Stage 1: Bootloader",{"type":120,"tag":222,"props":1645,"children":1647},{"id":1646},"_11-identify-the-boot-flow",[1648],{"type":125,"value":1649},"1.1 Identify the boot flow",{"type":120,"tag":121,"props":1651,"children":1652},{},[1653],{"type":125,"value":1654},"Most modern SoCs use a multi-stage boot:",{"type":120,"tag":140,"props":1656,"children":1657},{},[1658,1668,1678],{"type":120,"tag":144,"props":1659,"children":1660},{},[1661,1666],{"type":120,"tag":148,"props":1662,"children":1663},{},[1664],{"type":125,"value":1665},"ROM bootloader",{"type":125,"value":1667}," (in silicon) — loads SPL/TPL from boot media",{"type":120,"tag":144,"props":1669,"children":1670},{},[1671,1676],{"type":120,"tag":148,"props":1672,"children":1673},{},[1674],{"type":125,"value":1675},"SPL (Secondary Program Loader)",{"type":125,"value":1677}," — initializes DRAM, loads U-Boot",{"type":120,"tag":144,"props":1679,"children":1680},{},[1681,1686],{"type":120,"tag":148,"props":1682,"children":1683},{},[1684],{"type":125,"value":1685},"U-Boot",{"type":125,"value":1687}," — loads kernel, DTB, and optional initramfs",{"type":120,"tag":121,"props":1689,"children":1690},{},[1691],{"type":125,"value":1692},"Determine what the ROM expects: which boot media (eMMC, SPI NOR, SD card), what image format, what header structure.",{"type":120,"tag":222,"props":1694,"children":1696},{"id":1695},"_12-build-u-boot-spl-u-boot-proper",[1697],{"type":125,"value":1698},"1.2 Build U-Boot SPL + U-Boot proper",{"type":120,"tag":121,"props":1700,"children":1701},{},[1702],{"type":125,"value":1703},"Start with the vendor's defconfig if available. If not, find the closest supported board in mainline U-Boot and adapt.",{"type":120,"tag":248,"props":1705,"children":1707},{"code":1706,"language":492,"meta":109,"className":493,"style":109},"make CROSS_COMPILE=aarch64-linux- vendor_board_defconfig\nmake CROSS_COMPILE=aarch64-linux- -j$(nproc)\n",[1708],{"type":120,"tag":156,"props":1709,"children":1710},{"__ignoreMap":109},[1711,1728],{"type":120,"tag":258,"props":1712,"children":1713},{"class":260,"line":261},[1714,1718,1723],{"type":120,"tag":258,"props":1715,"children":1716},{"style":503},[1717],{"type":125,"value":614},{"type":120,"tag":258,"props":1719,"children":1720},{"style":515},[1721],{"type":125,"value":1722}," CROSS_COMPILE=aarch64-linux-",{"type":120,"tag":258,"props":1724,"children":1725},{"style":515},[1726],{"type":125,"value":1727}," vendor_board_defconfig\n",{"type":120,"tag":258,"props":1729,"children":1730},{"class":260,"line":270},[1731,1735,1739,1744,1749],{"type":120,"tag":258,"props":1732,"children":1733},{"style":503},[1734],{"type":125,"value":614},{"type":120,"tag":258,"props":1736,"children":1737},{"style":515},[1738],{"type":125,"value":1722},{"type":120,"tag":258,"props":1740,"children":1741},{"style":509},[1742],{"type":125,"value":1743}," -j$(",{"type":120,"tag":258,"props":1745,"children":1746},{"style":503},[1747],{"type":125,"value":1748},"nproc",{"type":120,"tag":258,"props":1750,"children":1751},{"style":509},[1752],{"type":125,"value":1753},")\n",{"type":120,"tag":121,"props":1755,"children":1756},{},[1757],{"type":125,"value":1758},"Checkpoint: U-Boot prints its banner on the serial console and reaches the command prompt.",{"type":120,"tag":222,"props":1760,"children":1762},{"id":1761},"_13-dram-initialization",[1763],{"type":125,"value":1764},"1.3 DRAM initialization",{"type":120,"tag":121,"props":1766,"children":1767},{},[1768],{"type":125,"value":1769},"DRAM initialization is the most common failure point in bootloader bring-up. Symptoms: hang during SPL, garbled output, or random crashes.",{"type":120,"tag":121,"props":1771,"children":1772},{},[1773],{"type":125,"value":1774},"Verify:",{"type":120,"tag":994,"props":1776,"children":1777},{},[1778,1783,1788],{"type":120,"tag":144,"props":1779,"children":1780},{},[1781],{"type":125,"value":1782},"DDR timing parameters match the actual DRAM chips on the board",{"type":120,"tag":144,"props":1784,"children":1785},{},[1786],{"type":125,"value":1787},"Voltage rail for DRAM is correct and stable",{"type":120,"tag":144,"props":1789,"children":1790},{},[1791],{"type":125,"value":1792},"If the SoC has a DDR PHY training sequence, verify it completes",{"type":120,"tag":121,"props":1794,"children":1795},{},[1796],{"type":125,"value":1797},"If using vendor-provided DRAM initialization blobs, ensure the blob matches the board's DRAM configuration (density, speed grade, topology).",{"type":120,"tag":222,"props":1799,"children":1801},{"id":1800},"_14-storage-access",[1802],{"type":125,"value":1803},"1.4 Storage access",{"type":120,"tag":121,"props":1805,"children":1806},{},[1807],{"type":125,"value":1808},"Verify U-Boot can access the boot storage:",{"type":120,"tag":248,"props":1810,"children":1812},{"code":1811},"U-Boot> mmc info          # eMMC/SD\nU-Boot> sf probe          # SPI NOR\nU-Boot> ubi part nand0    # NAND/UBI\n",[1813],{"type":120,"tag":156,"props":1814,"children":1815},{"__ignoreMap":109},[1816],{"type":125,"value":1811},{"type":120,"tag":121,"props":1818,"children":1819},{},[1820],{"type":125,"value":1821},"Checkpoint: U-Boot can list files on the boot partition or read raw blocks.",{"type":120,"tag":222,"props":1823,"children":1825},{"id":1824},"_15-network-optional-but-valuable",[1826],{"type":125,"value":1827},"1.5 Network (optional but valuable)",{"type":120,"tag":121,"props":1829,"children":1830},{},[1831],{"type":125,"value":1832},"If the board has Ethernet, enable it in U-Boot. TFTP boot dramatically speeds up kernel development:",{"type":120,"tag":248,"props":1834,"children":1836},{"code":1835},"U-Boot> dhcp\nU-Boot> tftp 0x40000000 Image\n",[1837],{"type":120,"tag":156,"props":1838,"children":1839},{"__ignoreMap":109},[1840],{"type":125,"value":1835},{"type":120,"tag":128,"props":1842,"children":1844},{"id":1843},"stage-2-device-tree",[1845],{"type":125,"value":1846},"Stage 2: Device tree",{"type":120,"tag":222,"props":1848,"children":1850},{"id":1849},"_21-start-from-the-socs-base-dts",[1851],{"type":125,"value":1852},"2.1 Start from the SoC's base DTS",{"type":120,"tag":121,"props":1854,"children":1855},{},[1856],{"type":125,"value":1857},"The mainline kernel includes DTS files for most SoCs. Copy the closest board's DTS and modify it for your hardware.",{"type":120,"tag":222,"props":1859,"children":1861},{"id":1860},"_22-pin-muxing",[1862],{"type":125,"value":1863},"2.2 Pin muxing",{"type":120,"tag":121,"props":1865,"children":1866},{},[1867],{"type":125,"value":1868},"Configure pin muxing for all peripherals used on the board. Cross-reference the schematic with the SoC's pin mux register descriptions in the TRM. Incorrect pin muxing is the most common cause of \"the peripheral doesn't work\" bugs.",{"type":120,"tag":222,"props":1870,"children":1872},{"id":1871},"_23-clock-and-power-trees",[1873],{"type":125,"value":1874},"2.3 Clock and power trees",{"type":120,"tag":121,"props":1876,"children":1877},{},[1878],{"type":125,"value":1879},"Ensure the device tree correctly describes clock parents, rates, and power domains. Many peripherals fail silently if their clock or power domain is not enabled.",{"type":120,"tag":222,"props":1881,"children":1883},{"id":1882},"_24-validate-with-dtc",[1884],{"type":125,"value":1885},"2.4 Validate with dtc",{"type":120,"tag":248,"props":1887,"children":1889},{"code":1888,"language":492,"meta":109,"className":493,"style":109},"dtc -I dts -O dtb -o board.dtb board.dts  # catches syntax errors\n# Then check for warnings about missing properties\n",[1890],{"type":120,"tag":156,"props":1891,"children":1892},{"__ignoreMap":109},[1893,1934],{"type":120,"tag":258,"props":1894,"children":1895},{"class":260,"line":261},[1896,1900,1904,1908,1912,1916,1920,1924,1929],{"type":120,"tag":258,"props":1897,"children":1898},{"style":503},[1899],{"type":125,"value":506},{"type":120,"tag":258,"props":1901,"children":1902},{"style":509},[1903],{"type":125,"value":512},{"type":120,"tag":258,"props":1905,"children":1906},{"style":515},[1907],{"type":125,"value":518},{"type":120,"tag":258,"props":1909,"children":1910},{"style":509},[1911],{"type":125,"value":523},{"type":120,"tag":258,"props":1913,"children":1914},{"style":515},[1915],{"type":125,"value":528},{"type":120,"tag":258,"props":1917,"children":1918},{"style":509},[1919],{"type":125,"value":543},{"type":120,"tag":258,"props":1921,"children":1922},{"style":515},[1923],{"type":125,"value":548},{"type":120,"tag":258,"props":1925,"children":1926},{"style":515},[1927],{"type":125,"value":1928}," board.dts",{"type":120,"tag":258,"props":1930,"children":1931},{"style":727},[1932],{"type":125,"value":1933},"  # catches syntax errors\n",{"type":120,"tag":258,"props":1935,"children":1936},{"class":260,"line":270},[1937],{"type":120,"tag":258,"props":1938,"children":1939},{"style":727},[1940],{"type":125,"value":1941},"# Then check for warnings about missing properties\n",{"type":120,"tag":121,"props":1943,"children":1944},{},[1945],{"type":125,"value":1946},"The device tree debugging documentation covers common DTS errors and validation techniques in detail.",{"type":120,"tag":128,"props":1948,"children":1950},{"id":1949},"stage-3-kernel",[1951],{"type":125,"value":1952},"Stage 3: Kernel",{"type":120,"tag":222,"props":1954,"children":1956},{"id":1955},"_31-minimal-kernel-config",[1957],{"type":125,"value":1958},"3.1 Minimal kernel config",{"type":120,"tag":121,"props":1960,"children":1961},{},[1962,1964,1970],{"type":125,"value":1963},"Start with the SoC's defconfig or ",{"type":120,"tag":156,"props":1965,"children":1967},{"className":1966},[],[1968],{"type":125,"value":1969},"tinyconfig",{"type":125,"value":1971}," and add drivers incrementally:",{"type":120,"tag":140,"props":1973,"children":1974},{},[1975,1980,1985,1990,1995,2000],{"type":120,"tag":144,"props":1976,"children":1977},{},[1978],{"type":125,"value":1979},"Console driver (UART)",{"type":120,"tag":144,"props":1981,"children":1982},{},[1983],{"type":125,"value":1984},"Timer and interrupt controller",{"type":120,"tag":144,"props":1986,"children":1987},{},[1988],{"type":125,"value":1989},"DRAM controller (if not handled by bootloader)",{"type":120,"tag":144,"props":1991,"children":1992},{},[1993],{"type":125,"value":1994},"Storage driver (eMMC, NAND, NOR)",{"type":120,"tag":144,"props":1996,"children":1997},{},[1998],{"type":125,"value":1999},"Network driver (Ethernet)",{"type":120,"tag":144,"props":2001,"children":2002},{},[2003],{"type":125,"value":2004},"Any board-specific drivers",{"type":120,"tag":222,"props":2006,"children":2008},{"id":2007},"_32-boot-the-kernel",[2009],{"type":125,"value":2010},"3.2 Boot the kernel",{"type":120,"tag":121,"props":2012,"children":2013},{},[2014],{"type":125,"value":2015},"Load kernel and DTB via TFTP or from storage:",{"type":120,"tag":248,"props":2017,"children":2019},{"code":2018},"U-Boot> booti 0x40000000 - 0x43000000\n",[2020],{"type":120,"tag":156,"props":2021,"children":2022},{"__ignoreMap":109},[2023],{"type":125,"value":2018},{"type":120,"tag":121,"props":2025,"children":2026},{},[2027],{"type":125,"value":2028},"Checkpoint: kernel prints boot messages on the serial console and reaches \"Freeing unused kernel memory.\"",{"type":120,"tag":222,"props":2030,"children":2032},{"id":2031},"_33-common-kernel-boot-failures",[2033],{"type":125,"value":2034},"3.3 Common kernel boot failures",{"type":120,"tag":121,"props":2036,"children":2037},{},[2038,2043,2045,2051,2053,2059],{"type":120,"tag":148,"props":2039,"children":2040},{},[2041],{"type":125,"value":2042},"Hang after \"Starting kernel...\"",{"type":125,"value":2044}," — Wrong load address, DTB not found, or early console not configured. Enable ",{"type":120,"tag":156,"props":2046,"children":2048},{"className":2047},[],[2049],{"type":125,"value":2050},"CONFIG_EARLY_PRINTK",{"type":125,"value":2052}," and ",{"type":120,"tag":156,"props":2054,"children":2056},{"className":2055},[],[2057],{"type":125,"value":2058},"earlyprintk",{"type":125,"value":2060}," on the command line.",{"type":120,"tag":121,"props":2062,"children":2063},{},[2064,2069],{"type":120,"tag":148,"props":2065,"children":2066},{},[2067],{"type":125,"value":2068},"Kernel panic: no init found",{"type":125,"value":2070}," — The kernel booted but cannot find a root filesystem. This is expected at this stage; proceed to Stage 4.",{"type":120,"tag":121,"props":2072,"children":2073},{},[2074,2079],{"type":120,"tag":148,"props":2075,"children":2076},{},[2077],{"type":125,"value":2078},"Random crashes or data corruption",{"type":125,"value":2080}," — DRAM issues that weren't caught by the bootloader. Run memtest from U-Boot.",{"type":120,"tag":222,"props":2082,"children":2084},{"id":2083},"_34-enable-remaining-peripherals",[2085],{"type":125,"value":2086},"3.4 Enable remaining peripherals",{"type":120,"tag":121,"props":2088,"children":2089},{},[2090],{"type":125,"value":2091},"Once basic boot works, enable drivers one at a time:",{"type":120,"tag":994,"props":2093,"children":2094},{},[2095,2100,2105,2110,2115,2120],{"type":120,"tag":144,"props":2096,"children":2097},{},[2098],{"type":125,"value":2099},"GPIO and LED",{"type":120,"tag":144,"props":2101,"children":2102},{},[2103],{"type":125,"value":2104},"I2C and SPI",{"type":120,"tag":144,"props":2106,"children":2107},{},[2108],{"type":125,"value":2109},"USB",{"type":120,"tag":144,"props":2111,"children":2112},{},[2113],{"type":125,"value":2114},"Display (if applicable)",{"type":120,"tag":144,"props":2116,"children":2117},{},[2118],{"type":125,"value":2119},"Audio (if applicable)",{"type":120,"tag":144,"props":2121,"children":2122},{},[2123],{"type":125,"value":2124},"Wireless (if applicable)",{"type":120,"tag":121,"props":2126,"children":2127},{},[2128],{"type":125,"value":2129},"Test each peripheral as you enable it. Do not enable everything at once and hope for the best.",{"type":120,"tag":128,"props":2131,"children":2133},{"id":2132},"stage-4-root-filesystem",[2134],{"type":125,"value":2135},"Stage 4: Root filesystem",{"type":120,"tag":222,"props":2137,"children":2139},{"id":2138},"_41-initial-rootfs-via-initramfs",[2140],{"type":125,"value":2141},"4.1 Initial rootfs via initramfs",{"type":120,"tag":121,"props":2143,"children":2144},{},[2145],{"type":125,"value":2146},"For early bring-up, bundle a minimal initramfs (BusyBox-based) into the kernel or load it as a separate image:",{"type":120,"tag":248,"props":2148,"children":2150},{"code":2149},"U-Boot> booti 0x40000000 0x45000000:${ramdisk_size} 0x43000000\n",[2151],{"type":120,"tag":156,"props":2152,"children":2153},{"__ignoreMap":109},[2154],{"type":125,"value":2149},{"type":120,"tag":121,"props":2156,"children":2157},{},[2158],{"type":125,"value":2159},"Checkpoint: you get a shell prompt on the serial console.",{"type":120,"tag":222,"props":2161,"children":2163},{"id":2162},"_42-mount-real-rootfs-from-storage",[2164],{"type":125,"value":2165},"4.2 Mount real rootfs from storage",{"type":120,"tag":121,"props":2167,"children":2168},{},[2169],{"type":125,"value":2170},"Once storage drivers are working, boot with a root filesystem on eMMC or NAND:",{"type":120,"tag":248,"props":2172,"children":2174},{"code":2173},"root=/dev/mmcblk0p2 rootwait\n",[2175],{"type":120,"tag":156,"props":2176,"children":2177},{"__ignoreMap":109},[2178],{"type":125,"value":2173},{"type":120,"tag":222,"props":2180,"children":2182},{"id":2181},"_43-package-installation",[2183],{"type":125,"value":2184},"4.3 Package installation",{"type":120,"tag":121,"props":2186,"children":2187},{},[2188,2190,2196,2197,2201],{"type":125,"value":2189},"With a working rootfs, you can start installing packages. The ProteanOS ",{"type":120,"tag":1494,"props":2191,"children":2193},{"href":2192},"/dev/pkg/spf-2.0/",[2194],{"type":125,"value":2195},"packaging system",{"type":125,"value":2052},{"type":120,"tag":1494,"props":2198,"children":2199},{"href":1517},[2200],{"type":125,"value":1520},{"type":125,"value":2202}," tools handle package building and installation for the target.",{"type":120,"tag":222,"props":2204,"children":2206},{"id":2205},"_44-persistent-storage-validation",[2207],{"type":125,"value":2208},"4.4 Persistent storage validation",{"type":120,"tag":121,"props":2210,"children":2211},{},[2212,2214,2220],{"type":125,"value":2213},"Write files, reboot, verify they persist. Run ",{"type":120,"tag":156,"props":2215,"children":2217},{"className":2216},[],[2218],{"type":125,"value":2219},"fsck",{"type":125,"value":2221}," after unclean shutdowns. Test power-loss scenarios (pull power during write operations and verify filesystem recovery).",{"type":120,"tag":128,"props":2223,"children":2225},{"id":2224},"stage-5-security-optional-but-recommended",[2226],{"type":125,"value":2227},"Stage 5: Security (optional but recommended)",{"type":120,"tag":222,"props":2229,"children":2231},{"id":2230},"_51-secure-boot",[2232],{"type":125,"value":2233},"5.1 Secure boot",{"type":120,"tag":121,"props":2235,"children":2236},{},[2237,2239,2245],{"type":125,"value":2238},"Once basic boot is reliable, add signature verification. The ",{"type":120,"tag":1494,"props":2240,"children":2242},{"href":2241},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust/",[2243],{"type":125,"value":2244},"secure boot guide",{"type":125,"value":2246}," covers U-Boot FIT image signing.",{"type":120,"tag":222,"props":2248,"children":2250},{"id":2249},"_52-dm-verity",[2251],{"type":125,"value":2252},"5.2 dm-verity",{"type":120,"tag":121,"props":2254,"children":2255},{},[2256,2258,2264],{"type":125,"value":2257},"Protect the read-only root filesystem. The ",{"type":120,"tag":1494,"props":2259,"children":2261},{"href":2260},"/doc/rootfs-integrity-dm-verity-immutable-images/",[2262],{"type":125,"value":2263},"dm-verity guide",{"type":125,"value":2265}," covers setup and integration.",{"type":120,"tag":222,"props":2267,"children":2269},{"id":2268},"_53-hardware-security-features",[2270],{"type":125,"value":2271},"5.3 Hardware security features",{"type":120,"tag":121,"props":2273,"children":2274},{},[2275],{"type":125,"value":2276},"Enable SoC-specific security features: TrustZone, secure storage, hardware RNG, crypto accelerators. These are SoC-specific and require the TRM and vendor documentation.",{"type":120,"tag":128,"props":2278,"children":2280},{"id":2279},"stage-6-validation",[2281],{"type":125,"value":2282},"Stage 6: Validation",{"type":120,"tag":222,"props":2284,"children":2286},{"id":2285},"_61-stress-testing",[2287],{"type":125,"value":2288},"6.1 Stress testing",{"type":120,"tag":121,"props":2290,"children":2291},{},[2292],{"type":125,"value":2293},"Run stress tests for at least 72 hours:",{"type":120,"tag":994,"props":2295,"children":2296},{},[2297,2309,2314,2319],{"type":120,"tag":144,"props":2298,"children":2299},{},[2300,2302,2308],{"type":125,"value":2301},"CPU stress (",{"type":120,"tag":156,"props":2303,"children":2305},{"className":2304},[],[2306],{"type":125,"value":2307},"stress-ng",{"type":125,"value":1381},{"type":120,"tag":144,"props":2310,"children":2311},{},[2312],{"type":125,"value":2313},"Memory stress (memtester, mmap stress)",{"type":120,"tag":144,"props":2315,"children":2316},{},[2317],{"type":125,"value":2318},"Storage stress (fio, bonnie++)",{"type":120,"tag":144,"props":2320,"children":2321},{},[2322],{"type":125,"value":2323},"Thermal stress (monitor temperatures under load)",{"type":120,"tag":222,"props":2325,"children":2327},{"id":2326},"_62-power-consumption",[2328],{"type":125,"value":2329},"6.2 Power consumption",{"type":120,"tag":121,"props":2331,"children":2332},{},[2333],{"type":125,"value":2334},"Measure power in all relevant states: active, idle, sleep, deep sleep. Verify that clock gating and power domain management work correctly.",{"type":120,"tag":222,"props":2336,"children":2338},{"id":2337},"_63-peripheral-regression",[2339],{"type":125,"value":2340},"6.3 Peripheral regression",{"type":120,"tag":121,"props":2342,"children":2343},{},[2344],{"type":125,"value":2345},"After all drivers are enabled, run a full peripheral regression test. I2C devices that worked in isolation sometimes fail when other buses are active due to shared interrupt lines or clock conflicts.",{"type":120,"tag":128,"props":2347,"children":2348},{"id":1525},[2349],{"type":125,"value":1528},{"type":120,"tag":121,"props":2351,"children":2352},{},[2353],{"type":125,"value":2354},"Board bring-up is systematic, not heroic. Follow the sequence: serial console → bootloader → DRAM → storage → kernel → rootfs → peripherals → security → validation. Verify each stage before proceeding to the next. Document everything—the next engineer working on this board will thank you.",{"type":120,"tag":121,"props":2356,"children":2357},{},[2358,2359,2364],{"type":125,"value":191},{"type":120,"tag":1494,"props":2360,"children":2361},{"href":1496},[2362],{"type":125,"value":2363},"porting documentation",{"type":125,"value":2365}," provides additional context on ProteanOS-specific porting workflows and conventions.",{"type":120,"tag":1535,"props":2367,"children":2368},{},[2369],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":2371},[2372,2376,2383,2389,2395,2401,2406,2411],{"id":1589,"depth":270,"text":1592,"children":2373},[2374,2375],{"id":1595,"depth":279,"text":1598},{"id":1624,"depth":279,"text":1627},{"id":1640,"depth":270,"text":1643,"children":2377},[2378,2379,2380,2381,2382],{"id":1646,"depth":279,"text":1649},{"id":1695,"depth":279,"text":1698},{"id":1761,"depth":279,"text":1764},{"id":1800,"depth":279,"text":1803},{"id":1824,"depth":279,"text":1827},{"id":1843,"depth":270,"text":1846,"children":2384},[2385,2386,2387,2388],{"id":1849,"depth":279,"text":1852},{"id":1860,"depth":279,"text":1863},{"id":1871,"depth":279,"text":1874},{"id":1882,"depth":279,"text":1885},{"id":1949,"depth":270,"text":1952,"children":2390},[2391,2392,2393,2394],{"id":1955,"depth":279,"text":1958},{"id":2007,"depth":279,"text":2010},{"id":2031,"depth":279,"text":2034},{"id":2083,"depth":279,"text":2086},{"id":2132,"depth":270,"text":2135,"children":2396},[2397,2398,2399,2400],{"id":2138,"depth":279,"text":2141},{"id":2162,"depth":279,"text":2165},{"id":2181,"depth":279,"text":2184},{"id":2205,"depth":279,"text":2208},{"id":2224,"depth":270,"text":2227,"children":2402},[2403,2404,2405],{"id":2230,"depth":279,"text":2233},{"id":2249,"depth":279,"text":2252},{"id":2268,"depth":279,"text":2271},{"id":2279,"depth":270,"text":2282,"children":2407},[2408,2409,2410],{"id":2285,"depth":279,"text":2288},{"id":2326,"depth":279,"text":2329},{"id":2337,"depth":279,"text":2340},{"id":1525,"depth":270,"text":1528},"content:doc:plat:porting-checklist-bootloader-kernel-rootfs-2026.md","doc/plat/porting-checklist-bootloader-kernel-rootfs-2026.md","doc/plat/porting-checklist-bootloader-kernel-rootfs-2026",{"_path":87,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":88,"description":89,"date":90,"lastmod":2417,"draft":108,"hero":2418,"tags":2419,"category":2416,"body":2421,"_type":1570,"_id":3066,"_source":1572,"_file":3067,"_stem":3068,"_extension":1575},"doc","2026-11-18T00:00:00.000Z","/images/hero/rtos-vs-embedded-linux-zephyr-2026-1600x900.jpg",[112,113,2420],"RTOS",{"type":117,"children":2422,"toc":3045},[2423,2428,2434,2439,2482,2488,2493,2544,2550,2555,2608,2613,2631,2637,2789,2794,2800,2805,2818,2823,2828,2833,2839,2858,2864,2869,2875,2880,2885,2891,2896,2901,2907,2920,2926,2938,2951,2957,2963,2968,2973,2991,2997,3002,3006,3024,3036,3040],{"type":120,"tag":121,"props":2424,"children":2425},{},[2426],{"type":125,"value":2427},"Start with maintained board support, required runtimes and the control path. An RTOS suits a constrained firmware application when its drivers and timing behaviour fit the device. Linux suits products needing its process model, packages and application stack. A hybrid can separate control work from application processing, with additional communication and update responsibilities.",{"type":120,"tag":128,"props":2429,"children":2431},{"id":2430},"what-an-rtos-gives-you",[2432],{"type":125,"value":2433},"What an RTOS gives you",{"type":120,"tag":121,"props":2435,"children":2436},{},[2437],{"type":125,"value":2438},"A real-time operating system provides:",{"type":120,"tag":994,"props":2440,"children":2441},{},[2442,2452,2462,2472],{"type":120,"tag":144,"props":2443,"children":2444},{},[2445,2450],{"type":120,"tag":148,"props":2446,"children":2447},{},[2448],{"type":125,"value":2449},"Deterministic scheduling:",{"type":125,"value":2451}," Scheduling policy can be designed around control tasks. Bounds require evidence for the actual processor, interrupt load and configuration.",{"type":120,"tag":144,"props":2453,"children":2454},{},[2455,2460],{"type":120,"tag":148,"props":2456,"children":2457},{},[2458],{"type":125,"value":2459},"Minimal footprint:",{"type":125,"value":2461}," Measure flash and peak RAM for the selected drivers, stacks, security settings and application.",{"type":120,"tag":144,"props":2463,"children":2464},{},[2465,2470],{"type":120,"tag":148,"props":2466,"children":2467},{},[2468],{"type":125,"value":2469},"Fast boot:",{"type":125,"value":2471}," Measure reset-to-ready time including clock startup, radio association, storage checks and application initialisation.",{"type":120,"tag":144,"props":2473,"children":2474},{},[2475,2480],{"type":120,"tag":148,"props":2476,"children":2477},{},[2478],{"type":125,"value":2479},"Hardware proximity:",{"type":125,"value":2481}," Many designs expose direct peripheral control. Verify the port's interrupt model and MPU/MMU protection options.",{"type":120,"tag":128,"props":2483,"children":2485},{"id":2484},"what-embedded-linux-gives-you",[2486],{"type":125,"value":2487},"What embedded Linux gives you",{"type":120,"tag":121,"props":2489,"children":2490},{},[2491],{"type":125,"value":2492},"Linux provides:",{"type":120,"tag":994,"props":2494,"children":2495},{},[2496,2506,2516,2526],{"type":120,"tag":144,"props":2497,"children":2498},{},[2499,2504],{"type":120,"tag":148,"props":2500,"children":2501},{},[2502],{"type":125,"value":2503},"Rich ecosystem:",{"type":125,"value":2505}," Thousands of maintained packages, mature networking stacks (including WiFi, Bluetooth, cellular), full POSIX API, and extensive hardware driver support.",{"type":120,"tag":144,"props":2507,"children":2508},{},[2509,2514],{"type":120,"tag":148,"props":2510,"children":2511},{},[2512],{"type":125,"value":2513},"Memory protection:",{"type":125,"value":2515}," On supported configurations, virtual memory separates process address spaces. Shared resources, privileged services and kernel defects still need fault analysis.",{"type":120,"tag":144,"props":2517,"children":2518},{},[2519,2524],{"type":120,"tag":148,"props":2520,"children":2521},{},[2522],{"type":125,"value":2523},"Userspace tooling:",{"type":125,"value":2525}," Tools such as GDB, strace and perf can support diagnosis. Check tool availability for the selected architecture and image configuration.",{"type":120,"tag":144,"props":2527,"children":2528},{},[2529,2534,2536,2542],{"type":120,"tag":148,"props":2530,"children":2531},{},[2532],{"type":125,"value":2533},"Update infrastructure:",{"type":125,"value":2535}," Package managers, OTA frameworks (see the ",{"type":120,"tag":1494,"props":2537,"children":2539},{"href":2538},"/doc/ota-updates-rauc-swupdate-mender-2026/",[2540],{"type":125,"value":2541},"OTA comparison",{"type":125,"value":2543},"), and container runtimes work on Linux.",{"type":120,"tag":128,"props":2545,"children":2547},{"id":2546},"where-zephyr-fits-in-2026",[2548],{"type":125,"value":2549},"Where Zephyr fits in 2026",{"type":120,"tag":121,"props":2551,"children":2552},{},[2553],{"type":125,"value":2554},"Zephyr has grown significantly since its early days as a minimal RTOS. Key capabilities in 2026:",{"type":120,"tag":994,"props":2556,"children":2557},{},[2558,2568,2578,2588,2598],{"type":120,"tag":144,"props":2559,"children":2560},{},[2561,2566],{"type":120,"tag":148,"props":2562,"children":2563},{},[2564],{"type":125,"value":2565},"Networking:",{"type":125,"value":2567}," Full TCP/IP, TLS 1.3, MQTT, CoAP, LwM2M. Zephyr devices can communicate with cloud services directly.",{"type":120,"tag":144,"props":2569,"children":2570},{},[2571,2576],{"type":120,"tag":148,"props":2572,"children":2573},{},[2574],{"type":125,"value":2575},"Bluetooth:",{"type":125,"value":2577}," Bluetooth host/controller and mesh capabilities depend on the selected board, controller and configuration. Check the required profiles.",{"type":120,"tag":144,"props":2579,"children":2580},{},[2581,2586],{"type":120,"tag":148,"props":2582,"children":2583},{},[2584],{"type":125,"value":2585},"Security:",{"type":125,"value":2587}," Secure-boot and firmware-update integrations, including MCUboot, depend on the board and build configuration.",{"type":120,"tag":144,"props":2589,"children":2590},{},[2591,2596],{"type":120,"tag":148,"props":2592,"children":2593},{},[2594],{"type":125,"value":2595},"Build system:",{"type":125,"value":2597}," West + CMake with a Kconfig-based configuration model. Familiar to anyone who has worked with the Linux kernel's build system.",{"type":120,"tag":144,"props":2599,"children":2600},{},[2601,2606],{"type":120,"tag":148,"props":2602,"children":2603},{},[2604],{"type":125,"value":2605},"Hardware support:",{"type":125,"value":2607}," Hundreds of boards and SoCs, primarily Cortex-M, but also RISC-V, x86, ARC, and others.",{"type":120,"tag":121,"props":2609,"children":2610},{},[2611],{"type":125,"value":2612},"Evaluate Zephyr for connected firmware when its supported board, drivers and selected subsystems fit the measured memory and timing budget. An RTOS name alone provides no deadline guarantee.",{"type":120,"tag":121,"props":2614,"children":2615},{},[2616,2618,2629],{"type":125,"value":2617},"If the choice turns on interrupt handling, scheduling or memory protection, the ",{"type":120,"tag":1494,"props":2619,"children":2626},{"href":2620,"target":2621,"rel":2622},"/posgo/linux-os-course","_blank",[2623,2624,2625],"nofollow","noopener","noreferrer",[2627],{"type":125,"value":2628},"Fundamentals of Operating Systems",{"type":125,"value":2630}," course (affiliate link) covers those concepts. Measure the timing and resource budget on your intended hardware before committing to a board port.",{"type":120,"tag":128,"props":2632,"children":2634},{"id":2633},"decision-framework",[2635],{"type":125,"value":2636},"Decision framework",{"type":120,"tag":2638,"props":2639,"children":2640},"table",{},[2641,2670],{"type":120,"tag":2642,"props":2643,"children":2644},"thead",{},[2645],{"type":120,"tag":2646,"props":2647,"children":2648},"tr",{},[2649,2655,2660,2665],{"type":120,"tag":2650,"props":2651,"children":2652},"th",{},[2653],{"type":125,"value":2654},"Requirement",{"type":120,"tag":2650,"props":2656,"children":2657},{},[2658],{"type":125,"value":2659},"RTOS candidate",{"type":120,"tag":2650,"props":2661,"children":2662},{},[2663],{"type":125,"value":2664},"Linux candidate",{"type":120,"tag":2650,"props":2666,"children":2667},{},[2668],{"type":125,"value":2669},"Hybrid candidate",{"type":120,"tag":2671,"props":2672,"children":2673},"tbody",{},[2674,2698,2721,2744,2767],{"type":120,"tag":2646,"props":2675,"children":2676},{},[2677,2683,2688,2693],{"type":120,"tag":2678,"props":2679,"children":2680},"td",{},[2681],{"type":125,"value":2682},"Board support",{"type":120,"tag":2678,"props":2684,"children":2685},{},[2686],{"type":125,"value":2687},"Check MCU drivers and vendor maintenance",{"type":120,"tag":2678,"props":2689,"children":2690},{},[2691],{"type":125,"value":2692},"Check BSP, kernel and userspace",{"type":120,"tag":2678,"props":2694,"children":2695},{},[2696],{"type":125,"value":2697},"Check both processors and transport",{"type":120,"tag":2646,"props":2699,"children":2700},{},[2701,2706,2711,2716],{"type":120,"tag":2678,"props":2702,"children":2703},{},[2704],{"type":125,"value":2705},"Application runtime",{"type":120,"tag":2678,"props":2707,"children":2708},{},[2709],{"type":125,"value":2710},"Confirm ported libraries fit",{"type":120,"tag":2678,"props":2712,"children":2713},{},[2714],{"type":125,"value":2715},"Verify required packages and binaries",{"type":120,"tag":2678,"props":2717,"children":2718},{},[2719],{"type":125,"value":2720},"Define which processor owns each function",{"type":120,"tag":2646,"props":2722,"children":2723},{},[2724,2729,2734,2739],{"type":120,"tag":2678,"props":2725,"children":2726},{},[2727],{"type":125,"value":2728},"Timing",{"type":120,"tag":2678,"props":2730,"children":2731},{},[2732],{"type":125,"value":2733},"Measure control path and interrupts",{"type":120,"tag":2678,"props":2735,"children":2736},{},[2737],{"type":125,"value":2738},"Measure scheduling and end-to-end deadlines",{"type":120,"tag":2678,"props":2740,"children":2741},{},[2742],{"type":125,"value":2743},"Measure control path plus communication",{"type":120,"tag":2646,"props":2745,"children":2746},{},[2747,2752,2757,2762],{"type":120,"tag":2678,"props":2748,"children":2749},{},[2750],{"type":125,"value":2751},"Memory and power",{"type":120,"tag":2678,"props":2753,"children":2754},{},[2755],{"type":125,"value":2756},"Measure full configured application",{"type":120,"tag":2678,"props":2758,"children":2759},{},[2760],{"type":125,"value":2761},"Measure boot and steady-state load",{"type":120,"tag":2678,"props":2763,"children":2764},{},[2765],{"type":125,"value":2766},"Budget both systems and interconnect",{"type":120,"tag":2646,"props":2768,"children":2769},{},[2770,2775,2780,2784],{"type":120,"tag":2678,"props":2771,"children":2772},{},[2773],{"type":125,"value":2774},"Assurance",{"type":120,"tag":2678,"props":2776,"children":2777},{},[2778],{"type":125,"value":2779},"Project-specific evidence required",{"type":120,"tag":2678,"props":2781,"children":2782},{},[2783],{"type":125,"value":2779},{"type":120,"tag":2678,"props":2785,"children":2786},{},[2787],{"type":125,"value":2788},"Isolation and fault handling require evidence",{"type":120,"tag":121,"props":2790,"children":2791},{},[2792],{"type":125,"value":2793},"Unknown hardware support keeps a candidate conditional. A language runtime or graphics requirement may decide the shortlist before memory tuning. Keep the difficult requirement visible and test it before investing in a complete application port.",{"type":120,"tag":222,"props":2795,"children":2797},{"id":2796},"illustrative-product-scenarios",[2798],{"type":125,"value":2799},"Illustrative product scenarios",{"type":120,"tag":121,"props":2801,"children":2802},{},[2803],{"type":125,"value":2804},"A constrained sensor starts with an RTOS candidate when a maintained board port provides its radio and power modes. Verify peak memory during TLS negotiation, wake-to-sample timing and the authenticated update path. The result can change if a required supplier library only supports Linux.",{"type":120,"tag":121,"props":2806,"children":2807},{},[2808,2810,2816],{"type":125,"value":2809},"For a battery-powered device, test whether a peripheral suspends after its last use and resumes before the next required sample. The ",{"type":120,"tag":1494,"props":2811,"children":2813},{"href":2812},"https://github.com/zephyrproject-rtos/zephyr/issues/89031",[2814],{"type":125,"value":2815},"Zephyr power management discussion",{"type":125,"value":2817}," distinguishes system sleep from driver-level power transitions. A board port can offer the sleep mode you need while a selected peripheral still consumes power between samples.",{"type":120,"tag":121,"props":2819,"children":2820},{},[2821],{"type":125,"value":2822},"A connected gateway starts with Linux when it needs several network services, process isolation and supported application packages. Record storage writes, service restart behaviour and the way security updates reach offline installations. A small gateway with fixed protocols may still fit an RTOS.",{"type":120,"tag":121,"props":2824,"children":2825},{},[2826],{"type":125,"value":2827},"A rich-UI product needs an early display and graphics prototype on the exact board. Confirm driver maintenance, startup time and input responsiveness with the intended application. An assumed graphics capability is insufficient to select the OS.",{"type":120,"tag":121,"props":2829,"children":2830},{},[2831],{"type":125,"value":2832},"A mixed-control product can put the UI on Linux and control on an MCU. Define message deadlines, protocol versions, loss-of-communication behaviour and coordinated update recovery. Independent processors still share power, clocks or sensors in many designs, so verify the actual fault boundaries.",{"type":120,"tag":222,"props":2834,"children":2836},{"id":2835},"zephyr-and-freertos-within-the-rtos-choice",[2837],{"type":125,"value":2838},"Zephyr and FreeRTOS within the RTOS choice",{"type":120,"tag":121,"props":2840,"children":2841},{},[2842,2844,2850,2851,2857],{"type":125,"value":2843},"Zephyr combines a kernel with configurable drivers, subsystems and a board-oriented build workflow. FreeRTOS provides a kernel and separately selected libraries and integrations. Compare the actual board port, library support, licence obligations and maintenance owner. An RTOS family name cannot establish support for a particular device. ",{"type":120,"tag":1494,"props":2845,"children":2847},{"href":2846},"https://docs.zephyrproject.org/latest/introduction/index.html",[2848],{"type":125,"value":2849},"Zephyr introduction",{"type":125,"value":2052},{"type":120,"tag":1494,"props":2852,"children":2854},{"href":2853},"https://www.freertos.org/Documentation/00-Overview",[2855],{"type":125,"value":2856},"FreeRTOS documentation",{"type":125,"value":460},{"type":120,"tag":128,"props":2859,"children":2861},{"id":2860},"hybrid-architectures",[2862],{"type":125,"value":2863},"Hybrid architectures",{"type":120,"tag":121,"props":2865,"children":2866},{},[2867],{"type":125,"value":2868},"Many products use both. Common patterns:",{"type":120,"tag":222,"props":2870,"children":2872},{"id":2871},"asymmetric-multiprocessing-amp",[2873],{"type":125,"value":2874},"Asymmetric multiprocessing (AMP)",{"type":120,"tag":121,"props":2876,"children":2877},{},[2878],{"type":125,"value":2879},"A multi-core SoC runs Linux on the application processor (Cortex-A) and Zephyr on the real-time co-processor (Cortex-M). Communication happens over shared memory with RPMsg or OpenAMP.",{"type":120,"tag":121,"props":2881,"children":2882},{},[2883],{"type":125,"value":2884},"Example: NXP i.MX 8M Mini runs Linux on four Cortex-A53 cores for the application stack and Zephyr on the Cortex-M4 for real-time motor control.",{"type":120,"tag":222,"props":2886,"children":2888},{"id":2887},"separate-processors",[2889],{"type":125,"value":2890},"Separate processors",{"type":120,"tag":121,"props":2892,"children":2893},{},[2894],{"type":125,"value":2895},"A dedicated microcontroller handles real-time I/O, connected to the Linux processor via SPI, I2C, or UART. The microcontroller runs Zephyr or FreeRTOS; the main processor runs Linux.",{"type":120,"tag":121,"props":2897,"children":2898},{},[2899],{"type":125,"value":2900},"Physical separation can support isolation, subject to shared resources, communication failures and the product safety analysis.",{"type":120,"tag":222,"props":2902,"children":2904},{"id":2903},"linux-preempt_rt",[2905],{"type":125,"value":2906},"Linux + PREEMPT_RT",{"type":120,"tag":121,"props":2908,"children":2909},{},[2910,2912,2918],{"type":125,"value":2911},"Linux with PREEMPT_RT may fit when measurements and system analysis support the required deadlines. See the ",{"type":120,"tag":1494,"props":2913,"children":2915},{"href":2914},"/doc/real-time-linux-preempt-rt-latency-2026/",[2916],{"type":125,"value":2917},"PREEMPT_RT guide",{"type":125,"value":2919}," for details.",{"type":120,"tag":128,"props":2921,"children":2923},{"id":2922},"maintenance-and-long-term-support",[2924],{"type":125,"value":2925},"Maintenance and long-term support",{"type":120,"tag":121,"props":2927,"children":2928},{},[2929,2931,2937],{"type":125,"value":2930},"Record support end dates for the selected kernel, BSP, RTOS release and application dependencies. Support policies differ by branch and provider. Check the current published schedule and retain its review date in the product record. ",{"type":120,"tag":1494,"props":2932,"children":2934},{"href":2933},"https://www.kernel.org/category/releases.html",[2935],{"type":125,"value":2936},"Kernel release table",{"type":125,"value":460},{"type":120,"tag":121,"props":2939,"children":2940},{},[2941,2943,2949],{"type":125,"value":2942},"For a Linux shortlist, compare ",{"type":120,"tag":1494,"props":2944,"children":2946},{"href":2945},"/doc/buildroot-vs-yocto-2026/",[2947],{"type":125,"value":2948},"Buildroot vs Yocto for product maintenance",{"type":125,"value":2950}," and assign owners for security updates, package changes and build infrastructure. For every architecture, test a failed update and an old supported version returning after a long offline period. A product support promise needs a plan for components that reach upstream end of support first.",{"type":120,"tag":128,"props":2952,"children":2954},{"id":2953},"migration-paths",[2955],{"type":125,"value":2956},"Migration paths",{"type":120,"tag":222,"props":2958,"children":2960},{"id":2959},"rtos-to-linux",[2961],{"type":125,"value":2962},"RTOS to Linux",{"type":120,"tag":121,"props":2964,"children":2965},{},[2966],{"type":125,"value":2967},"Common when a product's feature requirements outgrow the RTOS. The networking stack that started as simple MQTT now needs HTTP, WebSocket, and a web server for configuration. At some point, re-implementing these on an RTOS costs more than switching to Linux.",{"type":120,"tag":121,"props":2969,"children":2970},{},[2971],{"type":125,"value":2972},"The migration typically involves:",{"type":120,"tag":140,"props":2974,"children":2975},{},[2976,2981,2986],{"type":120,"tag":144,"props":2977,"children":2978},{},[2979],{"type":125,"value":2980},"Moving to a larger SoC with an MMU",{"type":120,"tag":144,"props":2982,"children":2983},{},[2984],{"type":125,"value":2985},"Re-implementing the application using Linux userspace APIs",{"type":120,"tag":144,"props":2987,"children":2988},{},[2989],{"type":125,"value":2990},"If real-time is still needed, use the hybrid AMP approach",{"type":120,"tag":222,"props":2992,"children":2994},{"id":2993},"linux-to-rtos",[2995],{"type":125,"value":2996},"Linux to RTOS",{"type":120,"tag":121,"props":2998,"children":2999},{},[3000],{"type":125,"value":3001},"Less common, but happens when cost pressure demands a cheaper SoC. The application must be simplified to fit RTOS constraints.",{"type":120,"tag":128,"props":3003,"children":3004},{"id":1484},[3005],{"type":125,"value":1487},{"type":120,"tag":121,"props":3007,"children":3008},{},[3009,3011,3016,3017,3022],{"type":125,"value":3010},"ProteanOS targets the embedded Linux space, but its ",{"type":120,"tag":1494,"props":3012,"children":3013},{"href":2192},[3014],{"type":125,"value":3015},"packaging concepts",{"type":125,"value":2052},{"type":120,"tag":1494,"props":3018,"children":3019},{"href":1517},[3020],{"type":125,"value":3021},"development tools",{"type":125,"value":3023}," are designed to coexist with hybrid architectures. The Cortex-A application running ProteanOS can communicate with a Cortex-M co-processor running Zephyr through the standard RPMsg interface.",{"type":120,"tag":121,"props":3025,"children":3026},{},[3027,3029,3034],{"type":125,"value":3028},"For hardware platform bring-up, the ",{"type":120,"tag":1494,"props":3030,"children":3031},{"href":1504},[3032],{"type":125,"value":3033},"board bring-up checklist",{"type":125,"value":3035}," covers both the Linux and co-processor aspects of hybrid designs.",{"type":120,"tag":128,"props":3037,"children":3038},{"id":1525},[3039],{"type":125,"value":1528},{"type":120,"tag":121,"props":3041,"children":3042},{},[3043],{"type":125,"value":3044},"In 2026, the RTOS vs. Linux decision is primarily driven by hardware constraints (RAM, flash, SoC capabilities), latency requirements, and ecosystem needs. Zephyr has expanded RTOS capabilities significantly, but Linux's ecosystem depth remains unmatched. Hybrid architectures add communication, fault handling and coordinated update work. Choose based on your product's actual requirements, not assumptions about what \"embedded\" means.",{"title":109,"searchDepth":270,"depth":270,"links":3046},[3047,3048,3049,3050,3054,3059,3060,3064,3065],{"id":2430,"depth":270,"text":2433},{"id":2484,"depth":270,"text":2487},{"id":2546,"depth":270,"text":2549},{"id":2633,"depth":270,"text":2636,"children":3051},[3052,3053],{"id":2796,"depth":279,"text":2799},{"id":2835,"depth":279,"text":2838},{"id":2860,"depth":270,"text":2863,"children":3055},[3056,3057,3058],{"id":2871,"depth":279,"text":2874},{"id":2887,"depth":279,"text":2890},{"id":2903,"depth":279,"text":2906},{"id":2922,"depth":270,"text":2925},{"id":2953,"depth":270,"text":2956,"children":3061},[3062,3063],{"id":2959,"depth":279,"text":2962},{"id":2993,"depth":279,"text":2996},{"id":1484,"depth":270,"text":1487},{"id":1525,"depth":270,"text":1528},"content:doc:rtos-vs-embedded-linux-zephyr-2026.md","doc/rtos-vs-embedded-linux-zephyr-2026.md","doc/rtos-vs-embedded-linux-zephyr-2026",{"_path":62,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":63,"description":64,"date":65,"lastmod":2417,"draft":108,"hero":3070,"tags":3071,"category":2416,"body":3073,"_type":1570,"_id":3335,"_source":1572,"_file":3336,"_stem":3337,"_extension":1575},"/images/hero/ota-updates-rauc-swupdate-mender-2026-1600x900.jpg",[112,113,3072],"OTA Updates",{"type":117,"children":3074,"toc":3320},[3075,3080,3086,3091,3095,3108,3114,3119,3124,3137,3142,3148,3153,3158,3163,3169,3174,3179,3184,3190,3196,3201,3207,3212,3218,3223,3229,3234,3239,3245,3250,3255,3261,3266,3271,3277,3282,3296,3315],{"type":120,"tag":121,"props":3076,"children":3077},{},[3078],{"type":125,"value":3079},"Choose RAUC for a slot-oriented device updater that you integrate with your own management service. Consider SWUpdate when your product needs several installation handlers and a custom update sequence. Evaluate Mender when an integrated device and deployment-management workflow fits your operating model. Each choice still needs board integration, recovery testing and an owner for fleet operations.",{"type":120,"tag":128,"props":3081,"children":3083},{"id":3082},"decision-table",[3084],{"type":125,"value":3085},"Decision table",{"type":120,"tag":121,"props":3087,"children":3088},{},[3089],{"type":125,"value":3090},"The comparison records documentation reviewed on 16 November 2026. Conditions belong to the selected release and deployment mode. Confirm them against the versions you plan to ship before committing a hardware layout.",{"type":120,"tag":3092,"props":3093,"children":3094},"ota-evidence-table",{},[],{"type":120,"tag":121,"props":3096,"children":3097},{},[3098,3100,3106],{"type":125,"value":3099},"Use the ",{"type":120,"tag":1494,"props":3101,"children":3103},{"href":3102},"/resources/ota-storage-rollback-v1.md",[3104],{"type":125,"value":3105},"editable storage and rollback worksheet",{"type":125,"value":3107}," to record requirements locally. It includes an illustrative capacity calculation and a failure-test record. Fill unknown values explicitly before choosing a framework.",{"type":120,"tag":128,"props":3109,"children":3111},{"id":3110},"what-is-rauc-ota",[3112],{"type":125,"value":3113},"What is RAUC OTA?",{"type":120,"tag":121,"props":3115,"children":3116},{},[3117],{"type":125,"value":3118},"RAUC installs signed bundles into configured slots. Your system configuration maps slot classes to storage and integrates boot selection with the bootloader. A product may update a kernel, root image and application content together, subject to its configured slot relationships and installation hooks.",{"type":120,"tag":121,"props":3120,"children":3121},{},[3122],{"type":125,"value":3123},"The device must establish when a new slot is healthy. A successful kernel boot alone may be insufficient if the application cannot read its database or connect to required local services. Define the health check and the point at which it marks the slot good. Keep boot-attempt counters and fallback state persistent across interrupted boots.",{"type":120,"tag":121,"props":3125,"children":3126},{},[3127,3129,3135],{"type":125,"value":3128},"If the update includes a peripheral, test the case where the main system boots and the peripheral is still on the previous firmware. The ",{"type":120,"tag":1494,"props":3130,"children":3132},{"href":3131},"https://github.com/rauc/rauc/discussions/1199",[3133],{"type":125,"value":3134},"RAUC discussion on first boot before confirmation",{"type":125,"value":3136}," highlights the need to distinguish that phase from an ordinary restart. Make the peripheral check safe to run again after a power cut, and confirm the main slot only when the required versions work together.",{"type":120,"tag":121,"props":3138,"children":3139},{},[3140],{"type":125,"value":3141},"Bundle signing authenticates the update supplied to the installer. The boot chain must separately enforce which installed images may execute. Plan certificate rotation and recovery before provisioning devices, including what happens when a deployed trust store needs replacement.",{"type":120,"tag":128,"props":3143,"children":3145},{"id":3144},"how-mender-updates-embedded-linux",[3146],{"type":125,"value":3147},"How Mender updates embedded Linux",{"type":120,"tag":121,"props":3149,"children":3150},{},[3151],{"type":125,"value":3152},"Mender combines device-side updating with deployment management. Rootfs updates commonly use inactive system partitions, while Update Modules support other payloads and application workflows. Current documentation also covers Zephyr and MCU updates. The storage worksheet on this page models embedded Linux A/B images.",{"type":120,"tag":121,"props":3154,"children":3155},{},[3156],{"type":125,"value":3157},"Select the client, server or hosted service and any required feature entitlement together. Deployment scheduling, reporting, application updates and rollback depend on the chosen components and configuration. Record the actual edition in the worksheet. A feature found in one hosted plan cannot establish availability in every self-hosted installation.",{"type":120,"tag":121,"props":3159,"children":3160},{},[3161],{"type":125,"value":3162},"For a rootfs update, check the bootloader integration, the commit decision and the state retained across versions. For an application Update Module, inspect that module's rollback implementation and failure behaviour. A filesystem rollback can leave a database in a schema the old software cannot read, so test both software and persistent-data compatibility.",{"type":120,"tag":128,"props":3164,"children":3166},{"id":3165},"when-swupdate-fits",[3167],{"type":125,"value":3168},"When SWUpdate fits",{"type":120,"tag":121,"props":3170,"children":3171},{},[3172],{"type":125,"value":3173},"SWUpdate uses handlers to install payloads described in a software collection. That makes it useful when an update combines raw images, files, scripts or several device components. The engineering cost is the explicit installation sequence, dependencies and recovery behaviour that your team must maintain.",{"type":120,"tag":121,"props":3175,"children":3176},{},[3177],{"type":125,"value":3178},"A signed configuration, enabled signature verification and payload verification must form one coherent policy. Review the selected build options and handler behaviour. A successful archive parse alone does not establish that every executable payload is authorised.",{"type":120,"tag":121,"props":3180,"children":3181},{},[3182],{"type":125,"value":3183},"Backend integration is a separate decision. Record how deployments reach the device, where status is reported and who operates that service. A local installer can be valuable even when the fleet backend is already fixed by a product organisation.",{"type":120,"tag":128,"props":3185,"children":3187},{"id":3186},"pairwise-comparisons",[3188],{"type":125,"value":3189},"Pairwise comparisons",{"type":120,"tag":222,"props":3191,"children":3193},{"id":3192},"rauc-vs-mender",[3194],{"type":125,"value":3195},"RAUC vs Mender",{"type":120,"tag":121,"props":3197,"children":3198},{},[3199],{"type":125,"value":3200},"Start with the fleet backend. RAUC fits a team prepared to connect a slot-based installer to its own control plane. Mender provides a product path that includes deployment management. Use the decision table to check the chosen release, payload and recovery assumptions before comparing operational effort.",{"type":120,"tag":222,"props":3202,"children":3204},{"id":3203},"swupdate-vs-rauc",[3205],{"type":125,"value":3206},"SWUpdate vs RAUC",{"type":120,"tag":121,"props":3208,"children":3209},{},[3210],{"type":125,"value":3211},"Compare the installation sequence against a slot model. RAUC's slot relationships suit whole-image replacement. SWUpdate's handlers allow more varied operations, with corresponding responsibility for their ordering and failure paths. Prototype the most difficult component update before treating flexibility as a benefit.",{"type":120,"tag":222,"props":3213,"children":3215},{"id":3214},"mender-vs-swupdate",[3216],{"type":125,"value":3217},"Mender vs SWUpdate",{"type":120,"tag":121,"props":3219,"children":3220},{},[3221],{"type":125,"value":3222},"Compare the integrated deployment workflow with the requirements for custom handlers and an existing backend. Include server operation, device integration and ongoing test maintenance in the cost assessment. Licensing, paid capabilities and support availability require checks for the selected distribution.",{"type":120,"tag":128,"props":3224,"children":3226},{"id":3225},"mender-alternatives-for-embedded-linux",[3227],{"type":125,"value":3228},"Mender alternatives for embedded Linux",{"type":120,"tag":121,"props":3230,"children":3231},{},[3232],{"type":125,"value":3233},"Moving from Mender to RAUC or SWUpdate requires a migration plan for six responsibilities. Identify the replacement device client and artifact format, deployment backend, bootloader state, health checks, rollback policy and operational owner. Preserve device identity and the ability to reach deployed devices during the transition.",{"type":120,"tag":121,"props":3235,"children":3236},{},[3237],{"type":125,"value":3238},"Test the migration from the oldest supported deployed version. Confirm that it can trust and install the transition artifact, that data remains readable, and that interrupted migration leaves a supported recovery path. Inventory certificates and credentials without copying secrets into the worksheet. A pilot group should exercise the actual deployment service and failure reporting before broader rollout.",{"type":120,"tag":128,"props":3240,"children":3242},{"id":3241},"ab-storage-health-checks-and-rollback",[3243],{"type":125,"value":3244},"A/B storage, health checks and rollback",{"type":120,"tag":121,"props":3246,"children":3247},{},[3248],{"type":125,"value":3249},"Allocate each system slot for installed payload, growth and separately measured overhead. Include boot allocations, persistent data, recovery and staging. Compressed transfer size is a separate quantity. Streaming can reduce staging needs, while adaptive or delta mechanisms may reduce transfer volume subject to their format and version requirements.",{"type":120,"tag":121,"props":3251,"children":3252},{},[3253],{"type":125,"value":3254},"The worksheet's illustrative device has 2,048 MiB available, 128 MiB reserved, 256 MiB persistent data and 128 MiB recovery. A 512 MiB installed payload with 25% growth and 4 MiB alignment gives two 640 MiB slots. With zero staging and zero additional per-slot overhead, required capacity is 1,792 MiB and remaining capacity is 256 MiB. Zero overhead assumes kernel, initramfs and verity data are already included. Validate that assumption on the built image.",{"type":120,"tag":128,"props":3256,"children":3258},{"id":3257},"choosing-with-an-existing-fleet-backend",[3259],{"type":125,"value":3260},"Choosing with an existing fleet backend",{"type":120,"tag":121,"props":3262,"children":3263},{},[3264],{"type":125,"value":3265},"Document authentication, polling or push behaviour, retry policy, deployment cohorts and result reporting. Decide who can stop a rollout and how a device reports a failed update after reconnecting. Offline devices need an explicit expiry and compatibility policy so an old deployment cannot silently replace a newer supported version.",{"type":120,"tag":121,"props":3267,"children":3268},{},[3269],{"type":125,"value":3270},"Self-hosting also needs backups, monitoring and recovery drills. Price infrastructure using the actual device count, polling frequency, retention and transfer volume. Include the people who maintain the service in the operational decision.",{"type":120,"tag":128,"props":3272,"children":3274},{"id":3273},"rollback-testing",[3275],{"type":125,"value":3276},"Rollback testing",{"type":120,"tag":121,"props":3278,"children":3279},{},[3280],{"type":125,"value":3281},"Use expendable test hardware or a disposable emulator. Test power interruption during writing, invalid signatures, exhausted boot attempts, application health-check failure and persistent-data incompatibility. Record the starting version, artifact digest, expected result, observed result and recovery action for each case.",{"type":120,"tag":121,"props":3283,"children":3284},{},[3285,3287,3294],{"type":125,"value":3286},"Require review for changes to the health check and rollback policy. The ",{"type":120,"tag":1494,"props":3288,"children":3291},{"href":3289,"rel":3290},"https://diyai.io/ai-tools/code-generation/code-review-automation/",[2624,2625],[3292],{"type":125,"value":3293},"review code automation",{"type":125,"value":3295}," guide covers review tooling. Keep pass and fail criteria for the device tests in the update project's own release records.",{"type":120,"tag":121,"props":3297,"children":3298},{},[3299,3301,3306,3308,3313],{"type":125,"value":3300},"Connect installer acceptance to ",{"type":120,"tag":1494,"props":3302,"children":3303},{"href":2241},[3304],{"type":125,"value":3305},"signed boot images and failure-path testing",{"type":125,"value":3307},". Protect the installed image using the ",{"type":120,"tag":1494,"props":3309,"children":3310},{"href":2260},[3311],{"type":125,"value":3312},"rootfs integrity guide",{"type":125,"value":3314},", with an authenticated expected root digest. Keep the previous working slot until the new application meets the recorded health criteria.",{"type":120,"tag":121,"props":3316,"children":3317},{},[3318],{"type":125,"value":3319},"The worksheet includes blank result fields because its scenario is illustrative. Retain raw test logs in your own engineering records. A repeatable failure test should leave the device in a recoverable state and identify the owner who will investigate a failed rollout.",{"title":109,"searchDepth":270,"depth":270,"links":3321},[3322,3323,3324,3325,3326,3331,3332,3333,3334],{"id":3082,"depth":270,"text":3085},{"id":3110,"depth":270,"text":3113},{"id":3144,"depth":270,"text":3147},{"id":3165,"depth":270,"text":3168},{"id":3186,"depth":270,"text":3189,"children":3327},[3328,3329,3330],{"id":3192,"depth":279,"text":3195},{"id":3203,"depth":279,"text":3206},{"id":3214,"depth":279,"text":3217},{"id":3225,"depth":270,"text":3228},{"id":3241,"depth":270,"text":3244},{"id":3257,"depth":270,"text":3260},{"id":3273,"depth":270,"text":3276},"content:doc:ota-updates-rauc-swupdate-mender-2026.md","doc/ota-updates-rauc-swupdate-mender-2026.md","doc/ota-updates-rauc-swupdate-mender-2026",{"_path":77,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":78,"description":79,"date":80,"lastmod":3339,"draft":108,"hero":3340,"tags":3341,"category":2416,"body":3343,"_type":1570,"_id":4326,"_source":1572,"_file":4327,"_stem":4328,"_extension":1575},"2026-11-16T00:00:00.000Z","/images/hero/real-time-linux-preempt-rt-latency-2026-1600x900.jpg",[112,113,3342],"Real-Time",{"type":117,"children":3344,"toc":4307},[3345,3350,3356,3361,3366,3409,3414,3420,3425,3433,3438,3444,3456,3499,3504,3509,3522,3551,3556,3562,3567,3580,3669,3690,3695,3700,3706,3711,3939,3944,3950,3956,3961,3967,3972,3978,3983,3989,3994,4090,4096,4101,4109,4130,4136,4141,4192,4197,4228,4234,4239,4264,4269,4273,4294,4298,4303],{"type":120,"tag":121,"props":3346,"children":3347},{},[3348],{"type":125,"value":3349},"PREEMPT_RT transforms the Linux kernel into a viable platform for soft and firm real-time applications. Use an architecture and kernel branch that support CONFIG_PREEMPT_RT, then verify the vendor configuration. This guide covers what PREEMPT_RT actually does, how to configure and tune it, and - critically - how to document observed scheduling latency and the conditions a test covers.",{"type":120,"tag":128,"props":3351,"children":3353},{"id":3352},"what-preempt_rt-changes",[3354],{"type":125,"value":3355},"What PREEMPT_RT changes",{"type":120,"tag":121,"props":3357,"children":3358},{},[3359],{"type":125,"value":3360},"Standard Linux is optimized for throughput. The kernel disables preemption during critical sections, holds spinlocks with interrupts disabled, and batches work for efficiency. These paths affect scheduling response and need measurement on the selected configuration.",{"type":120,"tag":121,"props":3362,"children":3363},{},[3364],{"type":125,"value":3365},"PREEMPT_RT makes the following changes:",{"type":120,"tag":994,"props":3367,"children":3368},{},[3369,3379,3389,3399],{"type":120,"tag":144,"props":3370,"children":3371},{},[3372,3377],{"type":120,"tag":148,"props":3373,"children":3374},{},[3375],{"type":125,"value":3376},"Spinlocks become sleeping locks:",{"type":125,"value":3378}," Most kernel spinlocks are replaced with rt-mutexes that can sleep, allowing higher-priority threads to preempt lower-priority ones even inside kernel code paths.",{"type":120,"tag":144,"props":3380,"children":3381},{},[3382,3387],{"type":120,"tag":148,"props":3383,"children":3384},{},[3385],{"type":125,"value":3386},"Interrupt handlers run as threads:",{"type":125,"value":3388}," Hardware interrupt handlers are converted to kernel threads with configurable priorities. This means a high-priority real-time task can preempt interrupt handling.",{"type":120,"tag":144,"props":3390,"children":3391},{},[3392,3397],{"type":120,"tag":148,"props":3393,"children":3394},{},[3395],{"type":125,"value":3396},"Priority inheritance:",{"type":125,"value":3398}," rt-mutexes implement priority inheritance to prevent priority inversion - a low-priority task holding a lock needed by a high-priority task temporarily inherits the high priority.",{"type":120,"tag":144,"props":3400,"children":3401},{},[3402,3407],{"type":120,"tag":148,"props":3403,"children":3404},{},[3405],{"type":125,"value":3406},"High-resolution timers:",{"type":125,"value":3408}," Timer resolution is improved to the hardware timer's native resolution (typically 1 µs or better).",{"type":120,"tag":121,"props":3410,"children":3411},{},[3412],{"type":125,"value":3413},"Measure the scheduling response on your selected hardware and kernel. PREEMPT_RT alone establishes no numerical latency bound.",{"type":120,"tag":128,"props":3415,"children":3417},{"id":3416},"kernel-configuration",[3418],{"type":125,"value":3419},"Kernel configuration",{"type":120,"tag":121,"props":3421,"children":3422},{},[3423],{"type":125,"value":3424},"The following configuration names are a starting checklist for Linux 6.12. Verify architecture support, dependencies and the vendor kernel configuration before enabling them:",{"type":120,"tag":248,"props":3426,"children":3428},{"code":3427},"CONFIG_PREEMPT_RT=y\nCONFIG_HIGH_RES_TIMERS=y\nCONFIG_NO_HZ_FULL=y\nCONFIG_CPU_FREQ=n        # or use performance governor\nCONFIG_CPU_IDLE=n         # or configure shallow idle states\n",[3429],{"type":120,"tag":156,"props":3430,"children":3431},{"__ignoreMap":109},[3432],{"type":125,"value":3427},{"type":120,"tag":121,"props":3434,"children":3435},{},[3436],{"type":125,"value":3437},"Frequency and idle policies can affect latency, temperature and power. Compare supported policies on the target under sustained load. CPU idle-state names and available controls vary by architecture. Keep the original configuration and record each tested change.",{"type":120,"tag":128,"props":3439,"children":3441},{"id":3440},"irq-thread-priorities",[3442],{"type":125,"value":3443},"IRQ thread priorities",{"type":120,"tag":121,"props":3445,"children":3446},{},[3447,3449,3455],{"type":125,"value":3448},"PREEMPT_RT threads most interrupt handlers, with exceptions for low-level and explicitly non-threaded paths. You can see them with ",{"type":120,"tag":156,"props":3450,"children":3452},{"className":3451},[],[3453],{"type":125,"value":3454},"ps",{"type":125,"value":858},{"type":120,"tag":248,"props":3457,"children":3459},{"code":3458,"language":492,"meta":109,"className":493,"style":109},"ps -eo pid,cls,rtprio,comm | grep -i irq\n",[3460],{"type":120,"tag":156,"props":3461,"children":3462},{"__ignoreMap":109},[3463],{"type":120,"tag":258,"props":3464,"children":3465},{"class":260,"line":261},[3466,3470,3475,3480,3484,3489,3494],{"type":120,"tag":258,"props":3467,"children":3468},{"style":503},[3469],{"type":125,"value":3454},{"type":120,"tag":258,"props":3471,"children":3472},{"style":509},[3473],{"type":125,"value":3474}," -eo",{"type":120,"tag":258,"props":3476,"children":3477},{"style":515},[3478],{"type":125,"value":3479}," pid,cls,rtprio,comm",{"type":120,"tag":258,"props":3481,"children":3482},{"style":662},[3483],{"type":125,"value":665},{"type":120,"tag":258,"props":3485,"children":3486},{"style":503},[3487],{"type":125,"value":3488}," grep",{"type":120,"tag":258,"props":3490,"children":3491},{"style":509},[3492],{"type":125,"value":3493}," -i",{"type":120,"tag":258,"props":3495,"children":3496},{"style":515},[3497],{"type":125,"value":3498}," irq\n",{"type":120,"tag":121,"props":3500,"children":3501},{},[3502],{"type":125,"value":3503},"Set priorities based on your application's requirements. This illustrative priority ordering needs validation against the actual dependency graph:",{"type":120,"tag":121,"props":3505,"children":3506},{},[3507],{"type":125,"value":3508},"A real-time thread must not starve an IRQ thread or worker on which it depends. Record the complete wakeup path before assigning priorities. Include watchdogs, communication, storage and recovery work in that review. A universal numeric priority table cannot establish a safe ordering for an unknown device.",{"type":120,"tag":121,"props":3510,"children":3511},{},[3512,3514,3520],{"type":125,"value":3513},"Use ",{"type":120,"tag":156,"props":3515,"children":3517},{"className":3516},[],[3518],{"type":125,"value":3519},"chrt",{"type":125,"value":3521}," to set thread priorities:",{"type":120,"tag":248,"props":3523,"children":3525},{"code":3524,"language":492,"meta":109,"className":493,"style":109},"chrt -p THREAD_PID  # inspect a known thread before planning changes\n",[3526],{"type":120,"tag":156,"props":3527,"children":3528},{"__ignoreMap":109},[3529],{"type":120,"tag":258,"props":3530,"children":3531},{"class":260,"line":261},[3532,3536,3541,3546],{"type":120,"tag":258,"props":3533,"children":3534},{"style":503},[3535],{"type":125,"value":3519},{"type":120,"tag":258,"props":3537,"children":3538},{"style":509},[3539],{"type":125,"value":3540}," -p",{"type":120,"tag":258,"props":3542,"children":3543},{"style":515},[3544],{"type":125,"value":3545}," THREAD_PID",{"type":120,"tag":258,"props":3547,"children":3548},{"style":727},[3549],{"type":125,"value":3550},"  # inspect a known thread before planning changes\n",{"type":120,"tag":121,"props":3552,"children":3553},{},[3554],{"type":125,"value":3555},"Or configure them in udev rules or systemd unit files for persistence.",{"type":120,"tag":128,"props":3557,"children":3559},{"id":3558},"measuring-latency-with-cyclictest",[3560],{"type":125,"value":3561},"Measuring latency with cyclictest",{"type":120,"tag":121,"props":3563,"children":3564},{},[3565],{"type":125,"value":3566},"cyclictest is the standard tool for measuring scheduling latency on PREEMPT_RT systems. It creates high-priority threads that sleep for a defined interval and measures how long they actually slept (the difference is the scheduling latency).",{"type":120,"tag":121,"props":3568,"children":3569},{},[3570,3572,3578],{"type":125,"value":3571},"The command below uses options documented for rt-tests 2.6. Run it on disposable test equipment with appropriate scheduling permissions. Record the actual output of ",{"type":120,"tag":156,"props":3573,"children":3575},{"className":3574},[],[3576],{"type":125,"value":3577},"cyclictest --version",{"type":125,"value":3579}," and keep the kernel configuration with the results.",{"type":120,"tag":248,"props":3581,"children":3583},{"code":3582,"language":492,"meta":109,"className":493,"style":109},"cyclictest --version\nuname -a\ncyclictest --mlockall --threads=1 --priority=80 --interval=1000 --duration=10m --histogram=100 --quiet --json=run.json > run.txt\n",[3584],{"type":120,"tag":156,"props":3585,"children":3586},{"__ignoreMap":109},[3587,3600,3613],{"type":120,"tag":258,"props":3588,"children":3589},{"class":260,"line":261},[3590,3595],{"type":120,"tag":258,"props":3591,"children":3592},{"style":503},[3593],{"type":125,"value":3594},"cyclictest",{"type":120,"tag":258,"props":3596,"children":3597},{"style":509},[3598],{"type":125,"value":3599}," --version\n",{"type":120,"tag":258,"props":3601,"children":3602},{"class":260,"line":270},[3603,3608],{"type":120,"tag":258,"props":3604,"children":3605},{"style":503},[3606],{"type":125,"value":3607},"uname",{"type":120,"tag":258,"props":3609,"children":3610},{"style":509},[3611],{"type":125,"value":3612}," -a\n",{"type":120,"tag":258,"props":3614,"children":3615},{"class":260,"line":279},[3616,3620,3625,3630,3635,3640,3645,3650,3655,3660,3664],{"type":120,"tag":258,"props":3617,"children":3618},{"style":503},[3619],{"type":125,"value":3594},{"type":120,"tag":258,"props":3621,"children":3622},{"style":509},[3623],{"type":125,"value":3624}," --mlockall",{"type":120,"tag":258,"props":3626,"children":3627},{"style":509},[3628],{"type":125,"value":3629}," --threads=1",{"type":120,"tag":258,"props":3631,"children":3632},{"style":509},[3633],{"type":125,"value":3634}," --priority=80",{"type":120,"tag":258,"props":3636,"children":3637},{"style":509},[3638],{"type":125,"value":3639}," --interval=1000",{"type":120,"tag":258,"props":3641,"children":3642},{"style":509},[3643],{"type":125,"value":3644}," --duration=10m",{"type":120,"tag":258,"props":3646,"children":3647},{"style":509},[3648],{"type":125,"value":3649}," --histogram=100",{"type":120,"tag":258,"props":3651,"children":3652},{"style":509},[3653],{"type":125,"value":3654}," --quiet",{"type":120,"tag":258,"props":3656,"children":3657},{"style":509},[3658],{"type":125,"value":3659}," --json=run.json",{"type":120,"tag":258,"props":3661,"children":3662},{"style":662},[3663],{"type":125,"value":1262},{"type":120,"tag":258,"props":3665,"children":3666},{"style":515},[3667],{"type":125,"value":3668}," run.txt\n",{"type":120,"tag":121,"props":3670,"children":3671},{},[3672,3674,3680,3682,3688],{"type":125,"value":3673},"This page supplies a ",{"type":120,"tag":1494,"props":3675,"children":3677},{"href":3676},"/resources/cyclictest-fixture-v1.txt",[3678],{"type":125,"value":3679},"synthetic histogram and annotated summary",{"type":125,"value":3681}," and a ",{"type":120,"tag":1494,"props":3683,"children":3685},{"href":3684},"/resources/latency-fixture-v1.json",[3686],{"type":125,"value":3687},"normalised JSON fixture",{"type":125,"value":3689},". The JSON uses ProteanOS fixture schema 1, with explicit units and provenance. It is an instructional representation. Native cyclictest JSON must be interpreted against its generating rt-tests version.",{"type":120,"tag":121,"props":3691,"children":3692},{},[3693],{"type":125,"value":3694},"The synthetic histogram contains 50 samples at 1 microsecond, 40 at 2 and 10 at 10. It has 100 samples, mean 2.3 microseconds and maximum 10. Under the nearest-rank convention, p95 and p99 are both 10. Summary-only output cannot supply these percentiles. If samples overflow the recorded histogram, percentiles in that unobserved tail remain unavailable or bounded below by the overflow threshold.",{"type":120,"tag":121,"props":3696,"children":3697},{},[3698],{"type":125,"value":3699},"Thread identifiers identify measurement threads. CPU affinity requires separate recorded evidence. Never add a total histogram column to its constituent thread columns. When combining means, weight each thread by its sample count. Record missing hardware, kernel, workload and duration as unknown. All values in these downloads are synthetic and represent no device test.",{"type":120,"tag":222,"props":3701,"children":3703},{"id":3702},"stress-during-measurement",[3704],{"type":125,"value":3705},"Stress during measurement",{"type":120,"tag":121,"props":3707,"children":3708},{},[3709],{"type":125,"value":3710},"Keep an idle baseline and compare it with representative application load. Run stress workloads simultaneously:",{"type":120,"tag":248,"props":3712,"children":3714},{"code":3713,"language":492,"meta":109,"className":493,"style":109},"# CPU stress\nstress-ng --cpu $(nproc) --timeout 86400 &\n\n# I/O stress\nstress-ng --hdd 4 --timeout 86400 &\n\n# Network stress (if applicable)\niperf3 -s &  # on target\niperf3 -c target-ip -t 86400 &  # from host\n\n# Memory pressure\nstress-ng --vm 2 --vm-bytes 80% --timeout 86400 &\n",[3715],{"type":120,"tag":156,"props":3716,"children":3717},{"__ignoreMap":109},[3718,3726,3768,3775,3783,3813,3820,3828,3851,3885,3892,3900],{"type":120,"tag":258,"props":3719,"children":3720},{"class":260,"line":261},[3721],{"type":120,"tag":258,"props":3722,"children":3723},{"style":727},[3724],{"type":125,"value":3725},"# CPU stress\n",{"type":120,"tag":258,"props":3727,"children":3728},{"class":260,"line":270},[3729,3733,3738,3744,3748,3753,3758,3763],{"type":120,"tag":258,"props":3730,"children":3731},{"style":503},[3732],{"type":125,"value":2307},{"type":120,"tag":258,"props":3734,"children":3735},{"style":509},[3736],{"type":125,"value":3737}," --cpu",{"type":120,"tag":258,"props":3739,"children":3741},{"style":3740},"--shiki-default:#E1E4E8",[3742],{"type":125,"value":3743}," $(",{"type":120,"tag":258,"props":3745,"children":3746},{"style":503},[3747],{"type":125,"value":1748},{"type":120,"tag":258,"props":3749,"children":3750},{"style":3740},[3751],{"type":125,"value":3752},") ",{"type":120,"tag":258,"props":3754,"children":3755},{"style":509},[3756],{"type":125,"value":3757},"--timeout",{"type":120,"tag":258,"props":3759,"children":3760},{"style":509},[3761],{"type":125,"value":3762}," 86400",{"type":120,"tag":258,"props":3764,"children":3765},{"style":3740},[3766],{"type":125,"value":3767}," &\n",{"type":120,"tag":258,"props":3769,"children":3770},{"class":260,"line":279},[3771],{"type":120,"tag":258,"props":3772,"children":3773},{"emptyLinePlaceholder":319},[3774],{"type":125,"value":322},{"type":120,"tag":258,"props":3776,"children":3777},{"class":260,"line":288},[3778],{"type":120,"tag":258,"props":3779,"children":3780},{"style":727},[3781],{"type":125,"value":3782},"# I/O stress\n",{"type":120,"tag":258,"props":3784,"children":3785},{"class":260,"line":297},[3786,3790,3795,3800,3805,3809],{"type":120,"tag":258,"props":3787,"children":3788},{"style":503},[3789],{"type":125,"value":2307},{"type":120,"tag":258,"props":3791,"children":3792},{"style":509},[3793],{"type":125,"value":3794}," --hdd",{"type":120,"tag":258,"props":3796,"children":3797},{"style":509},[3798],{"type":125,"value":3799}," 4",{"type":120,"tag":258,"props":3801,"children":3802},{"style":509},[3803],{"type":125,"value":3804}," --timeout",{"type":120,"tag":258,"props":3806,"children":3807},{"style":509},[3808],{"type":125,"value":3762},{"type":120,"tag":258,"props":3810,"children":3811},{"style":3740},[3812],{"type":125,"value":3767},{"type":120,"tag":258,"props":3814,"children":3815},{"class":260,"line":306},[3816],{"type":120,"tag":258,"props":3817,"children":3818},{"emptyLinePlaceholder":319},[3819],{"type":125,"value":322},{"type":120,"tag":258,"props":3821,"children":3822},{"class":260,"line":315},[3823],{"type":120,"tag":258,"props":3824,"children":3825},{"style":727},[3826],{"type":125,"value":3827},"# Network stress (if applicable)\n",{"type":120,"tag":258,"props":3829,"children":3830},{"class":260,"line":325},[3831,3836,3841,3846],{"type":120,"tag":258,"props":3832,"children":3833},{"style":503},[3834],{"type":125,"value":3835},"iperf3",{"type":120,"tag":258,"props":3837,"children":3838},{"style":509},[3839],{"type":125,"value":3840}," -s",{"type":120,"tag":258,"props":3842,"children":3843},{"style":3740},[3844],{"type":125,"value":3845}," &  ",{"type":120,"tag":258,"props":3847,"children":3848},{"style":727},[3849],{"type":125,"value":3850},"# on target\n",{"type":120,"tag":258,"props":3852,"children":3853},{"class":260,"line":334},[3854,3858,3862,3867,3872,3876,3880],{"type":120,"tag":258,"props":3855,"children":3856},{"style":503},[3857],{"type":125,"value":3835},{"type":120,"tag":258,"props":3859,"children":3860},{"style":509},[3861],{"type":125,"value":796},{"type":120,"tag":258,"props":3863,"children":3864},{"style":515},[3865],{"type":125,"value":3866}," target-ip",{"type":120,"tag":258,"props":3868,"children":3869},{"style":509},[3870],{"type":125,"value":3871}," -t",{"type":120,"tag":258,"props":3873,"children":3874},{"style":509},[3875],{"type":125,"value":3762},{"type":120,"tag":258,"props":3877,"children":3878},{"style":3740},[3879],{"type":125,"value":3845},{"type":120,"tag":258,"props":3881,"children":3882},{"style":727},[3883],{"type":125,"value":3884},"# from host\n",{"type":120,"tag":258,"props":3886,"children":3887},{"class":260,"line":343},[3888],{"type":120,"tag":258,"props":3889,"children":3890},{"emptyLinePlaceholder":319},[3891],{"type":125,"value":322},{"type":120,"tag":258,"props":3893,"children":3894},{"class":260,"line":352},[3895],{"type":120,"tag":258,"props":3896,"children":3897},{"style":727},[3898],{"type":125,"value":3899},"# Memory pressure\n",{"type":120,"tag":258,"props":3901,"children":3902},{"class":260,"line":361},[3903,3907,3912,3917,3922,3927,3931,3935],{"type":120,"tag":258,"props":3904,"children":3905},{"style":503},[3906],{"type":125,"value":2307},{"type":120,"tag":258,"props":3908,"children":3909},{"style":509},[3910],{"type":125,"value":3911}," --vm",{"type":120,"tag":258,"props":3913,"children":3914},{"style":509},[3915],{"type":125,"value":3916}," 2",{"type":120,"tag":258,"props":3918,"children":3919},{"style":509},[3920],{"type":125,"value":3921}," --vm-bytes",{"type":120,"tag":258,"props":3923,"children":3924},{"style":515},[3925],{"type":125,"value":3926}," 80%",{"type":120,"tag":258,"props":3928,"children":3929},{"style":509},[3930],{"type":125,"value":3804},{"type":120,"tag":258,"props":3932,"children":3933},{"style":509},[3934],{"type":125,"value":3762},{"type":120,"tag":258,"props":3936,"children":3937},{"style":3740},[3938],{"type":125,"value":3767},{"type":120,"tag":121,"props":3940,"children":3941},{},[3942],{"type":125,"value":3943},"Run cyclictest with all stressors active. The maximum is the largest observed scheduling delay in that run. Unobserved loads, firmware paths and hardware states can produce larger delays.",{"type":120,"tag":128,"props":3945,"children":3947},{"id":3946},"common-latency-sources-and-fixes",[3948],{"type":125,"value":3949},"Common latency sources and fixes",{"type":120,"tag":222,"props":3951,"children":3953},{"id":3952},"cpu-frequency-and-idle-policy",[3954],{"type":125,"value":3955},"CPU frequency and idle policy",{"type":120,"tag":121,"props":3957,"children":3958},{},[3959],{"type":125,"value":3960},"Correlate spikes with frequency transitions and idle residency before changing policy. Compare available governors on a disposable target and record the thermal and power effects. A performance governor is one candidate configuration, not a universal correction.",{"type":120,"tag":222,"props":3962,"children":3964},{"id":3963},"firmware-and-secure-world-activity",[3965],{"type":125,"value":3966},"Firmware and secure-world activity",{"type":120,"tag":121,"props":3968,"children":3969},{},[3970],{"type":125,"value":3971},"On x86, firmware handling of System Management Interrupts can delay kernel scheduling. Other architectures have different firmware paths, including secure-world calls. Use platform tracing and vendor documentation to investigate. Do not disable firmware functions without understanding their thermal, reliability and security roles.",{"type":120,"tag":222,"props":3973,"children":3975},{"id":3974},"usb-and-gpu-drivers",[3976],{"type":125,"value":3977},"USB and GPU drivers",{"type":120,"tag":121,"props":3979,"children":3980},{},[3981],{"type":125,"value":3982},"Correlate traces with USB traffic and display activity. Before moving IRQ priorities or affinity, map which threads the application depends on. Lowering a necessary interrupt thread can delay the work you intended to protect. Repeat the application and recovery tests after a change.",{"type":120,"tag":222,"props":3984,"children":3986},{"id":3985},"memory-allocation",[3987],{"type":125,"value":3988},"Memory allocation",{"type":120,"tag":121,"props":3990,"children":3991},{},[3992],{"type":125,"value":3993},"Pre-allocate and touch the required memory before entering the measured loop. Check that memory locking succeeds under the configured limits, then verify the application avoids allocations and unwanted faults during the deadline-sensitive path. The following fragment shows the failure check; it is not a complete real-time application.",{"type":120,"tag":248,"props":3995,"children":3999},{"code":3996,"language":3997,"meta":109,"className":3998,"style":109},"#include \u003Csys/mman.h>\n#include \u003Cstdio.h>\n\nint main() {\n    if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) {\n        perror(\"mlockall\");\n        return 1;\n    }\n    // Pre-allocate buffers\n    // Enter real-time loop\n}\n","c","language-c shiki shiki-themes github-dark",[4000],{"type":120,"tag":156,"props":4001,"children":4002},{"__ignoreMap":109},[4003,4011,4019,4026,4034,4042,4050,4058,4066,4074,4082],{"type":120,"tag":258,"props":4004,"children":4005},{"class":260,"line":261},[4006],{"type":120,"tag":258,"props":4007,"children":4008},{},[4009],{"type":125,"value":4010},"#include \u003Csys/mman.h>\n",{"type":120,"tag":258,"props":4012,"children":4013},{"class":260,"line":270},[4014],{"type":120,"tag":258,"props":4015,"children":4016},{},[4017],{"type":125,"value":4018},"#include \u003Cstdio.h>\n",{"type":120,"tag":258,"props":4020,"children":4021},{"class":260,"line":279},[4022],{"type":120,"tag":258,"props":4023,"children":4024},{"emptyLinePlaceholder":319},[4025],{"type":125,"value":322},{"type":120,"tag":258,"props":4027,"children":4028},{"class":260,"line":288},[4029],{"type":120,"tag":258,"props":4030,"children":4031},{},[4032],{"type":125,"value":4033},"int main() {\n",{"type":120,"tag":258,"props":4035,"children":4036},{"class":260,"line":297},[4037],{"type":120,"tag":258,"props":4038,"children":4039},{},[4040],{"type":125,"value":4041},"    if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) {\n",{"type":120,"tag":258,"props":4043,"children":4044},{"class":260,"line":306},[4045],{"type":120,"tag":258,"props":4046,"children":4047},{},[4048],{"type":125,"value":4049},"        perror(\"mlockall\");\n",{"type":120,"tag":258,"props":4051,"children":4052},{"class":260,"line":315},[4053],{"type":120,"tag":258,"props":4054,"children":4055},{},[4056],{"type":125,"value":4057},"        return 1;\n",{"type":120,"tag":258,"props":4059,"children":4060},{"class":260,"line":325},[4061],{"type":120,"tag":258,"props":4062,"children":4063},{},[4064],{"type":125,"value":4065},"    }\n",{"type":120,"tag":258,"props":4067,"children":4068},{"class":260,"line":334},[4069],{"type":120,"tag":258,"props":4070,"children":4071},{},[4072],{"type":125,"value":4073},"    // Pre-allocate buffers\n",{"type":120,"tag":258,"props":4075,"children":4076},{"class":260,"line":343},[4077],{"type":120,"tag":258,"props":4078,"children":4079},{},[4080],{"type":125,"value":4081},"    // Enter real-time loop\n",{"type":120,"tag":258,"props":4083,"children":4084},{"class":260,"line":352},[4085],{"type":120,"tag":258,"props":4086,"children":4087},{},[4088],{"type":125,"value":4089},"}\n",{"type":120,"tag":128,"props":4091,"children":4093},{"id":4092},"cpu-isolation",[4094],{"type":125,"value":4095},"CPU isolation",{"type":120,"tag":121,"props":4097,"children":4098},{},[4099],{"type":125,"value":4100},"CPU isolation can reduce interference from unrelated work. It does not remove every interrupt or firmware path. The following boot arguments are illustrative; verify supported CPU indices, kernel configuration and housekeeping capacity on the target:",{"type":120,"tag":248,"props":4102,"children":4104},{"code":4103},"# Kernel command line\nisolcpus=2,3 nohz_full=2,3 rcu_nocbs=2,3\n",[4105],{"type":120,"tag":156,"props":4106,"children":4107},{"__ignoreMap":109},[4108],{"type":125,"value":4103},{"type":120,"tag":121,"props":4110,"children":4111},{},[4112,4114,4120,4122,4128],{"type":125,"value":4113},"This removes CPUs 2 and 3 from the general scheduler. Pin your real-time application to these cores using ",{"type":120,"tag":156,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":125,"value":4119},"taskset",{"type":125,"value":4121}," or ",{"type":120,"tag":156,"props":4123,"children":4125},{"className":4124},[],[4126],{"type":125,"value":4127},"pthread_setaffinity_np",{"type":125,"value":4129},". The isolated cores handle only your real-time threads and their explicitly assigned IRQs.",{"type":120,"tag":128,"props":4131,"children":4133},{"id":4132},"documenting-latency-coverage",[4134],{"type":125,"value":4135},"Documenting latency coverage",{"type":120,"tag":121,"props":4137,"children":4138},{},[4139],{"type":125,"value":4140},"Measuring worst-case latency is necessary but not sufficient for safety-critical systems. Record the test coverage as follows:",{"type":120,"tag":140,"props":4142,"children":4143},{},[4144,4154,4164,4174,4184],{"type":120,"tag":144,"props":4145,"children":4146},{},[4147,4152],{"type":120,"tag":148,"props":4148,"children":4149},{},[4150],{"type":125,"value":4151},"Define the requirement:",{"type":125,"value":4153}," \"The control loop must complete within 100 µs of the trigger event, 100% of the time\"",{"type":120,"tag":144,"props":4155,"children":4156},{},[4157,4162],{"type":120,"tag":148,"props":4158,"children":4159},{},[4160],{"type":125,"value":4161},"Measure under worst-case conditions:",{"type":125,"value":4163}," Choose duration and stress workloads from the product risk and usage profile, then retain the logs",{"type":120,"tag":144,"props":4165,"children":4166},{},[4167,4172],{"type":120,"tag":148,"props":4168,"children":4169},{},[4170],{"type":125,"value":4171},"Add margin:",{"type":125,"value":4173}," A chosen engineering margin is an assumption to validate. Adding a margin to an observed maximum does not establish an upper bound.",{"type":120,"tag":144,"props":4175,"children":4176},{},[4177,4182],{"type":120,"tag":148,"props":4178,"children":4179},{},[4180],{"type":125,"value":4181},"Document the test conditions:",{"type":125,"value":4183}," Hardware, kernel version, RT config, stress workloads, test duration, ambient temperature",{"type":120,"tag":144,"props":4185,"children":4186},{},[4187],{"type":120,"tag":148,"props":4188,"children":4189},{},[4190],{"type":125,"value":4191},"Repeat after any kernel or hardware change",{"type":120,"tag":121,"props":4193,"children":4194},{},[4195],{"type":125,"value":4196},"Certification and assurance depend on the complete product, applicable standard and assessment evidence. A cyclictest run measures scheduling behaviour. Application execution and end-to-end I/O deadlines require separate measurements.",{"type":120,"tag":4198,"props":4199,"children":4203},"div",{"className":4200},[4201,4202],"callout","callout-success",[4204],{"type":120,"tag":4198,"props":4205,"children":4208},{"className":4206},[4207],"callout-content",[4209,4216],{"type":120,"tag":121,"props":4210,"children":4213},{"className":4211},[4212],"callout-title",[4214],{"type":125,"value":4215},"Strengthen your OS fundamentals",{"type":120,"tag":121,"props":4217,"children":4218},{},[4219,4221,4226],{"type":125,"value":4220},"Real-time tuning relies heavily on understanding how the kernel schedules tasks, handles interrupts, and manages memory. If any of these concepts feel unfamiliar, the ",{"type":120,"tag":1494,"props":4222,"children":4224},{"href":2620,"target":2621,"rel":4223},[2623,2624,2625],[4225],{"type":125,"value":2628},{"type":125,"value":4227}," course builds that foundation from the ground up.",{"type":120,"tag":128,"props":4229,"children":4231},{"id":4230},"when-preempt_rt-is-not-enough",[4232],{"type":125,"value":4233},"When PREEMPT_RT is not enough",{"type":120,"tag":121,"props":4235,"children":4236},{},[4237],{"type":125,"value":4238},"If timing and isolation requirements exceed the evidence for the tested Linux configuration, evaluate:",{"type":120,"tag":994,"props":4240,"children":4241},{},[4242,4254,4259],{"type":120,"tag":144,"props":4243,"children":4244},{},[4245,4247,4253],{"type":125,"value":4246},"A dedicated RTOS co-processor (see ",{"type":120,"tag":1494,"props":4248,"children":4250},{"href":4249},"/doc/rtos-vs-embedded-linux-zephyr-2026/",[4251],{"type":125,"value":4252},"RTOS vs embedded Linux",{"type":125,"value":1381},{"type":120,"tag":144,"props":4255,"children":4256},{},[4257],{"type":125,"value":4258},"Xenomai or RTAI for hard real-time with Linux as a secondary OS",{"type":120,"tag":144,"props":4260,"children":4261},{},[4262],{"type":125,"value":4263},"FPGA-based control paths with timing verified against the implementation",{"type":120,"tag":121,"props":4265,"children":4266},{},[4267],{"type":125,"value":4268},"Record the application deadline, allowed failure behaviour and hardware validation still needed before selecting an architecture.",{"type":120,"tag":128,"props":4270,"children":4271},{"id":1484},[4272],{"type":125,"value":1487},{"type":120,"tag":121,"props":4274,"children":4275},{},[4276,4278,4284,4286,4292],{"type":125,"value":4277},"Check the kernel configuration supplied for your target. Use the ",{"type":120,"tag":1494,"props":4279,"children":4281},{"href":4280},"/doc/install/",[4282],{"type":125,"value":4283},"installation guide",{"type":125,"value":4285}," for project context and retain your own kernel and application test records. Teams accelerating kernel and embedded C development with AI assistance can find a practical survey of the ",{"type":120,"tag":1494,"props":4287,"children":4289},{"href":4288},"https://diyai.io/ai-tools/code-generation/best-ai-coding-tools/",[4290],{"type":125,"value":4291},"best coding tools",{"type":125,"value":4293}," for this kind of systems-level work.",{"type":120,"tag":128,"props":4295,"children":4296},{"id":1525},[4297],{"type":125,"value":1528},{"type":120,"tag":121,"props":4299,"children":4300},{},[4301],{"type":125,"value":4302},"PREEMPT_RT in 2026 is a mature, mainline technology. Configure it, isolate cores, lock memory, measure under stress, and document your results. Select the architecture using end-to-end application deadlines, fault handling and maintained board support.",{"type":120,"tag":1535,"props":4304,"children":4305},{},[4306],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":4308},[4309,4310,4311,4312,4315,4321,4322,4323,4324,4325],{"id":3352,"depth":270,"text":3355},{"id":3416,"depth":270,"text":3419},{"id":3440,"depth":270,"text":3443},{"id":3558,"depth":270,"text":3561,"children":4313},[4314],{"id":3702,"depth":279,"text":3705},{"id":3946,"depth":270,"text":3949,"children":4316},[4317,4318,4319,4320],{"id":3952,"depth":279,"text":3955},{"id":3963,"depth":279,"text":3966},{"id":3974,"depth":279,"text":3977},{"id":3985,"depth":279,"text":3988},{"id":4092,"depth":270,"text":4095},{"id":4132,"depth":270,"text":4135},{"id":4230,"depth":270,"text":4233},{"id":1484,"depth":270,"text":1487},{"id":1525,"depth":270,"text":1528},"content:doc:real-time-linux-preempt-rt-latency-2026.md","doc/real-time-linux-preempt-rt-latency-2026.md","doc/real-time-linux-preempt-rt-latency-2026",{"_path":57,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":58,"description":59,"date":60,"lastmod":2417,"draft":108,"hero":4330,"tags":4331,"category":2416,"body":4333,"_type":1570,"_id":4864,"_source":1572,"_file":4865,"_stem":4866,"_extension":1575},"/images/hero/erofs-vs-squashfs-2026-1600x900.jpg",[112,113,4332],"Filesystems",{"type":117,"children":4334,"toc":4848},[4335,4340,4346,4351,4356,4362,4367,4372,4377,4390,4396,4408,4525,4530,4536,4541,4546,4552,4557,4567,4573,4585,4590,4595,4601,4607,4662,4667,4673,4703,4724,4730,4735,4740,4746,4751,4799,4804,4817,4821,4833,4839,4844],{"type":120,"tag":121,"props":4336,"children":4337},{},[4338],{"type":125,"value":4339},"SquashFS has been the default read-only compressed filesystem for embedded Linux for over a decade. EROFS (Enhanced Read-Only File System) is now a serious alternative, having matured in the mainline kernel since Linux 5.4. Choose using your kernel compatibility, image size and measured application workload. Keep a working SquashFS deployment until an EROFS evaluation demonstrates a benefit that justifies migration.",{"type":120,"tag":128,"props":4341,"children":4343},{"id":4342},"design-and-workload-trade-offs",[4344],{"type":125,"value":4345},"Design and workload trade-offs",{"type":120,"tag":121,"props":4347,"children":4348},{},[4349],{"type":125,"value":4350},"SquashFS and EROFS both provide compressed read-only images. Compression layout, block or cluster size, cache state and decompressor choices affect the amount of work required for each read. A filesystem name alone cannot predict application startup time.",{"type":120,"tag":121,"props":4352,"children":4353},{},[4354],{"type":125,"value":4355},"Inspect the distribution of small files, large sequential assets and duplicated content in your rootfs. Then reproduce those accesses on the target. Compare memory use and CPU time as well as storage throughput, especially if a faster read path competes with a latency-sensitive application.",{"type":120,"tag":128,"props":4357,"children":4359},{"id":4358},"reproducible-benchmark-method",[4360],{"type":125,"value":4361},"Reproducible benchmark method",{"type":120,"tag":121,"props":4363,"children":4364},{},[4365],{"type":125,"value":4366},"Create both images from one frozen directory tree. Record its digest or manifest, total uncompressed bytes, file count, permissions, extended attributes and tool versions. Preserve the complete creation commands and outputs. Record kernel version, CPU, RAM, storage model and mount options.",{"type":120,"tag":121,"props":4368,"children":4369},{},[4370],{"type":125,"value":4371},"Test cold and warm cache conditions separately on disposable equipment. Measure representative application startup, random reads and sequential reads. Repeat runs, retain all observations and explain the aggregation. Include image creation time, image bytes and memory use alongside read performance. This page publishes a method without measured results.",{"type":120,"tag":121,"props":4373,"children":4374},{},[4375],{"type":125,"value":4376},"Use the same test duration and dataset for both filesystems. Record any background processes or thermal throttling. If a workload reads only a small subset of files, make that subset explicit so readers can decide whether the result applies to their product.",{"type":120,"tag":121,"props":4378,"children":4379},{},[4380,4382,4388],{"type":125,"value":4381},"Repeat the startup test with the other services running under the expected RAM limit. The ",{"type":120,"tag":1494,"props":4383,"children":4385},{"href":4384},"https://lkml.indiana.edu/hypermail/linux/kernel/2103.3/05368.html",[4386],{"type":125,"value":4387},"kernel mailing list discussion of EROFS cluster benchmarks",{"type":125,"value":4389}," identifies page-cache behaviour as a variable. Record peak memory and subsequent read latency so a fast isolated run does not hide cache pressure during normal operation.",{"type":120,"tag":128,"props":4391,"children":4393},{"id":4392},"compression-and-version-compatibility",[4394],{"type":125,"value":4395},"Compression and version compatibility",{"type":120,"tag":121,"props":4397,"children":4398},{},[4399,4401,4407],{"type":125,"value":4400},"The upstream EROFS documentation reviewed on 16 November 2026 lists LZ4, MicroLZMA, DEFLATE and Zstandard. Availability depends on the target kernel configuration and the erofs-utils build used to create the image. The table records what still needs confirmation before deployment. ",{"type":120,"tag":1494,"props":4402,"children":4404},{"href":4403},"https://docs.kernel.org/filesystems/erofs.html",[4405],{"type":125,"value":4406},"Kernel EROFS documentation",{"type":125,"value":460},{"type":120,"tag":2638,"props":4409,"children":4410},{},[4411,4432],{"type":120,"tag":2642,"props":4412,"children":4413},{},[4414],{"type":120,"tag":2646,"props":4415,"children":4416},{},[4417,4422,4427],{"type":120,"tag":2650,"props":4418,"children":4419},{},[4420],{"type":125,"value":4421},"Format and choice",{"type":120,"tag":2650,"props":4423,"children":4424},{},[4425],{"type":125,"value":4426},"Version/configuration check",{"type":120,"tag":2650,"props":4428,"children":4429},{},[4430],{"type":125,"value":4431},"Deployment decision",{"type":120,"tag":2671,"props":4433,"children":4434},{},[4435,4453,4471,4489,4507],{"type":120,"tag":2646,"props":4436,"children":4437},{},[4438,4443,4448],{"type":120,"tag":2678,"props":4439,"children":4440},{},[4441],{"type":125,"value":4442},"EROFS LZ4 / LZ4HC encoder",{"type":120,"tag":2678,"props":4444,"children":4445},{},[4446],{"type":125,"value":4447},"Check LZ4 decoding and selected mkfs.erofs flags",{"type":120,"tag":2678,"props":4449,"children":4450},{},[4451],{"type":125,"value":4452},"Compare creation time, size and read workload",{"type":120,"tag":2646,"props":4454,"children":4455},{},[4456,4461,4466],{"type":120,"tag":2678,"props":4457,"children":4458},{},[4459],{"type":125,"value":4460},"EROFS MicroLZMA",{"type":120,"tag":2678,"props":4462,"children":4463},{},[4464],{"type":125,"value":4465},"Check matching kernel decoder and encoder support",{"type":120,"tag":2678,"props":4467,"children":4468},{},[4469],{"type":125,"value":4470},"Validate target mount and application access",{"type":120,"tag":2646,"props":4472,"children":4473},{},[4474,4479,4484],{"type":120,"tag":2678,"props":4475,"children":4476},{},[4477],{"type":125,"value":4478},"EROFS DEFLATE",{"type":120,"tag":2678,"props":4480,"children":4481},{},[4482],{"type":125,"value":4483},"Check decoder support in the pinned kernel",{"type":120,"tag":2678,"props":4485,"children":4486},{},[4487],{"type":125,"value":4488},"Retain the image feature list with test logs",{"type":120,"tag":2646,"props":4490,"children":4491},{},[4492,4497,4502],{"type":120,"tag":2678,"props":4493,"children":4494},{},[4495],{"type":125,"value":4496},"EROFS Zstandard",{"type":120,"tag":2678,"props":4498,"children":4499},{},[4500],{"type":125,"value":4501},"Minimum supported kernel/tool pair is unverified here",{"type":120,"tag":2678,"props":4503,"children":4504},{},[4505],{"type":125,"value":4506},"Establish and test the pair before issuing a deployment command",{"type":120,"tag":2646,"props":4508,"children":4509},{},[4510,4515,4520],{"type":120,"tag":2678,"props":4511,"children":4512},{},[4513],{"type":125,"value":4514},"SquashFS selected compressor",{"type":120,"tag":2678,"props":4516,"children":4517},{},[4518],{"type":125,"value":4519},"Check mksquashfs version and target decoder configuration",{"type":120,"tag":2678,"props":4521,"children":4522},{},[4523],{"type":125,"value":4524},"Verify generated image metadata and mount behaviour",{"type":120,"tag":121,"props":4526,"children":4527},{},[4528],{"type":125,"value":4529},"LZ4HC describes an encoder choice that produces LZ4-compressed data. Compressor labels alone do not specify all image features. Keep a compatibility record per product kernel and test the exact generated image in its recovery environment too.",{"type":120,"tag":128,"props":4531,"children":4533},{"id":4532},"deduplication",[4534],{"type":125,"value":4535},"Deduplication",{"type":120,"tag":121,"props":4537,"children":4538},{},[4539],{"type":125,"value":4540},"Duplicated files and repeated data can affect image size. Compare the actual deduplication settings and output of the selected tools. Tail packing and duplicate detection are distinct mechanisms, and their impact depends on the input tree.",{"type":120,"tag":121,"props":4542,"children":4543},{},[4544],{"type":125,"value":4545},"Keep a file manifest when evaluating deduplication. Identical binaries in several application directories may provide a useful test case. Measure bytes saved and image creation cost, then repeat after an ordinary release change. Avoid projecting a fixed saving percentage onto a different package set.",{"type":120,"tag":128,"props":4547,"children":4549},{"id":4548},"dm-verity-integration",[4550],{"type":125,"value":4551},"dm-verity integration",{"type":120,"tag":121,"props":4553,"children":4554},{},[4555],{"type":125,"value":4556},"Either image format can sit above a read-only dm-verity mapping. Generate the hash tree for the final image bytes and protect the expected root digest through the boot chain. Measure verification overhead under the same cache and workload conditions used for the filesystem comparison.",{"type":120,"tag":121,"props":4558,"children":4559},{},[4560,4561,4565],{"type":125,"value":191},{"type":120,"tag":1494,"props":4562,"children":4563},{"href":2260},[4564],{"type":125,"value":2263},{"type":125,"value":4566}," explains trust boundaries and writable-state limitations. Include hash-tree space in the per-slot capacity budget once, and keep the image and tree versioned together.",{"type":120,"tag":128,"props":4568,"children":4570},{"id":4569},"ota-update-considerations",[4571],{"type":125,"value":4572},"OTA update considerations",{"type":120,"tag":121,"props":4574,"children":4575},{},[4576,4578,4583],{"type":125,"value":4577},"Whole-image replacement needs an installation and boot-selection policy that survives interruption. Neither filesystem alone makes a deployment atomic. Review ",{"type":120,"tag":1494,"props":4579,"children":4580},{"href":2538},[4581],{"type":125,"value":4582},"OTA update tooling",{"type":125,"value":4584}," when choosing slot layout, health checks and rollback.",{"type":120,"tag":121,"props":4586,"children":4587},{},[4588],{"type":125,"value":4589},"Image size, compressed download size and delta transfer size answer different questions. To evaluate a one-file change, freeze the original tree, change one identified file, create the second image with the same flags and run a named, versioned delta mechanism. Retain both image hashes, transfer bytes and device reconstruction results. This page has no measured delta experiment.",{"type":120,"tag":121,"props":4591,"children":4592},{},[4593],{"type":125,"value":4594},"A small source change can alter image placement or compression enough to change many output bytes. Test an ordinary security update as well as the single-file case. Budget download staging and fallback capacity using the actual installer behaviour.",{"type":120,"tag":128,"props":4596,"children":4598},{"id":4597},"tooling",[4599],{"type":125,"value":4600},"Tooling",{"type":120,"tag":222,"props":4602,"children":4604},{"id":4603},"creating-squashfs-images",[4605],{"type":125,"value":4606},"Creating SquashFS images",{"type":120,"tag":248,"props":4608,"children":4610},{"className":493,"code":4609,"language":492,"meta":109,"style":109},"mksquashfs rootfs/ rootfs.squashfs -comp zstd -Xcompression-level 15 -b 131072\n",[4611],{"type":120,"tag":156,"props":4612,"children":4613},{"__ignoreMap":109},[4614],{"type":120,"tag":258,"props":4615,"children":4616},{"class":260,"line":261},[4617,4622,4627,4632,4637,4642,4647,4652,4657],{"type":120,"tag":258,"props":4618,"children":4619},{"style":503},[4620],{"type":125,"value":4621},"mksquashfs",{"type":120,"tag":258,"props":4623,"children":4624},{"style":515},[4625],{"type":125,"value":4626}," rootfs/",{"type":120,"tag":258,"props":4628,"children":4629},{"style":515},[4630],{"type":125,"value":4631}," rootfs.squashfs",{"type":120,"tag":258,"props":4633,"children":4634},{"style":509},[4635],{"type":125,"value":4636}," -comp",{"type":120,"tag":258,"props":4638,"children":4639},{"style":515},[4640],{"type":125,"value":4641}," zstd",{"type":120,"tag":258,"props":4643,"children":4644},{"style":509},[4645],{"type":125,"value":4646}," -Xcompression-level",{"type":120,"tag":258,"props":4648,"children":4649},{"style":509},[4650],{"type":125,"value":4651}," 15",{"type":120,"tag":258,"props":4653,"children":4654},{"style":509},[4655],{"type":125,"value":4656}," -b",{"type":120,"tag":258,"props":4658,"children":4659},{"style":509},[4660],{"type":125,"value":4661}," 131072\n",{"type":120,"tag":121,"props":4663,"children":4664},{},[4665],{"type":125,"value":4666},"SquashFS tools are mature and widely available in distribution packages.",{"type":120,"tag":222,"props":4668,"children":4670},{"id":4669},"creating-erofs-images",[4671],{"type":125,"value":4672},"Creating EROFS images",{"type":120,"tag":248,"props":4674,"children":4676},{"className":493,"code":4675,"language":492,"meta":109,"style":109},"mkfs.erofs -zlz4hc rootfs.erofs rootfs/\n",[4677],{"type":120,"tag":156,"props":4678,"children":4679},{"__ignoreMap":109},[4680],{"type":120,"tag":258,"props":4681,"children":4682},{"class":260,"line":261},[4683,4688,4693,4698],{"type":120,"tag":258,"props":4684,"children":4685},{"style":503},[4686],{"type":125,"value":4687},"mkfs.erofs",{"type":120,"tag":258,"props":4689,"children":4690},{"style":509},[4691],{"type":125,"value":4692}," -zlz4hc",{"type":120,"tag":258,"props":4694,"children":4695},{"style":515},[4696],{"type":125,"value":4697}," rootfs.erofs",{"type":120,"tag":258,"props":4699,"children":4700},{"style":515},[4701],{"type":125,"value":4702}," rootfs/\n",{"type":120,"tag":121,"props":4704,"children":4705},{},[4706,4708,4714,4716,4722],{"type":125,"value":4707},"EROFS tools (",{"type":120,"tag":156,"props":4709,"children":4711},{"className":4710},[],[4712],{"type":125,"value":4713},"erofs-utils",{"type":125,"value":4715},") are packaged in most distributions since 2023. Check ",{"type":120,"tag":156,"props":4717,"children":4719},{"className":4718},[],[4720],{"type":125,"value":4721},"mkfs.erofs --help",{"type":125,"value":4723}," for the features compiled into your version. The commands shown are illustrative and require target compatibility checks.",{"type":120,"tag":128,"props":4725,"children":4727},{"id":4726},"when-to-choose-which",[4728],{"type":125,"value":4729},"When to choose which",{"type":120,"tag":121,"props":4731,"children":4732},{},[4733],{"type":125,"value":4734},"Retain SquashFS when its supported kernel/tool pair meets your capacity and workload requirements. Evaluate EROFS when its layout or image features address a measured product limitation. In either case, keep the comparison tied to repeatable tests and include recovery-kernel support.",{"type":120,"tag":121,"props":4736,"children":4737},{},[4738],{"type":125,"value":4739},"Record the cost of changing build recipes, test fixtures, boot configuration and update delivery. A reduction in image size can be useful even if startup time stays similar, but its value should be assessed against the additional maintenance work.",{"type":120,"tag":128,"props":4741,"children":4743},{"id":4742},"migration-from-squashfs-to-erofs",[4744],{"type":125,"value":4745},"Migration from SquashFS to EROFS",{"type":120,"tag":121,"props":4747,"children":4748},{},[4749],{"type":125,"value":4750},"Switching filesystems in an existing product:",{"type":120,"tag":140,"props":4752,"children":4753},{},[4754,4772,4784,4789,4794],{"type":120,"tag":144,"props":4755,"children":4756},{},[4757,4759,4764,4766,4771],{"type":125,"value":4758},"Update the build pipeline to produce EROFS images (replace ",{"type":120,"tag":156,"props":4760,"children":4762},{"className":4761},[],[4763],{"type":125,"value":4621},{"type":125,"value":4765}," with ",{"type":120,"tag":156,"props":4767,"children":4769},{"className":4768},[],[4770],{"type":125,"value":4687},{"type":125,"value":1381},{"type":120,"tag":144,"props":4773,"children":4774},{},[4775,4777,4783],{"type":125,"value":4776},"Ensure the target kernel has EROFS support compiled in (",{"type":120,"tag":156,"props":4778,"children":4780},{"className":4779},[],[4781],{"type":125,"value":4782},"CONFIG_EROFS_FS=y",{"type":125,"value":1381},{"type":120,"tag":144,"props":4785,"children":4786},{},[4787],{"type":125,"value":4788},"Update mount commands in initramfs or fstab",{"type":120,"tag":144,"props":4790,"children":4791},{},[4792],{"type":125,"value":4793},"Regenerate dm-verity hash trees for the new image format",{"type":120,"tag":144,"props":4795,"children":4796},{},[4797],{"type":125,"value":4798},"Test thoroughly - file permissions, symlinks, device nodes, and xattr must be preserved",{"type":120,"tag":121,"props":4800,"children":4801},{},[4802],{"type":125,"value":4803},"The intended file content can remain the same, but verify metadata, filesystem operations and error behaviour against application requirements.",{"type":120,"tag":121,"props":4805,"children":4806},{},[4807,4809,4815],{"type":125,"value":4808},"Because this migration can touch build recipes, CI helpers, and deployment scripts at the same time, ",{"type":120,"tag":1494,"props":4810,"children":4812},{"href":4811},"https://diyai.io/ai-tools/code-generation/best-ai-code-refactoring-tools/",[4813],{"type":125,"value":4814},"AI code refactoring tools",{"type":125,"value":4816}," can help teams update repeated configuration patterns while keeping the changes reviewable.",{"type":120,"tag":128,"props":4818,"children":4819},{"id":1484},[4820],{"type":125,"value":1487},{"type":120,"tag":121,"props":4822,"children":4823},{},[4824,4826,4831],{"type":125,"value":4825},"Inspect the selected build-system source to locate filesystem generation and post-processing. Verify ownership, permissions, links and extended attributes after image creation. The ",{"type":120,"tag":1494,"props":4827,"children":4828},{"href":1517},[4829],{"type":125,"value":4830},"ProKit documentation",{"type":125,"value":4832}," provides project context. Any filesystem-selection variable or automatic verity step needs confirmation in the version you use.",{"type":120,"tag":128,"props":4834,"children":4836},{"id":4835},"record-the-migration-decision",[4837],{"type":125,"value":4838},"Record the migration decision",{"type":120,"tag":121,"props":4840,"children":4841},{},[4842],{"type":125,"value":4843},"Retain the current image and recovery path until the candidate format passes the same functional and failure tests. Record which measured constraint improved, what compatibility requirements changed and who will maintain the image tooling. Repeat the relevant tests after kernel, compressor or package-set changes.",{"type":120,"tag":1535,"props":4845,"children":4846},{},[4847],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":4849},[4850,4851,4852,4853,4854,4855,4856,4860,4861,4862,4863],{"id":4342,"depth":270,"text":4345},{"id":4358,"depth":270,"text":4361},{"id":4392,"depth":270,"text":4395},{"id":4532,"depth":270,"text":4535},{"id":4548,"depth":270,"text":4551},{"id":4569,"depth":270,"text":4572},{"id":4597,"depth":270,"text":4600,"children":4857},[4858,4859],{"id":4603,"depth":279,"text":4606},{"id":4669,"depth":279,"text":4672},{"id":4726,"depth":270,"text":4729},{"id":4742,"depth":270,"text":4745},{"id":1484,"depth":270,"text":1487},{"id":4835,"depth":270,"text":4838},"content:doc:erofs-vs-squashfs-2026.md","doc/erofs-vs-squashfs-2026.md","doc/erofs-vs-squashfs-2026",{"_path":82,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":83,"description":84,"date":85,"lastmod":3339,"draft":108,"hero":4868,"tags":4869,"category":2416,"body":4871,"_type":1570,"_id":5928,"_source":1572,"_file":5929,"_stem":5930,"_extension":1575},"/images/hero/rootfs-integrity-dm-verity-immutable-images-1600x900.jpg",[112,113,4870],"Security",{"type":117,"children":4872,"toc":5912},[4873,4878,4884,4896,4901,4924,4929,4935,5016,5033,5039,5044,5087,5092,5098,5110,5194,5199,5205,5210,5218,5246,5293,5298,5304,5309,5633,5638,5644,5649,5690,5696,5723,5728,5733,5739,5744,5767,5779,5785,5790,5832,5837,5843,5848,5860,5866,5879,5883,5894,5899,5903,5908],{"type":120,"tag":121,"props":4874,"children":4875},{},[4876],{"type":125,"value":4877},"dm-verity provides transparent block-level integrity verification for read-only filesystems. Every block read from disk is checked against a pre-computed hash tree. If a block has been modified - whether by an attacker, bit rot, or a failed flash write - the read returns an error instead of corrupted data. For embedded devices with immutable system partitions, dm-verity closes the gap between secure boot and runtime integrity.",{"type":120,"tag":128,"props":4879,"children":4881},{"id":4880},"where-dm-verity-fits-in-the-security-chain",[4882],{"type":125,"value":4883},"Where dm-verity fits in the security chain",{"type":120,"tag":121,"props":4885,"children":4886},{},[4887,4889,4894],{"type":125,"value":4888},"Secure boot (covered in the ",{"type":120,"tag":1494,"props":4890,"children":4891},{"href":2241},[4892],{"type":125,"value":4893},"FIT signatures guide",{"type":125,"value":4895},") verifies the kernel and initramfs at boot time. But once the kernel is running and mounts the root filesystem, there is no ongoing verification of the blocks read from storage - unless you add it.",{"type":120,"tag":121,"props":4897,"children":4898},{},[4899],{"type":125,"value":4900},"dm-verity provides that ongoing verification. The chain becomes:",{"type":120,"tag":140,"props":4902,"children":4903},{},[4904,4909,4914,4919],{"type":120,"tag":144,"props":4905,"children":4906},{},[4907],{"type":125,"value":4908},"ROM → verifies SPL",{"type":120,"tag":144,"props":4910,"children":4911},{},[4912],{"type":125,"value":4913},"SPL → verifies U-Boot",{"type":120,"tag":144,"props":4915,"children":4916},{},[4917],{"type":125,"value":4918},"U-Boot → verifies kernel + initramfs (FIT signature)",{"type":120,"tag":144,"props":4920,"children":4921},{},[4922],{"type":125,"value":4923},"Kernel → verifies root filesystem blocks (dm-verity)",{"type":120,"tag":121,"props":4925,"children":4926},{},[4927],{"type":125,"value":4928},"This chain authenticates the selected boot objects and reads through the protected mapping. Downloaded applications, firmware outside that chain and writable execution paths require their own policy.",{"type":120,"tag":128,"props":4930,"children":4932},{"id":4931},"dm-verity-vs-fs-verity-vs-dm-integrity",[4933],{"type":125,"value":4934},"dm-verity vs fs-verity vs dm-integrity",{"type":120,"tag":2638,"props":4936,"children":4937},{},[4938,4959],{"type":120,"tag":2642,"props":4939,"children":4940},{},[4941],{"type":120,"tag":2646,"props":4942,"children":4943},{},[4944,4949,4954],{"type":120,"tag":2650,"props":4945,"children":4946},{},[4947],{"type":125,"value":4948},"Mechanism",{"type":120,"tag":2650,"props":4950,"children":4951},{},[4952],{"type":125,"value":4953},"Protected scope",{"type":120,"tag":2650,"props":4955,"children":4956},{},[4957],{"type":125,"value":4958},"Trust requirement",{"type":120,"tag":2671,"props":4960,"children":4961},{},[4962,4980,4998],{"type":120,"tag":2646,"props":4963,"children":4964},{},[4965,4970,4975],{"type":120,"tag":2678,"props":4966,"children":4967},{},[4968],{"type":125,"value":4969},"dm-verity",{"type":120,"tag":2678,"props":4971,"children":4972},{},[4973],{"type":125,"value":4974},"Read-only block mapping",{"type":120,"tag":2678,"props":4976,"children":4977},{},[4978],{"type":125,"value":4979},"Authenticate the expected root digest and enforce use of that mapping",{"type":120,"tag":2646,"props":4981,"children":4982},{},[4983,4988,4993],{"type":120,"tag":2678,"props":4984,"children":4985},{},[4986],{"type":125,"value":4987},"fs-verity",{"type":120,"tag":2678,"props":4989,"children":4990},{},[4991],{"type":125,"value":4992},"Selected files made read-only on a supported filesystem",{"type":120,"tag":2678,"props":4994,"children":4995},{},[4996],{"type":125,"value":4997},"Authenticate file digests and enforce execution policy. Names and ordinary metadata remain outside its protection",{"type":120,"tag":2646,"props":4999,"children":5000},{},[5001,5006,5011],{"type":120,"tag":2678,"props":5002,"children":5003},{},[5004],{"type":125,"value":5005},"dm-integrity",{"type":120,"tag":2678,"props":5007,"children":5008},{},[5009],{"type":125,"value":5010},"Integrity tags for writable sectors",{"type":120,"tag":2678,"props":5012,"children":5013},{},[5014],{"type":125,"value":5015},"Unkeyed checksums detect accidental corruption. Keyed HMAC or appropriate dm-crypt integration has different authentication properties",{"type":120,"tag":121,"props":5017,"children":5018},{},[5019,5021,5026,5027,5032],{"type":125,"value":5020},"Consider an illustrative device with an immutable operating-system image, separately delivered applications and writable state. dm-verity can protect the OS image. fs-verity can protect selected application file contents where the filesystem and loader policy support it. Writable state needs its own integrity and recovery design. Key protection, replay protection and application-level consistency remain separate questions. ",{"type":120,"tag":1494,"props":5022,"children":5024},{"href":5023},"https://docs.kernel.org/filesystems/fsverity.html",[5025],{"type":125,"value":4987},{"type":125,"value":2052},{"type":120,"tag":1494,"props":5028,"children":5030},{"href":5029},"https://docs.kernel.org/admin-guide/device-mapper/dm-integrity.html",[5031],{"type":125,"value":5005},{"type":125,"value":460},{"type":120,"tag":128,"props":5034,"children":5036},{"id":5035},"how-dm-verity-works",[5037],{"type":125,"value":5038},"How dm-verity works",{"type":120,"tag":121,"props":5040,"children":5041},{},[5042],{"type":125,"value":5043},"dm-verity uses a Merkle tree (hash tree) computed over the filesystem image. The tree structure:",{"type":120,"tag":994,"props":5045,"children":5046},{},[5047,5057,5067,5077],{"type":120,"tag":144,"props":5048,"children":5049},{},[5050,5055],{"type":120,"tag":148,"props":5051,"children":5052},{},[5053],{"type":125,"value":5054},"Data blocks:",{"type":125,"value":5056}," The actual filesystem content, divided into fixed-size blocks (typically 4096 bytes)",{"type":120,"tag":144,"props":5058,"children":5059},{},[5060,5065],{"type":120,"tag":148,"props":5061,"children":5062},{},[5063],{"type":125,"value":5064},"Hash blocks:",{"type":125,"value":5066}," Each hash block contains the hashes of multiple data blocks",{"type":120,"tag":144,"props":5068,"children":5069},{},[5070,5075],{"type":120,"tag":148,"props":5071,"children":5072},{},[5073],{"type":125,"value":5074},"Higher-level hash blocks:",{"type":125,"value":5076}," Each higher level hashes the blocks below it",{"type":120,"tag":144,"props":5078,"children":5079},{},[5080,5085],{"type":120,"tag":148,"props":5081,"children":5082},{},[5083],{"type":125,"value":5084},"Root hash:",{"type":125,"value":5086}," A single hash at the top of the tree",{"type":120,"tag":121,"props":5088,"children":5089},{},[5090],{"type":125,"value":5091},"The root hash is the trust anchor. If you know the root hash is correct (because it was signed or embedded in the verified kernel command line), dm-verity can verify every block on demand.",{"type":120,"tag":128,"props":5093,"children":5095},{"id":5094},"generating-the-hash-tree",[5096],{"type":125,"value":5097},"Generating the hash tree",{"type":120,"tag":121,"props":5099,"children":5100},{},[5101,5102,5108],{"type":125,"value":3513},{"type":120,"tag":156,"props":5103,"children":5105},{"className":5104},[],[5106],{"type":125,"value":5107},"veritysetup",{"type":125,"value":5109}," from the cryptsetup package:",{"type":120,"tag":248,"props":5111,"children":5113},{"code":5112,"language":492,"meta":109,"className":493,"style":109},"# Create the hash tree\nveritysetup format /path/to/rootfs.img /path/to/rootfs.hashtree\n\n# Output includes:\n# Root hash: 4a2c...\n# Salt: 8b1f...\n# Data blocks: 65536\n# Hash algorithm: sha256\n",[5114],{"type":120,"tag":156,"props":5115,"children":5116},{"__ignoreMap":109},[5117,5125,5147,5154,5162,5170,5178,5186],{"type":120,"tag":258,"props":5118,"children":5119},{"class":260,"line":261},[5120],{"type":120,"tag":258,"props":5121,"children":5122},{"style":727},[5123],{"type":125,"value":5124},"# Create the hash tree\n",{"type":120,"tag":258,"props":5126,"children":5127},{"class":260,"line":270},[5128,5132,5137,5142],{"type":120,"tag":258,"props":5129,"children":5130},{"style":503},[5131],{"type":125,"value":5107},{"type":120,"tag":258,"props":5133,"children":5134},{"style":515},[5135],{"type":125,"value":5136}," format",{"type":120,"tag":258,"props":5138,"children":5139},{"style":515},[5140],{"type":125,"value":5141}," /path/to/rootfs.img",{"type":120,"tag":258,"props":5143,"children":5144},{"style":515},[5145],{"type":125,"value":5146}," /path/to/rootfs.hashtree\n",{"type":120,"tag":258,"props":5148,"children":5149},{"class":260,"line":279},[5150],{"type":120,"tag":258,"props":5151,"children":5152},{"emptyLinePlaceholder":319},[5153],{"type":125,"value":322},{"type":120,"tag":258,"props":5155,"children":5156},{"class":260,"line":288},[5157],{"type":120,"tag":258,"props":5158,"children":5159},{"style":727},[5160],{"type":125,"value":5161},"# Output includes:\n",{"type":120,"tag":258,"props":5163,"children":5164},{"class":260,"line":297},[5165],{"type":120,"tag":258,"props":5166,"children":5167},{"style":727},[5168],{"type":125,"value":5169},"# Root hash: 4a2c...\n",{"type":120,"tag":258,"props":5171,"children":5172},{"class":260,"line":306},[5173],{"type":120,"tag":258,"props":5174,"children":5175},{"style":727},[5176],{"type":125,"value":5177},"# Salt: 8b1f...\n",{"type":120,"tag":258,"props":5179,"children":5180},{"class":260,"line":315},[5181],{"type":120,"tag":258,"props":5182,"children":5183},{"style":727},[5184],{"type":125,"value":5185},"# Data blocks: 65536\n",{"type":120,"tag":258,"props":5187,"children":5188},{"class":260,"line":325},[5189],{"type":120,"tag":258,"props":5190,"children":5191},{"style":727},[5192],{"type":125,"value":5193},"# Hash algorithm: sha256\n",{"type":120,"tag":121,"props":5195,"children":5196},{},[5197],{"type":125,"value":5198},"The root hash and salt must be recorded and passed to the kernel at boot time. Store the expected digest in an authenticated boot object and confirm that the enforced boot flow uses it. Record the format output and image size so the table geometry comes from the actual image.",{"type":120,"tag":128,"props":5200,"children":5202},{"id":5201},"kernel-command-line-integration",[5203],{"type":125,"value":5204},"Kernel command line integration",{"type":120,"tag":121,"props":5206,"children":5207},{},[5208],{"type":125,"value":5209},"The following is an illustrative table layout. It has not been executed as an integrated boot sequence here. Replace all geometry with the output from your image and validate in a disposable environment:",{"type":120,"tag":248,"props":5211,"children":5213},{"code":5212},"root=/dev/dm-0\ndm-mod.create=\"verity,,,ro,0 524288 verity 1 /dev/mmcblk0p2 /dev/mmcblk0p3 4096 4096 65536 1 sha256 ROOT_HASH SALT\"\n",[5214],{"type":120,"tag":156,"props":5215,"children":5216},{"__ignoreMap":109},[5217],{"type":125,"value":5212},{"type":120,"tag":121,"props":5219,"children":5220},{},[5221,5223,5229,5230,5236,5238,5244],{"type":125,"value":5222},"Replace ",{"type":120,"tag":156,"props":5224,"children":5226},{"className":5225},[],[5227],{"type":125,"value":5228},"ROOT_HASH",{"type":125,"value":2052},{"type":120,"tag":156,"props":5231,"children":5233},{"className":5232},[],[5234],{"type":125,"value":5235},"SALT",{"type":125,"value":5237}," with the values from ",{"type":120,"tag":156,"props":5239,"children":5241},{"className":5240},[],[5242],{"type":125,"value":5243},"veritysetup format",{"type":125,"value":5245},". The command line parameters specify:",{"type":120,"tag":994,"props":5247,"children":5248},{},[5249,5261,5273,5278,5283,5288],{"type":120,"tag":144,"props":5250,"children":5251},{},[5252,5254,5260],{"type":125,"value":5253},"The data device (",{"type":120,"tag":156,"props":5255,"children":5257},{"className":5256},[],[5258],{"type":125,"value":5259},"/dev/mmcblk0p2",{"type":125,"value":1381},{"type":120,"tag":144,"props":5262,"children":5263},{},[5264,5266,5272],{"type":125,"value":5265},"The hash device (",{"type":120,"tag":156,"props":5267,"children":5269},{"className":5268},[],[5270],{"type":125,"value":5271},"/dev/mmcblk0p3",{"type":125,"value":1381},{"type":120,"tag":144,"props":5274,"children":5275},{},[5276],{"type":125,"value":5277},"Block sizes (data and hash)",{"type":120,"tag":144,"props":5279,"children":5280},{},[5281],{"type":125,"value":5282},"Number of data blocks",{"type":120,"tag":144,"props":5284,"children":5285},{},[5286],{"type":125,"value":5287},"Hash algorithm",{"type":120,"tag":144,"props":5289,"children":5290},{},[5291],{"type":125,"value":5292},"Root hash and salt",{"type":120,"tag":121,"props":5294,"children":5295},{},[5296],{"type":125,"value":5297},"A FIT signature does not automatically authenticate every boot argument. Trace the root digest from a verified object through the actual boot script and environment. Prevent mutable arguments from replacing that digest or bypassing verification.",{"type":120,"tag":128,"props":5299,"children":5301},{"id":5300},"initramfs-based-setup-recommended",[5302],{"type":125,"value":5303},"Initramfs-based setup (recommended)",{"type":120,"tag":121,"props":5305,"children":5306},{},[5307],{"type":125,"value":5308},"For more flexibility, set up dm-verity in the initramfs:",{"type":120,"tag":248,"props":5310,"children":5312},{"code":5311,"language":492,"meta":109,"className":493,"style":109},"#!/bin/sh\n# In init script\nset -eu\n: \"${ROOT_HASH:?Missing authenticated root digest}\"\nif ! veritysetup open /dev/mmcblk0p2 rootfs /dev/mmcblk0p3 \"$ROOT_HASH\"; then\n    echo \"Root verification setup failed\" >&2\n    exit 1\nfi\nif ! mount -o ro /dev/mapper/rootfs /newroot; then\n    veritysetup close rootfs\n    echo \"Verified root mount failed\" >&2\n    exit 1\nfi\nexec switch_root /newroot /sbin/init\n# A failed exec must terminate in the recovery environment.\nexit 1\n",[5313],{"type":120,"tag":156,"props":5314,"children":5315},{"__ignoreMap":109},[5316,5324,5332,5345,5391,5454,5472,5485,5493,5536,5554,5570,5581,5588,5611,5620],{"type":120,"tag":258,"props":5317,"children":5318},{"class":260,"line":261},[5319],{"type":120,"tag":258,"props":5320,"children":5321},{"style":727},[5322],{"type":125,"value":5323},"#!/bin/sh\n",{"type":120,"tag":258,"props":5325,"children":5326},{"class":260,"line":270},[5327],{"type":120,"tag":258,"props":5328,"children":5329},{"style":727},[5330],{"type":125,"value":5331},"# In init script\n",{"type":120,"tag":258,"props":5333,"children":5334},{"class":260,"line":279},[5335,5340],{"type":120,"tag":258,"props":5336,"children":5337},{"style":509},[5338],{"type":125,"value":5339},"set",{"type":120,"tag":258,"props":5341,"children":5342},{"style":509},[5343],{"type":125,"value":5344}," -eu\n",{"type":120,"tag":258,"props":5346,"children":5347},{"class":260,"line":288},[5348,5352,5357,5361,5366,5371,5376,5381,5386],{"type":120,"tag":258,"props":5349,"children":5350},{"style":509},[5351],{"type":125,"value":858},{"type":120,"tag":258,"props":5353,"children":5354},{"style":515},[5355],{"type":125,"value":5356}," \"${",{"type":120,"tag":258,"props":5358,"children":5359},{"style":3740},[5360],{"type":125,"value":5228},{"type":120,"tag":258,"props":5362,"children":5363},{"style":662},[5364],{"type":125,"value":5365},":?",{"type":120,"tag":258,"props":5367,"children":5368},{"style":3740},[5369],{"type":125,"value":5370},"Missing",{"type":120,"tag":258,"props":5372,"children":5373},{"style":3740},[5374],{"type":125,"value":5375}," authenticated",{"type":120,"tag":258,"props":5377,"children":5378},{"style":3740},[5379],{"type":125,"value":5380}," root",{"type":120,"tag":258,"props":5382,"children":5383},{"style":3740},[5384],{"type":125,"value":5385}," digest",{"type":120,"tag":258,"props":5387,"children":5388},{"style":515},[5389],{"type":125,"value":5390},"}\"\n",{"type":120,"tag":258,"props":5392,"children":5393},{"class":260,"line":297},[5394,5399,5404,5409,5414,5419,5424,5429,5434,5439,5444,5449],{"type":120,"tag":258,"props":5395,"children":5396},{"style":662},[5397],{"type":125,"value":5398},"if",{"type":120,"tag":258,"props":5400,"children":5401},{"style":662},[5402],{"type":125,"value":5403}," !",{"type":120,"tag":258,"props":5405,"children":5406},{"style":503},[5407],{"type":125,"value":5408}," veritysetup",{"type":120,"tag":258,"props":5410,"children":5411},{"style":515},[5412],{"type":125,"value":5413}," open",{"type":120,"tag":258,"props":5415,"children":5416},{"style":515},[5417],{"type":125,"value":5418}," /dev/mmcblk0p2",{"type":120,"tag":258,"props":5420,"children":5421},{"style":515},[5422],{"type":125,"value":5423}," rootfs",{"type":120,"tag":258,"props":5425,"children":5426},{"style":515},[5427],{"type":125,"value":5428}," /dev/mmcblk0p3",{"type":120,"tag":258,"props":5430,"children":5431},{"style":515},[5432],{"type":125,"value":5433}," \"",{"type":120,"tag":258,"props":5435,"children":5436},{"style":3740},[5437],{"type":125,"value":5438},"$ROOT_HASH",{"type":120,"tag":258,"props":5440,"children":5441},{"style":515},[5442],{"type":125,"value":5443},"\"",{"type":120,"tag":258,"props":5445,"children":5446},{"style":3740},[5447],{"type":125,"value":5448},"; ",{"type":120,"tag":258,"props":5450,"children":5451},{"style":662},[5452],{"type":125,"value":5453},"then\n",{"type":120,"tag":258,"props":5455,"children":5456},{"class":260,"line":306},[5457,5462,5467],{"type":120,"tag":258,"props":5458,"children":5459},{"style":509},[5460],{"type":125,"value":5461},"    echo",{"type":120,"tag":258,"props":5463,"children":5464},{"style":515},[5465],{"type":125,"value":5466}," \"Root verification setup failed\"",{"type":120,"tag":258,"props":5468,"children":5469},{"style":662},[5470],{"type":125,"value":5471}," >&2\n",{"type":120,"tag":258,"props":5473,"children":5474},{"class":260,"line":315},[5475,5480],{"type":120,"tag":258,"props":5476,"children":5477},{"style":509},[5478],{"type":125,"value":5479},"    exit",{"type":120,"tag":258,"props":5481,"children":5482},{"style":509},[5483],{"type":125,"value":5484}," 1\n",{"type":120,"tag":258,"props":5486,"children":5487},{"class":260,"line":325},[5488],{"type":120,"tag":258,"props":5489,"children":5490},{"style":662},[5491],{"type":125,"value":5492},"fi\n",{"type":120,"tag":258,"props":5494,"children":5495},{"class":260,"line":334},[5496,5500,5504,5509,5513,5518,5523,5528,5532],{"type":120,"tag":258,"props":5497,"children":5498},{"style":662},[5499],{"type":125,"value":5398},{"type":120,"tag":258,"props":5501,"children":5502},{"style":662},[5503],{"type":125,"value":5403},{"type":120,"tag":258,"props":5505,"children":5506},{"style":503},[5507],{"type":125,"value":5508}," mount",{"type":120,"tag":258,"props":5510,"children":5511},{"style":509},[5512],{"type":125,"value":543},{"type":120,"tag":258,"props":5514,"children":5515},{"style":515},[5516],{"type":125,"value":5517}," ro",{"type":120,"tag":258,"props":5519,"children":5520},{"style":515},[5521],{"type":125,"value":5522}," /dev/mapper/rootfs",{"type":120,"tag":258,"props":5524,"children":5525},{"style":515},[5526],{"type":125,"value":5527}," /newroot",{"type":120,"tag":258,"props":5529,"children":5530},{"style":3740},[5531],{"type":125,"value":5448},{"type":120,"tag":258,"props":5533,"children":5534},{"style":662},[5535],{"type":125,"value":5453},{"type":120,"tag":258,"props":5537,"children":5538},{"class":260,"line":343},[5539,5544,5549],{"type":120,"tag":258,"props":5540,"children":5541},{"style":503},[5542],{"type":125,"value":5543},"    veritysetup",{"type":120,"tag":258,"props":5545,"children":5546},{"style":515},[5547],{"type":125,"value":5548}," close",{"type":120,"tag":258,"props":5550,"children":5551},{"style":515},[5552],{"type":125,"value":5553}," rootfs\n",{"type":120,"tag":258,"props":5555,"children":5556},{"class":260,"line":352},[5557,5561,5566],{"type":120,"tag":258,"props":5558,"children":5559},{"style":509},[5560],{"type":125,"value":5461},{"type":120,"tag":258,"props":5562,"children":5563},{"style":515},[5564],{"type":125,"value":5565}," \"Verified root mount failed\"",{"type":120,"tag":258,"props":5567,"children":5568},{"style":662},[5569],{"type":125,"value":5471},{"type":120,"tag":258,"props":5571,"children":5572},{"class":260,"line":361},[5573,5577],{"type":120,"tag":258,"props":5574,"children":5575},{"style":509},[5576],{"type":125,"value":5479},{"type":120,"tag":258,"props":5578,"children":5579},{"style":509},[5580],{"type":125,"value":5484},{"type":120,"tag":258,"props":5582,"children":5583},{"class":260,"line":370},[5584],{"type":120,"tag":258,"props":5585,"children":5586},{"style":662},[5587],{"type":125,"value":5492},{"type":120,"tag":258,"props":5589,"children":5591},{"class":260,"line":5590},14,[5592,5597,5602,5606],{"type":120,"tag":258,"props":5593,"children":5594},{"style":509},[5595],{"type":125,"value":5596},"exec",{"type":120,"tag":258,"props":5598,"children":5599},{"style":515},[5600],{"type":125,"value":5601}," switch_root",{"type":120,"tag":258,"props":5603,"children":5604},{"style":515},[5605],{"type":125,"value":5527},{"type":120,"tag":258,"props":5607,"children":5608},{"style":515},[5609],{"type":125,"value":5610}," /sbin/init\n",{"type":120,"tag":258,"props":5612,"children":5614},{"class":260,"line":5613},15,[5615],{"type":120,"tag":258,"props":5616,"children":5617},{"style":727},[5618],{"type":125,"value":5619},"# A failed exec must terminate in the recovery environment.\n",{"type":120,"tag":258,"props":5621,"children":5623},{"class":260,"line":5622},16,[5624,5629],{"type":120,"tag":258,"props":5625,"children":5626},{"style":509},[5627],{"type":125,"value":5628},"exit",{"type":120,"tag":258,"props":5630,"children":5631},{"style":509},[5632],{"type":125,"value":5484},{"type":120,"tag":121,"props":5634,"children":5635},{},[5636],{"type":125,"value":5637},"This illustrative fragment stops on mapping and mount failures. A supervisor or explicit boot recovery mechanism must handle failure. If this script is PID 1, exiting can panic the kernel; exit alone is not a recovery mechanism. Select a known signed recovery image, retain the failure reason and stop automatic retries after the configured limit. The snippet has not been boot-tested here and requires integration with the target init system.",{"type":120,"tag":128,"props":5639,"children":5641},{"id":5640},"filesystem-choices-for-dm-verity",[5642],{"type":125,"value":5643},"Filesystem choices for dm-verity",{"type":120,"tag":121,"props":5645,"children":5646},{},[5647],{"type":125,"value":5648},"dm-verity requires a read-only filesystem. Common choices:",{"type":120,"tag":994,"props":5650,"children":5651},{},[5652,5662,5680],{"type":120,"tag":144,"props":5653,"children":5654},{},[5655,5660],{"type":120,"tag":148,"props":5656,"children":5657},{},[5658],{"type":125,"value":5659},"SquashFS:",{"type":125,"value":5661}," Compressed, widely supported, good tool ecosystem. Typical for embedded systems with flash storage constraints.",{"type":120,"tag":144,"props":5663,"children":5664},{},[5665,5670,5672,5678],{"type":120,"tag":148,"props":5666,"children":5667},{},[5668],{"type":125,"value":5669},"EROFS:",{"type":125,"value":5671}," Evaluate compression and workload behaviour using the ",{"type":120,"tag":1494,"props":5673,"children":5675},{"href":5674},"/doc/erofs-vs-squashfs-2026/",[5676],{"type":125,"value":5677},"EROFS vs SquashFS",{"type":125,"value":5679}," comparison and benchmark method.",{"type":120,"tag":144,"props":5681,"children":5682},{},[5683,5688],{"type":120,"tag":148,"props":5684,"children":5685},{},[5686],{"type":125,"value":5687},"ext4 (read-only):",{"type":125,"value":5689}," An ext4 image mounted read-only works with dm-verity but offers no compression. Useful when you need ext4 tooling compatibility.",{"type":120,"tag":128,"props":5691,"children":5693},{"id":5692},"error-handling-strategies",[5694],{"type":125,"value":5695},"Error handling strategies",{"type":120,"tag":121,"props":5697,"children":5698},{},[5699,5701,5707,5708,5714,5716,5722],{"type":125,"value":5700},"The kernel dm-verity interface documents default I/O errors and optional ",{"type":120,"tag":156,"props":5702,"children":5704},{"className":5703},[],[5705],{"type":125,"value":5706},"restart_on_corruption",{"type":125,"value":2052},{"type":120,"tag":156,"props":5709,"children":5711},{"className":5710},[],[5712],{"type":125,"value":5713},"panic_on_corruption",{"type":125,"value":5715}," behaviour. These are mapping options. Configure the selected cryptsetup and kernel versions together and test the resulting table. A generic kernel parameter cannot stand in for this integration. ",{"type":120,"tag":1494,"props":5717,"children":5719},{"href":5718},"https://docs.kernel.org/admin-guide/device-mapper/verity.html",[5720],{"type":125,"value":5721},"Kernel dm-verity documentation",{"type":125,"value":460},{"type":120,"tag":121,"props":5724,"children":5725},{},[5726],{"type":125,"value":5727},"Store bounded failure information outside the failing root mapping where possible. A panic can prevent userspace from writing a log. Test what your persistent console or bootloader records. Recovery should select an independently authenticated image, limit retries and provide an operator-visible failure if both slots fail.",{"type":120,"tag":121,"props":5729,"children":5730},{},[5731],{"type":125,"value":5732},"Optional forward error correction needs its own generated metadata and measured allocation. Record the correction parameters and test corruption both within and beyond the configured correction capacity. Successful recovery still depends on a trusted expected digest.",{"type":120,"tag":128,"props":5734,"children":5736},{"id":5735},"update-strategies-with-dm-verity",[5737],{"type":125,"value":5738},"Update strategies with dm-verity",{"type":120,"tag":121,"props":5740,"children":5741},{},[5742],{"type":125,"value":5743},"Since dm-verity protects a read-only image, updates mean replacing the entire image and hash tree. This aligns naturally with A/B update schemes:",{"type":120,"tag":140,"props":5745,"children":5746},{},[5747,5752,5757,5762],{"type":120,"tag":144,"props":5748,"children":5749},{},[5750],{"type":125,"value":5751},"Download new rootfs image + hash tree to the inactive slot",{"type":120,"tag":144,"props":5753,"children":5754},{},[5755],{"type":125,"value":5756},"Authenticate the update manifest and verify its image and hash-tree digests",{"type":120,"tag":144,"props":5758,"children":5759},{},[5760],{"type":125,"value":5761},"Update the boot configuration to point to the new slot",{"type":120,"tag":144,"props":5763,"children":5764},{},[5765],{"type":125,"value":5766},"Reboot",{"type":120,"tag":121,"props":5768,"children":5769},{},[5770,5772,5777],{"type":125,"value":5771},"Plan ",{"type":120,"tag":1494,"props":5773,"children":5774},{"href":2538},[5775],{"type":125,"value":5776},"OTA updates with RAUC, SWUpdate and Mender",{"type":125,"value":5778}," together with the slot-specific hash tree and authenticated root digest.",{"type":120,"tag":128,"props":5780,"children":5782},{"id":5781},"writable-overlay-for-runtime-data",[5783],{"type":125,"value":5784},"Writable overlay for runtime data",{"type":120,"tag":121,"props":5786,"children":5787},{},[5788],{"type":125,"value":5789},"A fully read-only root filesystem is impractical for most systems. Logs, configuration changes, and runtime state need writeable storage. The standard pattern is an overlayfs mount:",{"type":120,"tag":248,"props":5791,"children":5793},{"code":5792,"language":492,"meta":109,"className":493,"style":109},"mount -t overlay overlay -o lowerdir=/rootfs,upperdir=/data/upper,workdir=/data/work /merged\n",[5794],{"type":120,"tag":156,"props":5795,"children":5796},{"__ignoreMap":109},[5797],{"type":120,"tag":258,"props":5798,"children":5799},{"class":260,"line":261},[5800,5805,5809,5814,5818,5822,5827],{"type":120,"tag":258,"props":5801,"children":5802},{"style":503},[5803],{"type":125,"value":5804},"mount",{"type":120,"tag":258,"props":5806,"children":5807},{"style":509},[5808],{"type":125,"value":3871},{"type":120,"tag":258,"props":5810,"children":5811},{"style":515},[5812],{"type":125,"value":5813}," overlay",{"type":120,"tag":258,"props":5815,"children":5816},{"style":515},[5817],{"type":125,"value":5813},{"type":120,"tag":258,"props":5819,"children":5820},{"style":509},[5821],{"type":125,"value":543},{"type":120,"tag":258,"props":5823,"children":5824},{"style":515},[5825],{"type":125,"value":5826}," lowerdir=/rootfs,upperdir=/data/upper,workdir=/data/work",{"type":120,"tag":258,"props":5828,"children":5829},{"style":515},[5830],{"type":125,"value":5831}," /merged\n",{"type":120,"tag":121,"props":5833,"children":5834},{},[5835],{"type":125,"value":5836},"The lower layer is the dm-verity-protected read-only image. The upper layer is on a separate, writable partition. Changes appear in the upper layer without modifying the verified lower layer. Executables in that writable upper layer do not inherit authentication from dm-verity. Restrict execution sources or enforce an independent verification policy for updated applications.",{"type":120,"tag":128,"props":5838,"children":5840},{"id":5839},"performance-considerations",[5841],{"type":125,"value":5842},"Performance considerations",{"type":120,"tag":121,"props":5844,"children":5845},{},[5846],{"type":125,"value":5847},"Measure the actual image, storage and workload with verification enabled. Retain cold and warm cache conditions, request sizes, kernel configuration and raw results. Account separately for image bytes, hash-tree bytes and any error-correction data. No general percentage predicts the cost on every device.",{"type":120,"tag":121,"props":5849,"children":5850},{},[5851,5852,5858],{"type":125,"value":3099},{"type":120,"tag":1494,"props":5853,"children":5855},{"href":5854},"/resources/boot-integrity-review-v1.md",[5856],{"type":125,"value":5857},"boot-integrity review worksheet",{"type":125,"value":5859}," to record the trusted digest source and negative tests. Include changed image bytes, a wrong digest, mount failure and exhausted recovery attempts. Leave results pending until the complete boot path has been exercised.",{"type":120,"tag":128,"props":5861,"children":5863},{"id":5862},"adoption-across-linux-distributions",[5864],{"type":125,"value":5865},"Adoption across Linux distributions",{"type":120,"tag":121,"props":5867,"children":5868},{},[5869,5871,5877],{"type":125,"value":5870},"dm-verity and immutable root filesystem patterns have become standard practice across modern Linux distributions. Distributions like ",{"type":120,"tag":1494,"props":5872,"children":5874},{"href":5873},"https://ubuntuportal.com/posts/ubuntu-2604-resolute-raccoon-features/",[5875],{"type":125,"value":5876},"Ubuntu Resolute Raccoon Features",{"type":125,"value":5878}," are increasingly shipping with immutable filesystem tooling and secure boot integration, reflecting how these patterns have moved from specialist embedded systems into general-purpose Linux environments. Understanding how these approaches work - and where their constraints lie - helps portable OS projects make informed architectural decisions.",{"type":120,"tag":128,"props":5880,"children":5881},{"id":1484},[5882],{"type":125,"value":1487},{"type":120,"tag":121,"props":5884,"children":5885},{},[5886,5888,5892],{"type":125,"value":5887},"ProteanOS build workflows can integrate dm-verity hash tree generation as a post-build step. Review the ",{"type":120,"tag":1494,"props":5889,"children":5890},{"href":1517},[5891],{"type":125,"value":4830},{"type":125,"value":5893}," and selected source before assuming a post-processing interface exists.",{"type":120,"tag":121,"props":5895,"children":5896},{},[5897],{"type":125,"value":5898},"For new hardware platforms, the board bring-up documentation includes dm-verity validation as a security milestone after basic boot and secure boot are working.",{"type":120,"tag":128,"props":5900,"children":5901},{"id":1525},[5902],{"type":125,"value":1528},{"type":120,"tag":121,"props":5904,"children":5905},{},[5906],{"type":125,"value":5907},"dm-verity provides runtime integrity verification for read-only root filesystems. Combined with secure boot, it can protect the explicitly verified execution path. The implementation involves generating a hash tree, passing the root hash through a verified channel (signed kernel command line or initramfs), and handling corruption gracefully. Plan your partition layout and update strategy around the read-only constraint from the start.",{"type":120,"tag":1535,"props":5909,"children":5910},{},[5911],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":5913},[5914,5915,5916,5917,5918,5919,5920,5921,5922,5923,5924,5925,5926,5927],{"id":4880,"depth":270,"text":4883},{"id":4931,"depth":270,"text":4934},{"id":5035,"depth":270,"text":5038},{"id":5094,"depth":270,"text":5097},{"id":5201,"depth":270,"text":5204},{"id":5300,"depth":270,"text":5303},{"id":5640,"depth":270,"text":5643},{"id":5692,"depth":270,"text":5695},{"id":5735,"depth":270,"text":5738},{"id":5781,"depth":270,"text":5784},{"id":5839,"depth":270,"text":5842},{"id":5862,"depth":270,"text":5865},{"id":1484,"depth":270,"text":1487},{"id":1525,"depth":270,"text":1528},"content:doc:rootfs-integrity-dm-verity-immutable-images.md","doc/rootfs-integrity-dm-verity-immutable-images.md","doc/rootfs-integrity-dm-verity-immutable-images",{"_path":97,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":98,"description":99,"date":100,"lastmod":100,"draft":108,"hero":5932,"tags":5933,"category":2416,"body":5934,"_type":1570,"_id":6407,"_source":1572,"_file":6408,"_stem":6409,"_extension":1575},"/images/hero/verified-boot-patterns-uboot-keys-failure-modes-1600x900.jpg",[112,113,4870],{"type":117,"children":5935,"toc":6380},[5936,5941,5947,5952,5958,5963,5968,5974,5979,5991,5997,6002,6008,6013,6018,6024,6029,6034,6040,6045,6050,6056,6061,6067,6073,6093,6099,6112,6118,6131,6145,6165,6171,6176,6182,6187,6193,6206,6229,6234,6240,6305,6311,6316,6321,6339,6344,6348,6366,6371,6375],{"type":120,"tag":121,"props":5937,"children":5938},{},[5939],{"type":125,"value":5940},"Verified boot in U-Boot goes beyond signing a kernel image. The practical challenge is deciding what to verify, where to store keys so they survive updates, and how to handle the failure modes that appear in real deployments. This guide covers the patterns that work in production and the anti-patterns that cause field failures.",{"type":120,"tag":128,"props":5942,"children":5944},{"id":5943},"verification-scope-what-gets-signed",[5945],{"type":125,"value":5946},"Verification scope: what gets signed",{"type":120,"tag":121,"props":5948,"children":5949},{},[5950],{"type":125,"value":5951},"U-Boot's FIT signature mechanism can sign individual images (kernel, DTB, initramfs) or configurations (the combination of images for a specific boot scenario). The choice has security implications.",{"type":120,"tag":222,"props":5953,"children":5955},{"id":5954},"image-level-signing",[5956],{"type":125,"value":5957},"Image-level signing",{"type":120,"tag":121,"props":5959,"children":5960},{},[5961],{"type":125,"value":5962},"Each image node in the FIT has its own signature. This allows mixing and matching signed components. For example, you could update the device tree without re-signing the kernel.",{"type":120,"tag":121,"props":5964,"children":5965},{},[5966],{"type":125,"value":5967},"The risk: if an attacker can combine a signed old kernel with a signed old DTB that has different security settings (debug UART enabled, for instance), they can downgrade the device's security posture without breaking any individual signature.",{"type":120,"tag":222,"props":5969,"children":5971},{"id":5970},"configuration-level-signing-recommended",[5972],{"type":125,"value":5973},"Configuration-level signing (recommended)",{"type":120,"tag":121,"props":5975,"children":5976},{},[5977],{"type":125,"value":5978},"The configuration node ties specific images together and signs the combination. You cannot swap a kernel version without re-signing the entire configuration. This is more restrictive but more secure.",{"type":120,"tag":121,"props":5980,"children":5981},{},[5982,5984,5989],{"type":125,"value":5983},"For the ",{"type":120,"tag":1494,"props":5985,"children":5986},{"href":2241},[5987],{"type":125,"value":5988},"secure boot walkthrough",{"type":125,"value":5990},", configuration-level signing is the recommended pattern.",{"type":120,"tag":128,"props":5992,"children":5994},{"id":5993},"where-keys-live",[5995],{"type":125,"value":5996},"Where keys live",{"type":120,"tag":121,"props":5998,"children":5999},{},[6000],{"type":125,"value":6001},"The public key for verification must be accessible to U-Boot before it verifies anything. There are several storage patterns, each with trade-offs.",{"type":120,"tag":222,"props":6003,"children":6005},{"id":6004},"embedded-in-u-boot-dtb-most-common",[6006],{"type":125,"value":6007},"Embedded in U-Boot DTB (most common)",{"type":120,"tag":121,"props":6009,"children":6010},{},[6011],{"type":125,"value":6012},"The public key is compiled directly into U-Boot's device tree blob. This is simple and reliable: the key is always available because it is part of U-Boot itself.",{"type":120,"tag":121,"props":6014,"children":6015},{},[6016],{"type":125,"value":6017},"Limitation: updating the key requires updating U-Boot. This is acceptable if your update mechanism can update the bootloader, but some products lock down the bootloader early and never update it.",{"type":120,"tag":222,"props":6019,"children":6021},{"id":6020},"in-a-dedicated-key-partition",[6022],{"type":125,"value":6023},"In a dedicated key partition",{"type":120,"tag":121,"props":6025,"children":6026},{},[6027],{"type":125,"value":6028},"Store the public key in a separate flash partition that U-Boot reads during boot. This allows key rotation without reflashing U-Boot.",{"type":120,"tag":121,"props":6030,"children":6031},{},[6032],{"type":125,"value":6033},"Risk: the key partition itself becomes a target. It must be protected against unauthorized writes (e.g., by hardware write protection or by signing the key partition with a root key embedded in ROM).",{"type":120,"tag":222,"props":6035,"children":6037},{"id":6036},"in-one-time-programmable-otp-fuses",[6038],{"type":125,"value":6039},"In one-time-programmable (OTP) fuses",{"type":120,"tag":121,"props":6041,"children":6042},{},[6043],{"type":125,"value":6044},"Some SoCs provide OTP fuse banks where a hash of the public key can be permanently written. U-Boot reads the key from flash but verifies its hash against the fused value. This provides a hardware root of trust.",{"type":120,"tag":121,"props":6046,"children":6047},{},[6048],{"type":125,"value":6049},"This is the most secure option but is irreversible. A wrong fuse write bricks the device permanently for secure boot purposes. Test thoroughly on development boards before fusing production units.",{"type":120,"tag":222,"props":6051,"children":6053},{"id":6052},"in-the-soc-rom-boot-chain",[6054],{"type":125,"value":6055},"In the SoC ROM boot chain",{"type":120,"tag":121,"props":6057,"children":6058},{},[6059],{"type":125,"value":6060},"Some SoCs (NXP i.MX, TI AM64x, STM32MP1) have ROM bootloaders that verify the first-stage bootloader using keys stored in OTP fuses. U-Boot SPL is verified by ROM; U-Boot proper is verified by SPL; the FIT image is verified by U-Boot proper. This creates a complete hardware-rooted chain of trust.",{"type":120,"tag":128,"props":6062,"children":6064},{"id":6063},"common-failure-modes",[6065],{"type":125,"value":6066},"Common failure modes",{"type":120,"tag":222,"props":6068,"children":6070},{"id":6069},"_1-signature-algorithm-mismatch",[6071],{"type":125,"value":6072},"1. Signature algorithm mismatch",{"type":120,"tag":121,"props":6074,"children":6075},{},[6076,6077,6083,6085,6091],{"type":125,"value":191},{"type":120,"tag":156,"props":6078,"children":6080},{"className":6079},[],[6081],{"type":125,"value":6082},".its",{"type":125,"value":6084}," file specifies ",{"type":120,"tag":156,"props":6086,"children":6088},{"className":6087},[],[6089],{"type":125,"value":6090},"sha256,rsa4096",{"type":125,"value":6092}," but the key was generated as RSA-2048. U-Boot silently fails to find a matching key and reports verification failure. Always verify the key size matches the algorithm string in both the ITS and the U-Boot key node.",{"type":120,"tag":222,"props":6094,"children":6096},{"id":6095},"_2-dtb-size-overflow",[6097],{"type":125,"value":6098},"2. DTB size overflow",{"type":120,"tag":121,"props":6100,"children":6101},{},[6102,6104,6110],{"type":125,"value":6103},"When ",{"type":120,"tag":156,"props":6105,"children":6107},{"className":6106},[],[6108],{"type":125,"value":6109},"mkimage",{"type":125,"value":6111}," embeds the public key into U-Boot's DTB, the DTB grows. If the DTB partition or memory allocation is too small, the key write silently truncates. U-Boot then cannot find the key. Reserve at least 8 KB extra in the DTB allocation for RSA-4096 keys.",{"type":120,"tag":222,"props":6113,"children":6115},{"id":6114},"_3-legacy-image-format-fallback",[6116],{"type":125,"value":6117},"3. Legacy image format fallback",{"type":120,"tag":121,"props":6119,"children":6120},{},[6121,6123,6129],{"type":125,"value":6122},"If ",{"type":120,"tag":156,"props":6124,"children":6126},{"className":6125},[],[6127],{"type":125,"value":6128},"CONFIG_IMAGE_FORMAT_LEGACY=y",{"type":125,"value":6130}," is enabled, an attacker can bypass FIT verification by presenting a legacy uImage. U-Boot will happily boot it without checking any signatures. Always disable legacy image format in secure boot configurations.",{"type":120,"tag":222,"props":6132,"children":6134},{"id":6133},"_4-missing-required-property",[6135,6137,6143],{"type":125,"value":6136},"4. Missing ",{"type":120,"tag":156,"props":6138,"children":6140},{"className":6139},[],[6141],{"type":125,"value":6142},"required",{"type":125,"value":6144}," property",{"type":120,"tag":121,"props":6146,"children":6147},{},[6148,6150,6156,6157,6163],{"type":125,"value":6149},"If the key node does not include ",{"type":120,"tag":156,"props":6151,"children":6153},{"className":6152},[],[6154],{"type":125,"value":6155},"required = \"conf\"",{"type":125,"value":4121},{"type":120,"tag":156,"props":6158,"children":6160},{"className":6159},[],[6161],{"type":125,"value":6162},"required = \"image\"",{"type":125,"value":6164},", signature verification is advisory only. U-Boot prints warnings but still boots unsigned images. This is the single most common secure boot misconfiguration.",{"type":120,"tag":222,"props":6166,"children":6168},{"id":6167},"_5-fit-image-corruption-during-ota",[6169],{"type":125,"value":6170},"5. FIT image corruption during OTA",{"type":120,"tag":121,"props":6172,"children":6173},{},[6174],{"type":125,"value":6175},"A partially written FIT image during an OTA update produces an invalid FIT structure. U-Boot cannot parse it and may fall through to a recovery path or hang. The OTA update documentation covers atomic update patterns that prevent this scenario.",{"type":120,"tag":222,"props":6177,"children":6179},{"id":6178},"_6-clock-drift-affecting-timestamp-verification",[6180],{"type":125,"value":6181},"6. Clock drift affecting timestamp verification",{"type":120,"tag":121,"props":6183,"children":6184},{},[6185],{"type":125,"value":6186},"Some U-Boot configurations include timestamp verification. If the RTC battery dies or the device has no RTC, time-based verification fails spuriously. Either use a reliable time source or avoid timestamp-based checks on embedded devices.",{"type":120,"tag":128,"props":6188,"children":6190},{"id":6189},"debugging-verified-boot-failures",[6191],{"type":125,"value":6192},"Debugging verified boot failures",{"type":120,"tag":121,"props":6194,"children":6195},{},[6196,6198,6204],{"type":125,"value":6197},"When signature verification fails, U-Boot's default error messages are terse. Enable ",{"type":120,"tag":156,"props":6199,"children":6201},{"className":6200},[],[6202],{"type":125,"value":6203},"CONFIG_FIT_VERBOSE=y",{"type":125,"value":6205}," to get detailed output including:",{"type":120,"tag":994,"props":6207,"children":6208},{},[6209,6214,6219,6224],{"type":120,"tag":144,"props":6210,"children":6211},{},[6212],{"type":125,"value":6213},"Which key was attempted",{"type":120,"tag":144,"props":6215,"children":6216},{},[6217],{"type":125,"value":6218},"The computed hash value",{"type":120,"tag":144,"props":6220,"children":6221},{},[6222],{"type":125,"value":6223},"The expected hash value",{"type":120,"tag":144,"props":6225,"children":6226},{},[6227],{"type":125,"value":6228},"Which image or configuration failed",{"type":120,"tag":121,"props":6230,"children":6231},{},[6232],{"type":125,"value":6233},"For development, add a serial console to capture boot logs. On production devices, store verification failure logs in a persistent partition for later retrieval.",{"type":120,"tag":222,"props":6235,"children":6237},{"id":6236},"step-by-step-debug-process",[6238],{"type":125,"value":6239},"Step-by-step debug process",{"type":120,"tag":140,"props":6241,"children":6242},{},[6243,6261,6278,6288],{"type":120,"tag":144,"props":6244,"children":6245},{},[6246,6251,6253,6259],{"type":120,"tag":148,"props":6247,"children":6248},{},[6249],{"type":125,"value":6250},"Verify the FIT image is intact:",{"type":125,"value":6252}," ",{"type":120,"tag":156,"props":6254,"children":6256},{"className":6255},[],[6257],{"type":125,"value":6258},"dumpimage -l fitImage",{"type":125,"value":6260}," on the host should show all images and configurations with correct hash values.",{"type":120,"tag":144,"props":6262,"children":6263},{},[6264,6269,6270,6276],{"type":120,"tag":148,"props":6265,"children":6266},{},[6267],{"type":125,"value":6268},"Verify the key is present in U-Boot DTB:",{"type":125,"value":6252},{"type":120,"tag":156,"props":6271,"children":6273},{"className":6272},[],[6274],{"type":125,"value":6275},"fdtdump u-boot.dtb | grep -A 20 signature",{"type":125,"value":6277}," should show the public key data.",{"type":120,"tag":144,"props":6279,"children":6280},{},[6281,6286],{"type":120,"tag":148,"props":6282,"children":6283},{},[6284],{"type":125,"value":6285},"Verify algorithm alignment:",{"type":125,"value":6287}," The algorithm string in the FIT configuration's signature node must match the algorithm string in the U-Boot DTB key node.",{"type":120,"tag":144,"props":6289,"children":6290},{},[6291,6296,6297,6303],{"type":120,"tag":148,"props":6292,"children":6293},{},[6294],{"type":125,"value":6295},"Try signing and verifying on the host:",{"type":125,"value":6252},{"type":120,"tag":156,"props":6298,"children":6300},{"className":6299},[],[6301],{"type":125,"value":6302},"mkimage -F -k /path/to/keys -K u-boot.dtb -r fitImage",{"type":125,"value":6304}," should succeed. If it fails on the host, it will fail on target.",{"type":120,"tag":128,"props":6306,"children":6308},{"id":6307},"anti-rollback-protection",[6309],{"type":125,"value":6310},"Anti-rollback protection",{"type":120,"tag":121,"props":6312,"children":6313},{},[6314],{"type":125,"value":6315},"Signing prevents tampering but not rollback. An attacker with physical access can flash an older, signed image that has known vulnerabilities. Anti-rollback protection uses a monotonic counter (typically stored in OTP fuses) that increments with each firmware version. U-Boot refuses to boot images with a counter value lower than the fused minimum.",{"type":120,"tag":121,"props":6317,"children":6318},{},[6319],{"type":125,"value":6320},"Implementation:",{"type":120,"tag":140,"props":6322,"children":6323},{},[6324,6329,6334],{"type":120,"tag":144,"props":6325,"children":6326},{},[6327],{"type":125,"value":6328},"Include a version counter in the FIT configuration",{"type":120,"tag":144,"props":6330,"children":6331},{},[6332],{"type":125,"value":6333},"Store the minimum acceptable counter in OTP fuses",{"type":120,"tag":144,"props":6335,"children":6336},{},[6337],{"type":125,"value":6338},"After successful boot, increment the fused counter",{"type":120,"tag":121,"props":6340,"children":6341},{},[6342],{"type":125,"value":6343},"This is irreversible by design. A failed update that increments the counter before verifying the new image can brick the device. Only increment after the new image has been fully validated.",{"type":120,"tag":128,"props":6345,"children":6346},{"id":1484},[6347],{"type":125,"value":1487},{"type":120,"tag":121,"props":6349,"children":6350},{},[6351,6353,6357,6359,6364],{"type":125,"value":6352},"ProteanOS build workflows generate FIT images as part of the ",{"type":120,"tag":1494,"props":6354,"children":6355},{"href":1517},[6356],{"type":125,"value":1520},{"type":125,"value":6358}," build process. The signing step is integrated into the build pipeline: keys are stored in a protected CI variable, and ",{"type":120,"tag":156,"props":6360,"children":6362},{"className":6361},[],[6363],{"type":125,"value":6109},{"type":125,"value":6365}," signs the FIT image as the final build step.",{"type":120,"tag":121,"props":6367,"children":6368},{},[6369],{"type":125,"value":6370},"For platform bring-up, the board bring-up documentation includes verified boot as a milestone after basic boot is working. Get unsigned boot stable first, then add verification.",{"type":120,"tag":128,"props":6372,"children":6373},{"id":1525},[6374],{"type":125,"value":1528},{"type":120,"tag":121,"props":6376,"children":6377},{},[6378],{"type":125,"value":6379},"Verified boot in U-Boot is straightforward to set up but has failure modes that only appear in production scenarios. Sign at the configuration level, disable legacy image format, mark keys as required, and test failure paths as thoroughly as success paths. Plan for key rotation and anti-rollback from the start—retrofitting them is significantly harder than including them in the initial design.",{"title":109,"searchDepth":270,"depth":270,"links":6381},[6382,6386,6392,6401,6404,6405,6406],{"id":5943,"depth":270,"text":5946,"children":6383},[6384,6385],{"id":5954,"depth":279,"text":5957},{"id":5970,"depth":279,"text":5973},{"id":5993,"depth":270,"text":5996,"children":6387},[6388,6389,6390,6391],{"id":6004,"depth":279,"text":6007},{"id":6020,"depth":279,"text":6023},{"id":6036,"depth":279,"text":6039},{"id":6052,"depth":279,"text":6055},{"id":6063,"depth":270,"text":6066,"children":6393},[6394,6395,6396,6397,6399,6400],{"id":6069,"depth":279,"text":6072},{"id":6095,"depth":279,"text":6098},{"id":6114,"depth":279,"text":6117},{"id":6133,"depth":279,"text":6398},"4. Missing required property",{"id":6167,"depth":279,"text":6170},{"id":6178,"depth":279,"text":6181},{"id":6189,"depth":270,"text":6192,"children":6402},[6403],{"id":6236,"depth":279,"text":6239},{"id":6307,"depth":270,"text":6310},{"id":1484,"depth":270,"text":1487},{"id":1525,"depth":270,"text":1528},"content:doc:verified-boot-patterns-uboot-keys-failure-modes.md","doc/verified-boot-patterns-uboot-keys-failure-modes.md","doc/verified-boot-patterns-uboot-keys-failure-modes",{"_path":92,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":93,"description":94,"date":95,"lastmod":3339,"draft":108,"hero":6411,"tags":6412,"category":2416,"body":6413,"_type":1570,"_id":7514,"_source":1572,"_file":7515,"_stem":7516,"_extension":1575},"/images/hero/secure-boot-uboot-fit-signatures-chain-of-trust-1600x900.jpg",[112,113,4870],{"type":117,"children":6414,"toc":7500},[6415,6420,6426,6431,6472,6483,6509,6515,6520,6528,6533,6539,6544,6668,6673,6679,6691,6703,6716,6722,6734,7125,7130,7184,7227,7233,7238,7246,7259,7265,7270,7298,7304,7309,7322,7327,7333,7338,7378,7384,7389,7407,7412,7418,7423,7435,7440,7452,7464,7477,7487,7491,7496],{"type":120,"tag":121,"props":6416,"children":6417},{},[6418],{"type":125,"value":6419},"An enforced boot chain authenticates the objects it covers. Mutable execution paths and recovery mechanisms need their own controls. In embedded Linux systems using U-Boot, the Flattened Image Tree (FIT) format provides a structured way to bundle kernel, device tree, and initramfs images with cryptographic signatures. This guide explains the signing objects, trust boundaries and failure tests using the U-Boot v2025.01 documentation. The example is illustrative and has not been executed as a complete boot sequence.",{"type":120,"tag":128,"props":6421,"children":6423},{"id":6422},"what-the-chain-of-trust-looks-like",[6424],{"type":125,"value":6425},"What the chain of trust looks like",{"type":120,"tag":121,"props":6427,"children":6428},{},[6429],{"type":125,"value":6430},"A complete chain of trust for an embedded Linux device typically has three or four stages:",{"type":120,"tag":140,"props":6432,"children":6433},{},[6434,6443,6453,6462],{"type":120,"tag":144,"props":6435,"children":6436},{},[6437,6441],{"type":120,"tag":148,"props":6438,"children":6439},{},[6440],{"type":125,"value":1665},{"type":125,"value":6442}," (in silicon) → verifies the secondary bootloader",{"type":120,"tag":144,"props":6444,"children":6445},{},[6446,6451],{"type":120,"tag":148,"props":6447,"children":6448},{},[6449],{"type":125,"value":6450},"Secondary bootloader (SPL/TPL)",{"type":125,"value":6452}," → verifies U-Boot proper",{"type":120,"tag":144,"props":6454,"children":6455},{},[6456,6460],{"type":120,"tag":148,"props":6457,"children":6458},{},[6459],{"type":125,"value":1685},{"type":125,"value":6461}," → verifies the FIT image (kernel + DTB + optional initramfs)",{"type":120,"tag":144,"props":6463,"children":6464},{},[6465,6470],{"type":120,"tag":148,"props":6466,"children":6467},{},[6468],{"type":125,"value":6469},"Kernel",{"type":125,"value":6471}," → verifies the root filesystem (via dm-verity or IMA)",{"type":120,"tag":121,"props":6473,"children":6474},{},[6475,6477,6482],{"type":125,"value":6476},"This guide focuses on stage 3: U-Boot verifying a signed FIT image. For root filesystem verification, see ",{"type":120,"tag":1494,"props":6478,"children":6479},{"href":2260},[6480],{"type":125,"value":6481},"dm-verity for root filesystem integrity",{"type":125,"value":460},{"type":120,"tag":4198,"props":6484,"children":6486},{"className":6485},[4201,4202],[6487],{"type":120,"tag":4198,"props":6488,"children":6490},{"className":6489},[4207],[6491,6497],{"type":120,"tag":121,"props":6492,"children":6494},{"className":6493},[4212],[6495],{"type":125,"value":6496},"Understand the boot process end-to-end",{"type":120,"tag":121,"props":6498,"children":6499},{},[6500,6502,6507],{"type":125,"value":6501},"Secure boot spans hardware, bootloader, kernel, and filesystem layers. A solid grounding in how operating systems initialise hardware, load code, and transition between privilege levels makes this chain of trust easier to reason about. The ",{"type":120,"tag":1494,"props":6503,"children":6505},{"href":2620,"target":2621,"rel":6504},[2623,2624,2625],[6506],{"type":125,"value":2628},{"type":125,"value":6508}," course is a good place to build that understanding.",{"type":120,"tag":128,"props":6510,"children":6512},{"id":6511},"fit-image-structure",[6513],{"type":125,"value":6514},"FIT image structure",{"type":120,"tag":121,"props":6516,"children":6517},{},[6518],{"type":125,"value":6519},"A FIT image is a single binary containing multiple components described by an embedded device tree structure. A typical signed FIT image includes:",{"type":120,"tag":248,"props":6521,"children":6523},{"code":6522},"/images/\n    kernel-1   → compressed kernel binary\n    fdt-1      → device tree blob\n    ramdisk-1  → initramfs (optional)\n/configurations/\n    conf-1     → ties kernel + fdt + ramdisk together\n               → carries the RSA signature\n",[6524],{"type":120,"tag":156,"props":6525,"children":6526},{"__ignoreMap":109},[6527],{"type":125,"value":6522},{"type":120,"tag":121,"props":6529,"children":6530},{},[6531],{"type":125,"value":6532},"The configuration node is what gets signed. This means the signature covers the specific combination of kernel, device tree, and initramfs. Swapping any component invalidates the signature.",{"type":120,"tag":128,"props":6534,"children":6536},{"id":6535},"key-generation",[6537],{"type":125,"value":6538},"Key generation",{"type":120,"tag":121,"props":6540,"children":6541},{},[6542],{"type":125,"value":6543},"Generate an RSA key pair. U-Boot supports RSA-2048, RSA-3072, and RSA-4096. Use RSA-4096 for new designs unless performance constraints dictate otherwise.",{"type":120,"tag":248,"props":6545,"children":6547},{"code":6546,"language":492,"meta":109,"className":493,"style":109},"# Illustrative U-Boot v2025.01 key-directory layout, disposable keys only\nmkdir -p keys\nopenssl genpkey -algorithm RSA -out keys/sign-key.key -pkeyopt rsa_keygen_bits:4096\nopenssl req -new -x509 -key keys/sign-key.key -out keys/sign-key.crt -subj /CN=Disposable-FIT-Test/\n",[6548],{"type":120,"tag":156,"props":6549,"children":6550},{"__ignoreMap":109},[6551,6559,6575,6618],{"type":120,"tag":258,"props":6552,"children":6553},{"class":260,"line":261},[6554],{"type":120,"tag":258,"props":6555,"children":6556},{"style":727},[6557],{"type":125,"value":6558},"# Illustrative U-Boot v2025.01 key-directory layout, disposable keys only\n",{"type":120,"tag":258,"props":6560,"children":6561},{"class":260,"line":270},[6562,6566,6570],{"type":120,"tag":258,"props":6563,"children":6564},{"style":503},[6565],{"type":125,"value":1241},{"type":120,"tag":258,"props":6567,"children":6568},{"style":509},[6569],{"type":125,"value":3540},{"type":120,"tag":258,"props":6571,"children":6572},{"style":515},[6573],{"type":125,"value":6574}," keys\n",{"type":120,"tag":258,"props":6576,"children":6577},{"class":260,"line":279},[6578,6583,6588,6593,6598,6603,6608,6613],{"type":120,"tag":258,"props":6579,"children":6580},{"style":503},[6581],{"type":125,"value":6582},"openssl",{"type":120,"tag":258,"props":6584,"children":6585},{"style":515},[6586],{"type":125,"value":6587}," genpkey",{"type":120,"tag":258,"props":6589,"children":6590},{"style":509},[6591],{"type":125,"value":6592}," -algorithm",{"type":120,"tag":258,"props":6594,"children":6595},{"style":515},[6596],{"type":125,"value":6597}," RSA",{"type":120,"tag":258,"props":6599,"children":6600},{"style":509},[6601],{"type":125,"value":6602}," -out",{"type":120,"tag":258,"props":6604,"children":6605},{"style":515},[6606],{"type":125,"value":6607}," keys/sign-key.key",{"type":120,"tag":258,"props":6609,"children":6610},{"style":509},[6611],{"type":125,"value":6612}," -pkeyopt",{"type":120,"tag":258,"props":6614,"children":6615},{"style":515},[6616],{"type":125,"value":6617}," rsa_keygen_bits:4096\n",{"type":120,"tag":258,"props":6619,"children":6620},{"class":260,"line":288},[6621,6625,6630,6635,6640,6645,6649,6653,6658,6663],{"type":120,"tag":258,"props":6622,"children":6623},{"style":503},[6624],{"type":125,"value":6582},{"type":120,"tag":258,"props":6626,"children":6627},{"style":515},[6628],{"type":125,"value":6629}," req",{"type":120,"tag":258,"props":6631,"children":6632},{"style":509},[6633],{"type":125,"value":6634}," -new",{"type":120,"tag":258,"props":6636,"children":6637},{"style":509},[6638],{"type":125,"value":6639}," -x509",{"type":120,"tag":258,"props":6641,"children":6642},{"style":509},[6643],{"type":125,"value":6644}," -key",{"type":120,"tag":258,"props":6646,"children":6647},{"style":515},[6648],{"type":125,"value":6607},{"type":120,"tag":258,"props":6650,"children":6651},{"style":509},[6652],{"type":125,"value":6602},{"type":120,"tag":258,"props":6654,"children":6655},{"style":515},[6656],{"type":125,"value":6657}," keys/sign-key.crt",{"type":120,"tag":258,"props":6659,"children":6660},{"style":509},[6661],{"type":125,"value":6662}," -subj",{"type":120,"tag":258,"props":6664,"children":6665},{"style":515},[6666],{"type":125,"value":6667}," /CN=Disposable-FIT-Test/\n",{"type":120,"tag":121,"props":6669,"children":6670},{},[6671],{"type":125,"value":6672},"The private key signs images during the build. The public key is embedded in U-Boot itself (or in the SPL that verifies U-Boot). Protect the private key; if it leaks, an attacker can sign arbitrary images.",{"type":120,"tag":128,"props":6674,"children":6676},{"id":6675},"embedding-the-public-key-in-u-boot",[6677],{"type":125,"value":6678},"Embedding the public key in U-Boot",{"type":120,"tag":121,"props":6680,"children":6681},{},[6682,6684,6689],{"type":125,"value":6683},"U-Boot stores the public key in its control device tree (the DTB compiled into U-Boot or loaded alongside it). The ",{"type":120,"tag":156,"props":6685,"children":6687},{"className":6686},[],[6688],{"type":125,"value":6109},{"type":125,"value":6690}," tool handles this during the signing step.",{"type":120,"tag":121,"props":6692,"children":6693},{},[6694,6696,6701],{"type":125,"value":6695},"Use the control DTB generated by the pinned U-Boot build. Keep a disposable copy for the signing test. ",{"type":120,"tag":156,"props":6697,"children":6699},{"className":6698},[],[6700],{"type":125,"value":6109},{"type":125,"value":6702}," creates the public-key properties from the matching certificate; a handwritten node containing only an algorithm and name is not a complete verification key.",{"type":120,"tag":121,"props":6704,"children":6705},{},[6706,6708,6714],{"type":125,"value":6707},"During the FIT signing step, ",{"type":120,"tag":156,"props":6709,"children":6711},{"className":6710},[],[6712],{"type":125,"value":6713},"mkimage -K",{"type":125,"value":6715}," writes public-key parameters into the specified control DTB. That updated DTB must be the trusted one actually used by U-Boot.",{"type":120,"tag":128,"props":6717,"children":6719},{"id":6718},"creating-and-signing-a-fit-image",[6720],{"type":125,"value":6721},"Creating and signing a FIT image",{"type":120,"tag":121,"props":6723,"children":6724},{},[6725,6727,6732],{"type":125,"value":6726},"Write a FIT image description (",{"type":120,"tag":156,"props":6728,"children":6730},{"className":6729},[],[6731],{"type":125,"value":6082},{"type":125,"value":6733}," file):",{"type":120,"tag":248,"props":6735,"children":6737},{"code":6736,"language":251,"meta":109,"className":252,"style":109},"/dts-v1/;\n\n/ {\n    description = \"Signed kernel image\";\n    #address-cells = \u003C1>;\n\n    images {\n        kernel-1 {\n            description = \"Linux kernel\";\n            data = /incbin/(\"Image.gz\");\n            type = \"kernel\";\n            arch = \"arm64\";\n            os = \"linux\";\n            compression = \"gzip\";\n            load = \u003C0x40480000>;\n            entry = \u003C0x40480000>;\n            hash-1 {\n                algo = \"sha256\";\n            };\n        };\n        fdt-1 {\n            description = \"Device tree\";\n            data = /incbin/(\"target.dtb\");\n            type = \"flat_dt\";\n            arch = \"arm64\";\n            compression = \"none\";\n            hash-1 {\n                algo = \"sha256\";\n            };\n        };\n    };\n\n    configurations {\n        default = \"conf-1\";\n        conf-1 {\n            description = \"Boot configuration\";\n            kernel = \"kernel-1\";\n            fdt = \"fdt-1\";\n            signature-1 {\n                algo = \"sha256,rsa4096\";\n                key-name-hint = \"sign-key\";\n                sign-images = \"kernel\", \"fdt\";\n            };\n        };\n    };\n};\n",[6738],{"type":120,"tag":156,"props":6739,"children":6740},{"__ignoreMap":109},[6741,6748,6755,6763,6771,6779,6786,6794,6802,6810,6818,6826,6834,6842,6850,6858,6866,6875,6884,6893,6902,6911,6920,6929,6938,6946,6955,6963,6971,6979,6987,6995,7003,7012,7021,7030,7039,7048,7057,7066,7075,7084,7093,7101,7109,7117],{"type":120,"tag":258,"props":6742,"children":6743},{"class":260,"line":261},[6744],{"type":120,"tag":258,"props":6745,"children":6746},{},[6747],{"type":125,"value":1032},{"type":120,"tag":258,"props":6749,"children":6750},{"class":260,"line":270},[6751],{"type":120,"tag":258,"props":6752,"children":6753},{"emptyLinePlaceholder":319},[6754],{"type":125,"value":322},{"type":120,"tag":258,"props":6756,"children":6757},{"class":260,"line":279},[6758],{"type":120,"tag":258,"props":6759,"children":6760},{},[6761],{"type":125,"value":6762},"/ {\n",{"type":120,"tag":258,"props":6764,"children":6765},{"class":260,"line":288},[6766],{"type":120,"tag":258,"props":6767,"children":6768},{},[6769],{"type":125,"value":6770},"    description = \"Signed kernel image\";\n",{"type":120,"tag":258,"props":6772,"children":6773},{"class":260,"line":297},[6774],{"type":120,"tag":258,"props":6775,"children":6776},{},[6777],{"type":125,"value":6778},"    #address-cells = \u003C1>;\n",{"type":120,"tag":258,"props":6780,"children":6781},{"class":260,"line":306},[6782],{"type":120,"tag":258,"props":6783,"children":6784},{"emptyLinePlaceholder":319},[6785],{"type":125,"value":322},{"type":120,"tag":258,"props":6787,"children":6788},{"class":260,"line":315},[6789],{"type":120,"tag":258,"props":6790,"children":6791},{},[6792],{"type":125,"value":6793},"    images {\n",{"type":120,"tag":258,"props":6795,"children":6796},{"class":260,"line":325},[6797],{"type":120,"tag":258,"props":6798,"children":6799},{},[6800],{"type":125,"value":6801},"        kernel-1 {\n",{"type":120,"tag":258,"props":6803,"children":6804},{"class":260,"line":334},[6805],{"type":120,"tag":258,"props":6806,"children":6807},{},[6808],{"type":125,"value":6809},"            description = \"Linux kernel\";\n",{"type":120,"tag":258,"props":6811,"children":6812},{"class":260,"line":343},[6813],{"type":120,"tag":258,"props":6814,"children":6815},{},[6816],{"type":125,"value":6817},"            data = /incbin/(\"Image.gz\");\n",{"type":120,"tag":258,"props":6819,"children":6820},{"class":260,"line":352},[6821],{"type":120,"tag":258,"props":6822,"children":6823},{},[6824],{"type":125,"value":6825},"            type = \"kernel\";\n",{"type":120,"tag":258,"props":6827,"children":6828},{"class":260,"line":361},[6829],{"type":120,"tag":258,"props":6830,"children":6831},{},[6832],{"type":125,"value":6833},"            arch = \"arm64\";\n",{"type":120,"tag":258,"props":6835,"children":6836},{"class":260,"line":370},[6837],{"type":120,"tag":258,"props":6838,"children":6839},{},[6840],{"type":125,"value":6841},"            os = \"linux\";\n",{"type":120,"tag":258,"props":6843,"children":6844},{"class":260,"line":5590},[6845],{"type":120,"tag":258,"props":6846,"children":6847},{},[6848],{"type":125,"value":6849},"            compression = \"gzip\";\n",{"type":120,"tag":258,"props":6851,"children":6852},{"class":260,"line":5613},[6853],{"type":120,"tag":258,"props":6854,"children":6855},{},[6856],{"type":125,"value":6857},"            load = \u003C0x40480000>;\n",{"type":120,"tag":258,"props":6859,"children":6860},{"class":260,"line":5622},[6861],{"type":120,"tag":258,"props":6862,"children":6863},{},[6864],{"type":125,"value":6865},"            entry = \u003C0x40480000>;\n",{"type":120,"tag":258,"props":6867,"children":6869},{"class":260,"line":6868},17,[6870],{"type":120,"tag":258,"props":6871,"children":6872},{},[6873],{"type":125,"value":6874},"            hash-1 {\n",{"type":120,"tag":258,"props":6876,"children":6878},{"class":260,"line":6877},18,[6879],{"type":120,"tag":258,"props":6880,"children":6881},{},[6882],{"type":125,"value":6883},"                algo = \"sha256\";\n",{"type":120,"tag":258,"props":6885,"children":6887},{"class":260,"line":6886},19,[6888],{"type":120,"tag":258,"props":6889,"children":6890},{},[6891],{"type":125,"value":6892},"            };\n",{"type":120,"tag":258,"props":6894,"children":6896},{"class":260,"line":6895},20,[6897],{"type":120,"tag":258,"props":6898,"children":6899},{},[6900],{"type":125,"value":6901},"        };\n",{"type":120,"tag":258,"props":6903,"children":6905},{"class":260,"line":6904},21,[6906],{"type":120,"tag":258,"props":6907,"children":6908},{},[6909],{"type":125,"value":6910},"        fdt-1 {\n",{"type":120,"tag":258,"props":6912,"children":6914},{"class":260,"line":6913},22,[6915],{"type":120,"tag":258,"props":6916,"children":6917},{},[6918],{"type":125,"value":6919},"            description = \"Device tree\";\n",{"type":120,"tag":258,"props":6921,"children":6923},{"class":260,"line":6922},23,[6924],{"type":120,"tag":258,"props":6925,"children":6926},{},[6927],{"type":125,"value":6928},"            data = /incbin/(\"target.dtb\");\n",{"type":120,"tag":258,"props":6930,"children":6932},{"class":260,"line":6931},24,[6933],{"type":120,"tag":258,"props":6934,"children":6935},{},[6936],{"type":125,"value":6937},"            type = \"flat_dt\";\n",{"type":120,"tag":258,"props":6939,"children":6941},{"class":260,"line":6940},25,[6942],{"type":120,"tag":258,"props":6943,"children":6944},{},[6945],{"type":125,"value":6833},{"type":120,"tag":258,"props":6947,"children":6949},{"class":260,"line":6948},26,[6950],{"type":120,"tag":258,"props":6951,"children":6952},{},[6953],{"type":125,"value":6954},"            compression = \"none\";\n",{"type":120,"tag":258,"props":6956,"children":6958},{"class":260,"line":6957},27,[6959],{"type":120,"tag":258,"props":6960,"children":6961},{},[6962],{"type":125,"value":6874},{"type":120,"tag":258,"props":6964,"children":6966},{"class":260,"line":6965},28,[6967],{"type":120,"tag":258,"props":6968,"children":6969},{},[6970],{"type":125,"value":6883},{"type":120,"tag":258,"props":6972,"children":6974},{"class":260,"line":6973},29,[6975],{"type":120,"tag":258,"props":6976,"children":6977},{},[6978],{"type":125,"value":6892},{"type":120,"tag":258,"props":6980,"children":6982},{"class":260,"line":6981},30,[6983],{"type":120,"tag":258,"props":6984,"children":6985},{},[6986],{"type":125,"value":6901},{"type":120,"tag":258,"props":6988,"children":6990},{"class":260,"line":6989},31,[6991],{"type":120,"tag":258,"props":6992,"children":6993},{},[6994],{"type":125,"value":1115},{"type":120,"tag":258,"props":6996,"children":6998},{"class":260,"line":6997},32,[6999],{"type":120,"tag":258,"props":7000,"children":7001},{"emptyLinePlaceholder":319},[7002],{"type":125,"value":322},{"type":120,"tag":258,"props":7004,"children":7006},{"class":260,"line":7005},33,[7007],{"type":120,"tag":258,"props":7008,"children":7009},{},[7010],{"type":125,"value":7011},"    configurations {\n",{"type":120,"tag":258,"props":7013,"children":7015},{"class":260,"line":7014},34,[7016],{"type":120,"tag":258,"props":7017,"children":7018},{},[7019],{"type":125,"value":7020},"        default = \"conf-1\";\n",{"type":120,"tag":258,"props":7022,"children":7024},{"class":260,"line":7023},35,[7025],{"type":120,"tag":258,"props":7026,"children":7027},{},[7028],{"type":125,"value":7029},"        conf-1 {\n",{"type":120,"tag":258,"props":7031,"children":7033},{"class":260,"line":7032},36,[7034],{"type":120,"tag":258,"props":7035,"children":7036},{},[7037],{"type":125,"value":7038},"            description = \"Boot configuration\";\n",{"type":120,"tag":258,"props":7040,"children":7042},{"class":260,"line":7041},37,[7043],{"type":120,"tag":258,"props":7044,"children":7045},{},[7046],{"type":125,"value":7047},"            kernel = \"kernel-1\";\n",{"type":120,"tag":258,"props":7049,"children":7051},{"class":260,"line":7050},38,[7052],{"type":120,"tag":258,"props":7053,"children":7054},{},[7055],{"type":125,"value":7056},"            fdt = \"fdt-1\";\n",{"type":120,"tag":258,"props":7058,"children":7060},{"class":260,"line":7059},39,[7061],{"type":120,"tag":258,"props":7062,"children":7063},{},[7064],{"type":125,"value":7065},"            signature-1 {\n",{"type":120,"tag":258,"props":7067,"children":7069},{"class":260,"line":7068},40,[7070],{"type":120,"tag":258,"props":7071,"children":7072},{},[7073],{"type":125,"value":7074},"                algo = \"sha256,rsa4096\";\n",{"type":120,"tag":258,"props":7076,"children":7078},{"class":260,"line":7077},41,[7079],{"type":120,"tag":258,"props":7080,"children":7081},{},[7082],{"type":125,"value":7083},"                key-name-hint = \"sign-key\";\n",{"type":120,"tag":258,"props":7085,"children":7087},{"class":260,"line":7086},42,[7088],{"type":120,"tag":258,"props":7089,"children":7090},{},[7091],{"type":125,"value":7092},"                sign-images = \"kernel\", \"fdt\";\n",{"type":120,"tag":258,"props":7094,"children":7096},{"class":260,"line":7095},43,[7097],{"type":120,"tag":258,"props":7098,"children":7099},{},[7100],{"type":125,"value":6892},{"type":120,"tag":258,"props":7102,"children":7104},{"class":260,"line":7103},44,[7105],{"type":120,"tag":258,"props":7106,"children":7107},{},[7108],{"type":125,"value":6901},{"type":120,"tag":258,"props":7110,"children":7112},{"class":260,"line":7111},45,[7113],{"type":120,"tag":258,"props":7114,"children":7115},{},[7116],{"type":125,"value":1115},{"type":120,"tag":258,"props":7118,"children":7120},{"class":260,"line":7119},46,[7121],{"type":120,"tag":258,"props":7122,"children":7123},{},[7124],{"type":125,"value":312},{"type":120,"tag":121,"props":7126,"children":7127},{},[7128],{"type":125,"value":7129},"Sign the image:",{"type":120,"tag":248,"props":7131,"children":7133},{"code":7132,"language":492,"meta":109,"className":493,"style":109},"mkimage -f image.its -k keys -K u-boot.dtb -r fitImage\n",[7134],{"type":120,"tag":156,"props":7135,"children":7136},{"__ignoreMap":109},[7137],{"type":120,"tag":258,"props":7138,"children":7139},{"class":260,"line":261},[7140,7144,7149,7154,7159,7164,7169,7174,7179],{"type":120,"tag":258,"props":7141,"children":7142},{"style":503},[7143],{"type":125,"value":6109},{"type":120,"tag":258,"props":7145,"children":7146},{"style":509},[7147],{"type":125,"value":7148}," -f",{"type":120,"tag":258,"props":7150,"children":7151},{"style":515},[7152],{"type":125,"value":7153}," image.its",{"type":120,"tag":258,"props":7155,"children":7156},{"style":509},[7157],{"type":125,"value":7158}," -k",{"type":120,"tag":258,"props":7160,"children":7161},{"style":515},[7162],{"type":125,"value":7163}," keys",{"type":120,"tag":258,"props":7165,"children":7166},{"style":509},[7167],{"type":125,"value":7168}," -K",{"type":120,"tag":258,"props":7170,"children":7171},{"style":515},[7172],{"type":125,"value":7173}," u-boot.dtb",{"type":120,"tag":258,"props":7175,"children":7176},{"style":509},[7177],{"type":125,"value":7178}," -r",{"type":120,"tag":258,"props":7180,"children":7181},{"style":515},[7182],{"type":125,"value":7183}," fitImage\n",{"type":120,"tag":121,"props":7185,"children":7186},{},[7187,7188,7194,7196,7202,7203,7209,7211,7217,7219,7225],{"type":125,"value":191},{"type":120,"tag":156,"props":7189,"children":7191},{"className":7190},[],[7192],{"type":125,"value":7193},"-k",{"type":125,"value":7195}," flag selects the directory containing matching ",{"type":120,"tag":156,"props":7197,"children":7199},{"className":7198},[],[7200],{"type":125,"value":7201},"sign-key.key",{"type":125,"value":2052},{"type":120,"tag":156,"props":7204,"children":7206},{"className":7205},[],[7207],{"type":125,"value":7208},"sign-key.crt",{"type":125,"value":7210}," files. The ",{"type":120,"tag":156,"props":7212,"children":7214},{"className":7213},[],[7215],{"type":125,"value":7216},"-K",{"type":125,"value":7218}," flag selects the control DTB to receive public-key parameters. The ",{"type":120,"tag":156,"props":7220,"children":7222},{"className":7221},[],[7223],{"type":125,"value":7224},"-r",{"type":125,"value":7226}," flag marks the key as \"required\" in the U-Boot DTB, meaning U-Boot will refuse to boot unsigned or incorrectly signed configurations.",{"type":120,"tag":128,"props":7228,"children":7230},{"id":7229},"configuring-u-boot-for-verified-boot",[7231],{"type":125,"value":7232},"Configuring U-Boot for verified boot",{"type":120,"tag":121,"props":7234,"children":7235},{},[7236],{"type":125,"value":7237},"Enable these options in your U-Boot defconfig:",{"type":120,"tag":248,"props":7239,"children":7241},{"code":7240},"CONFIG_FIT=y\nCONFIG_FIT_SIGNATURE=y\nCONFIG_RSA=y\nCONFIG_FIT_VERBOSE=y\n# CONFIG_LEGACY_IMAGE_FORMAT is not set\n",[7242],{"type":120,"tag":156,"props":7243,"children":7244},{"__ignoreMap":109},[7245],{"type":125,"value":7240},{"type":120,"tag":121,"props":7247,"children":7248},{},[7249,7251,7257],{"type":125,"value":7250},"Disabling ",{"type":120,"tag":156,"props":7252,"children":7254},{"className":7253},[],[7255],{"type":125,"value":7256},"LEGACY_IMAGE_FORMAT",{"type":125,"value":7258}," is important. If legacy image format is enabled, an attacker can bypass FIT signature verification by providing a legacy (unsigned) image instead.",{"type":120,"tag":128,"props":7260,"children":7262},{"id":7261},"boot-flow-with-verification",[7263],{"type":125,"value":7264},"Boot flow with verification",{"type":120,"tag":121,"props":7266,"children":7267},{},[7268],{"type":125,"value":7269},"When U-Boot boots a signed FIT image:",{"type":120,"tag":140,"props":7271,"children":7272},{},[7273,7278,7283,7288,7293],{"type":120,"tag":144,"props":7274,"children":7275},{},[7276],{"type":125,"value":7277},"U-Boot parses the FIT structure",{"type":120,"tag":144,"props":7279,"children":7280},{},[7281],{"type":125,"value":7282},"For each configuration, U-Boot checks if a signature node exists",{"type":120,"tag":144,"props":7284,"children":7285},{},[7286],{"type":125,"value":7287},"U-Boot computes the hash of the referenced images (kernel, DTB, etc.)",{"type":120,"tag":144,"props":7289,"children":7290},{},[7291],{"type":125,"value":7292},"U-Boot verifies the signature against the embedded public key",{"type":120,"tag":144,"props":7294,"children":7295},{},[7296],{"type":125,"value":7297},"If verification succeeds, boot proceeds. If it fails, U-Boot halts or falls back (depending on configuration)",{"type":120,"tag":128,"props":7299,"children":7301},{"id":7300},"failure-modes-and-handling",[7302],{"type":125,"value":7303},"Failure modes and handling",{"type":120,"tag":121,"props":7305,"children":7306},{},[7307],{"type":125,"value":7308},"What happens when verification fails matters as much as the verification itself.",{"type":120,"tag":121,"props":7310,"children":7311},{},[7312,7314,7320],{"type":125,"value":7313},"A failed required-signature check must stop that boot attempt. The surrounding boot script decides whether to stop or try an independently authenticated recovery image. Inspect all subsequent commands: a failed ",{"type":120,"tag":156,"props":7315,"children":7317},{"className":7316},[],[7318],{"type":125,"value":7319},"bootm",{"type":125,"value":7321}," command must not fall through to an unsigned boot path.",{"type":120,"tag":121,"props":7323,"children":7324},{},[7325],{"type":125,"value":7326},"The required key policy applies to the verified FIT operation. It does not authenticate a mutable U-Boot environment or remove alternative execution commands. Constrain those paths and test the actual deployed configuration, including recovery and provisioning modes.",{"type":120,"tag":128,"props":7328,"children":7330},{"id":7329},"recovery-mechanisms",[7331],{"type":125,"value":7332},"Recovery mechanisms",{"type":120,"tag":121,"props":7334,"children":7335},{},[7336],{"type":125,"value":7337},"A device that refuses to boot due to a failed signature check needs a recovery path:",{"type":120,"tag":994,"props":7339,"children":7340},{},[7341,7358,7368],{"type":120,"tag":144,"props":7342,"children":7343},{},[7344,7349,7351,7356],{"type":120,"tag":148,"props":7345,"children":7346},{},[7347],{"type":125,"value":7348},"Dual-bank (A/B) boot:",{"type":125,"value":7350}," Maintain two image slots. If the primary fails verification, boot the secondary. Plan ",{"type":120,"tag":1494,"props":7352,"children":7353},{"href":2538},[7354],{"type":125,"value":7355},"A/B updates and rollback",{"type":125,"value":7357}," with bounded retries and an authenticated recovery image.",{"type":120,"tag":144,"props":7359,"children":7360},{},[7361,7366],{"type":120,"tag":148,"props":7362,"children":7363},{},[7364],{"type":125,"value":7365},"Recovery partition:",{"type":125,"value":7367}," A minimal, separately-signed recovery image that can download and flash a new primary image.",{"type":120,"tag":144,"props":7369,"children":7370},{},[7371,7376],{"type":120,"tag":148,"props":7372,"children":7373},{},[7374],{"type":125,"value":7375},"Serial/USB recovery:",{"type":125,"value":7377}," U-Boot's USB DFU or serial boot modes can load a new image. These should be disabled or authenticated in production.",{"type":120,"tag":128,"props":7379,"children":7381},{"id":7380},"key-rotation",[7382],{"type":125,"value":7383},"Key rotation",{"type":120,"tag":121,"props":7385,"children":7386},{},[7387],{"type":125,"value":7388},"Plan for key rotation from the start. Embed a \"next key\" slot in your U-Boot DTB. When you need to rotate keys:",{"type":120,"tag":140,"props":7390,"children":7391},{},[7392,7397,7402],{"type":120,"tag":144,"props":7393,"children":7394},{},[7395],{"type":125,"value":7396},"Sign a transition image with the old key",{"type":120,"tag":144,"props":7398,"children":7399},{},[7400],{"type":125,"value":7401},"The transition image contains U-Boot with the new public key embedded",{"type":120,"tag":144,"props":7403,"children":7404},{},[7405],{"type":125,"value":7406},"Subsequent images are signed with the new key",{"type":120,"tag":121,"props":7408,"children":7409},{},[7410],{"type":125,"value":7411},"Without a key rotation mechanism, a compromised key means replacing U-Boot itself, which may require physical access.",{"type":120,"tag":128,"props":7413,"children":7415},{"id":7414},"testing-the-chain",[7416],{"type":125,"value":7417},"Testing the chain",{"type":120,"tag":121,"props":7419,"children":7420},{},[7421],{"type":125,"value":7422},"Test both the happy path and the failure path:",{"type":120,"tag":121,"props":7424,"children":7425},{},[7426,7428,7434],{"type":125,"value":7427},"Use the U-Boot v2025.01 sandbox verified-boot tests as the disposable integration reference. Record the source revision, build configuration and complete test log. The fragments above describe the signing layout and require board-specific addresses and input images. They have not been executed as a complete boot sequence here. ",{"type":120,"tag":1494,"props":7429,"children":7431},{"href":7430},"https://docs.u-boot.org/en/v2025.01/usage/fit/signature.html",[7432],{"type":125,"value":7433},"U-Boot v2025.01 FIT signature documentation",{"type":125,"value":460},{"type":120,"tag":121,"props":7436,"children":7437},{},[7438],{"type":125,"value":7439},"Test a valid signed configuration, a changed signed component, a missing required signature and an untrusted signing key. Use a copy of the FIT and identify the component through the image tree. A fixed byte offset can modify the wrong region. Verify that each rejected image enters the intended bounded recovery flow.",{"type":120,"tag":121,"props":7441,"children":7442},{},[7443,7445,7450],{"type":125,"value":7444},"Download the ",{"type":120,"tag":1494,"props":7446,"children":7447},{"href":5854},[7448],{"type":125,"value":7449},"implementation-review worksheet",{"type":125,"value":7451},". Record how the control DTB is authenticated, how mutable boot arguments are constrained, and which recovery commands can load code. Hardware-anchored secure boot also requires the ROM-to-bootloader chain and provisioning policy to be verified on the actual platform.",{"type":120,"tag":121,"props":7453,"children":7454},{},[7455,7457,7462],{"type":125,"value":7456},"Integrating these cases into your CI pipeline alongside ",{"type":120,"tag":1494,"props":7458,"children":7459},{"href":3289},[7460],{"type":125,"value":7461},"automated code review checks",{"type":125,"value":7463}," helps catch regressions in signing configuration before they reach hardware.",{"type":120,"tag":121,"props":7465,"children":7466},{},[7467,7469,7475],{"type":125,"value":7468},"For teams working within the ProteanOS ecosystem, ",{"type":120,"tag":1494,"props":7470,"children":7472},{"href":7471},"/doc/verified-boot-patterns-uboot-keys-failure-modes/",[7473],{"type":125,"value":7474},"U-Boot verification patterns and failure modes",{"type":125,"value":7476}," covers additional U-Boot verification scenarios including key storage locations and common failure modes across different SoC families.",{"type":120,"tag":121,"props":7478,"children":7479},{},[7480,7481,7485],{"type":125,"value":191},{"type":120,"tag":1494,"props":7482,"children":7483},{"href":1504},[7484],{"type":125,"value":3033},{"type":125,"value":7486}," includes secure boot as a bring-up milestone for new hardware platforms.",{"type":120,"tag":128,"props":7488,"children":7489},{"id":1525},[7490],{"type":125,"value":1528},{"type":120,"tag":121,"props":7492,"children":7493},{},[7494],{"type":125,"value":7495},"FIT image signing with U-Boot provides a practical, well-tested mechanism for embedded secure boot. The key steps are: generate keys, embed the public key in U-Boot, sign FIT images during the build, and configure U-Boot to require valid signatures. Test failure modes thoroughly and plan key rotation before your first production shipment.",{"type":120,"tag":1535,"props":7497,"children":7498},{},[7499],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":7501},[7502,7503,7504,7505,7506,7507,7508,7509,7510,7511,7512,7513],{"id":6422,"depth":270,"text":6425},{"id":6511,"depth":270,"text":6514},{"id":6535,"depth":270,"text":6538},{"id":6675,"depth":270,"text":6678},{"id":6718,"depth":270,"text":6721},{"id":7229,"depth":270,"text":7232},{"id":7261,"depth":270,"text":7264},{"id":7300,"depth":270,"text":7303},{"id":7329,"depth":270,"text":7332},{"id":7380,"depth":270,"text":7383},{"id":7414,"depth":270,"text":7417},{"id":1525,"depth":270,"text":1528},"content:doc:secure-boot-uboot-fit-signatures-chain-of-trust.md","doc/secure-boot-uboot-fit-signatures-chain-of-trust.md","doc/secure-boot-uboot-fit-signatures-chain-of-trust",{"_path":42,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":43,"description":44,"date":45,"lastmod":2417,"draft":108,"hero":7518,"tags":7519,"category":2416,"body":7521,"_type":1570,"_id":8293,"_source":1572,"_file":8294,"_stem":8295,"_extension":1575},"/images/hero/bootlin-toolchains-arm-riscv-2026-1600x900.jpg",[112,113,7520],"Toolchains",{"type":117,"children":7522,"toc":8272},[7523,7528,7534,7539,7567,7587,7593,7599,7612,7630,7636,7649,7666,7672,7693,7710,7722,7728,7733,7739,7752,7775,7780,7785,7790,7809,7814,7838,7844,8034,8045,8051,8056,8107,8113,8125,8131,8143,8151,8157,8170,8176,8186,8192,8197,8220,8225,8231,8236,8254,8259,8263,8268],{"type":120,"tag":121,"props":7524,"children":7525},{},[7526],{"type":125,"value":7527},"Choose a Bootlin toolchain that matches your build host, target instruction set, ABI and C library. A prebuilt archive saves the compiler build. Before selecting one, check which kernel headers, sysroot libraries and debugger features the release provides. Compile and inspect a small executable before using the toolchain for an application port.",{"type":120,"tag":128,"props":7529,"children":7531},{"id":7530},"what-bootlin-provides",[7532],{"type":125,"value":7533},"What Bootlin provides",{"type":120,"tag":121,"props":7535,"children":7536},{},[7537],{"type":125,"value":7538},"Bootlin's toolchain repository offers prebuilt GCC toolchains for a wide range of architectures. Each toolchain is built with a specific combination of:",{"type":120,"tag":994,"props":7540,"children":7541},{},[7542,7547,7552,7557,7562],{"type":120,"tag":144,"props":7543,"children":7544},{},[7545],{"type":125,"value":7546},"GCC version (typically tracking the latest stable release)",{"type":120,"tag":144,"props":7548,"children":7549},{},[7550],{"type":125,"value":7551},"Binutils version",{"type":120,"tag":144,"props":7553,"children":7554},{},[7555],{"type":125,"value":7556},"C library (glibc, musl, or uClibc-ng)",{"type":120,"tag":144,"props":7558,"children":7559},{},[7560],{"type":125,"value":7561},"Kernel headers version",{"type":120,"tag":144,"props":7563,"children":7564},{},[7565],{"type":125,"value":7566},"Architecture and ABI variant",{"type":120,"tag":121,"props":7568,"children":7569},{},[7570,7572,7578,7579,7585],{"type":125,"value":7571},"Toolchains are available as compressed tarballs. Extract, set your ",{"type":120,"tag":156,"props":7573,"children":7575},{"className":7574},[],[7576],{"type":125,"value":7577},"PATH",{"type":125,"value":2052},{"type":120,"tag":156,"props":7580,"children":7582},{"className":7581},[],[7583],{"type":125,"value":7584},"CROSS_COMPILE",{"type":125,"value":7586}," environment variables, and you are ready to build.",{"type":120,"tag":128,"props":7588,"children":7590},{"id":7589},"choosing-by-architecture",[7591],{"type":125,"value":7592},"Choosing by architecture",{"type":120,"tag":222,"props":7594,"children":7596},{"id":7595},"arm-cortex-a-32-bit",[7597],{"type":125,"value":7598},"ARM Cortex-A (32-bit)",{"type":120,"tag":121,"props":7600,"children":7601},{},[7602,7604,7610],{"type":125,"value":7603},"For Cortex-A series processors (A7, A8, A9, A15, A17), you typically need an ",{"type":120,"tag":156,"props":7605,"children":7607},{"className":7606},[],[7608],{"type":125,"value":7609},"armv7-eabihf",{"type":125,"value":7611}," toolchain. The \"hf\" suffix indicates hard-float ABI, which uses the VFP/NEON hardware floating-point unit. All modern Cortex-A parts have hardware floating point; there is no reason to use soft-float on these targets.",{"type":120,"tag":121,"props":7613,"children":7614},{},[7615,7617,7623,7624],{"type":125,"value":7616},"Bootlin variant: ",{"type":120,"tag":156,"props":7618,"children":7620},{"className":7619},[],[7621],{"type":125,"value":7622},"armv7-eabihf--glibc",{"type":125,"value":4121},{"type":120,"tag":156,"props":7625,"children":7627},{"className":7626},[],[7628],{"type":125,"value":7629},"armv7-eabihf--musl",{"type":120,"tag":222,"props":7631,"children":7633},{"id":7632},"aarch64-64-bit-arm",[7634],{"type":125,"value":7635},"AArch64 (64-bit ARM)",{"type":120,"tag":121,"props":7637,"children":7638},{},[7639,7641,7647],{"type":125,"value":7640},"For Cortex-A53, A55, A72, A76, and newer cores running in 64-bit mode, use an ",{"type":120,"tag":156,"props":7642,"children":7644},{"className":7643},[],[7645],{"type":125,"value":7646},"aarch64",{"type":125,"value":7648}," toolchain. The ABI is simpler here-there is only one standard ABI for AArch64 Linux.",{"type":120,"tag":121,"props":7650,"children":7651},{},[7652,7653,7659,7660],{"type":125,"value":7616},{"type":120,"tag":156,"props":7654,"children":7656},{"className":7655},[],[7657],{"type":125,"value":7658},"aarch64--glibc",{"type":125,"value":4121},{"type":120,"tag":156,"props":7661,"children":7663},{"className":7662},[],[7664],{"type":125,"value":7665},"aarch64--musl",{"type":120,"tag":222,"props":7667,"children":7669},{"id":7668},"risc-v-64-bit",[7670],{"type":125,"value":7671},"RISC-V 64-bit",{"type":120,"tag":121,"props":7673,"children":7674},{},[7675,7677,7683,7685,7691],{"type":125,"value":7676},"RISC-V toolchains need the correct ISA string. The standard Linux configuration is ",{"type":120,"tag":156,"props":7678,"children":7680},{"className":7679},[],[7681],{"type":125,"value":7682},"rv64gc",{"type":125,"value":7684}," (also written ",{"type":120,"tag":156,"props":7686,"children":7688},{"className":7687},[],[7689],{"type":125,"value":7690},"rv64imafdc",{"type":125,"value":7692},"), which includes integer, multiply, atomic, single-float, double-float, and compressed extensions. Most RISC-V Linux-capable SoCs implement this full set.",{"type":120,"tag":121,"props":7694,"children":7695},{},[7696,7697,7703,7704],{"type":125,"value":7616},{"type":120,"tag":156,"props":7698,"children":7700},{"className":7699},[],[7701],{"type":125,"value":7702},"riscv64-lp64d--glibc",{"type":125,"value":4121},{"type":120,"tag":156,"props":7705,"children":7707},{"className":7706},[],[7708],{"type":125,"value":7709},"riscv64-lp64d--musl",{"type":120,"tag":121,"props":7711,"children":7712},{},[7713,7714,7720],{"type":125,"value":191},{"type":120,"tag":156,"props":7715,"children":7717},{"className":7716},[],[7718],{"type":125,"value":7719},"lp64d",{"type":125,"value":7721}," ABI indicates 64-bit long/pointer with hardware double-precision float passing.",{"type":120,"tag":222,"props":7723,"children":7725},{"id":7724},"risc-v-32-bit",[7726],{"type":125,"value":7727},"RISC-V 32-bit",{"type":120,"tag":121,"props":7729,"children":7730},{},[7731],{"type":125,"value":7732},"For 32-bit RISC-V targets (less common for Linux, more common for bare-metal or RTOS), the ISA and ABI vary more. Verify your SoC's supported extensions before selecting.",{"type":120,"tag":128,"props":7734,"children":7736},{"id":7735},"choosing-between-glibc-and-musl",[7737],{"type":125,"value":7738},"Choosing between glibc and musl",{"type":120,"tag":121,"props":7740,"children":7741},{},[7742,7744,7750],{"type":125,"value":7743},"Every Bootlin toolchain is offered in at least two C library variants. The ",{"type":120,"tag":1494,"props":7745,"children":7747},{"href":7746},"/doc/cross-compilation-toolchain-triplet-clib-2026/",[7748],{"type":125,"value":7749},"cross-compilation guide",{"type":125,"value":7751}," covers the detailed trade-offs. The short version:",{"type":120,"tag":994,"props":7753,"children":7754},{},[7755,7765],{"type":120,"tag":144,"props":7756,"children":7757},{},[7758,7763],{"type":120,"tag":148,"props":7759,"children":7760},{},[7761],{"type":125,"value":7762},"glibc",{"type":125,"value":7764}," for maximum application compatibility and when rootfs size is not a primary constraint",{"type":120,"tag":144,"props":7766,"children":7767},{},[7768,7773],{"type":120,"tag":148,"props":7769,"children":7770},{},[7771],{"type":125,"value":7772},"musl",{"type":125,"value":7774}," for minimal images, static linking, or when you need deterministic, simple libc behaviour",{"type":120,"tag":121,"props":7776,"children":7777},{},[7778],{"type":125,"value":7779},"You cannot mix them. Once you choose a C library for a target, every shared library and application on that target must be built against the same one.",{"type":120,"tag":128,"props":7781,"children":7783},{"id":7782},"kernel-headers-version",[7784],{"type":125,"value":7561},{"type":120,"tag":121,"props":7786,"children":7787},{},[7788],{"type":125,"value":7789},"Each Bootlin toolchain is built against a specific Linux kernel headers version. This determines the newest kernel API your userspace can use. The rule: the toolchain headers version must be less than or equal to the kernel version you deploy.",{"type":120,"tag":121,"props":7791,"children":7792},{},[7793,7795,7801,7802,7808],{"type":125,"value":7794},"If your product ships Linux 6.1 LTS and the Bootlin toolchain was built with 6.6 headers, userspace may attempt syscalls that 6.1 does not implement. In practice, most applications use well-established syscalls and this is rarely an issue, but it can bite with newer features like ",{"type":120,"tag":156,"props":7796,"children":7798},{"className":7797},[],[7799],{"type":125,"value":7800},"io_uring",{"type":125,"value":4121},{"type":120,"tag":156,"props":7803,"children":7805},{"className":7804},[],[7806],{"type":125,"value":7807},"landlock",{"type":125,"value":460},{"type":120,"tag":121,"props":7810,"children":7811},{},[7812],{"type":125,"value":7813},"Check the headers version:",{"type":120,"tag":248,"props":7815,"children":7817},{"code":7816,"language":492,"meta":109,"className":493,"style":109},"cat ${TOOLCHAIN_PATH}/sysroot/usr/include/linux/version.h\n",[7818],{"type":120,"tag":156,"props":7819,"children":7820},{"__ignoreMap":109},[7821],{"type":120,"tag":258,"props":7822,"children":7823},{"class":260,"line":261},[7824,7828,7833],{"type":120,"tag":258,"props":7825,"children":7826},{"style":503},[7827],{"type":125,"value":738},{"type":120,"tag":258,"props":7829,"children":7830},{"style":3740},[7831],{"type":125,"value":7832}," ${TOOLCHAIN_PATH}",{"type":120,"tag":258,"props":7834,"children":7835},{"style":515},[7836],{"type":125,"value":7837},"/sysroot/usr/include/linux/version.h\n",{"type":120,"tag":128,"props":7839,"children":7841},{"id":7840},"download-and-setup-workflow",[7842],{"type":125,"value":7843},"Download and setup workflow",{"type":120,"tag":248,"props":7845,"children":7847},{"code":7846,"language":492,"meta":109,"className":493,"style":109},"# Download (example: AArch64 glibc)\nwget https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--glibc--stable-2024.11-1.tar.xz\n\n# Extract\ntar xf aarch64--glibc--stable-2024.11-1.tar.xz\n\n# Set environment\nexport TOOLCHAIN_PATH=$(pwd)/aarch64--glibc--stable-2024.11-1\nexport PATH=${TOOLCHAIN_PATH}/bin:${PATH}\nexport CROSS_COMPILE=aarch64-linux-\n\n# Verify\naarch64-linux-gcc --version\naarch64-linux-gcc -dumpmachine\n",[7848],{"type":120,"tag":156,"props":7849,"children":7850},{"__ignoreMap":109},[7851,7859,7872,7879,7887,7905,7912,7920,7953,7974,7995,8002,8010,8022],{"type":120,"tag":258,"props":7852,"children":7853},{"class":260,"line":261},[7854],{"type":120,"tag":258,"props":7855,"children":7856},{"style":727},[7857],{"type":125,"value":7858},"# Download (example: AArch64 glibc)\n",{"type":120,"tag":258,"props":7860,"children":7861},{"class":260,"line":270},[7862,7867],{"type":120,"tag":258,"props":7863,"children":7864},{"style":503},[7865],{"type":125,"value":7866},"wget",{"type":120,"tag":258,"props":7868,"children":7869},{"style":515},[7870],{"type":125,"value":7871}," https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--glibc--stable-2024.11-1.tar.xz\n",{"type":120,"tag":258,"props":7873,"children":7874},{"class":260,"line":279},[7875],{"type":120,"tag":258,"props":7876,"children":7877},{"emptyLinePlaceholder":319},[7878],{"type":125,"value":322},{"type":120,"tag":258,"props":7880,"children":7881},{"class":260,"line":288},[7882],{"type":120,"tag":258,"props":7883,"children":7884},{"style":727},[7885],{"type":125,"value":7886},"# Extract\n",{"type":120,"tag":258,"props":7888,"children":7889},{"class":260,"line":297},[7890,7895,7900],{"type":120,"tag":258,"props":7891,"children":7892},{"style":503},[7893],{"type":125,"value":7894},"tar",{"type":120,"tag":258,"props":7896,"children":7897},{"style":515},[7898],{"type":125,"value":7899}," xf",{"type":120,"tag":258,"props":7901,"children":7902},{"style":515},[7903],{"type":125,"value":7904}," aarch64--glibc--stable-2024.11-1.tar.xz\n",{"type":120,"tag":258,"props":7906,"children":7907},{"class":260,"line":306},[7908],{"type":120,"tag":258,"props":7909,"children":7910},{"emptyLinePlaceholder":319},[7911],{"type":125,"value":322},{"type":120,"tag":258,"props":7913,"children":7914},{"class":260,"line":315},[7915],{"type":120,"tag":258,"props":7916,"children":7917},{"style":727},[7918],{"type":125,"value":7919},"# Set environment\n",{"type":120,"tag":258,"props":7921,"children":7922},{"class":260,"line":325},[7923,7928,7933,7938,7943,7948],{"type":120,"tag":258,"props":7924,"children":7925},{"style":662},[7926],{"type":125,"value":7927},"export",{"type":120,"tag":258,"props":7929,"children":7930},{"style":3740},[7931],{"type":125,"value":7932}," TOOLCHAIN_PATH",{"type":120,"tag":258,"props":7934,"children":7935},{"style":662},[7936],{"type":125,"value":7937},"=",{"type":120,"tag":258,"props":7939,"children":7940},{"style":3740},[7941],{"type":125,"value":7942},"$(",{"type":120,"tag":258,"props":7944,"children":7945},{"style":509},[7946],{"type":125,"value":7947},"pwd",{"type":120,"tag":258,"props":7949,"children":7950},{"style":3740},[7951],{"type":125,"value":7952},")/aarch64--glibc--stable-2024.11-1\n",{"type":120,"tag":258,"props":7954,"children":7955},{"class":260,"line":334},[7956,7960,7965,7969],{"type":120,"tag":258,"props":7957,"children":7958},{"style":662},[7959],{"type":125,"value":7927},{"type":120,"tag":258,"props":7961,"children":7962},{"style":3740},[7963],{"type":125,"value":7964}," PATH",{"type":120,"tag":258,"props":7966,"children":7967},{"style":662},[7968],{"type":125,"value":7937},{"type":120,"tag":258,"props":7970,"children":7971},{"style":3740},[7972],{"type":125,"value":7973},"${TOOLCHAIN_PATH}/bin:${PATH}\n",{"type":120,"tag":258,"props":7975,"children":7976},{"class":260,"line":343},[7977,7981,7986,7990],{"type":120,"tag":258,"props":7978,"children":7979},{"style":662},[7980],{"type":125,"value":7927},{"type":120,"tag":258,"props":7982,"children":7983},{"style":3740},[7984],{"type":125,"value":7985}," CROSS_COMPILE",{"type":120,"tag":258,"props":7987,"children":7988},{"style":662},[7989],{"type":125,"value":7937},{"type":120,"tag":258,"props":7991,"children":7992},{"style":3740},[7993],{"type":125,"value":7994},"aarch64-linux-\n",{"type":120,"tag":258,"props":7996,"children":7997},{"class":260,"line":352},[7998],{"type":120,"tag":258,"props":7999,"children":8000},{"emptyLinePlaceholder":319},[8001],{"type":125,"value":322},{"type":120,"tag":258,"props":8003,"children":8004},{"class":260,"line":361},[8005],{"type":120,"tag":258,"props":8006,"children":8007},{"style":727},[8008],{"type":125,"value":8009},"# Verify\n",{"type":120,"tag":258,"props":8011,"children":8012},{"class":260,"line":370},[8013,8018],{"type":120,"tag":258,"props":8014,"children":8015},{"style":503},[8016],{"type":125,"value":8017},"aarch64-linux-gcc",{"type":120,"tag":258,"props":8019,"children":8020},{"style":509},[8021],{"type":125,"value":3599},{"type":120,"tag":258,"props":8023,"children":8024},{"class":260,"line":5590},[8025,8029],{"type":120,"tag":258,"props":8026,"children":8027},{"style":503},[8028],{"type":125,"value":8017},{"type":120,"tag":258,"props":8030,"children":8031},{"style":509},[8032],{"type":125,"value":8033}," -dumpmachine\n",{"type":120,"tag":121,"props":8035,"children":8036},{},[8037,8038,8043],{"type":125,"value":191},{"type":120,"tag":156,"props":8039,"children":8041},{"className":8040},[],[8042],{"type":125,"value":7584},{"type":125,"value":8044}," prefix is what kernel and U-Boot Makefiles expect. Set it once in your shell or build script.",{"type":120,"tag":128,"props":8046,"children":8048},{"id":8047},"validation-checklist",[8049],{"type":125,"value":8050},"Validation checklist",{"type":120,"tag":121,"props":8052,"children":8053},{},[8054],{"type":125,"value":8055},"Before committing to a toolchain for production use:",{"type":120,"tag":140,"props":8057,"children":8058},{},[8059,8069,8079,8097],{"type":120,"tag":144,"props":8060,"children":8061},{},[8062,8067],{"type":120,"tag":148,"props":8063,"children":8064},{},[8065],{"type":125,"value":8066},"Build the kernel:",{"type":125,"value":8068}," Compile your target kernel with the toolchain. Boot it on hardware or QEMU. A kernel build exercises the assembler, compiler, and linker thoroughly.",{"type":120,"tag":144,"props":8070,"children":8071},{},[8072,8077],{"type":120,"tag":148,"props":8073,"children":8074},{},[8075],{"type":125,"value":8076},"Build a minimal userspace:",{"type":125,"value":8078}," Compile BusyBox or a simple init program. Run it on target. This validates the C library and dynamic linker.",{"type":120,"tag":144,"props":8080,"children":8081},{},[8082,8087,8089,8095],{"type":120,"tag":148,"props":8083,"children":8084},{},[8085],{"type":125,"value":8086},"Check ABI consistency:",{"type":125,"value":8088}," Use ",{"type":120,"tag":156,"props":8090,"children":8092},{"className":8091},[],[8093],{"type":125,"value":8094},"readelf -A",{"type":125,"value":8096}," on a compiled binary and verify the ABI flags match your target hardware.",{"type":120,"tag":144,"props":8098,"children":8099},{},[8100,8105],{"type":120,"tag":148,"props":8101,"children":8102},{},[8103],{"type":125,"value":8104},"Run the test suite",{"type":125,"value":8106}," (optional but recommended): Bootlin runs toolchain test suites before release, but running your own application-specific tests catches integration issues early.",{"type":120,"tag":128,"props":8108,"children":8110},{"id":8109},"using-bootlin-toolchains-with-build-systems",[8111],{"type":125,"value":8112},"Using Bootlin toolchains with build systems",{"type":120,"tag":121,"props":8114,"children":8115},{},[8116,8118,8123],{"type":125,"value":8117},"If the build system is still undecided, compare ",{"type":120,"tag":1494,"props":8119,"children":8120},{"href":2945},[8121],{"type":125,"value":8122},"Buildroot vs Yocto",{"type":125,"value":8124}," before choosing an external toolchain. Confirm that the selected BSP and libc combination are supported.",{"type":120,"tag":222,"props":8126,"children":8128},{"id":8127},"with-buildroot",[8129],{"type":125,"value":8130},"With Buildroot",{"type":120,"tag":121,"props":8132,"children":8133},{},[8134,8136,8142],{"type":125,"value":8135},"Buildroot has native support for external toolchains. In your ",{"type":120,"tag":156,"props":8137,"children":8139},{"className":8138},[],[8140],{"type":125,"value":8141},".config",{"type":125,"value":858},{"type":120,"tag":248,"props":8144,"children":8146},{"code":8145},"BR2_TOOLCHAIN_EXTERNAL=y\nBR2_TOOLCHAIN_EXTERNAL_CUSTOM=y\nBR2_TOOLCHAIN_EXTERNAL_PATH=\"/path/to/aarch64--glibc--stable-2024.11-1\"\nBR2_TOOLCHAIN_EXTERNAL_PREFIX=\"aarch64-linux\"\n",[8147],{"type":120,"tag":156,"props":8148,"children":8149},{"__ignoreMap":109},[8150],{"type":125,"value":8145},{"type":120,"tag":222,"props":8152,"children":8154},{"id":8153},"with-yocto",[8155],{"type":125,"value":8156},"With Yocto",{"type":120,"tag":121,"props":8158,"children":8159},{},[8160,8162,8168],{"type":125,"value":8161},"Yocto can use external toolchains through meta-sourcery or by configuring the ",{"type":120,"tag":156,"props":8163,"children":8165},{"className":8164},[],[8166],{"type":125,"value":8167},"EXTERNAL_TOOLCHAIN",{"type":125,"value":8169}," variable. This bypasses Yocto's native toolchain build, saving significant build time.",{"type":120,"tag":222,"props":8171,"children":8173},{"id":8172},"with-proteanos-prokit",[8174],{"type":125,"value":8175},"With ProteanOS ProKit",{"type":120,"tag":121,"props":8177,"children":8178},{},[8179,8180,8184],{"type":125,"value":191},{"type":120,"tag":1494,"props":8181,"children":8182},{"href":1517},[8183],{"type":125,"value":4830},{"type":125,"value":8185}," explains how to configure the toolchain path for ProteanOS builds. ProKit detects the toolchain's target triplet and C library automatically from the compiler's self-reported configuration.",{"type":120,"tag":128,"props":8187,"children":8189},{"id":8188},"updating-toolchains",[8190],{"type":125,"value":8191},"Updating toolchains",{"type":120,"tag":121,"props":8193,"children":8194},{},[8195],{"type":125,"value":8196},"Bootlin releases updated toolchains regularly, tracking upstream GCC and binutils releases. When updating:",{"type":120,"tag":140,"props":8198,"children":8199},{},[8200,8205,8210,8215],{"type":120,"tag":144,"props":8201,"children":8202},{},[8203],{"type":125,"value":8204},"Download the new toolchain version",{"type":120,"tag":144,"props":8206,"children":8207},{},[8208],{"type":125,"value":8209},"Rebuild your entire image (kernel + rootfs) with the new toolchain",{"type":120,"tag":144,"props":8211,"children":8212},{},[8213],{"type":125,"value":8214},"Run your full test suite on target hardware",{"type":120,"tag":144,"props":8216,"children":8217},{},[8218],{"type":125,"value":8219},"Document the toolchain version in your build configuration",{"type":120,"tag":121,"props":8221,"children":8222},{},[8223],{"type":125,"value":8224},"Do not mix object files compiled with different toolchain versions in the same image. The C library version must be consistent across all userspace components.",{"type":120,"tag":128,"props":8226,"children":8228},{"id":8227},"when-bootlin-toolchains-are-not-enough",[8229],{"type":125,"value":8230},"When Bootlin toolchains are not enough",{"type":120,"tag":121,"props":8232,"children":8233},{},[8234],{"type":125,"value":8235},"Bootlin covers the most common architecture and ABI combinations, but you may need a custom toolchain when:",{"type":120,"tag":994,"props":8237,"children":8238},{},[8239,8244,8249],{"type":120,"tag":144,"props":8240,"children":8241},{},[8242],{"type":125,"value":8243},"Your target uses a non-standard ISA extension set (e.g., RISC-V with vector extensions)",{"type":120,"tag":144,"props":8245,"children":8246},{},[8247],{"type":125,"value":8248},"You need a specific GCC version for a compiler bug workaround",{"type":120,"tag":144,"props":8250,"children":8251},{},[8252],{"type":125,"value":8253},"Your organisation requires toolchain provenance documentation for certification",{"type":120,"tag":121,"props":8255,"children":8256},{},[8257],{"type":125,"value":8258},"In these cases, crosstool-NG or your build system's native toolchain builder is the right approach. The board bring-up documentation covers toolchain selection as part of the broader board bring-up process.",{"type":120,"tag":128,"props":8260,"children":8261},{"id":1525},[8262],{"type":125,"value":1528},{"type":120,"tag":121,"props":8264,"children":8265},{},[8266],{"type":125,"value":8267},"Bootlin prebuilt toolchains eliminate one of the most time-consuming steps in embedded Linux development. Choose based on your target architecture, C library preference, and kernel headers version. Validate thoroughly before production use, and treat toolchain updates as first-class milestones in your release process.",{"type":120,"tag":1535,"props":8269,"children":8270},{},[8271],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":8273},[8274,8275,8281,8282,8283,8284,8285,8290,8291,8292],{"id":7530,"depth":270,"text":7533},{"id":7589,"depth":270,"text":7592,"children":8276},[8277,8278,8279,8280],{"id":7595,"depth":279,"text":7598},{"id":7632,"depth":279,"text":7635},{"id":7668,"depth":279,"text":7671},{"id":7724,"depth":279,"text":7727},{"id":7735,"depth":270,"text":7738},{"id":7782,"depth":270,"text":7561},{"id":7840,"depth":270,"text":7843},{"id":8047,"depth":270,"text":8050},{"id":8109,"depth":270,"text":8112,"children":8286},[8287,8288,8289],{"id":8127,"depth":279,"text":8130},{"id":8153,"depth":279,"text":8156},{"id":8172,"depth":279,"text":8175},{"id":8188,"depth":270,"text":8191},{"id":8227,"depth":270,"text":8230},{"id":1525,"depth":270,"text":1528},"content:doc:bootlin-toolchains-arm-riscv-2026.md","doc/bootlin-toolchains-arm-riscv-2026.md","doc/bootlin-toolchains-arm-riscv-2026",{"_path":52,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":53,"description":54,"date":55,"lastmod":3339,"draft":108,"hero":8297,"tags":8298,"category":2416,"body":8299,"_type":1570,"_id":9298,"_source":1572,"_file":9299,"_stem":9300,"_extension":1575},"/images/hero/cross-compilation-toolchain-triplet-clib-2026-1600x900.jpg",[112,113,7520],{"type":117,"children":8300,"toc":9278},[8301,8306,8312,8333,8380,8393,8398,8404,8409,8413,8418,8461,8465,8470,8513,8519,8606,8619,8645,8651,8656,8669,8675,8695,8768,8885,8890,8902,8908,8913,8919,8932,8937,8943,8962,8967,8973,8978,8984,8989,8994,9000,9005,9024,9030,9040,9050,9060,9092,9098,9103,9230,9248,9254,9259,9264,9274],{"type":120,"tag":121,"props":8302,"children":8303},{},[8304],{"type":125,"value":8305},"Cross-compilation is the foundational skill for embedded Linux work. You build on one architecture (usually x86_64) and produce binaries for another (ARM, RISC-V, MIPS, or others). Getting the toolchain right determines whether your binaries actually run on target hardware, whether they link against the correct libraries, and whether security patches apply cleanly over the product's lifetime.",{"type":120,"tag":128,"props":8307,"children":8309},{"id":8308},"the-target-triplet-decoded",[8310],{"type":125,"value":8311},"The target triplet, decoded",{"type":120,"tag":121,"props":8313,"children":8314},{},[8315,8317,8323,8325,8331],{"type":125,"value":8316},"Every cross-compilation toolchain encodes its target in a triplet (or quadruplet). The format is ",{"type":120,"tag":156,"props":8318,"children":8320},{"className":8319},[],[8321],{"type":125,"value":8322},"arch-vendor-os-abi",{"type":125,"value":8324}," or simply ",{"type":120,"tag":156,"props":8326,"children":8328},{"className":8327},[],[8329],{"type":125,"value":8330},"arch-os-abi",{"type":125,"value":8332},". Examples:",{"type":120,"tag":994,"props":8334,"children":8335},{},[8336,8347,8358,8369],{"type":120,"tag":144,"props":8337,"children":8338},{},[8339,8345],{"type":120,"tag":156,"props":8340,"children":8342},{"className":8341},[],[8343],{"type":125,"value":8344},"arm-linux-gnueabihf",{"type":125,"value":8346},"  -  ARM, Linux, glibc, hard-float ABI",{"type":120,"tag":144,"props":8348,"children":8349},{},[8350,8356],{"type":120,"tag":156,"props":8351,"children":8353},{"className":8352},[],[8354],{"type":125,"value":8355},"aarch64-linux-musl",{"type":125,"value":8357},"  -  64-bit ARM, Linux, musl libc",{"type":120,"tag":144,"props":8359,"children":8360},{},[8361,8367],{"type":120,"tag":156,"props":8362,"children":8364},{"className":8363},[],[8365],{"type":125,"value":8366},"riscv64-unknown-linux-gnu",{"type":125,"value":8368},"  -  64-bit RISC-V, Linux, glibc",{"type":120,"tag":144,"props":8370,"children":8371},{},[8372,8378],{"type":120,"tag":156,"props":8373,"children":8375},{"className":8374},[],[8376],{"type":125,"value":8377},"arm-linux-musleabi",{"type":125,"value":8379},"  -  ARM, Linux, musl, EABI soft or softfp",{"type":120,"tag":121,"props":8381,"children":8382},{},[8383,8385,8391],{"type":125,"value":8384},"Each component matters. The architecture sets the instruction set. The OS component (almost always ",{"type":120,"tag":156,"props":8386,"children":8388},{"className":8387},[],[8389],{"type":125,"value":8390},"linux",{"type":125,"value":8392},") selects the kernel API headers. The ABI suffix determines calling conventions and, critically, which C library the toolchain was built against.",{"type":120,"tag":121,"props":8394,"children":8395},{},[8396],{"type":125,"value":8397},"Getting the triplet wrong produces binaries that segfault on startup or, worse, appear to work but exhibit subtle floating-point corruption on certain inputs.",{"type":120,"tag":128,"props":8399,"children":8401},{"id":8400},"glibc-vs-musl-compatibility",[8402],{"type":125,"value":8403},"glibc vs musl compatibility",{"type":120,"tag":121,"props":8405,"children":8406},{},[8407],{"type":125,"value":8408},"The C library choice shapes your entire userspace. Both glibc and musl implement POSIX, but their design philosophies and practical trade-offs differ significantly.",{"type":120,"tag":222,"props":8410,"children":8411},{"id":7762},[8412],{"type":125,"value":7762},{"type":120,"tag":121,"props":8414,"children":8415},{},[8416],{"type":125,"value":8417},"glibc is the GNU C Library. It is used by many Linux distributions and is a common target for vendor-provided userspace binaries. Key characteristics:",{"type":120,"tag":994,"props":8419,"children":8420},{},[8421,8431,8441,8451],{"type":120,"tag":144,"props":8422,"children":8423},{},[8424,8429],{"type":120,"tag":148,"props":8425,"children":8426},{},[8427],{"type":125,"value":8428},"Broad compatibility:",{"type":125,"value":8430}," Many prebuilt Linux binaries target glibc. Verify each supplier binary and its required symbol versions.",{"type":120,"tag":144,"props":8432,"children":8433},{},[8434,8439],{"type":120,"tag":148,"props":8435,"children":8436},{},[8437],{"type":125,"value":8438},"NSS and locale support:",{"type":125,"value":8440}," Full Name Service Switch, locale handling, and iconv. Test resolver, locale and NSS dependencies used by the application.",{"type":120,"tag":144,"props":8442,"children":8443},{},[8444,8449],{"type":120,"tag":148,"props":8445,"children":8446},{},[8447],{"type":125,"value":8448},"Larger footprint:",{"type":125,"value":8450}," Measure the complete deployed library and locale footprint. Installed locale data can change the storage budget.",{"type":120,"tag":144,"props":8452,"children":8453},{},[8454,8459],{"type":120,"tag":148,"props":8455,"children":8456},{},[8457],{"type":125,"value":8458},"Stable ABI:",{"type":125,"value":8460}," glibc maintains aggressive backward compatibility. Check required symbol versions, architecture and libraries before relying on compatibility.",{"type":120,"tag":222,"props":8462,"children":8463},{"id":7772},[8464],{"type":125,"value":7772},{"type":120,"tag":121,"props":8466,"children":8467},{},[8468],{"type":125,"value":8469},"musl is a lightweight C library designed for correctness and simplicity. Key characteristics:",{"type":120,"tag":994,"props":8471,"children":8472},{},[8473,8483,8493,8503],{"type":120,"tag":144,"props":8474,"children":8475},{},[8476,8481],{"type":120,"tag":148,"props":8477,"children":8478},{},[8479],{"type":125,"value":8480},"Small footprint:",{"type":125,"value":8482}," Measure the selected libraries and application binaries. Static linking includes the required library code, whose total size depends on the application.",{"type":120,"tag":144,"props":8484,"children":8485},{},[8486,8491],{"type":120,"tag":148,"props":8487,"children":8488},{},[8489],{"type":125,"value":8490},"Static linking friendly:",{"type":125,"value":8492}," musl is explicitly designed for static linking. Still verify the kernel interfaces, architecture extensions and external runtime files required by the application.",{"type":120,"tag":144,"props":8494,"children":8495},{},[8496,8501],{"type":120,"tag":148,"props":8497,"children":8498},{},[8499],{"type":125,"value":8500},"Different extension support:",{"type":125,"value":8502}," Code that depends on glibc-specific interfaces may need porting. Test the exact functions used by the application.",{"type":120,"tag":144,"props":8504,"children":8505},{},[8506,8511],{"type":120,"tag":148,"props":8507,"children":8508},{},[8509],{"type":125,"value":8510},"No glibc NSS modules:",{"type":125,"value":8512}," DNS resolution uses a built-in resolver. Complex name-resolution stacks (LDAP, mDNS) require additional work.",{"type":120,"tag":222,"props":8514,"children":8516},{"id":8515},"practical-decision-criteria",[8517],{"type":125,"value":8518},"Practical decision criteria",{"type":120,"tag":2638,"props":8520,"children":8521},{},[8522,8538],{"type":120,"tag":2642,"props":8523,"children":8524},{},[8525],{"type":120,"tag":2646,"props":8526,"children":8527},{},[8528,8533],{"type":120,"tag":2650,"props":8529,"children":8530},{},[8531],{"type":125,"value":8532},"Decision",{"type":120,"tag":2650,"props":8534,"children":8535},{},[8536],{"type":125,"value":8537},"Compatibility evidence to collect",{"type":120,"tag":2671,"props":8539,"children":8540},{},[8541,8554,8567,8580,8593],{"type":120,"tag":2646,"props":8542,"children":8543},{},[8544,8549],{"type":120,"tag":2678,"props":8545,"children":8546},{},[8547],{"type":125,"value":8548},"Vendor binaries",{"type":120,"tag":2678,"props":8550,"children":8551},{},[8552],{"type":125,"value":8553},"Required interpreter, architecture, shared libraries and symbol versions",{"type":120,"tag":2646,"props":8555,"children":8556},{},[8557,8562],{"type":120,"tag":2678,"props":8558,"children":8559},{},[8560],{"type":125,"value":8561},"Dynamic or static linking",{"type":120,"tag":2678,"props":8563,"children":8564},{},[8565],{"type":125,"value":8566},"Complete installed footprint, plugin behaviour and update responsibility",{"type":120,"tag":2646,"props":8568,"children":8569},{},[8570,8575],{"type":120,"tag":2678,"props":8571,"children":8572},{},[8573],{"type":125,"value":8574},"Resolver and locale behaviour",{"type":120,"tag":2678,"props":8576,"children":8577},{},[8578],{"type":125,"value":8579},"Required NSS modules, lookup order, character handling and application tests",{"type":120,"tag":2646,"props":8581,"children":8582},{},[8583,8588],{"type":120,"tag":2678,"props":8584,"children":8585},{},[8586],{"type":125,"value":8587},"Debugging",{"type":120,"tag":2678,"props":8589,"children":8590},{},[8591],{"type":125,"value":8592},"Matching debug symbols, target tools and repeatable failure reproduction",{"type":120,"tag":2646,"props":8594,"children":8595},{},[8596,8601],{"type":120,"tag":2678,"props":8597,"children":8598},{},[8599],{"type":125,"value":8600},"Hardening",{"type":120,"tag":2678,"props":8602,"children":8603},{},[8604],{"type":125,"value":8605},"Actual compiler/linker flags, kernel features and verification of the generated executable",{"type":120,"tag":121,"props":8607,"children":8608},{},[8609,8611,8617],{"type":125,"value":8610},"Choose with the actual dependency set. An unavailable source dependency or proprietary glibc binary can decide the libc choice before size matters. The ",{"type":120,"tag":1494,"props":8612,"children":8614},{"href":8613},"https://wiki.musl-libc.org/functional-differences-from-glibc.html",[8615],{"type":125,"value":8616},"musl functional differences",{"type":125,"value":8618}," identify resolver, dynamic-linker, threading and locale cases to include in application tests. Source portability, resolver behaviour and dynamic-loading requirements need target tests.",{"type":120,"tag":4198,"props":8620,"children":8622},{"className":8621},[4201,4202],[8623],{"type":120,"tag":4198,"props":8624,"children":8626},{"className":8625},[4207],[8627,8633],{"type":120,"tag":121,"props":8628,"children":8630},{"className":8629},[4212],[8631],{"type":125,"value":8632},"Understand what sits beneath the toolchain",{"type":120,"tag":121,"props":8634,"children":8635},{},[8636,8638,8643],{"type":125,"value":8637},"Target triplets, ABIs, and C library behaviour all trace back to OS fundamentals - how the kernel exposes syscalls, how the linker resolves symbols, and how processes load shared libraries. The ",{"type":120,"tag":1494,"props":8639,"children":8641},{"href":2620,"target":2621,"rel":8640},[2623,2624,2625],[8642],{"type":125,"value":2628},{"type":125,"value":8644}," course covers these mechanisms in depth.",{"type":120,"tag":128,"props":8646,"children":8648},{"id":8647},"build-host-and-target",[8649],{"type":125,"value":8650},"Build, host and target",{"type":120,"tag":121,"props":8652,"children":8653},{},[8654],{"type":125,"value":8655},"In GNU build terminology, build names the machine running the build, host names the machine where the resulting program runs, and target matters when that program itself produces code. For a cross compiler, host and target can therefore differ. For an ordinary application, record build and host explicitly instead of assuming a triplet proves the whole environment.",{"type":120,"tag":121,"props":8657,"children":8658},{},[8659,8661,8667],{"type":125,"value":8660},"An ",{"type":120,"tag":156,"props":8662,"children":8664},{"className":8663},[],[8665],{"type":125,"value":8666},"arm-none-eabi",{"type":125,"value":8668}," bare-metal compiler does not supply a Linux userspace ABI. A Linux compiler and sysroot supply different startup objects and libraries. Use the SDK selected for the board and operating environment, then inspect a known program before attempting the application port.",{"type":120,"tag":128,"props":8670,"children":8672},{"id":8671},"inspecting-a-known-binary",[8673],{"type":125,"value":8674},"Inspecting a known binary",{"type":120,"tag":121,"props":8676,"children":8677},{},[8678,8680,8686,8688,8694],{"type":125,"value":8679},"Build the small ",{"type":120,"tag":156,"props":8681,"children":8683},{"className":8682},[],[8684],{"type":125,"value":8685},"test.c",{"type":125,"value":8687}," fixture in the verification workflow below using your selected SDK. Inspect its bytes locally with current binutils. These commands read the known executable without running it. ",{"type":120,"tag":1494,"props":8689,"children":8691},{"href":8690},"https://sourceware.org/binutils/docs/binutils/readelf.html",[8692],{"type":125,"value":8693},"GNU readelf documentation",{"type":125,"value":460},{"type":120,"tag":248,"props":8696,"children":8698},{"className":493,"code":8697,"language":492,"meta":109,"style":109},"readelf -h test\nreadelf -l test\nreadelf -d test\nreadelf --version-info test\n",[8699],{"type":120,"tag":156,"props":8700,"children":8701},{"__ignoreMap":109},[8702,8720,8736,8752],{"type":120,"tag":258,"props":8703,"children":8704},{"class":260,"line":261},[8705,8710,8715],{"type":120,"tag":258,"props":8706,"children":8707},{"style":503},[8708],{"type":125,"value":8709},"readelf",{"type":120,"tag":258,"props":8711,"children":8712},{"style":509},[8713],{"type":125,"value":8714}," -h",{"type":120,"tag":258,"props":8716,"children":8717},{"style":515},[8718],{"type":125,"value":8719}," test\n",{"type":120,"tag":258,"props":8721,"children":8722},{"class":260,"line":270},[8723,8727,8732],{"type":120,"tag":258,"props":8724,"children":8725},{"style":503},[8726],{"type":125,"value":8709},{"type":120,"tag":258,"props":8728,"children":8729},{"style":509},[8730],{"type":125,"value":8731}," -l",{"type":120,"tag":258,"props":8733,"children":8734},{"style":515},[8735],{"type":125,"value":8719},{"type":120,"tag":258,"props":8737,"children":8738},{"class":260,"line":279},[8739,8743,8748],{"type":120,"tag":258,"props":8740,"children":8741},{"style":503},[8742],{"type":125,"value":8709},{"type":120,"tag":258,"props":8744,"children":8745},{"style":509},[8746],{"type":125,"value":8747}," -d",{"type":120,"tag":258,"props":8749,"children":8750},{"style":515},[8751],{"type":125,"value":8719},{"type":120,"tag":258,"props":8753,"children":8754},{"class":260,"line":288},[8755,8759,8764],{"type":120,"tag":258,"props":8756,"children":8757},{"style":503},[8758],{"type":125,"value":8709},{"type":120,"tag":258,"props":8760,"children":8761},{"style":509},[8762],{"type":125,"value":8763}," --version-info",{"type":120,"tag":258,"props":8765,"children":8766},{"style":515},[8767],{"type":125,"value":8719},{"type":120,"tag":2638,"props":8769,"children":8770},{},[8771,8792],{"type":120,"tag":2642,"props":8772,"children":8773},{},[8774],{"type":120,"tag":2646,"props":8775,"children":8776},{},[8777,8782,8787],{"type":120,"tag":2650,"props":8778,"children":8779},{},[8780],{"type":125,"value":8781},"Inspection",{"type":120,"tag":2650,"props":8783,"children":8784},{},[8785],{"type":125,"value":8786},"Evidence",{"type":120,"tag":2650,"props":8788,"children":8789},{},[8790],{"type":125,"value":8791},"Remaining check",{"type":120,"tag":2671,"props":8793,"children":8794},{},[8795,8813,8831,8849,8867],{"type":120,"tag":2646,"props":8796,"children":8797},{},[8798,8803,8808],{"type":120,"tag":2678,"props":8799,"children":8800},{},[8801],{"type":125,"value":8802},"ELF header",{"type":120,"tag":2678,"props":8804,"children":8805},{},[8806],{"type":125,"value":8807},"Machine, class, byte order and ABI flags",{"type":120,"tag":2678,"props":8809,"children":8810},{},[8811],{"type":125,"value":8812},"Board instruction-set extensions and calling convention",{"type":120,"tag":2646,"props":8814,"children":8815},{},[8816,8821,8826],{"type":120,"tag":2678,"props":8817,"children":8818},{},[8819],{"type":125,"value":8820},"Program headers",{"type":120,"tag":2678,"props":8822,"children":8823},{},[8824],{"type":125,"value":8825},"Requested interpreter for a dynamic executable",{"type":120,"tag":2678,"props":8827,"children":8828},{},[8829],{"type":125,"value":8830},"That exact loader exists in the target image",{"type":120,"tag":2646,"props":8832,"children":8833},{},[8834,8839,8844],{"type":120,"tag":2678,"props":8835,"children":8836},{},[8837],{"type":125,"value":8838},"Dynamic section",{"type":120,"tag":2678,"props":8840,"children":8841},{},[8842],{"type":125,"value":8843},"Declared shared-library dependencies",{"type":120,"tag":2678,"props":8845,"children":8846},{},[8847],{"type":125,"value":8848},"Compatible target versions and runtime-loaded plugins",{"type":120,"tag":2646,"props":8850,"children":8851},{},[8852,8857,8862],{"type":120,"tag":2678,"props":8853,"children":8854},{},[8855],{"type":125,"value":8856},"Version information",{"type":120,"tag":2678,"props":8858,"children":8859},{},[8860],{"type":125,"value":8861},"Required versioned symbols such as GLIBC versions",{"type":120,"tag":2678,"props":8863,"children":8864},{},[8865],{"type":125,"value":8866},"Target libraries export all required versions",{"type":120,"tag":2646,"props":8868,"children":8869},{},[8870,8875,8880],{"type":120,"tag":2678,"props":8871,"children":8872},{},[8873],{"type":125,"value":8874},"Static linking",{"type":120,"tag":2678,"props":8876,"children":8877},{},[8878],{"type":125,"value":8879},"Dependency code included at link time",{"type":120,"tag":2678,"props":8881,"children":8882},{},[8883],{"type":125,"value":8884},"Kernel support, runtime files, licences and security update process",{"type":120,"tag":121,"props":8886,"children":8887},{},[8888],{"type":125,"value":8889},"A glibc executable that requests a glibc loader will not become compatible simply by renaming a musl loader. Recompile from source where supported and test functional differences. A static executable can still require configuration files, kernel features and dynamically selected modules.",{"type":120,"tag":121,"props":8891,"children":8892},{},[8893,8894,8900],{"type":125,"value":7444},{"type":120,"tag":1494,"props":8895,"children":8897},{"href":8896},"/resources/binary-compatibility-v1.md",[8898],{"type":125,"value":8899},"binary compatibility checklist",{"type":125,"value":8901},". Keep interpreter paths, extension requirements and actual target test status with the source revision. The checklist leaves unknown facts explicit and requires no binary upload.",{"type":120,"tag":128,"props":8903,"children":8905},{"id":8904},"toolchain-sources",[8906],{"type":125,"value":8907},"Toolchain sources",{"type":120,"tag":121,"props":8909,"children":8910},{},[8911],{"type":125,"value":8912},"You have three main options for obtaining a cross-compilation toolchain:",{"type":120,"tag":222,"props":8914,"children":8916},{"id":8915},"_1-pre-built-toolchains",[8917],{"type":125,"value":8918},"1. Pre-built toolchains",{"type":120,"tag":121,"props":8920,"children":8921},{},[8922,8924,8930],{"type":125,"value":8923},"Bootlin provides pre-built toolchains for dozens of architecture and C library combinations, freely downloadable. These are tested and versioned. The guide to ",{"type":120,"tag":1494,"props":8925,"children":8927},{"href":8926},"/doc/bootlin-toolchains-arm-riscv-2026/",[8928],{"type":125,"value":8929},"choosing a Bootlin toolchain",{"type":125,"value":8931}," covers selecting the right variant.",{"type":120,"tag":121,"props":8933,"children":8934},{},[8935],{"type":125,"value":8936},"Arm GNU Toolchain releases distinguish Linux userspace targets from bare-metal targets. Select the release artifact for the required execution environment and host.",{"type":120,"tag":222,"props":8938,"children":8940},{"id":8939},"_2-build-system-generated-toolchains",[8941],{"type":125,"value":8942},"2. Build-system-generated toolchains",{"type":120,"tag":121,"props":8944,"children":8945},{},[8946,8947,8952,8954,8960],{"type":125,"value":6103},{"type":120,"tag":1494,"props":8948,"children":8949},{"href":2945},[8950],{"type":125,"value":8951},"choosing between Buildroot and Yocto",{"type":125,"value":8953},", consider the SDK alongside the firmware build. Both can generate cross-compilation toolchains. Yocto produces an installable SDK (",{"type":120,"tag":156,"props":8955,"children":8957},{"className":8956},[],[8958],{"type":125,"value":8959},"populate_sdk",{"type":125,"value":8961},") that includes the toolchain, sysroot, and environment setup script. Buildroot can output a relocatable toolchain tarball.",{"type":120,"tag":121,"props":8963,"children":8964},{},[8965],{"type":125,"value":8966},"The advantage is exact version alignment between the toolchain and the target image. Measure toolchain generation time on your own build host and cache configuration.",{"type":120,"tag":222,"props":8968,"children":8970},{"id":8969},"_3-custom-built-with-crosstool-ng",[8971],{"type":125,"value":8972},"3. Custom-built with crosstool-NG",{"type":120,"tag":121,"props":8974,"children":8975},{},[8976],{"type":125,"value":8977},"crosstool-NG is a dedicated toolchain builder. It provides a menuconfig interface for selecting GCC version, binutils version, C library, kernel headers, and target architecture. This is the right choice when you need a specific combination not available as a pre-built download.",{"type":120,"tag":128,"props":8979,"children":8981},{"id":8980},"kernel-header-version-alignment",[8982],{"type":125,"value":8983},"Kernel header version alignment",{"type":120,"tag":121,"props":8985,"children":8986},{},[8987],{"type":125,"value":8988},"The toolchain's kernel headers define the kernel API available to userspace. A toolchain built with Linux 5.15 headers can produce binaries that run on Linux 5.15 and newer kernels. Running those binaries on an older kernel may fail if they use syscalls introduced after the header version.",{"type":120,"tag":121,"props":8990,"children":8991},{},[8992],{"type":125,"value":8993},"Rule of thumb: build the toolchain with kernel headers matching or older than the oldest kernel you intend to deploy to.",{"type":120,"tag":128,"props":8995,"children":8997},{"id":8996},"multiarch-and-multiple-targets",[8998],{"type":125,"value":8999},"Multiarch and multiple targets",{"type":120,"tag":121,"props":9001,"children":9002},{},[9003],{"type":125,"value":9004},"When your product family spans multiple architectures (e.g., Cortex-A53 for the main processor and Cortex-M4 for a co-processor), you need multiple toolchains. Keep them in separate prefix directories and use environment variables or wrapper scripts to switch between them.",{"type":120,"tag":121,"props":9006,"children":9007},{},[9008,9010,9016,9018,9022],{"type":125,"value":9009},"ProteanOS's ",{"type":120,"tag":1494,"props":9011,"children":9013},{"href":9012},"/dev/pkg/needed/",[9014],{"type":125,"value":9015},"packaging requirements",{"type":125,"value":9017}," support multi-architecture builds through the Architecture field in control files. The ",{"type":120,"tag":1494,"props":9019,"children":9020},{"href":1517},[9021],{"type":125,"value":1520},{"type":125,"value":9023}," toolchain management handles sysroot isolation for cross-architecture builds.",{"type":120,"tag":128,"props":9025,"children":9027},{"id":9026},"common-pitfalls",[9028],{"type":125,"value":9029},"Common pitfalls",{"type":120,"tag":121,"props":9031,"children":9032},{},[9033,9038],{"type":120,"tag":148,"props":9034,"children":9035},{},[9036],{"type":125,"value":9037},"Mixing userspace ABIs:",{"type":125,"value":9039}," Check every linked object and shared library for compatible architecture, calling convention and libc. A kernel and userspace can use different compiler versions if their respective build requirements are met.",{"type":120,"tag":121,"props":9041,"children":9042},{},[9043,9048],{"type":120,"tag":148,"props":9044,"children":9045},{},[9046],{"type":125,"value":9047},"Floating-point ABI mismatch:",{"type":125,"value":9049}," On ARM, incompatible floating-point calling conventions can cause link-time errors or runtime failures. The entire userspace - including every shared library - must use the same float ABI.",{"type":120,"tag":121,"props":9051,"children":9052},{},[9053,9058],{"type":120,"tag":148,"props":9054,"children":9055},{},[9056],{"type":125,"value":9057},"Sysroot contamination:",{"type":125,"value":9059}," Installing host packages into the cross-compilation sysroot introduces host-architecture libraries that produce confusing linker errors. Keep the sysroot pristine.",{"type":120,"tag":121,"props":9061,"children":9062},{},[9063,9068,9070,9076,9077,9082,9084,9090],{"type":120,"tag":148,"props":9064,"children":9065},{},[9066],{"type":125,"value":9067},"Missing kernel features:",{"type":125,"value":9069}," A toolchain built with newer headers running on an older kernel may call ",{"type":120,"tag":156,"props":9071,"children":9073},{"className":9072},[],[9074],{"type":125,"value":9075},"copy_file_range()",{"type":125,"value":4121},{"type":120,"tag":156,"props":9078,"children":9080},{"className":9079},[],[9081],{"type":125,"value":7800},{"type":125,"value":9083}," syscalls that don't exist, producing ",{"type":120,"tag":156,"props":9085,"children":9087},{"className":9086},[],[9088],{"type":125,"value":9089},"ENOSYS",{"type":125,"value":9091}," errors at runtime.",{"type":120,"tag":128,"props":9093,"children":9095},{"id":9094},"verification-workflow",[9096],{"type":125,"value":9097},"Verification workflow",{"type":120,"tag":121,"props":9099,"children":9100},{},[9101],{"type":125,"value":9102},"After setting up a toolchain, verify it before starting development:",{"type":120,"tag":248,"props":9104,"children":9106},{"className":493,"code":9105,"language":492,"meta":109,"style":109},"# Check the target triplet\n${CROSS_COMPILE}gcc -dumpmachine\n\n# Verify the C library\n${CROSS_COMPILE}gcc -print-file-name=libc.so\n\n# Build and inspect a test binary\necho 'int main(){return 0;}' > test.c\n${CROSS_COMPILE}gcc -o test test.c\nfile test\nreadelf -h test\n",[9107],{"type":120,"tag":156,"props":9108,"children":9109},{"__ignoreMap":109},[9110,9118,9126,9133,9141,9158,9165,9173,9195,9203,9215],{"type":120,"tag":258,"props":9111,"children":9112},{"class":260,"line":261},[9113],{"type":120,"tag":258,"props":9114,"children":9115},{"style":727},[9116],{"type":125,"value":9117},"# Check the target triplet\n",{"type":120,"tag":258,"props":9119,"children":9120},{"class":260,"line":270},[9121],{"type":120,"tag":258,"props":9122,"children":9123},{"style":3740},[9124],{"type":125,"value":9125},"${CROSS_COMPILE}gcc -dumpmachine\n",{"type":120,"tag":258,"props":9127,"children":9128},{"class":260,"line":279},[9129],{"type":120,"tag":258,"props":9130,"children":9131},{"emptyLinePlaceholder":319},[9132],{"type":125,"value":322},{"type":120,"tag":258,"props":9134,"children":9135},{"class":260,"line":288},[9136],{"type":120,"tag":258,"props":9137,"children":9138},{"style":727},[9139],{"type":125,"value":9140},"# Verify the C library\n",{"type":120,"tag":258,"props":9142,"children":9143},{"class":260,"line":297},[9144,9149,9153],{"type":120,"tag":258,"props":9145,"children":9146},{"style":3740},[9147],{"type":125,"value":9148},"${CROSS_COMPILE}gcc -print-file-name",{"type":120,"tag":258,"props":9150,"children":9151},{"style":662},[9152],{"type":125,"value":7937},{"type":120,"tag":258,"props":9154,"children":9155},{"style":515},[9156],{"type":125,"value":9157},"libc.so\n",{"type":120,"tag":258,"props":9159,"children":9160},{"class":260,"line":306},[9161],{"type":120,"tag":258,"props":9162,"children":9163},{"emptyLinePlaceholder":319},[9164],{"type":125,"value":322},{"type":120,"tag":258,"props":9166,"children":9167},{"class":260,"line":315},[9168],{"type":120,"tag":258,"props":9169,"children":9170},{"style":727},[9171],{"type":125,"value":9172},"# Build and inspect a test binary\n",{"type":120,"tag":258,"props":9174,"children":9175},{"class":260,"line":325},[9176,9181,9186,9190],{"type":120,"tag":258,"props":9177,"children":9178},{"style":509},[9179],{"type":125,"value":9180},"echo",{"type":120,"tag":258,"props":9182,"children":9183},{"style":515},[9184],{"type":125,"value":9185}," 'int main(){return 0;}'",{"type":120,"tag":258,"props":9187,"children":9188},{"style":662},[9189],{"type":125,"value":1262},{"type":120,"tag":258,"props":9191,"children":9192},{"style":515},[9193],{"type":125,"value":9194}," test.c\n",{"type":120,"tag":258,"props":9196,"children":9197},{"class":260,"line":334},[9198],{"type":120,"tag":258,"props":9199,"children":9200},{"style":3740},[9201],{"type":125,"value":9202},"${CROSS_COMPILE}gcc -o test test.c\n",{"type":120,"tag":258,"props":9204,"children":9205},{"class":260,"line":343},[9206,9211],{"type":120,"tag":258,"props":9207,"children":9208},{"style":503},[9209],{"type":125,"value":9210},"file",{"type":120,"tag":258,"props":9212,"children":9213},{"style":515},[9214],{"type":125,"value":8719},{"type":120,"tag":258,"props":9216,"children":9217},{"class":260,"line":352},[9218,9222,9226],{"type":120,"tag":258,"props":9219,"children":9220},{"style":503},[9221],{"type":125,"value":8709},{"type":120,"tag":258,"props":9223,"children":9224},{"style":509},[9225],{"type":125,"value":8714},{"type":120,"tag":258,"props":9227,"children":9228},{"style":515},[9229],{"type":125,"value":8719},{"type":120,"tag":121,"props":9231,"children":9232},{},[9233,9234,9239,9241,9246],{"type":125,"value":191},{"type":120,"tag":156,"props":9235,"children":9237},{"className":9236},[],[9238],{"type":125,"value":9210},{"type":125,"value":9240}," output should show the correct architecture and ABI. The ",{"type":120,"tag":156,"props":9242,"children":9244},{"className":9243},[],[9245],{"type":125,"value":8709},{"type":125,"value":9247}," output confirms the ELF machine type and flags.",{"type":120,"tag":128,"props":9249,"children":9251},{"id":9250},"toolchain-lifecycle-and-updates",[9252],{"type":125,"value":9253},"Toolchain lifecycle and updates",{"type":120,"tag":121,"props":9255,"children":9256},{},[9257],{"type":125,"value":9258},"Toolchain updates are not free. A GCC major version bump may change code generation, optimization behaviour, or default warning levels. Plan toolchain updates as discrete milestones with full regression testing.",{"type":120,"tag":121,"props":9260,"children":9261},{},[9262],{"type":125,"value":9263},"For long-lived products, pin the toolchain version in your build configuration and document it. When security patches require a newer GCC (rare but possible for compiler-level mitigations like stack clash protection), budget time for validation.",{"type":120,"tag":121,"props":9265,"children":9266},{},[9267,9268,9272],{"type":125,"value":191},{"type":120,"tag":1494,"props":9269,"children":9270},{"href":4280},[9271],{"type":125,"value":4283},{"type":125,"value":9273}," covers setting up the ProteanOS development toolchain for first-time contributors, including toolchain version requirements and verification steps.",{"type":120,"tag":1535,"props":9275,"children":9276},{},[9277],{"type":125,"value":1539},{"title":109,"searchDepth":270,"depth":270,"links":9279},[9280,9281,9286,9287,9288,9293,9294,9295,9296,9297],{"id":8308,"depth":270,"text":8311},{"id":8400,"depth":270,"text":8403,"children":9282},[9283,9284,9285],{"id":7762,"depth":279,"text":7762},{"id":7772,"depth":279,"text":7772},{"id":8515,"depth":279,"text":8518},{"id":8647,"depth":270,"text":8650},{"id":8671,"depth":270,"text":8674},{"id":8904,"depth":270,"text":8907,"children":9289},[9290,9291,9292],{"id":8915,"depth":279,"text":8918},{"id":8939,"depth":279,"text":8942},{"id":8969,"depth":279,"text":8972},{"id":8980,"depth":270,"text":8983},{"id":8996,"depth":270,"text":8999},{"id":9026,"depth":270,"text":9029},{"id":9094,"depth":270,"text":9097},{"id":9250,"depth":270,"text":9253},"content:doc:cross-compilation-toolchain-triplet-clib-2026.md","doc/cross-compilation-toolchain-triplet-clib-2026.md","doc/cross-compilation-toolchain-triplet-clib-2026",{"_path":47,"_dir":2416,"_draft":108,"_partial":108,"_locale":109,"title":48,"description":49,"date":50,"lastmod":2417,"draft":108,"hero":9302,"tags":9303,"category":2416,"body":9305,"_type":1570,"_id":9825,"_source":1572,"_file":9826,"_stem":9827,"_extension":1575},"/images/hero/buildroot-vs-yocto-2026-1600x900.jpg",[112,113,9304],"Build Systems",{"type":117,"children":9306,"toc":9809},[9307,9312,9316,9450,9455,9461,9466,9472,9484,9489,9502,9508,9520,9534,9539,9544,9550,9555,9560,9571,9577,9590,9603,9609,9614,9633,9639,9644,9656,9662,9675,9687,9691,9696,9719,9724,9747,9753,9758,9763,9769,9788,9800,9804],{"type":120,"tag":121,"props":9308,"children":9309},{},[9310],{"type":125,"value":9311},"The choice between Buildroot and Yocto shapes years of maintenance work. Both build systems produce working root filesystems, but the workflows, upgrade paths, and organisational consequences diverge sharply once a product ships. Use maintained board support, ownership and update requirements to narrow the choice before comparing build performance.",{"type":120,"tag":128,"props":9313,"children":9314},{"id":3082},[9315],{"type":125,"value":3085},{"type":120,"tag":2638,"props":9317,"children":9318},{},[9319,9339],{"type":120,"tag":2642,"props":9320,"children":9321},{},[9322],{"type":120,"tag":2646,"props":9323,"children":9324},{},[9325,9329,9334],{"type":120,"tag":2650,"props":9326,"children":9327},{},[9328],{"type":125,"value":8532},{"type":120,"tag":2650,"props":9330,"children":9331},{},[9332],{"type":125,"value":9333},"Buildroot",{"type":120,"tag":2650,"props":9335,"children":9336},{},[9337],{"type":125,"value":9338},"Yocto",{"type":120,"tag":2671,"props":9340,"children":9341},{},[9342,9360,9378,9396,9414,9432],{"type":120,"tag":2646,"props":9343,"children":9344},{},[9345,9350,9355],{"type":120,"tag":2678,"props":9346,"children":9347},{},[9348],{"type":125,"value":9349},"BSP support",{"type":120,"tag":2678,"props":9351,"children":9352},{},[9353],{"type":125,"value":9354},"Verify the board configuration and vendor patch maintenance",{"type":120,"tag":2678,"props":9356,"children":9357},{},[9358],{"type":125,"value":9359},"Verify the vendor layers and compatible release branches",{"type":120,"tag":2646,"props":9361,"children":9362},{},[9363,9368,9373],{"type":120,"tag":2678,"props":9364,"children":9365},{},[9366],{"type":125,"value":9367},"Product scope",{"type":120,"tag":2678,"props":9369,"children":9370},{},[9371],{"type":125,"value":9372},"A compact configuration suits a small image portfolio",{"type":120,"tag":2678,"props":9374,"children":9375},{},[9376],{"type":125,"value":9377},"Layers and distro policy can coordinate a product family",{"type":120,"tag":2646,"props":9379,"children":9380},{},[9381,9386,9391],{"type":120,"tag":2678,"props":9382,"children":9383},{},[9384],{"type":125,"value":9385},"Ownership",{"type":120,"tag":2678,"props":9387,"children":9388},{},[9389],{"type":125,"value":9390},"Assign image, package and update maintainers",{"type":120,"tag":2678,"props":9392,"children":9393},{},[9394],{"type":125,"value":9395},"Assign layer, distro, BSP and shared-cache maintainers",{"type":120,"tag":2646,"props":9397,"children":9398},{},[9399,9404,9409],{"type":120,"tag":2678,"props":9400,"children":9401},{},[9402],{"type":125,"value":9403},"Build workflow",{"type":120,"tag":2678,"props":9405,"children":9406},{},[9407],{"type":125,"value":9408},"Pin defconfig and external tree, check full-build triggers",{"type":120,"tag":2678,"props":9410,"children":9411},{},[9412],{"type":125,"value":9413},"Pin recipes and layers, record sstate and hash-equivalence configuration",{"type":120,"tag":2646,"props":9415,"children":9416},{},[9417,9422,9427],{"type":120,"tag":2678,"props":9418,"children":9419},{},[9420],{"type":125,"value":9421},"Update method",{"type":120,"tag":2678,"props":9423,"children":9424},{},[9425],{"type":125,"value":9426},"Whole-image delivery is a common starting point",{"type":120,"tag":2678,"props":9428,"children":9429},{},[9430],{"type":125,"value":9431},"Choose image updates or maintain tested package feeds",{"type":120,"tag":2646,"props":9433,"children":9434},{},[9435,9440,9445],{"type":120,"tag":2678,"props":9436,"children":9437},{},[9438],{"type":125,"value":9439},"Maintenance",{"type":120,"tag":2678,"props":9441,"children":9442},{},[9443],{"type":125,"value":9444},"Budget patches and branch upgrades",{"type":120,"tag":2678,"props":9446,"children":9447},{},[9448],{"type":125,"value":9449},"Budget layer migrations and BSP alignment",{"type":120,"tag":121,"props":9451,"children":9452},{},[9453],{"type":125,"value":9454},"A working board-support path is a prerequisite for either option. A small team with an established Yocto BSP may save effort by retaining it. A product family with simple shared requirements can still use Buildroot. Document the constraint that actually changes the decision.",{"type":120,"tag":128,"props":9456,"children":9458},{"id":9457},"why-the-comparison-still-matters",[9459],{"type":125,"value":9460},"Why the comparison still matters",{"type":120,"tag":121,"props":9462,"children":9463},{},[9464],{"type":125,"value":9465},"Every new board-support discussion starts the same way: \"Buildroot or Yocto?\" The question persists because neither tool is universally better. Buildroot excels at producing lean, auditable images quickly. Yocto excels at managing complexity across multiple products and teams. The right answer depends on how many variants you ship, how long you intend to maintain them, and how large your build-engineering team actually is.",{"type":120,"tag":128,"props":9467,"children":9469},{"id":9468},"build-model-fundamentals",[9470],{"type":125,"value":9471},"Build model fundamentals",{"type":120,"tag":121,"props":9473,"children":9474},{},[9475,9477,9482],{"type":125,"value":9476},"Buildroot uses a KConfig-driven monolithic configuration. You select packages, set compiler flags, and run ",{"type":120,"tag":156,"props":9478,"children":9480},{"className":9479},[],[9481],{"type":125,"value":614},{"type":125,"value":9483},". The output is a root filesystem image, a kernel, and a bootloader; build time depends on the selected packages, host and cache state. There is no per-package caching in the default workflow; a config change can trigger broad rebuilds.",{"type":120,"tag":121,"props":9485,"children":9486},{},[9487],{"type":125,"value":9488},"Yocto uses BitBake recipes organised into layers. Each recipe gets a sysroot with its declared build dependencies. Shared state (sstate) can reuse task outputs when signatures match. Measure cold and warm builds separately using pinned inputs, and record which tasks actually reused their outputs.",{"type":120,"tag":121,"props":9490,"children":9491},{},[9492,9494,9500],{"type":125,"value":9493},"Use a fresh output directory for a release comparison after changing a toolchain or removing a package. The ",{"type":120,"tag":1494,"props":9495,"children":9497},{"href":9496},"https://lists.buildroot.org/pipermail/buildroot/2012-November/049686.html",[9498],{"type":125,"value":9499},"Buildroot maintainers' rebuilding notes",{"type":125,"value":9501}," explain why files from an earlier package selection can remain in an incremental build. Compare the package list and final image as well as elapsed time.",{"type":120,"tag":222,"props":9503,"children":9505},{"id":9504},"record-your-own-build-resource-costs",[9506],{"type":125,"value":9507},"Record your own build resource costs",{"type":120,"tag":121,"props":9509,"children":9510},{},[9511,9512,9518],{"type":125,"value":7444},{"type":120,"tag":1494,"props":9513,"children":9515},{"href":9514},"/resources/build-system-decisions-v1.md",[9516],{"type":125,"value":9517},"build-system decision and resource worksheet",{"type":125,"value":9519},". It contains two editable architecture records, a single-product team and a multi-board family, plus resource calculations. Both scenarios are illustrative and leave BSP support unresolved until verified.",{"type":120,"tag":121,"props":9521,"children":9522},{},[9523,9525,9532],{"type":125,"value":9524},"If you rent build capacity, include options such as ",{"type":120,"tag":1494,"props":9526,"children":9529},{"href":9527,"target":2621,"rel":9528},"/posgo/contabo-vps",[2623,2624,2625],[9530],{"type":125,"value":9531},"Contabo",{"type":125,"value":9533}," (affiliate link) in a like-for-like comparison. Run the same pinned build on each candidate and record total elapsed time, storage use and billed cost. A shared worker that performs well on a cached build can still miss your release deadline when it has to rebuild everything.",{"type":120,"tag":121,"props":9535,"children":9536},{},[9537],{"type":125,"value":9538},"Record measured cold and warm build minutes, builds per month and the fraction of cold builds. Worker-hours equal builds multiplied by weighted minutes divided by 60. Concurrent jobs consume worker-hours even when they shorten elapsed waiting time. Add retained artifacts, cache storage and egress separately when their prices are known.",{"type":120,"tag":121,"props":9540,"children":9541},{},[9542],{"type":125,"value":9543},"For a fair comparison, pin the source revisions, board configuration, package set and compiler. Record host CPU, RAM, storage, network access and tool versions. Define whether a cold run retains downloaded sources. Repeat the same workload and retain raw timings. This article contains no measured comparison between the two systems.",{"type":120,"tag":128,"props":9545,"children":9547},{"id":9546},"package-management-and-updates",[9548],{"type":125,"value":9549},"Package management and updates",{"type":120,"tag":121,"props":9551,"children":9552},{},[9553],{"type":125,"value":9554},"Buildroot traditionally produces a monolithic root filesystem. You replace the entire image during updates. There is no on-target package manager in the default configuration (though opkg support exists as an option). Evaluate application updates separately from the whole-image operating-system update strategy.",{"type":120,"tag":121,"props":9556,"children":9557},{},[9558],{"type":125,"value":9559},"Yocto can produce images with package management enabled (deb, rpm, or ipk). On-target updates become possible, and you can maintain a package feed for fleet management. This flexibility carries complexity: you need to maintain a package repository, handle dependency resolution on constrained devices, and test upgrade paths.",{"type":120,"tag":121,"props":9561,"children":9562},{},[9563,9565,9569],{"type":125,"value":9564},"For ProteanOS workflows, the ",{"type":120,"tag":1494,"props":9566,"children":9567},{"href":4280},[9568],{"type":125,"value":4283},{"type":125,"value":9570}," covers setting up the toolchain regardless of which build system generates the initial image.",{"type":120,"tag":128,"props":9572,"children":9574},{"id":9573},"layer-ecosystem-and-reuse",[9575],{"type":125,"value":9576},"Layer ecosystem and reuse",{"type":120,"tag":121,"props":9578,"children":9579},{},[9580,9582,9588],{"type":125,"value":9581},"Buildroot packages live in a flat directory. Community packages are contributed upstream or maintained in out-of-tree overlays using ",{"type":120,"tag":156,"props":9583,"children":9585},{"className":9584},[],[9586],{"type":125,"value":9587},"BR2_EXTERNAL",{"type":125,"value":9589},". The overlay mechanism works well for a single product but becomes cumbersome when sharing packages across multiple product lines.",{"type":120,"tag":121,"props":9591,"children":9592},{},[9593,9595,9601],{"type":125,"value":9594},"Yocto's layer model is its defining architectural feature. The OpenEmbedded layer index lists hundreds of maintained layers covering silicon vendor BSPs, application frameworks, and security hardening. Layers compose cleanly when they follow the naming and priority conventions, though layer conflicts are a real debugging cost. The guide to ",{"type":120,"tag":1494,"props":9596,"children":9598},{"href":9597},"/dev/yocto-layers-maintainable-strategy-2026/",[9599],{"type":125,"value":9600},"maintaining Yocto layers",{"type":125,"value":9602}," explains append, fork and upgrade responsibilities.",{"type":120,"tag":128,"props":9604,"children":9606},{"id":9605},"long-term-maintenance",[9607],{"type":125,"value":9608},"Long-term maintenance",{"type":120,"tag":121,"props":9610,"children":9611},{},[9612],{"type":125,"value":9613},"Record the exact upstream branch, vendor BSP support end date and your product support horizon. Both projects need an owner for version updates, patch integration and target validation. Check current release policies rather than applying a single support duration to every branch.",{"type":120,"tag":121,"props":9615,"children":9616},{},[9617,9619,9625,9626,9632],{"type":125,"value":9618},"An LTS branch is useful only when the board dependencies and application libraries have a compatible maintenance path. Plan how to retain sources and build artifacts after an upstream mirror changes. Include migration tests and rollback-compatible data changes in the maintenance budget. ",{"type":120,"tag":1494,"props":9620,"children":9622},{"href":9621},"https://buildroot.org/downloads/manual/manual.html",[9623],{"type":125,"value":9624},"Buildroot manual",{"type":125,"value":2052},{"type":120,"tag":1494,"props":9627,"children":9629},{"href":9628},"https://www.yoctoproject.org/development/releases/",[9630],{"type":125,"value":9631},"Yocto release table",{"type":125,"value":460},{"type":120,"tag":128,"props":9634,"children":9636},{"id":9635},"toolchain-considerations",[9637],{"type":125,"value":9638},"Toolchain considerations",{"type":120,"tag":121,"props":9640,"children":9641},{},[9642],{"type":125,"value":9643},"Both systems can use external toolchains. Buildroot has native support for pointing at a pre-built toolchain (Linaro, Bootlin, or vendor-provided). Yocto builds its own toolchain by default but supports external toolchains through meta-sourcery or equivalent layers.",{"type":120,"tag":121,"props":9645,"children":9646},{},[9647,9649,9654],{"type":125,"value":9648},"Check ",{"type":120,"tag":1494,"props":9650,"children":9651},{"href":7746},[9652],{"type":125,"value":9653},"target triplets and glibc vs musl",{"type":125,"value":9655}," against the binaries and SDK your product requires.",{"type":120,"tag":128,"props":9657,"children":9659},{"id":9658},"debugging-and-reproducibility",[9660],{"type":125,"value":9661},"Debugging and reproducibility",{"type":120,"tag":121,"props":9663,"children":9664},{},[9665,9667,9673],{"type":125,"value":9666},"Buildroot builds are reasonably reproducible when you pin the Buildroot version and all source tarballs. The ",{"type":120,"tag":156,"props":9668,"children":9670},{"className":9669},[],[9671],{"type":125,"value":9672},"make source",{"type":125,"value":9674}," target downloads everything for offline builds. Check the selected Buildroot release for its legal-info and SBOM facilities. Preserve build configuration and artifact digests alongside the inventory.",{"type":120,"tag":121,"props":9676,"children":9677},{},[9678,9680,9685],{"type":125,"value":9679},"Yocto has invested heavily in reproducibility. Builds produce SPDX documents, build hashes, and detailed build logs per package. The reproducible-builds effort means two builds from the same inputs should produce bit-identical outputs. This matters for SBOM generation and regulatory compliance workflows. Pairing reproducible builds with ",{"type":120,"tag":1494,"props":9681,"children":9682},{"href":3289},[9683],{"type":125,"value":9684},"automated code reviews",{"type":125,"value":9686}," in CI catches recipe regressions and dependency issues before they reach the build stage.",{"type":120,"tag":128,"props":9688,"children":9689},{"id":2633},[9690],{"type":125,"value":2636},{"type":120,"tag":121,"props":9692,"children":9693},{},[9694],{"type":125,"value":9695},"Choose Buildroot when:",{"type":120,"tag":994,"props":9697,"children":9698},{},[9699,9704,9709,9714],{"type":120,"tag":144,"props":9700,"children":9701},{},[9702],{"type":125,"value":9703},"You ship a single product variant or a small number of closely related boards",{"type":120,"tag":144,"props":9705,"children":9706},{},[9707],{"type":125,"value":9708},"Your team is small (1-3 build engineers) and values simplicity",{"type":120,"tag":144,"props":9710,"children":9711},{},[9712],{"type":125,"value":9713},"Build time matters and you do not have persistent CI caching infrastructure",{"type":120,"tag":144,"props":9715,"children":9716},{},[9717],{"type":125,"value":9718},"You need a minimal, auditable image with no on-target package management",{"type":120,"tag":121,"props":9720,"children":9721},{},[9722],{"type":125,"value":9723},"Choose Yocto when:",{"type":120,"tag":994,"props":9725,"children":9726},{},[9727,9732,9737,9742],{"type":120,"tag":144,"props":9728,"children":9729},{},[9730],{"type":125,"value":9731},"You maintain multiple product lines sharing common packages",{"type":120,"tag":144,"props":9733,"children":9734},{},[9735],{"type":125,"value":9736},"Your organisation has (or will invest in) build-engineering capacity",{"type":120,"tag":144,"props":9738,"children":9739},{},[9740],{"type":125,"value":9741},"You need per-package caching, SBOM generation, or on-target package management",{"type":120,"tag":144,"props":9743,"children":9744},{},[9745],{"type":125,"value":9746},"Regulatory requirements demand build provenance and reproducibility",{"type":120,"tag":128,"props":9748,"children":9750},{"id":9749},"hybrid-approaches",[9751],{"type":125,"value":9752},"Hybrid approaches",{"type":120,"tag":121,"props":9754,"children":9755},{},[9756],{"type":125,"value":9757},"Some teams use Buildroot for early prototyping and migrate to Yocto for production. This works when the migration happens before the first production release. Migrating after shipping is expensive - recipe formats, directory layouts, and configuration mechanisms differ fundamentally.",{"type":120,"tag":121,"props":9759,"children":9760},{},[9761],{"type":125,"value":9762},"Another pattern is using Buildroot for the bootloader and minimal recovery partition while using Yocto for the main application image. This isolates the complexity to where it provides the most value.",{"type":120,"tag":128,"props":9764,"children":9766},{"id":9765},"what-this-means-for-proteanos-workflows",[9767],{"type":125,"value":9768},"What this means for ProteanOS workflows",{"type":120,"tag":121,"props":9770,"children":9771},{},[9772,9774,9779,9781,9786],{"type":125,"value":9773},"ProteanOS packaging conventions (",{"type":120,"tag":1494,"props":9775,"children":9776},{"href":2192},[9777],{"type":125,"value":9778},"Source Package Format 2.0",{"type":125,"value":9780},") are designed to be build-system-agnostic. Whether your outer build orchestration uses Buildroot or Yocto, the package metadata and source structure remain the same. Read the ",{"type":120,"tag":1494,"props":9782,"children":9783},{"href":1517},[9784],{"type":125,"value":9785},"ProKit tooling documentation",{"type":125,"value":9787}," and verify any required integration in the source version you use.",{"type":120,"tag":121,"props":9789,"children":9790},{},[9791,9793,9798],{"type":125,"value":9792},"For teams evaluating OTA update integration, ",{"type":120,"tag":1494,"props":9794,"children":9795},{"href":2538},[9796],{"type":125,"value":9797},"RAUC vs SWUpdate vs Mender",{"type":125,"value":9799}," covers how RAUC, SWUpdate, and Mender interact with both Buildroot and Yocto image outputs.",{"type":120,"tag":128,"props":9801,"children":9802},{"id":1525},[9803],{"type":125,"value":1528},{"type":120,"tag":121,"props":9805,"children":9806},{},[9807],{"type":125,"value":9808},"Neither Buildroot nor Yocto is going away. Both have active communities, regular releases, and deep silicon vendor support. The choice is organisational as much as technical. Start by mapping your maintenance horizon and team capacity, then pick the tool that matches. Switching later is possible but never cheap.",{"title":109,"searchDepth":270,"depth":270,"links":9810},[9811,9812,9813,9816,9817,9818,9819,9820,9821,9822,9823,9824],{"id":3082,"depth":270,"text":3085},{"id":9457,"depth":270,"text":9460},{"id":9468,"depth":270,"text":9471,"children":9814},[9815],{"id":9504,"depth":279,"text":9507},{"id":9546,"depth":270,"text":9549},{"id":9573,"depth":270,"text":9576},{"id":9605,"depth":270,"text":9608},{"id":9635,"depth":270,"text":9638},{"id":9658,"depth":270,"text":9661},{"id":2633,"depth":270,"text":2636},{"id":9749,"depth":270,"text":9752},{"id":9765,"depth":270,"text":9768},{"id":1525,"depth":270,"text":1528},"content:doc:buildroot-vs-yocto-2026.md","doc/buildroot-vs-yocto-2026.md","doc/buildroot-vs-yocto-2026",1795684258365]