[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMYM5Z6FMR60JXETDD644N":3,"skill-same:01M7AMYM5Z6FMR60JXETDD644N":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMYM5Z6FMR60JXETDD644N","logic-firmware-boot-root-of-trust-embedded-practice-and-security",null,"Use for firmware: the firmware landscape from UEFI to embedded RTOS and bare metal, the boot sequence stage by stage, root of trust and verified boot with the chain of signatures, ACPI and the platform interfaces that hand control to the OS, embedded firmware practice including interrupts, DMA and update strategy, and firmware security — the attack surface, persistence and why firmware compromise is so hard to detect.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdigital-logic-and-firmware-engineering\u002Fskills\u002Flogic-firmware-boot-root-of-trust-embedded-practice-and-security\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: logic-firmware-boot-root-of-trust-embedded-practice-and-security\ndescription: \"Use for firmware: the firmware landscape from UEFI to embedded RTOS and bare metal, the boot sequence stage by stage, root of trust and verified boot with the chain of signatures, ACPI and the platform interfaces that hand control to the OS, embedded firmware practice including interrupts, DMA and update strategy, and firmware security — the attack surface, persistence and why firmware compromise is so hard to detect.\"\n---\n\n# Digital Logic and Firmware: The Firmware Landscape, the Boot Sequence, Root of Trust and Verified Boot, ACPI and Platform Interfaces, Embedded Firmware Practice, and Firmware Security\n\n> **Part 4 of 5** of the *CMOS, Logic Gates and Firmware Engineering* reference (plugin `digital-logic-and-firmware-engineering`), covering §20–§25. Sibling skills: `logic-devices-transistors-cmos-gates-and-power` (§0–§8), `logic-standard-cells-boolean-minimization-and-arithmetic` (§9–§13), `logic-sequential-timing-metastability-cdc-and-hdl` (§14–§19), `logic-reference` (§26–§31). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Boolean algebra and CMOS circuit design do not change. Two things are moving. See §26 → `logic-reference` for the Secure Boot certificate expiry, and open-source firmware and silicon roots of trust.\n\n> **⚠️ SCOPE, because this sits between existing neighbours.** ⚠️ **A semiconductor\n> reference covers device physics and fabrication; a microarchitecture reference covers how\n> gates become processors. Neither covers the two layers here: HOW TRANSISTORS BECOME\n> BOOLEAN LOGIC, and HOW A MACHINE GETS FROM POWER-ON TO AN OPERATING SYSTEM.**\n>\n> **⚠️ These are the two ends of the stack where the abstractions are built, and where they\n> most often leak.**\n>\n> **⚠️ GOTCHA** boxes mark where the textbook idealization and the real circuit diverge.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ CMOS COMPUTES BY CONNECTING, NOT BY AMPLIFYING** (§5 → `logic-devices-transistors-cmos-gates-and-power`). **A static CMOS gate is two\n>    complementary switch networks, one connecting the output to power and one to ground,\n>    never both. Once you see this, gate construction becomes mechanical and the power\n>    behaviour becomes obvious.**\n> 2. **⚠️ TIMING IS THE REAL CONSTRAINT, NOT LOGIC** (§15 → `logic-sequential-timing-metastability-cdc-and-hdl`, §17 → `logic-sequential-timing-metastability-cdc-and-hdl`). **Getting the Boolean\n>    function right is the easy part. Setup and hold violations, clock skew and metastability\n>    are what actually make digital systems fail, and they fail intermittently.**\n> 3. **⚠️ TRUST IS A CHAIN THAT STARTS BEFORE ANY SOFTWARE RUNS** (§22, §25, §26 → `logic-reference`). **Every\n>    security property the OS provides rests on firmware that executed first. Firmware is\n>    the most privileged and least examined code in the machine.**\n\n---\n\n## §20. The Firmware Landscape\n\n```\n⚠️ WHAT COUNTS AS FIRMWARE  ⚠️ far more than \"the BIOS\" —\n   ⚠️ platform firmware (UEFI\u002FBIOS) · embedded controller ·\n   ⚠️ management engine \u002F PSP (⚠️ a separate processor with\n   higher privilege than the CPU, running code you cannot\n   inspect) · ⚠️ BMC\u002Fservice processor · storage controller\n   firmware · GPU VBIOS · network card firmware · ⚠️ MICROCODE ·\n   peripheral firmware\n⚠️ ⚠️ THE UNCOMFORTABLE TRUTH: a modern machine runs a great deal\n   of privileged code before and beneath the OS, most of it\n   proprietary and unexamined (§25, §26.2)\n⚠️ THE SPECTRUM  ⚠️ bare metal → RTOS → embedded Linux\n⚠️ WHAT MAKES FIRMWARE DIFFERENT FROM SOFTWARE  ⚠️ it may be the\n   only thing running · ⚠️ failure can be unrecoverable (bricking)\n   · updates are risky and sometimes one-way · ⚠️ hardware\n   constraints are absolute · debugging is hard · ⚠️ lifetimes\n   measured in decades\n```\n\n---\n\n## §21. ⚠️ The Boot Sequence\n\n> **⚠️ The chain that gets a machine from applied power to an operating system, and knowing\n> its stages is what makes boot failures diagnosable.**\n```\n⚠️ THE STAGES, in order\n   ⚠️ 1. POWER SEQUENCING and RESET  ⚠️ rails come up in a\n      required order; reset released when stable\n   ⚠️ 2. ⚠️ THE FIRST INSTRUCTION comes from a fixed RESET VECTOR\n      in ROM — ⚠️ and at this point there is NO RAM initialized\n   ⚠️ 3. ⚠️ EARLY INIT  ⚠️ often running out of CACHE-AS-RAM,\n      because DRAM does not work until it is trained\n   ⚠️ 4. ⚠️ MEMORY TRAINING  ⚠️ the memory controller calibrates\n      timings against the actual DIMMs. ⚠️ This is why first\n      boot after a RAM change is slow, and why results are\n      cached\n   ⚠️ 5. Chipset and silicon init · 6. device enumeration\n   ⚠️ 7. Boot device selection · 8. bootloader · 9. kernel\n⚠️ ⚠️ UEFI vs LEGACY BIOS\n   ⚠️ Legacy: 16-bit real mode, MBR, 512-byte boot sector,\n      interrupt-based services. ⚠️ Effectively gone\n   ⚠️ UEFI: ⚠️ a small OS in its own right — 64-bit, GPT\n      partitions, ⚠️ an EFI SYSTEM PARTITION holding actual\n      executable files, driver model, protocols, boot manager\n      with variables, ⚠️ and a shell\n⚠️ THE UEFI PHASES  ⚠️ SEC → PEI (pre-EFI init, memory) →\n   ⚠️ DXE (driver execution — where most functionality lives) →\n   BDS (boot device select) → TSL → RUNTIME\n⚠️ ⚠️ RUNTIME SERVICES PERSIST AFTER THE OS BOOTS — ⚠️ variable\n   access and firmware update paths remain callable, which is\n   both useful and an attack surface (§25)\n⚠️ EMBEDDED EQUIVALENTS  ⚠️ ROM bootloader → first-stage (SPL,\n   often size-constrained) → U-Boot or similar → kernel\n```\n\n---\n\n## §22. ⚠️ Root of Trust and Verified Boot\n\n```\n⚠️ ⚠️ THE CORE IDEA: TRUST MUST START SOMEWHERE IMMUTABLE. ⚠️ A\n   hardware root of trust — mask ROM or fused keys that cannot\n   be modified — verifies the next stage, which verifies the\n   next, and so on\n⚠️ ⚠️ TWO DIFFERENT THINGS OFTEN CONFLATED\n   ⚠️ SECURE \u002F VERIFIED BOOT  ⚠️ ENFORCES — refuses to run\n      unsigned code\n   ⚠️ MEASURED BOOT  ⚠️ RECORDS — hashes each stage into TPM PCRs\n      and lets a remote party ATTEST what ran. ⚠️ It does not\n      block anything\n   ⚠️ They are complementary, not alternatives\n⚠️ THE TPM  ⚠️ PCRs (⚠️ extend-only, so history cannot be\n   rewritten) · sealing (⚠️ releasing a key only if PCRs match,\n   which is how BitLocker binds to platform state) ·\n   attestation · endorsement key\n⚠️ ⚠️ UEFI SECURE BOOT's KEY HIERARCHY (§26.1)\n   ⚠️ PK (Platform Key — the OEM's root, one key)\n   ⚠️ KEK (Key Exchange Key — authorizes updates to the lists)\n   ⚠️ DB (allowed signatures) and ⚠️ DBX (revoked)\n⚠️ SHIM  ⚠️ how Linux boots under Secure Boot — a small\n   Microsoft-signed loader that then validates the distribution's\n   own key, with MOK for user-enrolled keys\n⚠️ ROLLBACK PROTECTION  ⚠️ signature validity is not enough —\n   ⚠️ an attacker can install a genuinely signed OLD version\n   with a known vulnerability. ⚠️ Monotonic counters or fuses\n   are the defence, and this is frequently omitted\n⚠️ ⚠️ THE HONEST LIMIT: verified boot proves what LOADED, not\n   that it is CORRECT. ⚠️ A signed vulnerable bootloader passes\n   verification perfectly (§26.1's BlackLotus)\n```\n\n---\n\n## §23. ACPI and Platform Interfaces\n\n**⚠️ ACPI is how firmware describes the platform to the OS** — ⚠️ **tables (DSDT, SSDT,\nMADT, FADT and many more) plus AML, a bytecode the OS interprets.**\n**⚠️ Power states** are the visible part: ⚠️ **S-states (system sleep), C-states (CPU idle),\nP-states (performance\u002Ffrequency), D-states (device) — and getting these right is most of\nwhat \"sleep doesn't work\" bugs are about.**\n**⚠️ Device tree** is the alternative model used on ARM and RISC-V embedded systems —\n⚠️ **a static description passed to the kernel rather than an interpreted bytecode, and\nmuch easier to reason about.**\n**⚠️ SMBIOS\u002FDMI** for inventory data, ⚠️ **and SMM (System Management Mode) as the\nx86 mechanism that is both genuinely useful and a serious security concern** (§25).\n**⚠️ The practical point**: ⚠️ **an enormous share of \"Linux doesn't support this laptop\"\nproblems are ACPI table bugs that Windows tolerates because the vendor tested against\nWindows only.**\n\n---\n\n## §24. Embedded Firmware Practice\n\n**⚠️ The startup sequence before `main()`**: ⚠️ **vector table, stack pointer, copying\ninitialized data from flash to RAM, zeroing BSS, calling constructors — ⚠️ and knowing this\nis what lets you debug a device that never reaches `main`.**\n**⚠️ The linker script and memory map** are first-class design artifacts, not boilerplate.\n**⚠️ Interrupts**: ⚠️ **keep ISRs short, understand priority and nesting, ⚠️ and volatile\nplus atomic access for anything shared with an ISR — ⚠️ noting that `volatile` is NOT a\nsynchronization primitive** (see a microarchitecture reference §8).\n**⚠️ Bare metal versus RTOS**: ⚠️ **superloop with a state machine is often the right answer;\nan RTOS buys preemption and structure at the cost of stack-per-task and a scheduler to\nreason about.**\n**⚠️ Watchdogs** — ⚠️ **and the discipline that a watchdog must be fed from a place that\nproves the system is actually working, not from a timer interrupt that runs regardless.**\n**⚠️ Field update is the hardest requirement**: ⚠️ **A\u002FB partitions, atomic switchover,\npower-fail safety, rollback, and a recovery path that cannot itself be bricked** (see a\nperipherals reference §17).\n\n---\n\n## §25. ⚠️ Firmware Security\n\n```\n⚠️ ⚠️ WHY IT MATTERS DISPROPORTIONATELY  ⚠️ firmware runs before\n   and beneath the OS, persists across reinstalls and disk\n   replacement, and is largely invisible to antivirus\n⚠️ THE ATTACK CLASSES\n   ⚠️ BOOTKITS  ⚠️ persist in the boot chain (§26.1)\n   ⚠️ SMM attacks  ⚠️ SMM is more privileged than the kernel\n      and hypervisor\n   ⚠️ ⚠️ DMA attacks  ⚠️ a peripheral reading host memory\n      directly — IOMMU is the mitigation (see a peripherals\n      reference §24)\n   ⚠️ SPI flash modification — ⚠️ physical or logical, if write\n      protection is misconfigured\n   ⚠️ ⚠️ SUPPLY CHAIN  implanted or modified firmware before\n      delivery\n   ⚠️ Unsigned or weakly-signed update paths\n   ⚠️ ⚠️ CONFIGURATION IMAGE PARSING — ⚠️ the LogoFAIL class\n      showed that image parsers in firmware, processing an\n      attacker-supplied boot logo, were exploitable. ⚠️ Firmware\n      contains far more attack surface than people assume\n⚠️ THE DEFENCES  ⚠️ hardware root of trust (§22) · signed\n   updates with ROLLBACK PROTECTION · ⚠️ SPI write protection ·\n   reduced attack surface · memory-safe languages in firmware ·\n   ⚠️ measured boot and attestation · runtime firmware\n   integrity monitoring\n⚠️ ⚠️ THE STRUCTURAL PROBLEM  ⚠️ firmware is written by\n   organizations that do not maintain it for the device's life,\n   patched slowly or never, and the user usually cannot tell\n   what version they run or whether it is vulnerable\n```\n","# Digital Logic and Firmware: The Firmware Landscape, the Boot Sequence, Root of Trust and Verified Boot, ACPI and Platform Interfaces, Embedded Firmware Practice, and Firmware Security\n\n> **Part 4 of 5** of the *CMOS, Logic Gates and Firmware Engineering* reference (plugin `digital-logic-and-firmware-engineering`), covering §20–§25. Sibling skills: `logic-devices-transistors-cmos-gates-and-power` (§0–§8), `logic-standard-cells-boolean-minimization-and-arithmetic` (§9–§13), `logic-sequential-timing-metastability-cdc-and-hdl` (§14–§19), `logic-reference` (§26–§31). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Boolean algebra and CMOS circuit design do not change. Two things are moving. See §26 → `logic-reference` for the Secure Boot certificate expiry, and open-source firmware and silicon roots of trust.\n\n> **⚠️ SCOPE, because this sits between existing neighbours.** ⚠️ **A semiconductor\n> reference covers device physics and fabrication; a microarchitecture reference covers how\n> gates become processors. Neither covers the two layers here: HOW TRANSISTORS BECOME\n> BOOLEAN LOGIC, and HOW A MACHINE GETS FROM POWER-ON TO AN OPERATING SYSTEM.**\n>\n> **⚠️ These are the two ends of the stack where the abstractions are built, and where they\n> most often leak.**\n>\n> **⚠️ GOTCHA** boxes mark where the textbook idealization and the real circuit diverge.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ CMOS COMPUTES BY CONNECTING, NOT BY AMPLIFYING** (§5 → `logic-devices-transistors-cmos-gates-and-power`). **A static CMOS gate is two\n>    complementary switch networks, one connecting the output to power and one to ground,\n>    never both. Once you see this, gate construction becomes mechanical and the power\n>    behaviour becomes obvious.**\n> 2. **⚠️ TIMING IS THE REAL CONSTRAINT, NOT LOGIC** (§15 → `logic-sequential-timing-metastability-cdc-and-hdl`, §17 → `logic-sequential-timing-metastability-cdc-and-hdl`). **Getting the Boolean\n>    function right is the easy part. Setup and hold violations, clock skew and metastability\n>    are what actually make digital systems fail, and they fail intermittently.**\n> 3. **⚠️ TRUST IS A CHAIN THAT STARTS BEFORE ANY SOFTWARE RUNS** (§22, §25, §26 → `logic-reference`). **Every\n>    security property the OS provides rests on firmware that executed first. Firmware is\n>    the most privileged and least examined code in the machine.**\n\n---\n\n## §20. The Firmware Landscape\n\n```\n⚠️ WHAT COUNTS AS FIRMWARE  ⚠️ far more than \"the BIOS\" —\n   ⚠️ platform firmware (UEFI\u002FBIOS) · embedded controller ·\n   ⚠️ management engine \u002F PSP (⚠️ a separate processor with\n   higher privilege than the CPU, running code you cannot\n   inspect) · ⚠️ BMC\u002Fservice processor · storage controller\n   firmware · GPU VBIOS · network card firmware · ⚠️ MICROCODE ·\n   peripheral firmware\n⚠️ ⚠️ THE UNCOMFORTABLE TRUTH: a modern machine runs a great deal\n   of privileged code before and beneath the OS, most of it\n   proprietary and unexamined (§25, §26.2)\n⚠️ THE SPECTRUM  ⚠️ bare metal → RTOS → embedded Linux\n⚠️ WHAT MAKES FIRMWARE DIFFERENT FROM SOFTWARE  ⚠️ it may be the\n   only thing running · ⚠️ failure can be unrecoverable (bricking)\n   · updates are risky and sometimes one-way · ⚠️ hardware\n   constraints are absolute · debugging is hard · ⚠️ lifetimes\n   measured in decades\n```\n\n---\n\n## §21. ⚠️ The Boot Sequence\n\n> **⚠️ The chain that gets a machine from applied power to an operating system, and knowing\n> its stages is what makes boot failures diagnosable.**\n```\n⚠️ THE STAGES, in order\n   ⚠️ 1. POWER SEQUENCING and RESET  ⚠️ rails come up in a\n      required order; reset released when stable\n   ⚠️ 2. ⚠️ THE FIRST INSTRUCTION comes from a fixed RESET VECTOR\n      in ROM — ⚠️ and at this point there is NO RAM initialized\n   ⚠️ 3. ⚠️ EARLY INIT  ⚠️ often running out of CACHE-AS-RAM,\n      because DRAM does not work until it is trained\n   ⚠️ 4. ⚠️ MEMORY TRAINING  ⚠️ the memory controller calibrates\n      timings against the actual DIMMs. ⚠️ This is why first\n      boot after a RAM change is slow, and why results are\n      cached\n   ⚠️ 5. Chipset and silicon init · 6. device enumeration\n   ⚠️ 7. Boot device selection · 8. bootloader · 9. kernel\n⚠️ ⚠️ UEFI vs LEGACY BIOS\n   ⚠️ Legacy: 16-bit real mode, MBR, 512-byte boot sector,\n      interrupt-based services. ⚠️ Effectively gone\n   ⚠️ UEFI: ⚠️ a small OS in its own right — 64-bit, GPT\n      partitions, ⚠️ an EFI SYSTEM PARTITION holding actual\n      executable files, driver model, protocols, boot manager\n      with variables, ⚠️ and a shell\n⚠️ THE UEFI PHASES  ⚠️ SEC → PEI (pre-EFI init, memory) →\n   ⚠️ DXE (driver execution — where most functionality lives) →\n   BDS (boot device select) → TSL → RUNTIME\n⚠️ ⚠️ RUNTIME SERVICES PERSIST AFTER THE OS BOOTS — ⚠️ variable\n   access and firmware update paths remain callable, which is\n   both useful and an attack surface (§25)\n⚠️ EMBEDDED EQUIVALENTS  ⚠️ ROM bootloader → first-stage (SPL,\n   often size-constrained) → U-Boot or similar → kernel\n```\n\n---\n\n## §22. ⚠️ Root of Trust and Verified Boot\n\n```\n⚠️ ⚠️ THE CORE IDEA: TRUST MUST START SOMEWHERE IMMUTABLE. ⚠️ A\n   hardware root of trust — mask ROM or fused keys that cannot\n   be modified — verifies the next stage, which verifies the\n   next, and so on\n⚠️ ⚠️ TWO DIFFERENT THINGS OFTEN CONFLATED\n   ⚠️ SECURE \u002F VERIFIED BOOT  ⚠️ ENFORCES — refuses to run\n      unsigned code\n   ⚠️ MEASURED BOOT  ⚠️ RECORDS — hashes each stage into TPM PCRs\n      and lets a remote party ATTEST what ran. ⚠️ It does not\n      block anything\n   ⚠️ They are complementary, not alternatives\n⚠️ THE TPM  ⚠️ PCRs (⚠️ extend-only, so history cannot be\n   rewritten) · sealing (⚠️ releasing a key only if PCRs match,\n   which is how BitLocker binds to platform state) ·\n   attestation · endorsement key\n⚠️ ⚠️ UEFI SECURE BOOT's KEY HIERARCHY (§26.1)\n   ⚠️ PK (Platform Key — the OEM's root, one key)\n   ⚠️ KEK (Key Exchange Key — authorizes updates to the lists)\n   ⚠️ DB (allowed signatures) and ⚠️ DBX (revoked)\n⚠️ SHIM  ⚠️ how Linux boots under Secure Boot — a small\n   Microsoft-signed loader that then validates the distribution's\n   own key, with MOK for user-enrolled keys\n⚠️ ROLLBACK PROTECTION  ⚠️ signature validity is not enough —\n   ⚠️ an attacker can install a genuinely signed OLD version\n   with a known vulnerability. ⚠️ Monotonic counters or fuses\n   are the defence, and this is frequently omitted\n⚠️ ⚠️ THE HONEST LIMIT: verified boot proves what LOADED, not\n   that it is CORRECT. ⚠️ A signed vulnerable bootloader passes\n   verification perfectly (§26.1's BlackLotus)\n```\n\n---\n\n## §23. ACPI and Platform Interfaces\n\n**⚠️ ACPI is how firmware describes the platform to the OS** — ⚠️ **tables (DSDT, SSDT,\nMADT, FADT and many more) plus AML, a bytecode the OS interprets.**\n**⚠️ Power states** are the visible part: ⚠️ **S-states (system sleep), C-states (CPU idle),\nP-states (performance\u002Ffrequency), D-states (device) — and getting these right is most of\nwhat \"sleep doesn't work\" bugs are about.**\n**⚠️ Device tree** is the alternative model used on ARM and RISC-V embedded systems —\n⚠️ **a static description passed to the kernel rather than an interpreted bytecode, and\nmuch easier to reason about.**\n**⚠️ SMBIOS\u002FDMI** for inventory data, ⚠️ **and SMM (System Management Mode) as the\nx86 mechanism that is both genuinely useful and a serious security concern** (§25).\n**⚠️ The practical point**: ⚠️ **an enormous share of \"Linux doesn't support this laptop\"\nproblems are ACPI table bugs that Windows tolerates because the vendor tested against\nWindows only.**\n\n---\n\n## §24. Embedded Firmware Practice\n\n**⚠️ The startup sequence before `main()`**: ⚠️ **vector table, stack pointer, copying\ninitialized data from flash to RAM, zeroing BSS, calling constructors — ⚠️ and knowing this\nis what lets you debug a device that never reaches `main`.**\n**⚠️ The linker script and memory map** are first-class design artifacts, not boilerplate.\n**⚠️ Interrupts**: ⚠️ **keep ISRs short, understand priority and nesting, ⚠️ and volatile\nplus atomic access for anything shared with an ISR — ⚠️ noting that `volatile` is NOT a\nsynchronization primitive** (see a microarchitecture reference §8).\n**⚠️ Bare metal versus RTOS**: ⚠️ **superloop with a state machine is often the right answer;\nan RTOS buys preemption and structure at the cost of stack-per-task and a scheduler to\nreason about.**\n**⚠️ Watchdogs** — ⚠️ **and the discipline that a watchdog must be fed from a place that\nproves the system is actually working, not from a timer interrupt that runs regardless.**\n**⚠️ Field update is the hardest requirement**: ⚠️ **A\u002FB partitions, atomic switchover,\npower-fail safety, rollback, and a recovery path that cannot itself be bricked** (see a\nperipherals reference §17).\n\n---\n\n## §25. ⚠️ Firmware Security\n\n```\n⚠️ ⚠️ WHY IT MATTERS DISPROPORTIONATELY  ⚠️ firmware runs before\n   and beneath the OS, persists across reinstalls and disk\n   replacement, and is largely invisible to antivirus\n⚠️ THE ATTACK CLASSES\n   ⚠️ BOOTKITS  ⚠️ persist in the boot chain (§26.1)\n   ⚠️ SMM attacks  ⚠️ SMM is more privileged than the kernel\n      and hypervisor\n   ⚠️ ⚠️ DMA attacks  ⚠️ a peripheral reading host memory\n      directly — IOMMU is the mitigation (see a peripherals\n      reference §24)\n   ⚠️ SPI flash modification — ⚠️ physical or logical, if write\n      protection is misconfigured\n   ⚠️ ⚠️ SUPPLY CHAIN  implanted or modified firmware before\n      delivery\n   ⚠️ Unsigned or weakly-signed update paths\n   ⚠️ ⚠️ CONFIGURATION IMAGE PARSING — ⚠️ the LogoFAIL class\n      showed that image parsers in firmware, processing an\n      attacker-supplied boot logo, were exploitable. ⚠️ Firmware\n      contains far more attack surface than people assume\n⚠️ THE DEFENCES  ⚠️ hardware root of trust (§22) · signed\n   updates with ROLLBACK PROTECTION · ⚠️ SPI write protection ·\n   reduced attack surface · memory-safe languages in firmware ·\n   ⚠️ measured boot and attestation · runtime firmware\n   integrity monitoring\n⚠️ ⚠️ THE STRUCTURAL PROBLEM  ⚠️ firmware is written by\n   organizations that do not maintain it for the device's life,\n   patched slowly or never, and the user usually cannot tell\n   what version they run or whether it is vulnerable\n```\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdigital-logic-and-firmware-engineering\u002Fskills\u002Flogic-firmware-boot-root-of-trust-embedded-practice-and-security",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill logic-firmware-boot-root-of-trust-embedded-practice-and-security",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill logic-firmware-boot-root-of-trust-embedded-practice-and-security",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill logic-firmware-boot-root-of-trust-embedded-practice-and-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdigital-logic-and-firmware-engineering\u002Fskills\u002Flogic-firmware-boot-root-of-trust-embedded-practice-and-security\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]