No SPI dev

I use JetPack 4.6.
I do this:
sudo /opt/nvidia/jetson-io/jetson-io.py
I choose: Configure Jetson Nano CSI Connector
Select: Camera IMX477 Dual
Next: Re-configure Jetson 40pin Header
Select: Configure header pins manually
Select: spi1
save and exit, reboot…

After rebooting i dont see spidev
ls -l /dev
total 0
crw------- 1 root root 10, 235 окт 25 15:21 autofs
drwxr-xr-x 2 root root 920 окт 25 15:21 block
crw------- 1 root root 10, 234 окт 25 15:21 btrfs-control
drwxr-xr-x 3 root root 60 янв 1 1970 bus
drwxr-xr-x 2 root root 5180 окт 25 15:21 char
crw------- 1 root root 5, 1 окт 25 15:21 console
crw------- 1 root root 10, 41 окт 25 15:21 constraint_cpu_freq
crw------- 1 root root 10, 40 окт 25 15:21 constraint_gpu_freq
crw------- 1 root root 10, 39 окт 25 15:21 constraint_online_cpus
crw------- 1 root root 10, 54 окт 25 15:21 cpu_dma_latency
crw------- 1 root root 10, 45 окт 25 15:21 cpu_freq_max
crw------- 1 root root 10, 46 окт 25 15:21 cpu_freq_min
crw------- 1 root root 10, 203 окт 25 15:21 cuse
drwxr-xr-x 8 root root 160 окт 25 15:21 disk
crw------- 1 root root 10, 44 окт 25 15:21 emc_freq_min
crw-rw---- 1 root video 29, 0 окт 25 15:21 fb0
crw-rw---- 1 root video 29, 1 окт 25 15:21 fb1
lrwxrwxrwx 1 root root 13 окт 25 15:21 fd → /proc/self/fd
crw-rw-rw- 1 root root 1, 7 окт 25 15:21 full
crw-rw-rw- 1 root root 10, 229 окт 25 15:21 fuse
crw------- 1 root root 254, 0 окт 25 15:21 gpiochip0
crw------- 1 root root 254, 1 окт 25 15:21 gpiochip1
crw------- 1 root root 10, 49 окт 25 15:21 gpu_freq_max
crw------- 1 root root 10, 50 окт 25 15:21 gpu_freq_min
crw------- 1 root root 509, 0 окт 25 15:21 hidraw0
crw------- 1 root root 509, 1 окт 25 15:21 hidraw1
crw------- 1 root root 509, 2 окт 25 15:21 hidraw2
drwxr-xr-x 2 root root 0 окт 25 15:21 hugepages
crw-rw---- 1 root i2c 89, 0 окт 25 15:21 i2c-0
crw-rw---- 1 root i2c 89, 1 окт 25 15:21 i2c-1
crw-rw---- 1 root i2c 89, 2 окт 25 15:21 i2c-2
crw-rw---- 1 root i2c 89, 3 окт 25 15:21 i2c-3
crw-rw---- 1 root i2c 89, 4 окт 25 15:21 i2c-4
crw-rw---- 1 root i2c 89, 5 окт 25 15:21 i2c-5
crw-rw---- 1 root i2c 89, 6 окт 25 15:21 i2c-6
crw-rw---- 1 root i2c 89, 7 окт 25 15:21 i2c-7
crw-rw---- 1 root i2c 89, 8 окт 25 15:21 i2c-8
crw------- 1 root root 246, 0 окт 25 15:21 iio:device0
lrwxrwxrwx 1 root root 25 окт 25 15:21 initctl → /run/systemd/initctl/fifo
drwxr-xr-x 4 root root 220 окт 25 15:21 input
crw------- 1 root root 10, 55 окт 25 15:21 keychord
crw-r----- 1 root kmem 1, 2 окт 25 15:21 kmem
crw-r–r-- 1 root root 1, 11 окт 25 15:21 kmsg
lrwxrwxrwx 1 root root 28 окт 25 15:21 log → /run/systemd/journal/dev-log
brw-rw---- 1 root disk 7, 0 окт 25 15:21 loop0
brw-rw---- 1 root disk 7, 1 окт 25 15:23 loop1
brw-rw---- 1 root disk 7, 2 окт 25 15:21 loop2
brw-rw---- 1 root disk 7, 3 окт 25 15:21 loop3
brw-rw---- 1 root disk 7, 4 окт 25 15:21 loop4
brw-rw---- 1 root disk 7, 5 окт 25 15:21 loop5
brw-rw---- 1 root disk 7, 6 окт 25 15:21 loop6
brw-rw---- 1 root disk 7, 7 окт 25 15:21 loop7
crw-rw---- 1 root disk 10, 237 окт 25 15:21 loop-control
drwxr-xr-x 2 root root 60 янв 1 1970 mapper
crw------- 1 root root 10, 43 окт 25 15:21 max_cpu_power
crw------- 1 root root 10, 42 окт 25 15:21 max_gpu_power
crw------- 1 root root 10, 47 окт 25 15:21 max_online_cpus
crw-rw---- 1 root video 251, 0 окт 25 15:21 media0
crw-r----- 1 root kmem 1, 1 окт 25 15:21 mem
crw------- 1 root root 10, 51 окт 25 15:21 memory_bandwidth
crw------- 1 root root 10, 48 окт 25 15:21 min_online_cpus
brw-rw---- 1 root disk 179, 0 окт 25 15:21 mmcblk0
brw-rw---- 1 root disk 179, 1 окт 25 15:21 mmcblk0p1
brw-rw---- 1 root disk 179, 10 окт 25 15:21 mmcblk0p10
brw-rw---- 1 root disk 179, 11 окт 25 15:21 mmcblk0p11
brw-rw---- 1 root disk 179, 12 окт 25 15:21 mmcblk0p12
brw-rw---- 1 root disk 179, 13 окт 25 15:21 mmcblk0p13
brw-rw---- 1 root disk 179, 14 окт 25 15:21 mmcblk0p14
brw-rw---- 1 root disk 179, 2 окт 25 15:21 mmcblk0p2
brw-rw---- 1 root disk 179, 3 окт 25 15:21 mmcblk0p3
brw-rw---- 1 root disk 179, 4 окт 25 15:21 mmcblk0p4
brw-rw---- 1 root disk 179, 5 окт 25 15:21 mmcblk0p5
brw-rw---- 1 root disk 179, 6 окт 25 15:21 mmcblk0p6
brw-rw---- 1 root disk 179, 7 окт 25 15:21 mmcblk0p7
brw-rw---- 1 root disk 179, 8 окт 25 15:21 mmcblk0p8
brw-rw---- 1 root disk 179, 9 окт 25 15:21 mmcblk0p9
drwxrwxrwt 2 root root 40 янв 1 1970 mqueue
crw------- 1 root root 90, 0 окт 25 15:21 mtd0
crw------- 1 root root 90, 1 окт 25 15:21 mtd0ro
brw-rw---- 1 root disk 31, 0 окт 25 15:21 mtdblock0
drwxr-xr-x 2 root root 60 янв 1 1970 net
crw------- 1 root root 10, 53 окт 25 15:21 network_latency
crw------- 1 root root 10, 52 окт 25 15:21 network_throughput
crw-rw-rw- 1 root root 1, 3 окт 25 15:21 null
crw-rw---- 1 root video 10, 58 окт 25 15:21 nvhdcp0
crw-rw---- 1 root video 506, 1 окт 25 15:21 nvhost-as-gpu
crw-rw---- 1 root video 242, 0 окт 25 15:21 nvhost-ctrl
crw-rw---- 1 root video 506, 2 окт 25 15:21 nvhost-ctrl-gpu
crw-rw---- 1 root video 242, 26 окт 25 15:21 nvhost-ctrl-isp
crw-rw---- 1 root video 242, 30 окт 25 15:21 nvhost-ctrl-isp.1
crw-rw---- 1 root video 242, 10 окт 25 15:21 nvhost-ctrl-nvdec
crw-rw---- 1 root video 242, 34 окт 25 15:21 nvhost-ctrl-vi
crw-rw---- 1 root debug 506, 6 окт 25 15:21 nvhost-ctxsw-gpu
crw-rw---- 1 root debug 506, 3 окт 25 15:21 nvhost-dbg-gpu
crw-rw---- 1 root video 506, 0 окт 25 15:21 nvhost-gpu
crw-rw---- 1 root video 242, 25 окт 25 15:21 nvhost-isp
crw-rw---- 1 root video 242, 29 окт 25 15:21 nvhost-isp.1
crw-rw---- 1 root video 242, 17 окт 25 15:21 nvhost-msenc
crw-rw---- 1 root video 242, 9 окт 25 15:21 nvhost-nvdec
crw-rw---- 1 root video 242, 21 окт 25 15:21 nvhost-nvjpg
crw-rw---- 1 root debug 506, 4 окт 25 15:21 nvhost-prof-gpu
crw-rw---- 1 root root 506, 7 окт 25 15:21 nvhost-sched-gpu
crw-rw---- 1 root video 242, 1 окт 25 15:21 nvhost-tsec
crw-rw---- 1 root video 242, 5 окт 25 15:21 nvhost-tsecb
crw-rw---- 1 root video 506, 5 окт 25 15:21 nvhost-tsg-gpu
crw-rw---- 1 root video 242, 33 окт 25 15:21 nvhost-vi
crw-rw---- 1 root video 242, 13 окт 25 15:21 nvhost-vic
crw-rw---- 1 root video 10, 61 окт 25 15:21 nvmap
crw-r----- 1 root kmem 1, 4 окт 25 15:21 port
crw------- 1 root root 108, 0 окт 25 15:21 ppp
crw------- 1 root root 10, 1 окт 25 15:21 psaux
crw-rw-rw- 1 root tty 5, 2 окт 25 15:27 ptmx
drwxr-xr-x 2 root root 0 окт 25 15:21 pts
crw------- 1 root root 2, 0 окт 25 15:21 ptyp0
crw------- 1 root root 2, 1 окт 25 15:21 ptyp1
crw------- 1 root root 2, 2 окт 25 15:21 ptyp2
crw------- 1 root root 2, 3 окт 25 15:21 ptyp3
crw------- 1 root root 2, 4 окт 25 15:21 ptyp4
crw------- 1 root root 2, 5 окт 25 15:21 ptyp5
crw------- 1 root root 2, 6 окт 25 15:21 ptyp6
crw------- 1 root root 2, 7 окт 25 15:21 ptyp7
crw------- 1 root root 2, 8 окт 25 15:21 ptyp8
crw------- 1 root root 2, 9 окт 25 15:21 ptyp9
crw------- 1 root root 2, 10 окт 25 15:21 ptypa
crw------- 1 root root 2, 11 окт 25 15:21 ptypb
crw------- 1 root root 2, 12 окт 25 15:21 ptypc
crw------- 1 root root 2, 13 окт 25 15:21 ptypd
crw------- 1 root root 2, 14 окт 25 15:21 ptype
crw------- 1 root root 2, 15 окт 25 15:21 ptypf
crw------- 1 root root 10, 57 окт 25 15:21 quadd
crw------- 1 root root 10, 56 окт 25 15:21 quadd_auth
brw-rw---- 1 root disk 1, 0 окт 25 15:21 ram0
brw-rw---- 1 root disk 1, 1 окт 25 15:21 ram1
brw-rw---- 1 root disk 1, 10 окт 25 15:21 ram10
brw-rw---- 1 root disk 1, 11 окт 25 15:21 ram11
brw-rw---- 1 root disk 1, 12 окт 25 15:21 ram12
brw-rw---- 1 root disk 1, 13 окт 25 15:21 ram13
brw-rw---- 1 root disk 1, 14 окт 25 15:21 ram14
brw-rw---- 1 root disk 1, 15 окт 25 15:21 ram15
brw-rw---- 1 root disk 1, 2 окт 25 15:21 ram2
brw-rw---- 1 root disk 1, 3 окт 25 15:21 ram3
brw-rw---- 1 root disk 1, 4 окт 25 15:21 ram4
brw-rw---- 1 root disk 1, 5 окт 25 15:21 ram5
brw-rw---- 1 root disk 1, 6 окт 25 15:21 ram6
brw-rw---- 1 root disk 1, 7 окт 25 15:21 ram7
brw-rw---- 1 root disk 1, 8 окт 25 15:21 ram8
brw-rw---- 1 root disk 1, 9 окт 25 15:21 ram9
crw-rw-rw- 1 root root 1, 8 окт 25 15:21 random
crw-rw-r–+ 1 root netdev 10, 62 окт 25 15:21 rfkill
lrwxrwxrwx 1 root root 4 окт 25 15:21 rtc → rtc1
crw------- 1 root root 252, 0 окт 25 15:21 rtc0
crw------- 1 root root 252, 1 окт 25 15:21 rtc1
drwxr-xr-x 4 root root 80 окт 25 15:21 serial
drwxrwxrwt 2 root root 60 окт 25 15:22 shm
drwxr-xr-x 3 root root 540 окт 25 15:21 snd
lrwxrwxrwx 1 root root 15 окт 25 15:21 stderr → /proc/self/fd/2
lrwxrwxrwx 1 root root 15 окт 25 15:21 stdin → /proc/self/fd/0
lrwxrwxrwx 1 root root 15 окт 25 15:21 stdout → /proc/self/fd/1
crw-rw---- 1 root video 10, 60 окт 25 15:21 tegra_camera_ctrl
crw-rw---- 1 root video 10, 59 окт 25 15:21 tegra_cec
crw-rw---- 1 root crypto 10, 38 окт 25 15:21 tegra-crypto
crw-rw---- 1 root video 239, 1 окт 25 15:21 tegra_dc_0
crw-rw---- 1 root video 239, 2 окт 25 15:21 tegra_dc_1
crw-rw---- 1 root video 239, 0 окт 25 15:21 tegra_dc_ctrl
crw-rw---- 1 root video 10, 63 окт 25 15:21 tegra_mipi_cal
crw-rw-rw- 1 root tty 5, 0 окт 25 15:22 tty
crw–w---- 1 root tty 4, 0 окт 25 15:21 tty0
crw–w---- 1 gdm tty 4, 1 окт 25 15:21 tty1
crw–w---- 1 root tty 4, 10 окт 25 15:21 tty10
crw–w---- 1 root tty 4, 11 окт 25 15:21 tty11
crw–w---- 1 root tty 4, 12 окт 25 15:21 tty12
crw–w---- 1 root tty 4, 13 окт 25 15:21 tty13
crw–w---- 1 root tty 4, 14 окт 25 15:21 tty14
crw–w---- 1 root tty 4, 15 окт 25 15:21 tty15
crw–w---- 1 root tty 4, 16 окт 25 15:21 tty16
crw–w---- 1 root tty 4, 17 окт 25 15:21 tty17
crw–w---- 1 root tty 4, 18 окт 25 15:21 tty18
crw–w---- 1 root tty 4, 19 окт 25 15:21 tty19
crw–w---- 1 pi tty 4, 2 окт 25 15:21 tty2
crw–w---- 1 root tty 4, 20 окт 25 15:21 tty20
crw–w---- 1 root tty 4, 21 окт 25 15:21 tty21
crw–w---- 1 root tty 4, 22 окт 25 15:21 tty22
crw–w---- 1 root tty 4, 23 окт 25 15:21 tty23
crw–w---- 1 root tty 4, 24 окт 25 15:21 tty24
crw–w---- 1 root tty 4, 25 окт 25 15:21 tty25
crw–w---- 1 root tty 4, 26 окт 25 15:21 tty26
crw–w---- 1 root tty 4, 27 окт 25 15:21 tty27
crw–w---- 1 root tty 4, 28 окт 25 15:21 tty28
crw–w---- 1 root tty 4, 29 окт 25 15:21 tty29
crw–w---- 1 root tty 4, 3 окт 25 15:21 tty3
crw–w---- 1 root tty 4, 30 окт 25 15:21 tty30
crw–w---- 1 root tty 4, 31 окт 25 15:21 tty31
crw–w---- 1 root tty 4, 32 окт 25 15:21 tty32
crw–w---- 1 root tty 4, 33 окт 25 15:21 tty33
crw–w---- 1 root tty 4, 34 окт 25 15:21 tty34
crw–w---- 1 root tty 4, 35 окт 25 15:21 tty35
crw–w---- 1 root tty 4, 36 окт 25 15:21 tty36
crw–w---- 1 root tty 4, 37 окт 25 15:21 tty37
crw–w---- 1 root tty 4, 38 окт 25 15:21 tty38
crw–w---- 1 root tty 4, 39 окт 25 15:21 tty39
crw–w---- 1 root tty 4, 4 окт 25 15:21 tty4
crw–w---- 1 root tty 4, 40 окт 25 15:21 tty40
crw–w---- 1 root tty 4, 41 окт 25 15:21 tty41
crw–w---- 1 root tty 4, 42 окт 25 15:21 tty42
crw–w---- 1 root tty 4, 43 окт 25 15:21 tty43
crw–w---- 1 root tty 4, 44 окт 25 15:21 tty44
crw–w---- 1 root tty 4, 45 окт 25 15:21 tty45
crw–w---- 1 root tty 4, 46 окт 25 15:21 tty46
crw–w---- 1 root tty 4, 47 окт 25 15:21 tty47
crw–w---- 1 root tty 4, 48 окт 25 15:21 tty48
crw–w---- 1 root tty 4, 49 окт 25 15:21 tty49
crw–w---- 1 root tty 4, 5 окт 25 15:21 tty5
crw–w---- 1 root tty 4, 50 окт 25 15:21 tty50
crw–w---- 1 root tty 4, 51 окт 25 15:21 tty51
crw–w---- 1 root tty 4, 52 окт 25 15:21 tty52
crw–w---- 1 root tty 4, 53 окт 25 15:21 tty53
crw–w---- 1 root tty 4, 54 окт 25 15:21 tty54
crw–w---- 1 root tty 4, 55 окт 25 15:21 tty55
crw–w---- 1 root tty 4, 56 окт 25 15:21 tty56
crw–w---- 1 root tty 4, 57 окт 25 15:21 tty57
crw–w---- 1 root tty 4, 58 окт 25 15:21 tty58
crw–w---- 1 root tty 4, 59 окт 25 15:21 tty59
crw–w---- 1 root tty 4, 6 окт 25 15:21 tty6
crw–w---- 1 root tty 4, 60 окт 25 15:21 tty60
crw–w---- 1 root tty 4, 61 окт 25 15:21 tty61
crw–w---- 1 root tty 4, 62 окт 25 15:21 tty62
crw–w---- 1 root tty 4, 63 окт 25 15:21 tty63
crw–w---- 1 root tty 4, 7 окт 25 15:21 tty7
crw–w---- 1 root tty 4, 8 окт 25 15:21 tty8
crw–w---- 1 root tty 4, 9 окт 25 15:21 tty9
crw–w---- 1 root tty 510, 0 окт 25 15:21 ttyGS0
crw------- 1 root root 3, 0 окт 25 15:21 ttyp0
crw------- 1 root root 3, 1 окт 25 15:21 ttyp1
crw------- 1 root root 3, 2 окт 25 15:21 ttyp2
crw------- 1 root root 3, 3 окт 25 15:21 ttyp3
crw------- 1 root root 3, 4 окт 25 15:21 ttyp4
crw------- 1 root root 3, 5 окт 25 15:21 ttyp5
crw------- 1 root root 3, 6 окт 25 15:21 ttyp6
crw------- 1 root root 3, 7 окт 25 15:21 ttyp7
crw------- 1 root root 3, 8 окт 25 15:21 ttyp8
crw------- 1 root root 3, 9 окт 25 15:21 ttyp9
crw------- 1 root root 3, 10 окт 25 15:21 ttypa
crw------- 1 root root 3, 11 окт 25 15:21 ttypb
crw------- 1 root root 3, 12 окт 25 15:21 ttypc
crw------- 1 root root 3, 13 окт 25 15:21 ttypd
crw------- 1 root root 3, 14 окт 25 15:21 ttype
crw------- 1 root root 3, 15 окт 25 15:21 ttypf
crw–w---- 1 root tty 4, 64 окт 25 15:21 ttyS0
crw-rw---- 1 root dialout 4, 65 окт 25 15:21 ttyS1
crw-rw---- 1 root dialout 4, 66 окт 25 15:21 ttyS2
crw-rw---- 1 root dialout 4, 67 окт 25 15:21 ttyS3
crw–w---- 1 root tty 238, 1 окт 25 15:27 ttyTHS1
crw-rw---- 1 root dialout 238, 2 окт 25 15:21 ttyTHS2
crw-rw---- 1 root dialout 188, 0 окт 25 15:21 ttyUSB0
crw-rw---- 1 root dialout 188, 1 окт 25 15:21 ttyUSB1
crw-rw---- 1 root dialout 188, 2 окт 25 15:21 ttyUSB2
crw-rw---- 1 root dialout 188, 3 окт 25 15:21 ttyUSB3
crw------- 1 root root 10, 239 окт 25 15:21 uhid
crw------- 1 root root 10, 223 окт 25 15:21 uinput
crw-rw-rw- 1 root root 1, 9 окт 25 15:21 urandom
crw-rw---- 1 root tty 7, 0 окт 25 15:21 vcs
crw-rw---- 1 root tty 7, 1 окт 25 15:21 vcs1
crw-rw---- 1 root tty 7, 2 окт 25 15:21 vcs2
crw-rw---- 1 root tty 7, 3 окт 25 15:21 vcs3
crw-rw---- 1 root tty 7, 4 окт 25 15:21 vcs4
crw-rw---- 1 root tty 7, 5 окт 25 15:21 vcs5
crw-rw---- 1 root tty 7, 6 окт 25 15:21 vcs6
crw-rw---- 1 root tty 7, 128 окт 25 15:21 vcsa
crw-rw---- 1 root tty 7, 129 окт 25 15:21 vcsa1
crw-rw---- 1 root tty 7, 130 окт 25 15:21 vcsa2
crw-rw---- 1 root tty 7, 131 окт 25 15:21 vcsa3
crw-rw---- 1 root tty 7, 132 окт 25 15:21 vcsa4
crw-rw---- 1 root tty 7, 133 окт 25 15:21 vcsa5
crw-rw---- 1 root tty 7, 134 окт 25 15:21 vcsa6
drwxr-xr-x 2 root root 60 янв 1 1970 vfio
crw------- 1 root root 10, 137 окт 25 15:21 vhci
crw------- 1 root root 10, 130 окт 25 15:21 watchdog
crw------- 1 root root 244, 0 окт 25 15:21 watchdog0
crw-rw-rw- 1 root root 1, 5 окт 25 15:21 zero
brw-rw---- 1 root disk 252, 0 окт 25 15:21 zram0
brw-rw---- 1 root disk 252, 1 окт 25 15:21 zram1
brw-rw---- 1 root disk 252, 2 окт 25 15:21 zram2
brw-rw---- 1 root disk 252, 3 окт 25 15:21 zram3

how do I get access to spidev?

Please checl below topic to see if can help: Jetson Nano with external camera sensor - Jetson & Embedded Systems / Jetson Nano - NVIDIA Developer Forums

Need enable SPI by jetson-io and enable by below command after reboot.

sudo modprobe spidev

It didn’t work for me.
I did this…
converted file “kernel_tegra210-p3448-0000-p3449-0000-b00-user-custom.dtb” in dts format
cd /boot
$ dtc -I dtb -O dts -o results.dts kernel_tegra210-p3448-0000-p3449-0000-b00-user-custom.dtb
edit file results.dts

spi@0 {
compatible = “tegra-spidev”;
reg = <0x0>;
spi-max-frequency = <0x1f78a40>;

  	controller-data {
  		nvidia,enable-hw-based-cs;
  		nvidia,rx-clk-tap-delay = <0x7>;
  	};
  };

  spi@1 {
  	compatible = "tegra-spidev";
  	reg = <0x1>;
  	spi-max-frequency = <0x1f78a40>;

  	controller-data {
  		nvidia,enable-hw-based-cs;
  		nvidia,rx-clk-tap-delay = <0x7>;
  	};
  };

};

delete “tegra-” in compatible = “tegra-spidev”;
so for all SPI…spi@0 and spi@1
then converted results.dts in dtb format
$ dtc -I dts -O dtb -o kernel_tegra210-p3448-0000-p3449-0000-b00-user-custom results.dts

Just try jetson-io without modify dtb manually to check.

Manually via jetson-io It didn’t work for me. I’ve tried it a few times. Did not appear in the list of spi devices. I even reinstalled the image several times. (Jetpack 4.6). Then I compared the dtb file from JetPack 4.5 and JetPack 4.6 and found the differences. I wrote about them above.

I just confirm the J4.6 after modify the jetson-io and reboot the the “sudo modprobe spidev” command generate the spidev*.*

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.