【发布时间】:2018-07-13 09:20:19
【问题描述】:
上下文:我正在尝试使 Waveshare ePaper 的 python 演示代码(如 https://www.waveshare.com/wiki/E-Paper_Driver_HAT)与 Rock64 一起使用。
我已经使用了不同的 python 库(使用 RPi.GPIO-PineA64)并调整了引脚。
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
我认为这可能只是一个类似于 “enable_dtoverlay i2c0 i2c@ff150000 好的”,但我还没有弄清楚魔术词是什么或我需要改变什么。
我查看了设备树的文档,但这超出了我的理解范围。
类似的未回答问题是:
- https://forum.armbian.com/topic/5951-activate-spidev-on-the-rock64/
- https://forum.pine64.org/showthread.php?tid=5409 [...]
不理解到可以采取行动的地步:
类似问题的答案(不再适用)或超出我的能力范围是:
- https://forum.pine64.org/showthread.php?tid=5682(没用)
- https://forum.pine64.org/showthread.php?tid=4869(modprobe 没有帮到我)
- https://forum.pine64.org/showthread.php?tid=5473(不知道是否相关)
- https://forum.pine64.org/showthread.php?tid=1297&page=5(其他发行版,对吗?)
提前感谢您的帮助。
【问题讨论】:
标签: python arm linux-device-driver spi