# Can't get SPI to work with Rock Pi 4

**URL:** https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984
**Category:** General Discussion
**Created:** [2 June 2023 14:56 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984 "2023-06-02T14:56:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nasker](https://dietpi.com/forum/user_avatar/dietpi.com/nasker/32/4153_2.png) [@Nasker](https://dietpi.com/forum/u/Nasker)
#### Post date: [2 June 2023 14:56 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984/1 "2023-06-02T14:56:35Z")

</div>

Hi,

_OSError: /dev/spidev1.0 does not exist_

Probably I’m doing something wrong and/or missing something basic and obvious here but I can’t seem to be able to get the spi/spidev to work.  
I’ve looked around trying to find where to set the overlays to work but I don’t find where to enable this.  
So far I’m liking diet pi, but getting this to work is taking me a lot meanwhile it has been pretty simple in my experience in other distributions like RaspBian on Radxa’s debian 11 that I’ve tried previously. Hopefully there’s something pretty obvious here.  
Help will be greatly appreciated!

Thanks!

- DietPi version | v8.17.2
- Distro version | Bullseye
- Kernel version | Linux DietPi 5.15.93-rockchip64 #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 aarch64 GNU/Linux
- Architecture | arm64
- SBC model | ROCK 4 (aarch64)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 June 2023 15:26 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984/2 "2023-06-02T15:26:30Z")

</div>

@MichaIng probably something you could help with

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [6 June 2023 09:23 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984/3 "2023-06-06T09:23:58Z")

</div>

A post was split to a new topic: [Rock Pi 4 B boot from SSD](https://dietpi.com/forum/t/rock-pi-4-b-boot-from-ssd/17016)

---

<div class="post-metadata">

### Author: ![Nasker](https://dietpi.com/forum/user_avatar/dietpi.com/nasker/32/4153_2.png) [@Nasker](https://dietpi.com/forum/u/Nasker)
#### Post date: [6 June 2023 11:44 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984/4 "2023-06-06T11:44:26Z")

</div>

So I managed to get this working, and yup it was pretty simple, although it has taken me quite long:

in /boot/dietpiEnv.txt needed to add:  
overlays=spi-spidev  
param\_spidev\_spi\_bus=1

and now it seems to work, so yes it was pretty simple…DUH!

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [6 July 2023 19:20 UTC](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984/5 "2023-07-06T19:20:55Z")

</div>

> [@Nasker](#):
>
> param\_spidev\_spi\_bus=1

Was this really needed? This looks like a variable which remains just unused. But the overlay makes sense 👍.
