[Pkg-electronics-devel] Bug#1056589: python3-spidev: i got no spidev devices unter /dev/

mooppi79 at googlemail.com mooppi79 at googlemail.com
Thu Nov 23 15:04:29 GMT 2023


Package: python3-spidev
Version: 3.6-1+b1
Severity: normal

Dear Maintainer,

I got no SPI - Device under /dev/ 

root at raspi2:/dev# ls -hl 
insgesamt 0
crw------- 1 root root     10, 134 20. Sep 14:15 apm_bios
crw-r--r-- 1 root root     10, 235 20. Sep 14:15 autofs
drwxr-xr-x 2 root root         260 20. Sep 14:15 block
crw------- 1 root root     10, 234 20. Sep 14:15 btrfs-control
drwxr-xr-x 3 root root          60  1. Jan 1970  bus
crw-rw---- 1 root video   239,   0 20. Sep 14:15 cec0
drwxr-xr-x 2 root root        2,7K 22. Nov 18:59 char
crw--w---- 1 root tty       5,   1 22. Nov 18:59 console
crw------- 1 root root     10, 203 20. Sep 14:15 cuse
drwxr-xr-x 8 root root         160  1. Jan 1970  disk
drwxr-xr-x 3 root root         100 20. Sep 14:15 dri
crw-rw---- 1 root video    29,   0 20. Sep 14:15 fb0
lrwxrwxrwx 1 root root          13  1. Jan 1970  fd -> /proc/self/fd
crw-rw-rw- 1 root root      1,   7 20. Sep 14:15 full
crw-rw-rw- 1 root root     10, 229 20. Sep 14:15 fuse
crw------- 1 root root    254,   0 20. Sep 14:15 gpiochip0
crw------- 1 root root     10, 183 20. Sep 14:15 hwrng
crw-rw---- 1 root i2c      89,   0 20. Sep 14:15 i2c-0
crw-rw---- 1 root i2c      89,   1 20. Sep 14:15 i2c-1
crw-rw---- 1 root i2c      89,   2 20. Sep 14:15 i2c-2
lrwxrwxrwx 1 root root          12 20. Sep 14:15 initctl -> /run/initctl
drwxr-xr-x 3 root root         100 20. Sep 14:15 input
crw-r--r-- 1 root root      1,  11 20. Sep 14:15 kmsg
lrwxrwxrwx 1 root root          28 20. Sep 14:15 log -> /run/systemd/journal/
dev-log
brw-rw---- 1 root disk      7,   0 20. Sep 14:15 loop0
...
crw-rw---- 1 root disk     10, 237 20. Sep 14:15 loop-control
drwxr-xr-x 2 root root          60 20. Sep 14:15 mapper
crw-r----- 1 root kmem      1,   1 20. Sep 14:15 mem
brw-rw---- 1 root disk    179,   0 20. Sep 14:15 mmcblk0
brw-rw---- 1 root disk    179,   1 20. Sep 14:15 mmcblk0p1
brw-rw---- 1 root disk    179,   2 20. Sep 14:15 mmcblk0p2
drwxrwxrwt 2 root root          40  1. Jan 1970  mqueue
drwxr-xr-x 2 root root          60 20. Sep 14:15 net
crw-rw-rw- 1 root root      1,   3 20. Sep 14:15 null
crw-r----- 1 root kmem      1,   4 20. Sep 14:15 port
crw------- 1 root root    108,   0 20. Sep 14:15 ppp
crw------- 1 root root     10,   1 20. Sep 14:15 psaux
crw-rw-rw- 1 root tty       5,   2 23. Nov 16:00 ptmx
drwxr-xr-x 2 root root           0  1. Jan 1970  pts
crw-rw-rw- 1 root root      1,   8 20. Sep 14:15 random
crw------- 1 root root     10, 242 20. Sep 14:15 rfkill
drwxrwxrwt 2 root root          40 20. Sep 14:15 shm
crw------- 1 root root     10, 231 20. Sep 14:15 snapshot
drwxr-xr-x 3 root root         180 20. Sep 14:15 snd
lrwxrwxrwx 1 root root          15  1. Jan 1970  stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root          15  1. Jan 1970  stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root          15  1. Jan 1970  stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty       5,   0 20. Sep 14:15 tty
...
crw-rw---- 1 root dialout 204,  64 22. Nov 18:59 ttyAMA0
crw-rw---- 1 root dialout   4,  64 20. Sep 14:15 ttyS0
crw-rw---- 1 root dialout   4,  65 20. Sep 14:15 ttyS1
crw-rw---- 1 root dialout   4,  66 20. Sep 14:15 ttyS2
crw-rw---- 1 root dialout   4,  67 20. Sep 14:15 ttyS3
crw-rw---- 1 root dialout   4,  68 20. Sep 14:15 ttyS4
crw------- 1 root root     10, 239 20. Sep 14:15 uhid
crw------- 1 root root     10, 223 20. Sep 14:15 uinput
crw-rw-rw- 1 root root      1,   9 20. Sep 14:15 urandom
crw------- 1 root root     10, 126 20. Sep 14:15 userfaultfd
crw------- 1 root root     10, 125 20. Sep 14:15 vchiq
crw-rw---- 1 root tty       7,   0 20. Sep 14:15 vcs
...
crw------- 1 root root     10, 127 20. Sep 14:15 vga_arbiter
crw-rw---- 1 root kvm      10, 238 20. Sep 14:15 vhost-net
crw-rw---- 1 root kvm      10, 241 20. Sep 14:15 vhost-vsock
crw------- 1 root root     10, 130 20. Sep 14:15 watchdog
crw------- 1 root root    249,   0 20. Sep 14:15 watchdog0
crw-rw-rw- 1 root root      1,   5 20. Sep 14:15 zero
root at raspi2:/dev# 



