Skip to content

How to enable spidev0,0 on rock64? #237

@kappuchino

Description

@kappuchino

As discussed on IRC in #Rock64, how can a user enable /dev/spidev0,0 - for example by "using overlayfs interface of configfs" (as @ayufan suggested - but honestly have no clue how to ...)?

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. 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

should go away with spidev0,0 present in /dev
(yes, might be other problems, one step at a time ...)

I think it might be just a command similar to
"enable_dtoverlay i2c0 i2c@ff150000 okay" or "enable_dtoverlay i2c0 i2c@ff150000 okay" but I have not figured out what the magic words are.

For reference:
Similar unanswered Questions are:
https://forum.armbian.com/topic/5951-activate-spidev-on-the-rock64/
https://forum.pine64.org/showthread.php?tid=5409

Not understood to the point that I can act on it:
https://github.com/ayufan-rock64/linux-build/blob/master/recipes/additional-devices.md#use-additional-devices

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?)

Thank you for any help in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions