# 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:** 1
**Showing post:** 4

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

---

_[View the full topic](https://dietpi.com/forum/t/cant-get-spi-to-work-with-rock-pi-4/16984)._