i have insert the Modules under 

etc/modules-load.d/modules.conf
spi-bcm2835
spi-bcm2835aux
spi-spidev
i2c-dev
i2c-bcm2835


the modul list under /lib/modules/6.1.0-13-armmp/kernel/drivers/spi

insgesamt 528K
-rw-r--r-- 1 root root  27K 29. Sep 06:15 spi-aspeed-smc.ko
-rw-r--r-- 1 root root  15K 29. Sep 06:15 spi-bcm2835aux.ko
-rw-r--r-- 1 root root  25K 29. Sep 06:15 spi-bcm2835.ko
-rw-r--r-- 1 root root 9,4K 29. Sep 06:15 spi-butterfly.ko
-rw-r--r-- 1 root root  30K 29. Sep 06:15 spi-cadence-quadspi.ko
-rw-r--r-- 1 root root  34K 29. Sep 06:15 spi-imx.ko
-rw-r--r-- 1 root root 9,0K 29. Sep 06:15 spi-lm70llp.ko
-rw-r--r-- 1 root root  17K 29. Sep 06:15 spi-meson-spicc.ko
-rw-r--r-- 1 root root  13K 29. Sep 06:15 spi-meson-spifc.ko
-rw-r--r-- 1 root root  27K 29. Sep 06:15 spi-omap2-mcspi.ko
-rw-r--r-- 1 root root  17K 29. Sep 06:15 spi-orion.ko
-rw-r--r-- 1 root root  37K 29. Sep 06:15 spi-pl022.ko
-rw-r--r-- 1 root root  12K 29. Sep 06:15 spi-pxa2xx-pci.ko
-rw-r--r-- 1 root root  33K 29. Sep 06:15 spi-pxa2xx-platform.ko
-rw-r--r-- 1 root root  24K 29. Sep 06:15 spi-rockchip.ko
-rw-r--r-- 1 root root  34K 29. Sep 06:15 spi-stm32.ko
-rw-r--r-- 1 root root  23K 29. Sep 06:15 spi-stm32-qspi.ko
-rw-r--r-- 1 root root  13K 29. Sep 06:15 spi-sun4i.ko
-rw-r--r-- 1 root root  17K 29. Sep 06:15 spi-sun6i.ko
-rw-r--r-- 1 root root  30K 29. Sep 06:15 spi-tegra114.ko
-rw-r--r-- 1 root root  15K 29. Sep 06:15 spi-tegra20-sflash.ko
-rw-r--r-- 1 root root  23K 29. Sep 06:15 spi-ti-qspi.ko
root at raspi2:/lib/modules/6.1.0-13-armmp/kernel/drivers/spi# 

i got the Same Problem under 3 Other Rasperry devices 


BR
Manuel Tausendfreund


-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable')
Architecture: armhf (armv7l)

Kernel: Linux 6.1.0-13-armmp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not 
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-spidev depends on:
ii  libc6    2.36-9+deb12u3
ii  python3  3.11.2-1+b1

python3-spidev recommends no packages.

python3-spidev suggests no packages.

-- no debconf information



More information about the Pkg-electronics-devel mailing list