Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory #87

Open
tarantelot opened this issue Jun 21, 2019 · 2 comments
Open

FileNotFoundError: [Errno 2] No such file or directory #87

tarantelot opened this issue Jun 21, 2019 · 2 comments

Comments

@tarantelot
Copy link

Do I have this error because of the incorrect path specified in spidev_module.c. The default path to look for devices is dev/spidevX.Y, whereas my appear at /sys/bus/spi/devices/spiX.Y.

@Wuppdich
Copy link

i came across the same error because i forgot to enable SPI in the Raspberry Pi settings

@tim-seoss
Copy link

tim-seoss commented Mar 9, 2023

/sys/bus/spi/devices/spiX.Y are sysfs entries which indicate that one or more SPI bus master devices are present, and have SPI controller drivers loaded and bound to them, with the corresponding chip-select lines configured (bus X and chipselect Ys in your example).

If you don't have spidev devices, then either udev hasn't created them on your system (because of a deliberate or accidental misconfiguration), or (more likely) because the spidev driver is not bound to any SPI peripheral devices. It used to be possible to do this using devicetree rules, or using dynamic binding (e.g. using udev rules). More recent kernels have deprecated the devicetree mechanisms, so udev rules should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants