(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 update the device tree compiler, execute:
+
To clone the official repository for the [http://www.devicetree.org/Device_Tree_Compiler Device Tree Compiler] use:
  
 
<PRE>
 
<PRE>
wget -c https://raw.github.com/RobertCNelson/tools/master/pkgs/dtc.sh
+
git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git
chmod +x dtc.sh
+
</PRE>
./dtc.sh
+
 
 +
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>

Latest revision as of 11:05, 6 August 2015

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) 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