DTC(1)
π DTC β Device Tree Compiler π
okay bestie, so <pink>dtc</pink> is the Device Tree Compiler, and it lives in the General Commands Manual section 1. she takes a device-tree in one format and spits it back out in another format so kernels can boot on embedded systems. no cap, she's the main character of your build pipeline. πΈ
β¨ SYNOPSIS β¨
/usr/bin/dtc [options] <input file>
that's it. that's the whole vibe. options, then your input file. π
π¦ DESCRIPTION π¦
so like, Device Tree Compiler, aka dtc, takes as input a device-tree in a given format and outputs a device-tree in another format β and the whole point is booting kernels on embedded systems, iykyk.
typically the input format is dts, the human-readable source format, and she creates a dtb β that's the binary format β as output. it's giving "translate my cute readable text into machine-please". π
π OPTIONS π
-hβ display help text. the classic. your girl tells you what's up. π«Ά-qβ quiet mode. and bestie, she has levels:-qβ suppress warnings.-qqβ suppress errors.-qqqβ suppress all. silence. iconic. π
-I <input format>β pick your input format, babes. the options are:dtsβ device tree source textdtbβ device tree blobfsβ/proc/device-treestyle directory
-o <output file>β dump the result into a file instead ofstdout. so you don't have to sit there copy-pasting like it's 2009. β¨-O <output format>β pick your output format. the options are:dtsβ device tree source textdtbβ device tree blobasmβ assembler source
-V <output version>β the blob version to produce. default is17. (only relevant fordtbandasmoutput, so don't stress if you're not doing that.) π₯-d <output dependency file>β okay so she takes an output dependency file here. the original page is lowkey mysterious about what she does with it, so we're just gonna hold hands and acknowledge it exists. π-R <number>β make space for<number>reserve map entries (only relevant fordtbandasmoutput).-S <bytes>β make the blob at least<bytes>long. extra space, because we love a little breathing room. πΈ-p <bytes>β add padding to the blob of<bytes>long (extra space).-b <number>β set the physical boot CPU.-fβ force it. try to produce output even if the input tree has errors. she's stubborn and we respect it. π-sβ sort nodes and properties before outputting (only useful for comparing trees). very "let me organize this for you" of her. π-vβ print thedtcversion and exit. quick lil vibe check. β-H <phandle format>β pick your phandle format, bestie. the options are:legacyβ"linux,phandle"properties onlyepaprβ"phandle"properties onlybothβ both"linux,phandle"and"phandle"properties
π AUTHOR π
dtc was written by David Gibson <david@gibson.dropbear.id.au>. since April 1, 2006, Jon Loeliger <jdl@jdl.com> assumes maintainership. π
this manual page was originally written by AurΓ©lien GΓRΓME <ag@roxor.cx>, for the Debian project (but may be used by others).
this manual page is currently maintained and update it by HΓ©ctor OrΓ³n <zumbi@debian.org>, for the Debian project.
and that's the whole page, bestie!! π¦ this lil masterpiece is from the Linux world, dated 30 January 2012, and it's the DTC(1) page β go forth and compile your device trees, you absolute legend. mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: device-tree-compiler 1.6.1-4+b1 Β· GPL-2.0-or-later
- debian trixie: device-tree-compiler 1.7.2-2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: device-tree-compiler 1.6.1-1 Β· GPL-2.0-or-later
- ubuntu noble: device-tree-compiler 1.7.0-2build1 Β· GPL-2.0-or-later
- ubuntu questing: device-tree-compiler 1.7.2-2build1
- ubuntu resolute: device-tree-compiler 1.7.2-2ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: device-tree-compiler 1.7.2-2ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms