(Created page with " === Updating the Device Tree Compiler === If you get the following error message when compiling device tree blobs, then you will need to update your device tree compiler (dt...") |
(→Updating the Device Tree Compiler) |
||
Line 2: | Line 2: | ||
=== Updating the Device Tree Compiler === | === Updating the Device Tree Compiler === | ||
− | If you get the following error message when compiling device tree blobs, then you will need to update your device tree compiler (dtc) | + | If you get the following error message when compiling device tree blobs, then you will need to update your device tree compiler (dtc) with a specific version designed for dynamic DT loading (e.g enable symbol/fixup support) |
<PRE> | <PRE> | ||
Line 8: | Line 8: | ||
</PRE> | </PRE> | ||
− | To | + | To clone the official repository for the [http://www.devicetree.org/Device_Tree_Compiler Device Tree Compiler] use: |
<PRE> | <PRE> | ||
− | + | git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git | |
− | + | </PRE> | |
− | ./dtc. | + | |
+ | However, this upstream DTC doesn't include the option to enable symbol/fixup support. | ||
+ | |||
+ | To compile a DTC version with symbol/fixup support for dynamic loading of device trees: | ||
+ | |||
+ | <PRE> | ||
+ | git clone https://github.com/pantoniou/dtc.git | ||
+ | cd dtc | ||
+ | git checkout dt-overlays5 | ||
+ | make PREFIX=/usr | ||
+ | sudo make install | ||
</PRE> | </PRE> |
If you get the following error message when compiling device tree blobs, then you will need to update your device tree compiler (dtc) with a specific version designed for dynamic DT loading (e.g enable symbol/fixup support)
dtc: invalid option -- '@'
To clone the official repository for the Device Tree Compiler use:
git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git
However, this upstream DTC doesn't include the option to enable symbol/fixup support.
To compile a DTC version with symbol/fixup support for dynamic loading of device trees:
git clone https://github.com/pantoniou/dtc.git cd dtc git checkout dt-overlays5 make PREFIX=/usr sudo make install