title: Raspberry Pi 2, how to disable device_tree to enable SPI?
body: <p>I have a Raspberry Pi 2, Model B, and I'd like to use the SPI to talk to another Pi (for later using it for more SPI-devices). I'd also like to use <a href="http://wiringpi.com/" rel="nofollow">WiringPi</a> for C-coding my program.</p>
  
  <p>I thought I would ensure I had everything I needed, so i ran a full upgrade:</p>
  
  <pre><code>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y
  </code></pre>
  
  <p>I installed<code>WiringPi</code>, and enabling SPI to be loaded from <code>raspi-config</code>, but I still can't do a <code>gpio load SPI</code> without the following error:</p>
  
  <pre><code>gpio: Unable to load/unload modules as this Pi has the device tree enabled.
    You need to run the raspi-config program (as root) and select the
    modules (SPI or I2C) that you wish to load/unload there and reboot.
    There is more information here:
      https://www.raspberrypi.org/forums/viewtopic.php?f=28&amp;t=97314
  </code></pre>
  
  <p>I then tried what <a href="https://www.raspberrypi.org/forums/viewtopic.php?f=28&amp;t=97314" rel="nofollow">the link suggested</a>:</p>
  
  <blockquote>
    <p>... add "device_tree=" to your config.txt and reboot.</p>
  </blockquote>
  
  <pre><code>$ nano sudo /boot/config.txt
  # Go to last line
  # Add 'device_tree='
  # Save, and exit
  $ sudo reboot
  </code></pre>
  
  <p>Then I tried <code>gpio load spi</code>, but I still get the same error.</p>
  
  <p>SPI is enabled in <code>/boot/config.txt</code>:</p>
  
  <pre><code>$ cat /boot/config.txt | grep spi
  dtparam=spi=on
  </code></pre>
  
  <p>Have any of you suggestions to, what I can try to enable my SPI?</p>