07-14-2018, 04:17 AM
(This post was last modified: 07-14-2018, 03:12 PM by Kappuchino.
Edit Reason: Removed some snarky remarks.
)
How can a user enable /dev/spidev0,0 on Rock64?
I've seen this very topic discussed and most of the threads / replies are vague, outdated or not working.
I would appreciate a "put this into this file" or "run this command" pointer.
Or an article I have not found(yet) - see the ones that didn't help (me) below.
Current os (uname -a) is Linux rock64 4.4.126-rockchip-ayufan-239 aarch64 GNU/Linux .
Question aims at making python demo code of Waveshare ePaper (like https://www.waveshare.com/wiki/E-Paper_Driver_HAT) work with Rock64 - no, not in hat mode, in cable mode.
Already took different python lib (with RPi.GPIO-PineA64) into account as well as different Pinout.
Current Error is:
File "/root/code-red/python/epdif.py", line 43, in
SPI = spidev.SpiDev(0, 0)
FileNotFoundError: [Errno 2] No such file or directory
This should go away with spidev0,0 present in /dev and then ... I'll fix the next problem.
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. Most people point to a few who might know, but ... no dice.
Similar unanswered Questions are:
Similar Questions with an answer that does not work (anymore) or are beyond my skills are:
Thank you for any help in advance.
Note:
I've seen this very topic discussed and most of the threads / replies are vague, outdated or not working.
I would appreciate a "put this into this file" or "run this command" pointer.
Or an article I have not found(yet) - see the ones that didn't help (me) below.
Current os (uname -a) is Linux rock64 4.4.126-rockchip-ayufan-239 aarch64 GNU/Linux .
Question aims at making python demo code of Waveshare ePaper (like https://www.waveshare.com/wiki/E-Paper_Driver_HAT) work with Rock64 - no, not in hat mode, in cable mode.
Already took different python lib (with RPi.GPIO-PineA64) into account as well as different Pinout.
Current Error is:
File "/root/code-red/python/epdif.py", line 43, in
SPI = spidev.SpiDev(0, 0)
FileNotFoundError: [Errno 2] No such file or directory
This should go away with spidev0,0 present in /dev and then ... I'll fix the next problem.
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. Most people point to a few who might know, but ... no dice.
Similar unanswered Questions are:
- https://forum.armbian.com/topic/5951-activate-spidev-on-the-rock64/
- https://forum.pine64.org/showthread.php?tid=5409
Similar Questions with an answer that does not work (anymore) or are beyond my skills are:
- https://forum.pine64.org/showthread.php?tid=5682 (didn't work)
- https://forum.pine64.org/showthread.php?tid=4869 (modprobe did not do the trick for me)
- https://forum.pine64.org/showthread.php?tid=5473 (no clue if its related)
- https://forum.pine64.org/showthread.php?tid=1297&page=5 (other distro, right?)
- https://irc.pine64.uk/?date=2018-07-12T09:57:00.000Z [On Rock64. Didn't help]
Thank you for any help in advance.
Note:
- If you know a paid service I can ask, I would pay the help out of my own pocket and publish the steps here, since our project LiquidInvestigations is free and open and I'd rather work on testing elastic search, UI things, ... (things that I'm better at) than hanging in the air because of a seemingly trivial (but only known to a few) piece of information. Narf.
- This is to make https://liquidinvestigations.github.io/ (which uses the rock64) more usable and safer by having a (cheap) display to show codes for the air-gapped rock64 even when it is turned off (hence the use of ePaper)
- I can't switch the Linux Distro/Flavour right now, but if /dev/spidev0,0 only available by changing, then its better than scrapping the use of ePaper displays.
- And finally: If someone will tell me "it does not work", then I'll move in the next iteration to another board which can work with existing code.
[Edit: Removed some snarky remarks.]