title: BBB - Automatically load a Device Tree overlay on boot
body: <p>I have a device tree overlay:</p>
  
  <pre><code>/dts-v1/;
  /plugin/;
  
  / {
      compatible = "ti,beaglebone", "ti,beaglebone-black";
      part-number = "mousetraps";
      version = "00A1";
  
      /* https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP9HeaderTable.pdf */
      fragment@0 {
              target = &lt;&amp;am33xx_pinmux&gt;;
              __overlay__ {
                      mousetrap_pins: pinmux_mousetrap_pins {
                              pinctrl-single,pins = &lt;
                                      0x070 0x2f /* P9_11 30 INPUT MODE7 none */
                                      0x074 0x2f /* P9_13 31 INPUT MODE7 none */
                                      0x040 0x2f /* P9_15 48 INPUT MODE7 none */
                                      0x15c 0x2f /* P9_17 05 INPUT MODE7 none */
                              &gt;;
                      };
              };
      };
  
      fragment@1 {
              target = &lt;&amp;ocp&gt;;
              __overlay__ {
                      test_helper: helper {
                              compatible = "bone-pinmux-helper";
                              pinctrl-names = "default";
                              pinctrl-0 = &lt;&amp;mousetrap_pins&gt;;
                              status = "okay";
                      };
              };
      };
  };
  </code></pre>
  
  <p>which I can successfully load with:</p>
  
  <pre><code>echo mousetraps:00A1 &gt;/sys/devices/bone_capemgr.8/driver/bone_capemgr.8/slots ; dmesg | grep bone
  </code></pre>
  
  <p>How can I configure the BBB/Angstrom to load it automatically on boot?</p>
  
  <p>More specifically, how can I hook the dtbo file into the normal Device Tree loading mechanism? I know I can add the echo to a linux init script, but it seems like there must be something that triggers the loading of the dtbo files.</p>