title: How can I enable /dev/spidev0,0 on a rock64 system?
body: <p>Context: I am trying to make the python demo code of Waveshare ePaper (like <a href="https://www.waveshare.com/wiki/E-Paper_Driver_HAT" rel="nofollow noreferrer">https://www.waveshare.com/wiki/E-Paper_Driver_HAT</a>) work with Rock64.</p>
  
  <p>I already used the different python lib (with RPi.GPIO-PineA64) and adjusted the pinout. </p>
  
  <pre><code>Current os (uname -a) is Linux rock64 4.4.126-rockchip-ayufan-239 aarch64 GNU/Linux
  
  Current Error is:
  File "/root/test-code/python/epdif.py", line 43, in 
  SPI = spidev.SpiDev(0, 0)
  FileNotFoundError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>I think it might be just a command similar to
  "enable_dtoverlay i2c0 i2c@ff150000 okay" but I have not figured out what the magic words are or what I need to change.</p>
  
  <p>I looked at the docs for device trees, but thats beyond my understanding what I need to do.</p>
  
  <p>Similar unanswered Questions are:</p>
  
  <ol>
  <li><a href="https://forum.armbian.com/topic/5951-activate-spidev-on-the-rock64/" rel="nofollow noreferrer">https://forum.armbian.com/topic/5951-activate-spidev-on-the-rock64/</a></li>
  <li><a href="https://forum.pine64.org/showthread.php?tid=5409" rel="nofollow noreferrer">https://forum.pine64.org/showthread.php?tid=5409</a>
  [...]</li>
  </ol>
  
  <p>Not understood to the point that I can act on it:</p>
  
  <ol>
  <li><a href="https://github.com/ayufan-rock64/linux-build/blob/master/recipes/additional-devices.md#use-additional-devices" rel="nofollow noreferrer">https://github.com/ayufan-rock64/linux-build/blob/master/recipes/additional-devices.md#use-additional-devices</a></li>
  </ol>
  
  <p>Similar Questions with an answer that does not work (anymore) or are beyond my skills are:</p>
  
  <ol>
  <li><a href="https://forum.pine64.org/showthread.php?tid=5682" rel="nofollow noreferrer">https://forum.pine64.org/showthread.php?tid=5682</a> (didn't work)</li>
  <li><a href="https://forum.pine64.org/showthread.php?tid=4869" rel="nofollow noreferrer">https://forum.pine64.org/showthread.php?tid=4869</a> (modprobe did not do the trick for me)</li>
  <li><a href="https://forum.pine64.org/showthread.php?tid=5473" rel="nofollow noreferrer">https://forum.pine64.org/showthread.php?tid=5473</a> (no clue if its related)</li>
  <li><a href="https://forum.pine64.org/showthread.php?tid=1297&amp;page=5" rel="nofollow noreferrer">https://forum.pine64.org/showthread.php?tid=1297&amp;page=5</a> (other distro, right?)</li>
  </ol>
  
  <p>Thank you for any help in advance.</p>