poka.sh

Docs

DTB

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

Device Tree Blob Preview.

At a glance

Purpose A flattened device tree blob (.dtb): the binary description of a board's hardware for the Linux kernel and bootloaders.
Extensions .dtb
Poka parser poka-dtb
Viewer poka-tree-viewer
Depth tier Parser with a shared viewer (see Depth tiers)
Breadth tier B2 Broad (see Breadth tiers)

How much Poka reads

B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-dtb/src/main.rs (593 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has qemu.dtb, read by no test. Covers .dtb and .fdt. The tree reads the FDT header and walks the structure block into the node hierarchy, with every property decoded: strings and string lists, cell counts and phandles as numbers, reg, ranges and interrupts as hex cells, and other values as strings or hex. Judgement: B2: the whole tree is decoded; the gaps are interpretation and limits.

What Poka does not read

  • Phandle references are not resolved to node paths
  • The memory-reservation block is counted, not listed
  • Overlay fixups (fixups, symbols) are shown as plain nodes
  • Caps of 3,000 nodes and 64 levels; files over 16 MiB are cut (flagged)

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • dtoolkit (candidate; Apache-2.0 OR MIT; Rust; https://docs.rs/dtoolkit) — Google crate; read-only FDT parsing without allocation, plus read-write API and DTS output. Repo: github.com/google/dtoolkit.
  • fdt-parser (candidate; MPL-2.0; Rust; https://docs.rs/crate/fdt-parser/latest) — Pure Rust no_std FDT parser following devicetree spec v0.4; Fdt::from_bytes loads a .dtb. Repo: github.com/drivercraft/fdt-parser.

Sources

  • parsers/poka-dtb/src/main.rs
  • parsers/poka-dtb/plugin.json