%general-entities; ]> Dtc-&dtc-version; dtc Introduction to Dtc The dtc package contains the Device Tree Compiler for working with device tree source and binary files and also libfdt, a utility library for reading and manipulating device trees in the binary format. &lfs121_checked; Package Information Download (HTTP): Download MD5 sum: &dtc-md5sum; Download size: &dtc-size; Estimated disk space required: &dtc-buildsize; Estimated build time: &dtc-time; Dtc Dependencies Optional , , , and Installation of Dtc Install dtc by running the following commands: mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -Dpython=disabled .. && ninja To test the results, issue: meson test -v. Two tests named cell-overflow.dts and cell-overflow-results.dts are known to fail. Now, as the &root; user: ninja install Still as the &root; user, remove the useless static library: rm /usr/lib/libfdt.a If you have installed, you can build the PDF format of the documentation by issuing the following command: pushd ../Documentation latexmk -bibtex --pdf dtc-paper && latexmk -bibtex --pdf dtc-paper -c popd To install the documentation, as the &root; user issue the following command: cp -R ../Documentation -T /usr/share/doc/dtc-&dtc-version; If you have installed both and and you wish to install the Python 3 binding of this package, build the Python 3 module: sed -i '/use_scm_version/a "fallback_version": "1.7.0",' ../setup.py && &build-wheel-cmd; .. As the &root; user, install the Python 3 module: &install-wheel; Command Explanations -Dpython=disabled: This switch prevents building the Python 3 binding with the deprecated method (running setup.py directly). We will build the Python 3 binding with the pip3 wheel command separately if wanted. sed ... ../setup.py: This command allows building the Python 3 binding from a release tarball (instead of a Git checkout). Contents Installed Programs Installed Library Installed Directory convert-dtsv0, dtc, dtdiff, fdtdump, fdtget, fdtoverlay, and fdtput libfdt.so /usr/lib/python&python3-majorver;/site-packages/libfdt-&dtc-version;.dist-info Short Descriptions convert-dtsv0 converts device tree v0 source to device tree v1 convert-dtsv0 dtc compiles device tree source (dts) to device tree binary blob (dtb), or de-compiles dtb to dts dtc dtdiff compares two different device tree dtdiff fdtdump prints a readable version of a flat device-tree file fdtdump fdtget reads values from device-tree fdtget fdtoverlay applies a number of overlays to a base device tree blob fdtoverlay fdtput writes a property value to a device tree fdtput libfdt.so is a utility library for reading and manipulating device trees in the binary format libfdt.so